/* ============================================
   CUSTOM PROPERTIES
   ============================================ */

:root {
  --c-indigo:       #1C1E3C;
  --c-indigo-dark:  #111827;
  --c-teal:         #007C78;
  --c-teal-light:   #009E9A;
  --c-gold:         #D4AF37;
  --c-gold-dim:     rgba(212, 175, 55, 0.65);
  --c-off-white:    #F8F6F0;
  --c-charcoal:     #111111;
  --c-gray-mid:     #6B7280;
  --c-gray-light:   #E5E1D8;
  --c-white:        #ffffff;

  --f-head: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card:       0 2px 16px rgba(17, 24, 39, 0.07), 0 1px 4px rgba(17, 24, 39, 0.04);
  --shadow-card-hover: 0 8px 40px rgba(17, 24, 39, 0.13), 0 2px 8px rgba(17, 24, 39, 0.06);

  --ease: 0.25s ease;
  --ease-slow: 0.4s ease;

  --max-w: 1160px;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);
}


/* ============================================
   RESET
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--f-body);
  background-color: var(--c-off-white);
  color: var(--c-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 400;
  line-height: 1.18;
}

p { line-height: 1.72; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
button { cursor: pointer; }


/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }


/* ============================================
   SECTION TYPOGRAPHY
   ============================================ */

.section-header { text-align: center; }
.section-header--left { text-align: left; }

.section-label {
  display: block;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 0.625rem;
}

.section-label--gold { color: var(--c-gold); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  color: var(--c-indigo);
  margin-bottom: 0.875rem;
}

.section-title--light { color: var(--c-off-white); }

.section-rule {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold) 0%, transparent 100%);
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-rule--left { margin-inline: 0; }


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.875rem;
  border-radius: 5px;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  border: 1.5px solid transparent;
  transition: background-color var(--ease), color var(--ease),
              border-color var(--ease), transform var(--ease),
              box-shadow var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--c-teal);
  color: var(--c-white);
  border-color: var(--c-teal);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--c-teal-light);
  border-color: var(--c-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 124, 120, 0.38);
}

.btn-ghost {
  background-color: transparent;
  color: var(--c-off-white);
  border-color: rgba(248, 246, 240, 0.3);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn--large {
  padding: 1.0625rem 2.375rem;
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}


/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  transition: background-color var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
  background-color: var(--c-indigo);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo { display: flex; align-items: center; }

.logo-text {
  font-family: var(--f-head);
  font-size: 1.3125rem;
  color: var(--c-off-white);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(248, 246, 240, 0.78);
  transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--c-gold); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  background-color: var(--c-teal);
  color: var(--c-white) !important;
  transition: background-color var(--ease), transform var(--ease) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: var(--c-teal-light) !important;
  color: var(--c-white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--c-off-white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}


/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--c-indigo-dark);
  overflow: hidden;
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.09) 1px, transparent 0);
  background-size: 38px 38px;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow--teal {
  top: -15%;
  right: -8%;
  width: 58%;
  padding-bottom: 58%;
  background: radial-gradient(circle, rgba(0, 124, 120, 0.2) 0%, transparent 65%);
}

.hero-glow--gold {
  bottom: -20%;
  left: -6%;
  width: 44%;
  padding-bottom: 44%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.09) 0%, transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(6rem, 12vw, 10rem) clamp(4rem, 8vw, 6rem);
  width: 100%;
}

.hero-content { max-width: 800px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 1.375rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background-color: var(--c-teal);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  color: var(--c-off-white);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 1.625rem;
}

.hero-subhead {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(248, 246, 240, 0.68);
  line-height: 1.78;
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.375rem;
}

.hero-credibility {
  font-size: 0.875rem;
  color: rgba(248, 246, 240, 0.42);
  line-height: 1.65;
  padding-left: 1rem;
  border-left: 2px solid rgba(212, 175, 55, 0.5);
  max-width: 560px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-track {
  display: block;
  width: 22px;
  height: 38px;
  border: 1.5px solid rgba(248, 246, 240, 0.18);
  border-radius: 11px;
  position: relative;
}

.scroll-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5px;
  height: 7px;
  background: var(--c-gold);
  border-radius: 2px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%   { transform: translateX(-50%) translateY(0);   opacity: 1; }
  55%  { transform: translateX(-50%) translateY(13px); opacity: 0; }
  56%  { transform: translateX(-50%) translateY(0);   opacity: 0; }
  100% { transform: translateX(-50%) translateY(0);   opacity: 1; }
}


/* ============================================
   SERVICES
   ============================================ */

.services { background-color: var(--c-off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--c-white);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--ease-slow), box-shadow var(--ease-slow);
}

/* Animated top border */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease-slow);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.service-card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(0, 124, 120, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-teal);
  margin-bottom: 1.25rem;
  transition: background-color var(--ease);
}

.service-card:hover .card-icon { background-color: rgba(0, 124, 120, 0.12); }

.service-card h3 {
  font-size: 1.125rem;
  color: var(--c-indigo);
  margin-bottom: 0.625rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--c-gray-mid);
  line-height: 1.68;
}


/* ============================================
   PROCESS
   ============================================ */

