@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,900&family=Inter:wght@400;500;600&display=swap');

/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  /* Colors */
  --navy:       #0B1F3A;
  --teal:       #00C2A8;
  --teal-light: #E0FAF7;
  --white:      #F8FAFB;
  --slate:      #6B7FA3;
  --slate-dark: #3D4F6B;
  --text:       #111827;
  --border:     #E2E8F0;
  --navy-dark:  #07152A;

  /* Typography scale (px -> rem via 1rem = 16px) */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-56: 3.5rem;
  --fs-72: 4.5rem;

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-2:  0.125rem;
  --space-4:  0.25rem;
  --space-8:  0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-96: 6rem;
  --space-128: 8rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm:  0 1px 2px  rgb(11 31 58 / 0.04);
  --shadow-md:  0 4px 8px  rgb(11 31 58 / 0.06);
  --shadow-lg:  0 12px 24px rgb(11 31 58 / 0.08);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --duration:  250ms;
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: var(--teal);
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: #009B86;
}

/* ==========================================================
   UTILITIES
   ========================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-24);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1, .h1 { font-size: var(--fs-56); }
h2, .h2 { font-size: var(--fs-40); }
h3, .h3 { font-size: var(--fs-32); }
h4, .h4 { font-size: var(--fs-24); }
h5, .h5 { font-size: var(--fs-20); }
h6, .h6 { font-size: var(--fs-18); }

p.lead {
  font-size: var(--fs-20);
  font-weight: 400;
  color: var(--slate);
  line-height: 1.6;
}

.label {
  font-size: var(--fs-14);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  display: block;
  margin-bottom: var(--space-12);
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-16) var(--space-32);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: #009B86;
  border-color: #009B86;
  color: var(--white);
  box-shadow: 0 4px 16px rgb(0 194 168 / 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: var(--navy) / 0.95;
  background: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-24);
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1;
}

.nav__brand span {
  color: var(--teal);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  display: block;
  padding: var(--space-8) var(--space-16);
  font-size: var(--fs-14);
  font-weight: 500;
  color: rgb(248 250 251 / 0.7);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--duration) var(--ease-out);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--white);
}

.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-16);
  right: var(--space-16);
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.nav__cta {
  padding: var(--space-12) var(--space-24);
  font-size: var(--fs-14);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: var(--space-8);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

/* Dot-grid X-ray pattern */
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
}

/* Diagonal teal accent */
.hero__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
}

.hero__accent::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 120%;
  height: 2px;
  background: var(--teal);
  opacity: 0.3;
  transform: rotate(-35deg);
  transform-origin: right center;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-block: var(--space-96);
}

.hero__eyebrow {
  font-size: var(--fs-14);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: var(--space-24);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-72);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 12ch;
}

.hero__title em {
  color: var(--teal);
  font-style: italic;
}

.hero__subtitle {
  font-size: var(--fs-20);
  line-height: 1.7;
  color: rgb(248 250 251 / 0.7);
  max-width: 48ch;
  margin-top: var(--space-32);
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-top: var(--space-48);
  flex-wrap: wrap;
}

/* ==========================================================
   STATS BAR
   ========================================================== */
.stats {
  background: var(--teal);
  padding-block: var(--space-48);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-56);
  color: var(--navy);
  line-height: 1;
}

.stat__label {
  font-size: var(--fs-16);
  font-weight: 500;
  color: var(--navy);
  opacity: 0.8;
  margin-top: var(--space-8);
}

/* ==========================================================
   SERVICE CARDS
   ========================================================== */
.services {
  padding-block: var(--space-128);
}

.section__header {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-64);
}

.section__header .label {
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: var(--space-48) var(--space-32);
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

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

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-24);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.service-card__title {
  font-size: var(--fs-24);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-12);
}

.service-card__desc {
  font-size: var(--fs-16);
  color: var(--slate);
  line-height: 1.7;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials {
  background: var(--teal-light);
  padding-block: var(--space-128);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-48) var(--space-32);
  position: relative;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-20);
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: var(--space-32);
}

