/* ==========================================================================
   Chalukya Tiles — main.css
   Global design tokens, reset, typography, layout, and shared UI primitives.
   Mobile-first. No framework dependencies.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   -------------------------------------------------------------------------- */
:root {
  /* White + light Oxford blue — clean for tile photography */
  --color-oxford: #002147;
  --color-oxford-deep: #001a38;
  --color-oxford-mid: #1a3a66;
  --color-oxford-soft: #3d5f8f;
  --color-oxford-light: #6b8cb8;
  --color-oxford-mist: #d6e2f0;
  --color-oxford-pale: #eef3f9;

  --color-primary: #ffffff;
  --color-secondary: #002147;
  --color-accent: #5a7394;
  --color-highlight: #1a4a8a;
  --color-highlight-dark: #002147;
  --color-highlight-soft: rgba(0, 33, 71, 0.1);
  --color-brand-blue: #1a4a8a;
  --color-brand-blue-light: #6b8cb8;
  --color-brand-blue-mid: #3d5f8f;
  /* legacy aliases → Oxford (avoid broken refs) */
  --color-walnut: #1a4a8a;
  --color-walnut-deep: #002147;
  --color-gold-soft: #6b8cb8;
  --color-sage: #1a4a8a;
  --color-sage-light: #d6e2f0;
  --color-ivory: #ffffff;
  --color-ivory-deep: #eef3f9;

  /* Neutrals — white + cool Oxford tints */
  --color-charcoal: #0a2540;
  --color-charcoal-soft: #1a3a66;
  --color-stone: #5a7394;
  --color-stone-light: #9aafc8;
  --color-stone-pale: #eef3f9;
  --color-cream: #f7f9fc;
  --color-white: #ffffff;
  --color-black: #001529;

  /* Semantic */
  --color-text: var(--color-charcoal);
  --color-text-muted: var(--color-stone);
  --color-text-inverse: var(--color-white);
  --color-bg: var(--color-primary);
  --color-bg-alt: var(--color-cream);
  --color-bg-dark: var(--color-secondary);
  --color-border: rgba(0, 33, 71, 0.1);
  --color-border-strong: rgba(0, 33, 71, 0.16);
  --color-success: #1f6b4a;
  --color-error: #b33a3a;
  --color-focus: var(--color-highlight);

  /* Typography — simple clean professional (single family) */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;

  --fs-xs: 0.8125rem;  /* 13px */
  --fs-sm: 0.9375rem;  /* 15px */
  --fs-base: 1.0625rem; /* 17px */
  --fs-md: 1.1875rem;  /* 19px */
  --fs-lg: 1.375rem;   /* 22px */
  --fs-xl: 1.625rem;   /* 26px */
  --fs-2xl: 2.125rem;  /* 34px */
  --fs-3xl: 2.625rem;  /* 42px */
  --fs-4xl: 3.375rem;  /* 54px */
  --fs-5xl: 4.25rem;   /* 68px */

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.06em;
  --ls-wider: 0.12em;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-sm: 40rem;
  --container-md: 48rem;
  --container-lg: 64rem;
  --container-xl: 75rem;
  --container-pad: 1.25rem;
  --header-height: 4.5rem;
  --section-pad-y: 4rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows — soft Oxford blue tint (tiles stay crisp on white) */
  --shadow-xs: 0 1px 2px rgba(0, 33, 71, 0.05);
  --shadow-sm: 0 2px 10px rgba(0, 33, 71, 0.07);
  --shadow-md: 0 10px 28px rgba(0, 33, 71, 0.09);
  --shadow-lg: 0 18px 48px rgba(0, 33, 71, 0.12);
  --shadow-xl: 0 28px 64px rgba(0, 33, 71, 0.14);
  --shadow-glow: 0 0 0 1px rgba(26, 74, 138, 0.28),
    0 8px 28px rgba(26, 74, 138, 0.18);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 280ms;
  --duration-slow: 450ms;
  --duration-slower: 700ms;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-loader: 900;
  --z-whatsapp: 850;
  --z-scrolltop: 840;

  /* Form */
  --input-height: 3rem;
  --input-bg: var(--color-white);
  --input-border: var(--color-border-strong);
}

