/* ============================================================
   STRUCTWEB – Light Theme
   Palette: White · Grey · Charcoal · Navy Blue
   Fonts: Playfair Display (headings) · Syne (UI/mono) · Lora (body)
   ============================================================ */

:root {
  --white: #ffffff;
  --off-white: #f5f6f8;
  --grey-100: #eef0f4;
  --grey-200: #dde1e9;
  --grey-400: #9aa3b2;
  --grey-600: #5c6475;
  --charcoal: #1a1f2e;
  --charcoal-mid: #2c3347;

  --navy: #0d1b2a;
  --navy-mid: #1a3a80;
  --blue: #4573c9;
  --blue-light: #d6e4ff;
  --blue-pale: #eef3ff;

  --serif: "Syne", sans-serif;
  --syne: "Syne", sans-serif;
  --body: "Syne", sans-serif;

  --r: 6px;
  --r-lg: 14px;
  --shadow-sm: 0 2px 12px rgba(15, 37, 87, 0.08);
  --shadow: 0 8px 32px rgba(15, 37, 87, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 37, 87, 0.16);
}

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

body {
  background: var(--grey-100);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: var(--off-white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey-200);
}

.nav__logo {
  margin-top: 10px;
  width: 200px;
  height: 70px;
  background-image: url("MD\ Digital.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.nav__logo span {
  color: var(--blue);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--syne);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--grey-600);
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--charcoal);
}

.nav__cta {
  color: var(--navy) !important;
  border: 1.5px solid var(--navy);
  padding: 0.5rem 1.25rem;
  border-radius: var(--r);
  transition:
    background 0.2s,
    color 0.2s !important;
}

.nav__cta:hover {
  background: var(--navy);
  color: var(--white) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 0 auto;
  padding: 9rem 2rem 5rem;
  width: 80%;
}

.hero__tag {
  display: inline-block;
  font-family: var(--syne);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid var(--blue-light);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.8rem;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}

.hero__sub {
  font-size: 1rem;
  color: var(--grey-600);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--syne);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.btn--primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 95, 212, 0.3);
}

/* Hero right column */
.hero__right {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url(graphic.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--navy);
  overflow: hidden;
  padding: 0.85rem 0;
}

.ticker__track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
  font-family: var(--syne);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ticker__track .sep {
  color: var(--blue-light);
  opacity: 0.5;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-tag {
  display: inline-block;
  font-family: var(--syne);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-tag--light {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   WHY
   ============================================================ */
.why {
  padding: 7rem 0;
  display: flex;
  background: var(--offwhite);
  align-items: center;
  justify-content: center;
}

.why .container {
  width: 100%;
}

.why__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.why__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}

.why__lead {
  font-size: 1.1rem;
  color: var(--grey-600);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.why__list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--grey-200);
  font-size: 1.15rem;
  color: var(--grey-600);
  line-height: 1.65;
}

.why__list li:first-child {
  border-top: 1px solid var(--grey-200);
}

.why__list li strong {
  color: var(--charcoal);
  font-family: var(--syne);
  font-size: 1.15rem;
  font-weight: 700;
}

.why__bullet {
  font-family: var(--syne);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 7rem 0;
  background: var(--off-white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  display: flex;
}

.how .container {
  width: 100%;
}

.how__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 3rem;
}

.how__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}

.how__steps {
  display: flex;
  flex-direction: column;
}

.how__step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
}

.how__num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  flex-shrink: 0;
  width: 2.2rem;
}

.how__body strong {
  display: block;
  font-family: var(--syne);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.how__body p {
  font-size: 1rem;
  color: var(--grey-600);
  line-height: 1.7;
}

.how__connector {
  width: 1px;
  height: 1.75rem;
  background: var(--grey-200);
  margin-left: 2.85rem;
}
/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 7rem 0;
  background: var(--navy);
}

.contact__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contact__header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.contact__header p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.55);
}

.form-wrap {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.form-wrap iframe {
  width: 100%;
  border: none;
  border-radius: var(--r-lg);
}

.btn-tally {
  display: inline-flex;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: var(--navy-mid);
  color: var(--white);
  border: none;
  border-radius: var(--r);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}

.btn-tally:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 95, 212, 0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: "Futura", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--white);
}

.footer__logo span {
  color: var(--blue-light);
}

.footer p {
  font-family: var(--syne);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-family: var(--syne);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

.svc-card:nth-child(2).fade-up {
  transition-delay: 0.1s;
}
.svc-card:nth-child(3).fade-up {
  transition-delay: 0.2s;
}
.pillar:nth-child(2).fade-up {
  transition-delay: 0.08s;
}
.pillar:nth-child(3).fade-up {
  transition-delay: 0.16s;
}
.pillar:nth-child(4).fade-up {
  transition-delay: 0.24s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8rem 2rem 4rem;
    gap: 3rem;
  }
  .hero__sub {
    margin: 0 auto 2.5rem;
  }

  .hero__right {
    max-width: 480px;
    margin: 0 auto;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
  .why__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .why__left p {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  .nav__links li:not(:last-child) {
    display: none;
  }
  .why__pillars {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