.testimonial-card__quote::before {
  content: '\201C';
  font-size: var(--fs-40);
  color: var(--teal);
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-18);
  color: var(--teal);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--fs-16);
  color: var(--navy);
  display: block;
}

.testimonial-card__role {
  font-size: var(--fs-14);
  color: var(--slate);
}

/* ==========================================================
   CALCULATOR WIDGET
   ========================================================== */
.calculator {
  background: var(--navy);
  padding-block: var(--space-128);
  color: var(--white);
}

.calculator .section__header h2 {
  color: var(--white);
}

.calculator .section__header p {
  color: rgb(248 250 251 / 0.6);
}

.calculator__panel {
  background: var(--slate-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-48) var(--space-64);
  max-width: 800px;
  margin-inline: auto;
  border: 1px solid rgb(255 255 255 / 0.06);
}

.calculator__field {
  margin-bottom: var(--space-32);
}

.calculator__field label {
  display: block;
  font-size: var(--fs-16);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-16);
}

.calculator__field .hint {
  font-size: var(--fs-14);
  color: var(--slate);
  margin-bottom: var(--space-12);
}

.calculator__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--navy);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.calculator__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--teal);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgb(0 194 168 / 0.4);
  transition: transform var(--duration) var(--ease-out);
}

.calculator__slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calculator__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--teal);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgb(0 194 168 / 0.4);
}

.calculator__output {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  justify-content: center;
  padding: var(--space-32);
  border-top: 1px solid rgb(255 255 255 / 0.06);
  margin-top: var(--space-32);
}

.calculator__output-label {
  font-size: var(--fs-18);
  color: var(--slate);
}

.calculator__output-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-56);
  color: var(--teal);
}

/* ==========================================================
   CTA SECTIONS
   ========================================================== */
.cta {
  padding-block: var(--space-96);
  text-align: center;
}

.cta--navy {
  background: var(--navy);
  color: var(--white);
}

.cta--navy h2 {
  color: var(--white);
}

.cta--navy p {
  color: rgb(248 250 251 / 0.7);
}

.cta--white {
  background: var(--white);
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  margin-top: var(--space-32);
  flex-wrap: wrap;
}

/* ==========================================================
   PAGE HEADER
   ========================================================== */
.page-header {
  background: var(--navy);
  padding-block: var(--space-96) var(--space-64);
  text-align: center;
  color: var(--white);
}

.page-header .label {
  color: var(--teal);
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-56);
  color: var(--white);
}

.page-header p {
  color: rgb(248 250 251 / 0.7);
  max-width: 52ch;
  margin-inline: auto;
  margin-top: var(--space-16);
}

/* ==========================================================
   CASE STUDY CARDS
   ========================================================== */
.case-studies {
  padding-block: var(--space-96);
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
  padding: var(--space-64);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: var(--space-48);
}

.case-card:nth-child(even) .case-card__image {
  order: 2;
}

.case-card__image {
  background: var(--teal-light);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease-out);
}

.case-card:hover .case-card__image img {
  transform: scale(1.02);
}

.case-card__tags {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.case-card__tag {
  font-size: var(--fs-14);
  font-weight: 600;
  padding: var(--space-4) var(--space-12);
  background: var(--teal-light);
  color: var(--teal);
  border-radius: var(--radius-sm);
}

.case-card__title {
  font-size: var(--fs-32);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-16);
}

.case-card__desc {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: var(--space-32);
}

.case-card__results {
  display: flex;
  gap: var(--space-48);
  padding-top: var(--space-24);
  border-top: 1px solid var(--border);
}

.case-card__result strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-40);
  color: var(--teal);
  line-height: 1;
}

.case-card__result span {
  font-size: var(--fs-14);
  color: var(--slate);
  margin-top: var(--space-4);
  display: block;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  padding-block: var(--space-96);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: start;
}