@media (min-width: 768px) {
  :root {
    --container-pad: 2rem;
    --section-pad-y: 5.5rem;
    --header-height: 5rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --section-pad-y: 6.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

video {
  object-fit: cover;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

a:hover {
  color: var(--color-highlight);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-charcoal);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Skip link — accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-loader) + 1);
  padding: var(--space-3) var(--space-5);
  background: var(--color-highlight);
  color: var(--color-charcoal);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 2px solid var(--color-charcoal);
  outline-offset: 2px;
}

/* Focus visible — keyboard navigation */
:focus {
  outline: none;
}

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

::selection {
  background: var(--color-highlight-soft);
  color: var(--color-charcoal);
}

/* --------------------------------------------------------------------------
   3. Typography utilities
   -------------------------------------------------------------------------- */
.heading-display {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.heading-1 {
  font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-4xl));
}

.heading-2 {
  font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl));
}

.heading-3 {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
}

.heading-4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.lead {
  font-size: clamp(var(--fs-md), 2vw, var(--fs-lg));
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-xs {
  font-size: var(--fs-xs);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-highlight {
  color: var(--color-highlight);
}

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-highlight);
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   4. Layout — container, sections, grid helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--sm {
  max-width: var(--container-sm);
}

.container--md {
  max-width: var(--container-md);
}

.container--lg {
  max-width: var(--container-lg);
}

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

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

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-text-inverse);
}

.section--dark .lead,
.section--dark .text-muted {
  color: var(--color-stone-light);
}

.section__header {
  max-width: 40rem;
  margin-bottom: var(--space-10);
}

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

.section__header .lead {
  margin-top: var(--space-4);
}

/* Flex / grid utilities */
.flex {
  display: flex;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Main content offset for fixed header */
.main {
  min-height: 60vh;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--color-charcoal);
  --btn-color: var(--color-white);
  --btn-border: transparent;
  --btn-hover-bg: var(--color-charcoal-soft);
  --btn-hover-color: var(--color-white);
  --btn-glow: transparent;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: var(--btn-color);
  background-color: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    color: var(--btn-hover-color);
    background-color: var(--btn-hover-bg);
    box-shadow: var(--shadow-md), var(--btn-glow);
    transform: translateY(-1px);
  }
}

.btn:active {
  transform: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

/* Primary CTA — elegant red */
.btn--primary {
  --btn-bg: var(--color-highlight);
  --btn-color: #ffffff;
  --btn-hover-bg: var(--color-highlight-dark);
  --btn-hover-color: #ffffff;
  --btn-glow: var(--shadow-glow);
}

/* Outline */
.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--color-charcoal);
  --btn-border: var(--color-charcoal);
  --btn-hover-bg: var(--color-charcoal);
  --btn-hover-color: var(--color-white);
  box-shadow: none;
}

/* Ghost / light on dark sections */
.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-white);
  --btn-border: rgba(255, 255, 255, 0.45);
  --btn-hover-bg: var(--color-white);
  --btn-hover-color: var(--color-charcoal);
  box-shadow: none;
}

/* Soft secondary */
.btn--soft {
  --btn-bg: var(--color-stone-pale);
  --btn-color: var(--color-charcoal);
  --btn-hover-bg: var(--color-highlight-soft);
  --btn-hover-color: var(--color-charcoal);
  box-shadow: none;
}

/* Sizes */
.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  min-height: 3.5rem;
  padding: 0.9rem 2.25rem;
  font-size: var(--fs-base);
}

/* Icon-only */
.btn--icon {
  width: 3rem;
  min-height: 3rem;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Ripple layer (activated via JS) */
.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: btn-ripple 0.6s var(--ease-out) forwards;
  pointer-events: none;
  z-index: 0;
}

@keyframes btn-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 125, 225, 0.35);
  transform: translateY(-4px);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  transition: transform var(--duration-slower) var(--ease-out);
}

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

