/* ==========================================================================
   Dr. Ifthikar Medical Center — Design tokens
   ========================================================================== */
:root {
  --brand: #b01f2e;
  --brand-dark: #8a1522;
  --brand-soft: #fbeced;
  --ink: #1a1416;
  --ink-soft: #4a4245;
  --muted: #6b6266;
  --line: #e9e2e3;
  --surface: #ffffff;
  --surface-alt: #faf7f6;
  --dark: #171213;
  --on-dark: #f5efef;
  --on-dark-muted: #c9bfc0;

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --fs-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --fs-lg: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.8vw, 2.7rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 3.4vw, 4.2rem);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(26, 20, 22, 0.06);
  --shadow: 0 10px 30px rgba(26, 20, 22, 0.09);
  --shadow-lg: 0 20px 50px rgba(26, 20, 22, 0.14);

  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

ul {
  padding-inline-start: 1.2rem;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--alt {
  background: var(--surface-alt);
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section-head {
  max-width: 760px;
  margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-block-end: 0.75rem;
}

.section--dark .eyebrow {
  color: #f19aa3;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
}

.section--dark .lead,
.section--dark p {
  color: var(--on-dark-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(176, 31, 46, 0.28);
}

.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--brand-dark);
}

.btn--light:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--ghost-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding-block: 0.4rem;
}

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar a {
  color: var(--on-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .topbar__hide-sm {
    display: none;
  }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-block-end: 1px solid rgba(233, 226, 227, 0.8);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.brand img {
  width: clamp(150px, 30vw, 190px);
  aspect-ratio: 1480 / 321;
  height: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: #fff;
  border-block-end: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.5rem var(--gutter) 1.25rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  display: none;
}

.primary-nav.is-open {
  display: block;
}

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.25rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-block-end: 1px solid var(--line);
  position: relative;
}

.primary-nav__link:hover {
  color: var(--brand);
}

.primary-nav__link.is-active,
.primary-nav__link[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.primary-nav__cta {
  margin-block-start: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-nav__cta .btn {
  flex: 1 1 180px;
}

.lang-link {
  font-weight: 600;
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }

  .primary-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .primary-nav__link {
    border: 0;
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
  }

  .primary-nav__link::after {
    content: "";
    position: absolute;
    inset-inline: 0.8rem;
    bottom: 6px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
  }

  .primary-nav__link:hover::after,
  .primary-nav__link.is-active::after {
    transform: scaleX(1);
  }

  .primary-nav__cta {
    margin: 0;
    flex-wrap: nowrap;
  }

  .primary-nav__cta .btn {
    flex: 0 0 auto;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 7rem);
  background:
    radial-gradient(1000px 500px at 100% 0%, var(--brand-soft), transparent 70%),
    linear-gradient(180deg, #fff, var(--surface-alt));
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero__grid > * {
  min-width: 0;
}

.hero h1 {
  margin-block-end: 0.35em;
}

.hero h1 span {
  color: var(--brand);
  font-style: italic;
}

.hero__media {
  position: relative;
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--line);
}

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

.media--hero {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.hero__badge {
  position: absolute;
  inset-inline-start: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  background: #fff;
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: calc(100% - 1.5rem);
}

.hero__badge strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
}

.hero__badge span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.chip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.chip-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* Page hero (inner pages) */
.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(800px 400px at 0% 0%, var(--brand-soft), transparent 70%),
    var(--surface-alt);
  border-block-end: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
  max-width: 20ch;
}

.page-hero .lead {
  max-width: 62ch;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.35rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--ink-soft);
}

/* ==========================================================================
   Grids & cards
   ========================================================================== */
.grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  grid-template-columns: 1fr;
}

.grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #dfcfd1;
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body p {
  color: var(--ink-soft);
}

.card__link {
  margin-block-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.card__link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

[dir="rtl"] .card__link::after {
  content: "←";
}

.card__link:hover::after {
  transform: translateX(4px);
}

[dir="rtl"] .card__link:hover::after {
  transform: translateX(-4px);
}

.feature {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  height: 100%;
}

.section--dark .feature {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  margin-block-end: 1rem;
}

.feature__icon img {
  width: 30px;
  height: 30px;
}

.feature__num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--brand);
  line-height: 1;
  margin-block-end: 0.75rem;
  display: block;
}

.section--dark .feature__num {
  color: #f19aa3;
}

.feature p {
  color: var(--ink-soft);
  margin: 0;
}

/* Split layout */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.split > * {
  min-width: 0;
}

.media--split {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.media--portrait {
  aspect-ratio: 4 / 5;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-inline-start: 2rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block-start: 1.5rem;
}

.stat {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  color: var(--brand);
  line-height: 1.1;
}

.stat span {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* Before / After */
.results-grid .result {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.result__media {
  aspect-ratio: 4 / 5;
  background: var(--line);
}

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

.result figcaption {
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* Testimonial & media */
.quote {
  margin: 0;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  position: relative;
}

.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.45;
  color: #fff;
}

.quote footer {
  color: #fde3e5;
  font-size: var(--fs-sm);
}

.stars {
  color: #ffd76a;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
  margin-block-end: 0.75rem;
}

.press {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
}

.press__logo {
  width: 160px;
  aspect-ratio: 900 / 500;
  object-fit: contain;
}

.review {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review blockquote {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.review cite {
  margin-block-start: auto;
  font-style: normal;
  font-weight: 600;
}

/* Team */
.doctor {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.doctor > * {
  min-width: 0;
}

.doctor__media {
  aspect-ratio: 4 / 3;
  background: var(--line);
}

.doctor__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.doctor__body {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.doctor__role {
  color: var(--brand);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-block-end: 1rem;
}

.doctor__initials {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), #f3dfe1);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  color: var(--brand);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tag-list li {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .doctor {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .doctor__media,
  .doctor__initials {
    aspect-ratio: auto;
    min-height: 380px;
    position: relative;
  }
  .doctor__media img {
    position: absolute;
    inset: 0;
  }
}

.doctors {
  display: grid;
  gap: 2rem;
}

/* Info blocks */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.info-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.info-list .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.info-list .icon svg {
  width: 22px;
  height: 22px;
}

.info-list strong {
  display: block;
}

.info-list a {
  display: inline-block;
  padding-block: 0.2rem;
}

.info-list div {
  min-width: 0;
}

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  color: #fff;
  margin-block-end: 0.3em;
}

.cta-band p {
  color: #fde3e5;
  margin: 0;
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1.5fr auto;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field label {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.field .req {
  color: var(--brand);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid #d9cfd1;
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(176, 31, 46, 0.15);
}

.field [aria-invalid="true"] {
  border-color: #c0392b;
}

.field__error {
  color: #a3242f;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status {
  margin-block-start: 1rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #1d6b3a;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 18, 19, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__dialog {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform 0.3s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-alt);
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

.modal__close:hover {
  background: var(--brand-soft);
}

.modal__actions {
  display: grid;
  gap: 0.75rem;
  margin-block-start: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) 0;
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}

.footer-grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-brand img {
  width: 190px;
  aspect-ratio: 1480 / 321;
  height: auto;
  margin-block-end: 1rem;
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-block-end: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.site-footer address a {
  color: var(--on-dark-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.footer-links a:hover,
.site-footer address a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
}

.site-footer address p {
  margin-block-end: 0.6rem;
}

.footer-bottom {
  margin-block-start: 3rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.25rem;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   Back to top & floating WhatsApp
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.25s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--brand-dark);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.whatsapp-float {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1f8f4e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.whatsapp-float:hover {
  background: #177140;
  color: #fff;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}