.form-group {
  margin-bottom: var(--space-24);
}

.form-group label {
  display: block;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: var(--space-8);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-16);
  font-size: var(--fs-16);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(0 194 168 / 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info__item {
  display: flex;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.contact-info__label {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.contact-info__value {
  font-size: var(--fs-18);
  font-weight: 500;
  color: var(--navy);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about-story {
  padding-block: var(--space-128);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-96);
  align-items: center;
}

.about-grid__image {
  background: var(--teal-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}

.about-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
  margin-top: var(--space-48);
}

.value-card {
  text-align: center;
  padding: var(--space-32);
}

.value-card .number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-40);
  color: var(--teal);
  line-height: 1;
}

.value-card h3 {
  font-size: var(--fs-20);
  color: var(--navy);
  margin-top: var(--space-16);
  margin-bottom: var(--space-12);
}

.value-card p {
  font-size: var(--fs-16);
  color: var(--slate);
  line-height: 1.7;
}

/* ==========================================================
   TEAM
   ========================================================== */
.team {
  background: var(--teal-light);
  padding-block: var(--space-128);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
  margin-top: var(--space-64);
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--teal);
  margin-inline: auto;
  margin-bottom: var(--space-24);
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-size: var(--fs-20);
  font-weight: 600;
  color: var(--navy);
}

.team-card__role {
  font-size: var(--fs-14);
  color: var(--slate);
  margin-top: var(--space-4);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding-block: var(--space-96) var(--space-32);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-64);
  padding-bottom: var(--space-64);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-24);
  color: var(--white);
  margin-bottom: var(--space-16);
}

.footer__brand span {
  color: var(--teal);
}

.footer__desc {
  font-size: var(--fs-16);
  color: var(--slate);
  line-height: 1.7;
  max-width: 32ch;
}

.footer__col-title {
  font-size: var(--fs-14);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(248 250 251 / 0.5);
  margin-bottom: var(--space-24);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-12);
}

.footer__links a {
  font-size: var(--fs-16);
  color: var(--slate);
  transition: color var(--duration) var(--ease-out);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: var(--space-16);
  margin-top: var(--space-24);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease-out);
}

.footer__social a:hover {
  background: var(--teal);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-32);
}

.footer__copy {
  font-size: var(--fs-14);
  color: var(--slate);
}

.footer__legal {
  display: flex;
  gap: var(--space-24);
}

.footer__legal a {
  font-size: var(--fs-14);
  color: var(--slate);
}

.footer__legal a:hover {
  color: var(--white);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 768px) {
  :root {
    --fs-72: 3rem;
    --fs-56: 2.5rem;
    --fs-40: 2rem;
    --fs-32: 1.5rem;
    --fs-24: 1.25rem;
    --fs-20: 1.125rem;
  }

  .nav__links {
    display: none;
  }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: var(--space-24);
    gap: var(--space-4);
    border-top: 1px solid rgb(255 255 255 / 0.06);
  }

  .nav__links.is-open a {
    padding: var(--space-12);
  }

  .nav__toggle {
    display: block;
  }

  .nav__cta {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-32);
  }

  .cards-grid,
  .testimonials-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .case-card:nth-child(even) .case-card__image {
    order: unset;
  }

  .case-card__results {
    gap: var(--space-32);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-48);
  }
}

/* Mobile */
@media (max-width: 375px) {
  .container {
    padding-inline: var(--space-16);
  }

  :root {
    --fs-72: 2.5rem;
    --fs-56: 2rem;
    --fs-40: 1.75rem;
    --fs-32: 1.25rem;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cards-grid,
  .testimonials-grid,
  .values-grid,
  .team-grid,
  .stats__grid {
    grid-template-columns: 1fr;
  }

  .calculator__panel {
    padding: var(--space-32) var(--space-24);
  }

  .case-card__results {
    flex-direction: column;
    gap: var(--space-24);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-16);
    text-align: center;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