.card__body {
  padding: var(--space-6);
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-stone);
}

.card__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.card__footer {
  padding: 0 var(--space-6) var(--space-6);
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
}

.form__label .required {
  color: var(--color-error);
  margin-left: 0.15em;
}

.form__control {
  width: 100%;
  min-height: var(--input-height);
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.form__control::placeholder {
  color: var(--color-stone-light);
}

.form__control:hover {
  border-color: var(--color-stone);
}

.form__control:focus {
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px var(--color-highlight-soft);
  outline: none;
}

.form__control--textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: var(--lh-normal);
}

.form__control.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(179, 58, 58, 0.12);
}

.form__error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  min-height: 1.1em;
}

.form__hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.form__status {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--success {
  background: rgba(47, 125, 74, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(47, 125, 74, 0.25);
}

.form__status--error {
  background: rgba(179, 58, 58, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(179, 58, 58, 0.22);
}

/* --------------------------------------------------------------------------
   8. Badges, dividers, misc UI
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  background: var(--color-stone-pale);
  color: var(--color-stone);
}

.badge--gold {
  background: var(--color-highlight-soft);
  color: var(--color-highlight-dark);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  border: 0;
  margin-block: var(--space-8);
}

.divider--gold {
  max-width: 4rem;
  height: 2px;
  background: var(--color-highlight);
  margin-inline: auto;
}

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

/* Lazy-loaded media placeholder */
.lazy-media {
  background: linear-gradient(
    110deg,
    var(--color-stone-pale) 8%,
    #ebe8e3 18%,
    var(--color-stone-pale) 33%
  );
  background-size: 200% 100%;
}

img[loading="lazy"] {
  background-color: var(--color-stone-pale);
}

/* --------------------------------------------------------------------------
   9. Floating actions — WhatsApp + Review pen + Scroll to top
   -------------------------------------------------------------------------- */
.float-actions {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-whatsapp);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-end;
  /* Never let a stuck transform/pulse paint outside the stack */
  overflow: visible;
  pointer-events: none;
}

.float-actions > * {
  pointer-events: auto;
}

@media (min-width: 768px) {
  .float-actions {
    right: var(--space-6);
    bottom: var(--space-6);
  }
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3.25rem !important;
  height: 3.25rem !important;
  min-width: 3.25rem !important;
  min-height: 3.25rem !important;
  max-width: 3.25rem !important;
  max-height: 3.25rem !important;
  flex: 0 0 3.25rem;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  /* CRITICAL: never scale — sticky :hover on touch/desktop was creating a giant green disc */
  transform: none !important;
  scale: none;
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out),
    filter var(--duration-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}

.float-btn:hover,
.float-btn:focus,
.float-btn:active,
.float-btn.pulse-soft {
  transform: none !important;
  width: 3.25rem !important;
  height: 3.25rem !important;
}

@media (hover: hover) and (pointer: fine) {
  .float-btn:hover {
    box-shadow: var(--shadow-lg);
    filter: brightness(1.06);
  }
}

.float-btn--whatsapp {
  background: #25d366;
  color: #fff;
  /* Soft static glow only — no animated expanding ring */
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  animation: none !important;
}

.float-btn--whatsapp:hover,
.float-btn--whatsapp:focus,
.float-btn--whatsapp:active {
  color: #fff;
  transform: none !important;
}

.float-btn--review {
  background: var(--color-oxford, #002147);
  color: #9ec5ff;
}

.float-btn--review:hover {
  color: #fff;
  background: var(--color-highlight, #1a4a8a);
}

.float-btn--scrolltop {
  background: var(--color-charcoal);
  color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--z-scrolltop);
}

.float-btn--scrolltop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.float-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

/* Review modal */
body.review-modal-open {
  overflow: hidden;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-whatsapp, 1200) + 20);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.review-modal[hidden] {
  display: none !important;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 28, 0.62);
  backdrop-filter: blur(2px);
}

.review-modal__dialog {
  position: relative;
  width: min(100%, 28rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  background: var(--color-white, #fff);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5, 1.25rem);
}

.review-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.review-modal__head h2 {
  margin: 0;
  font-family: var(--font-display, Poppins, sans-serif);
  font-size: 1.25rem;
  color: var(--color-oxford, #002147);
}

.review-modal__x {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-charcoal, #333);
  padding: 0.15rem 0.4rem;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-charcoal, #333);
}

.review-field span {
  font-weight: 500;
}

.review-field input,
.review-field select,
.review-field textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border, #d8dce6);
  border-radius: var(--radius-md, 8px);
  background: #fff;
  color: inherit;
}

.review-field input:focus,
.review-field select:focus,
.review-field textarea:focus {
  outline: 2px solid var(--color-gold, #c9a227);
  outline-offset: 1px;
  border-color: var(--color-gold, #c9a227);
}

.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 480px) {
  .review-form-row {
    grid-template-columns: 1fr;
  }
}

.review-form__status {
  margin: 0;
  font-size: 0.875rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md, 8px);
}

.review-form__status.is-success {
  background: #e8f7ee;
  color: #0f6b35;
}

.review-form__status.is-error {
  background: #fdecec;
  color: #9b1c1c;
}

.review-form__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted, #6b7280);
}

/* --------------------------------------------------------------------------
   10. Loading screen
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  background: var(--color-charcoal);
  color: var(--color-white);
  transition: opacity var(--duration-slow) var(--ease-out),
    visibility var(--duration-slow) var(--ease-out);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__brand {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-highlight);
}

.loader__bar {
  width: 8rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader__bar-fill {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--color-highlight);
  border-radius: inherit;
  animation: loader-slide 1.1s var(--ease-in-out) infinite;
}

@keyframes loader-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

/* --------------------------------------------------------------------------
   11. Filter chips (products / gallery shared)
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-stone);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.filter-btn:hover {
  color: var(--color-charcoal);
  border-color: var(--color-stone);
}

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  color: var(--color-charcoal);
  background: var(--color-highlight-soft);
  border-color: var(--color-highlight);
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: var(--space-16);
  background:
    linear-gradient(135deg, rgba(11, 31, 74, 0.95), rgba(20, 55, 120, 0.9)),
    radial-gradient(ellipse at 70% 20%, rgba(77, 166, 232, 0.25), transparent 55%),
    var(--color-secondary);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-band .lead {
  color: var(--color-stone-light);
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   13. Page hero (inner pages — full homepage hero is in hero.css)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-12);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.page-hero__title {
  margin-bottom: var(--space-3);
}

.page-hero__lead {
  max-width: 36rem;
}

/* Error / empty utility pages */
.error-page {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--section-pad-y);
  text-align: center;
}

.error-page .lead {
  max-width: 36rem;
  margin-inline: auto;
  margin-top: var(--space-4);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

.page-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.page-hero__breadcrumb a:hover {
  color: var(--color-highlight);
}

.page-hero__breadcrumb [aria-current="page"] {
  color: var(--color-charcoal);
  font-weight: var(--fw-medium);
}

/* --------------------------------------------------------------------------
   14. Star ratings (testimonials shared)
   -------------------------------------------------------------------------- */
.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--color-highlight);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  line-height: 1;
}

