/* ── VARIABLES ── */
:root {
  --pine:  #1C3B3B;
  --wave:  #4AAFDA;
  --sand:  #F4F1EC;
  --slate: #3A4A4A;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--sand);
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* ── LAYOUT ── */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(28,59,59,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.logo { height: 2.25rem; }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-link {
  position: relative;
  padding-bottom: 2px;
  color: var(--slate);
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--wave);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.btn-primary {
  background: var(--pine);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-wave {
  background: var(--wave);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}
.btn-wave:hover { opacity: 0.9; }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); }
.mob-btn { display: none; color: var(--pine); }
.mob-menu { display: none; background: var(--white); border-top: 1px solid rgba(28,59,59,0.1); padding: 1.25rem 1.5rem; }
.mob-menu nav { display: flex; flex-direction: column; gap: 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--slate); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--pine);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 9rem;
  padding-bottom: 5rem;
}
.hero-waves {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  width: 100%; height: 100%;
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wave);
}
.hero-label-line { width: 2rem; height: 1px; background: var(--wave); }
h1.hero-heading {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}
h1.hero-heading em {
  font-style: normal;
  color: var(--wave);
}
.hero-line {
  height: 1px;
  background: var(--wave);
  margin-bottom: 2rem;
  animation: drawLine 1.2s ease forwards 0.4s;
  width: 0;
}
@keyframes drawLine { from { width: 0; } to { width: 100%; } }
.hero-sub {
  color: var(--gray-300);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 42rem;
  margin-bottom: 3rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-creds {
  position: relative; z-index: 1;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cred-tag {
  border: 1px solid rgba(74,175,218,0.3);
  background: rgba(74,175,218,0.06);
  color: var(--gray-300);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 2px;
}

/* ── SECTIONS ── */
section { padding: 6rem 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wave);
  margin-bottom: 0.75rem;
}
h2.section-heading {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  color: var(--pine);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 3.5rem;
  max-width: 32rem;
}
h2.section-heading-light {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}

/* ── SERVICES ── */
.services { background: var(--sand); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(28,59,59,0.1);
  padding: 2rem;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--wave); }
.service-bar {
  width: 3px; height: 2rem;
  background: var(--wave);
  margin-bottom: 1.5rem;
  transition: height 0.3s;
}
.service-card:hover .service-bar { height: 3rem; }
.service-card h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--pine);
  margin-bottom: 0.75rem;
}
.service-card p { font-size: 0.875rem; color: var(--slate); line-height: 1.6; }
.pricing-bar {
  background: var(--pine);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pricing-bar p:first-child { font-size: 1.5rem; font-weight: 700; }
.pricing-bar p:last-of-type { font-size: 0.875rem; color: var(--gray-400); margin-top: 0.25rem; }

/* ── PORTFOLIO ── */
.portfolio { background: var(--white); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.project-card {
  background: var(--sand);
  border: 1px solid rgba(28,59,59,0.1);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(28,59,59,0.12);
}
.card-header {
  height: 13rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.card-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wave);
  margin-bottom: 0.5rem;
}
.card-header h3 {
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--white);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.card-header .card-title-wrap { position: relative; z-index: 1; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body .org { font-weight: 600; color: var(--pine); margin-bottom: 0.5rem; font-size: 0.9rem; }
.card-body p { font-size: 0.875rem; color: var(--slate); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tag {
  font-size: 0.7rem;
  background: var(--white);
  border: 1px solid rgba(28,59,59,0.12);
  color: var(--slate);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}
.card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wave);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.625rem; }

/* ── ABOUT ── */
.about { background: var(--pine); color: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about p { color: var(--gray-300); line-height: 1.7; margin-bottom: 1.25rem; }
.expertise-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 2.5rem; }
.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.expertise-item:last-child { border-bottom: none; }
.expertise-line { width: 1.25rem; height: 1px; background: var(--wave); flex-shrink: 0; margin-top: 0.75rem; }
.expertise-item strong { display: block; font-weight: 500; margin-bottom: 0.25rem; }
.expertise-item span { font-size: 0.875rem; color: var(--gray-400); }
.company-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 1.5rem;
}
.company-card .card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wave);
  margin-bottom: 1rem;
}
.company-data { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; font-size: 0.875rem; }
.data-label { font-size: 0.7rem; color: var(--gray-500); margin-bottom: 0.125rem; }
.data-value { color: #e5e7eb; }
.data-value.mono { font-family: monospace; font-size: 0.75rem; }
.data-full { grid-column: 1 / -1; }

/* ── CONTACT ── */
.contact { background: var(--sand); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact h2 {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  color: var(--pine);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.contact > .container > .contact-grid > div > p {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--slate); }
.contact-icon {
  width: 2rem; height: 2rem;
  background: rgba(28,59,59,0.08);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 1rem; height: 1rem; color: var(--pine); }
.contact-form {
  background: var(--white);
  border: 1px solid rgba(28,59,59,0.1);
  border-radius: 2px;
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine);
  margin-bottom: 0.375rem;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid rgba(28,59,59,0.18);
  border-radius: 2px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--slate);
  background: var(--sand);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--wave); }
.field textarea { resize: none; }
.form-submit {
  width: 100%;
  background: var(--pine);
  color: var(--white);
  padding: 0.75rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}
.form-submit:hover { opacity: 0.9; }
.form-success { display: none; text-align: center; font-size: 0.875rem; color: var(--wave); font-weight: 500; }

/* ── FOOTER ── */
footer {
  background: var(--pine);
  color: var(--gray-500);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.75rem;
}
.footer-logo { height: 1.75rem; opacity: 0.6; filter: brightness(0) invert(1); margin-bottom: 0.75rem; }
.footer-right { text-align: right; }
.footer-right p { margin-bottom: 0.25rem; }
.footer-copy { color: #374151; margin-top: 0.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mob-btn { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  h1.hero-heading { font-size: 2.25rem; }
}