.process { background-color: #EDEAE0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(12.5% + 0.5rem);
  right: calc(12.5% + 0.5rem);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.25) 10%,
    rgba(212, 175, 55, 0.25) 90%,
    transparent 100%
  );
  pointer-events: none;
}

.process-step {
  padding: 0 clamp(1rem, 2.5vw, 1.75rem);
  text-align: center;
  counter-increment: none;
}

.step-number {
  font-family: var(--f-head);
  font-size: 2.625rem;
  line-height: 1;
  color: var(--c-gold);
  opacity: 0.55;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.step-body h3 {
  font-size: 1.1875rem;
  color: var(--c-indigo);
  margin-bottom: 0.5rem;
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--c-gray-mid);
  line-height: 1.68;
}


/* ============================================
   PROOF
   ============================================ */

.proof {
  background-color: var(--c-indigo);
  position: relative;
  overflow: hidden;
}

.proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.055) 1px, transparent 0);
  background-size: 42px 42px;
  pointer-events: none;
}

.proof-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.proof-quote {
  font-family: var(--f-head);
  font-style: italic;
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  color: rgba(248, 246, 240, 0.82);
  line-height: 1.8;
  padding: 0;
  border: none;
  margin-bottom: 2.25rem;
  quotes: none;
}

.proof-tags {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.3125rem 0.875rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 100px;
  color: var(--c-gold-dim);
  transition: border-color var(--ease), color var(--ease);
}

.tag:hover {
  border-color: rgba(212, 175, 55, 0.6);
  color: var(--c-gold);
}


/* ============================================
   FOUNDER
   ============================================ */

.founder { background-color: var(--c-off-white); }

.founder-inner {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.founder-bio {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.78;
  margin-bottom: 1.875rem;
}

.founder-bullets { padding: 0; }

.founder-bullets li {
  position: relative;
  padding: 0.5625rem 0 0.5625rem 1.375rem;
  font-size: 0.9375rem;
  color: var(--c-gray-mid);
  border-bottom: 1px solid var(--c-gray-light);
  transition: color var(--ease);
}

.founder-bullets li:first-child { border-top: 1px solid var(--c-gray-light); }

.founder-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-gold);
}

/* Founder photo visual */
.founder-visual {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.founder-photo {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 172px;
  height: 172px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.18);
}

.founder-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--c-gold);
}

.founder-ring--outer {
  opacity: 0.2;
  animation: ringFloat 5s ease-in-out infinite;
}

.founder-ring--inner {
  inset: 14px;
  opacity: 0.12;
  animation: ringFloat 5s ease-in-out infinite reverse;
}

@keyframes ringFloat {
  0%, 100% { transform: scale(1);    opacity: 0.2; }
  50%       { transform: scale(1.05); opacity: 0.1; }
}


/* ============================================
   CONTACT
   ============================================ */

.contact {
  background-color: var(--c-indigo-dark);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 124, 120, 0.07) 1px, transparent 0);
  background-size: 34px 34px;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.contact-title {
  font-size: clamp(1.75rem, 4vw, 3.125rem);
  color: var(--c-off-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.contact-body {
  font-size: 1.0625rem;
  color: rgba(248, 246, 240, 0.6);
  line-height: 1.75;
  margin-bottom: 2.625rem;
}

.contact-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-email {
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: rgba(248, 246, 240, 0.45);
  transition: color var(--ease);
}

.contact-email:hover { color: var(--c-gold); }


/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--c-charcoal);
  padding-block: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: block;
  font-family: var(--f-head);
  font-size: 1.0625rem;
  color: var(--c-off-white);
  margin-bottom: 0.3rem;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: rgba(248, 246, 240, 0.38);
}

.footer-right { text-align: right; }

.footer-right p {
  font-size: 0.8125rem;
  color: rgba(248, 246, 240, 0.32);
  line-height: 1.85;
}

.footer-right a {
  color: rgba(248, 246, 240, 0.42);
  transition: color var(--ease);
}

.footer-right a:hover { color: var(--c-gold); }


/* ============================================
   RESPONSIVE — TABLET  (≤ 960px)
   ============================================ */

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .process-steps::before { display: none; }

  .founder-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .founder-visual {
    order: -1;
    margin-inline: auto;
  }

  .section-header--left {
    text-align: center;
  }

  .section-rule--left {
    margin-inline: auto;
  }

  .footer-inner   { flex-direction: column; text-align: center; }
  .footer-right   { text-align: center; }
}


/* ============================================
   RESPONSIVE — MOBILE  (≤ 640px)
   ============================================ */

@media (max-width: 640px) {
  /* Nav becomes hamburger */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--c-indigo);
    padding-block: 0.5rem 1.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .nav-cta {
    margin: 0.5rem 1.5rem 0 !important;
    border-radius: 4px !important;
    text-align: center;
    padding: 0.75rem 1.25rem !important;
  }

  /* Sections */
  .services-grid      { grid-template-columns: 1fr; }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .process-step { text-align: left; }

  /* Hero CTAs stack */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 340px;
  }

  /* Contact row stacks */
  .contact-ctas { flex-direction: column; gap: 1.25rem; }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