.stars[aria-label]::before {
  /* decorative stars via content set in HTML or data attr */
  content: none;
}

/* --------------------------------------------------------------------------
   15. Utility helpers
   -------------------------------------------------------------------------- */
.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

.block {
  display: block;
}

.inline-flex {
  display: inline-flex;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.overflow-hidden {
  overflow: hidden;
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

/* Aspect ratios */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-4x3 {
  aspect-ratio: 4 / 3;
}

/* Object fit helpers for media */
.object-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   16. About page — story, mission/vision, timeline, achievements
   -------------------------------------------------------------------------- */
.about-story {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .about-story {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-12);
  }
}

.about-story__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 16rem;
  background: var(--color-stone-pale);
}

.about-story__media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

@media (min-width: 900px) {
  .about-story__media,
  .about-story__media img {
    min-height: 28rem;
  }
}

.about-story__content .lead {
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}

.about-story__content p + p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.mv-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

.mv-card {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-highlight);
}

.mv-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 125, 225, 0.4);
  transform: translateY(-3px);
}

.mv-card__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-highlight);
  margin-bottom: var(--space-3);
}

.mv-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
}

.mv-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
  padding-left: var(--space-6);
}

@media (min-width: 768px) {
  .timeline {
    padding-left: 0;
  }
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.35rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--color-highlight),
    var(--color-border-strong)
  );
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    margin-left: -1px;
  }
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .timeline__item {
    width: 50%;
    padding: 0 var(--space-8) var(--space-12);
  }

  .timeline__item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: var(--space-10);
    padding-left: 0;
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
    padding-left: var(--space-10);
    padding-right: 0;
  }
}

.timeline__dot {
  position: absolute;
  top: 0.35rem;
  left: -0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-highlight);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-highlight-soft);
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline__item:nth-child(odd) .timeline__dot {
    left: auto;
    right: -0.45rem;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    left: -0.45rem;
  }
}

.timeline__year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  color: var(--color-highlight-dark);
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* Achievements */
.achievements-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

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

.achievement-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  height: 100%;
}

.achievement-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 125, 225, 0.4);
  transform: translateY(-4px);
}

.achievement-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  color: var(--color-highlight);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.achievement-card__title {
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}

.achievement-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.values-list {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}

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

.value-pill {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.value-pill__mark {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  border-radius: var(--radius-full);
  background: var(--color-highlight);
}

.value-pill__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-1);
}

.value-pill__text {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* --------------------------------------------------------------------------
   17. Testimonials page
   -------------------------------------------------------------------------- */
.testimonials-summary {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .testimonials-summary {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: stretch;
  }
}

.testimonials-summary__score {
  padding: var(--space-8) var(--space-6);
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.testimonials-summary__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-highlight);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.testimonials-summary__stars {
  color: var(--color-highlight);
  font-size: var(--fs-lg);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.testimonials-summary__label {
  font-size: var(--fs-sm);
  color: var(--color-stone-light);
}

.testimonials-summary__stat {
  padding: var(--space-8) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.testimonials-summary__stat:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 125, 225, 0.4);
  transform: translateY(-3px);
}

.testimonials-summary__stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-highlight);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.testimonials-summary__stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.testimonials-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

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

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-8) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: var(--space-3);
  right: var(--space-5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-highlight);
  opacity: 0.22;
  pointer-events: none;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 125, 225, 0.4);
  transform: translateY(-5px);
}

.testimonial-card__stars {
  color: var(--color-highlight);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.testimonial-card__quote {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
  flex: 1;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  background: var(--color-highlight-soft);
  border: 1px solid rgba(47, 125, 225, 0.35);
}

.testimonial-card__author {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
}

.testimonial-card__role {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.testimonial-card__project {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-highlight-dark);
}

.testimonial-card--featured {
  background: linear-gradient(
    160deg,
    var(--color-white) 0%,
    var(--color-cream) 100%
  );
  border-color: rgba(47, 125, 225, 0.45);
}

@media (min-width: 1024px) {
  .testimonial-card--featured {
    grid-column: span 1;
  }
}

.testimonials-filter {
  margin-bottom: var(--space-8);
}

.testimonials-featured-quote {
  max-width: 40rem;
  margin-inline: auto;
  font-size: clamp(var(--fs-md), 2.2vw, var(--fs-lg));
  line-height: var(--lh-relaxed);
  color: var(--color-stone-light);
  font-style: normal;
}

.testimonials-featured-cite strong {
  font-weight: var(--fw-semibold);
}

.section--dark .testimonials-featured-cite .text-muted {
  color: var(--color-stone-light);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   18. Reduced-motion friendly defaults for interactive chrome
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .btn:hover,
  .mv-card:hover,
  .achievement-card:hover,
  .testimonial-card:hover,
  .testimonials-summary__stat:hover {
    transform: none;
  }

  .card:hover .card__media img {
    transform: none;
  }

  .loader__bar-fill {
    animation: none;
    width: 100%;
  }
}
