/* ==========================================================================
   شركة مرحال لنقل الأثاث بالرياض — Stylesheet v4.0
   Design system: institutional / flat / token-driven (see REDESIGN_PLAN.md)
   RTL-first · Tajawal only · no gradients · borders-over-shadows
   ========================================================================== */

/* ============================== 1. TOKENS =============================== */
:root {
  /* Brand — teal */
  --teal-900: #08252A;
  --teal-800: #0E3438;
  --teal-700: #0F3D3E;
  --teal-600: #16595B;
  --teal-100: rgba(15, 61, 62, 0.08);
  --teal-50:  rgba(15, 61, 62, 0.05);

  /* Accent — gold (functional only) */
  --gold-600: #A87B24;
  --gold-500: #C89B3C;
  --gold-300: #E5B85A;

  /* Neutrals */
  --bg:         #F6F8FA;
  --surface:    #FFFFFF;
  --surface-2:  #EEF2F5;
  --line:       #E3E8EE;
  --line-strong:#CBD5E1;
  --ink:        #101826;
  --ink-2:      #3D4C5E;
  --ink-3:      #64748B;
  --on-dark:    #F4F7F9;
  --on-dark-2:  rgba(244, 247, 249, 0.72);

  /* Semantic */
  --success: #15803D;
  --warning: #B45309;
  --error:   #DC2626;

  /* Channels */
  --whatsapp: #0F766E;

  /* Typography */
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: 2.125rem;  /* 34 */
  --fs-h2: 1.5rem;         /* 24 */
  --fs-h3: 1.0625rem;      /* 17 */
  --fs-lead: 1rem;         /* 16 */
  --fs-body: 0.96875rem;   /* 15.5 */
  --fs-small: 0.875rem;    /* 14 */
  --fs-caption: 0.78125rem;/* 12.5 */
  --fs-label: 0.84375rem;  /* 13.5 */
  --lh-tight: 1.35;
  --lh-heading: 1.4;
  --lh-body: 1.75;

  /* Spacing scale (4-base) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px; --s10: 72px; --s11: 96px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-full: 9999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgb(16 24 38 / 0.05);
  --shadow-2: 0 6px 16px rgb(16 24 38 / 0.10);
  --shadow-3: 0 16px 40px rgb(16 24 38 / 0.18);
  --ring: 0 0 0 3px rgba(22, 89, 91, 0.30);

  /* Layout */
  --container: 1180px;
  --header-h: 72px;
  --section-y: var(--s10);
  --gutter: var(--s6);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 200ms;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s4));
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

::selection { background: var(--teal-700); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; border-radius: var(--r-sm); }
.dark-scope :focus-visible { outline-color: var(--gold-300); }

[hidden] { display: none !important; }

/* ========================= 3. UTILITIES & LAYOUT ======================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow { max-width: calc(800px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--flush-top { padding-block-start: 0; }
.section--alt { background: var(--surface); }

.section-header { max-width: 680px; margin-inline: auto; margin-block-end: var(--s8); text-align: center; }
.section-header--start { text-align: start; margin-inline: 0; }

.section-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--teal-50); color: var(--teal-700);
  font-size: var(--fs-caption); font-weight: 700;
  padding: var(--s1) var(--s3); border-radius: var(--r-sm);
  margin-block-end: var(--s4);
}
.section-badge .icon { color: var(--gold-600); }

.section-title {
  font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-heading);
  color: var(--ink); margin-block-end: var(--s3);
}

.section-subtitle { font-size: var(--fs-lead); color: var(--ink-3); line-height: var(--lh-body); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; inset-block-start: var(--s2); inset-inline-start: var(--s2);
  z-index: 2000; background: var(--teal-900); color: var(--on-dark);
  padding: var(--s2) var(--s4); border-radius: var(--r-md);
  font-size: var(--fs-small); font-weight: 700;
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ============================== 4. BUTTONS ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 42px; padding-inline: var(--s5);
  border-radius: var(--r-md); border: 1px solid transparent;
  font-family: inherit; font-size: var(--fs-small); font-weight: 700; line-height: 1;
  white-space: nowrap; user-select: none;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }

.btn-accent { background: var(--gold-500); color: #14100A; }
.btn-accent:hover { background: var(--gold-600); color: #fff; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #0E7466; }

.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--surface-2); }

.btn-ghost-dark { background: transparent; border-color: rgb(255 255 255 / 0.35); color: var(--on-dark); }
.btn-ghost-dark:hover { border-color: var(--on-dark); background: rgb(255 255 255 / 0.06); }

.btn-sm { height: 36px; padding-inline: var(--s4); font-size: var(--fs-caption); }
.btn-lg { height: 46px; padding-inline: var(--s6); font-size: var(--fs-body); }
.btn-full { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

/* ============================ 4b. ICON SYSTEM ===========================
   One visual language: 24x24 grid · stroke 2 · round caps/joins.
   Size is set per CONTEXT here (never ad hoc in markup).
   Color always inherits via currentColor; states come from parents.
------------------------------------------------------------------------- */
.icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

/* Contextual size map */
.btn .icon, .icon-btn .icon, .social-btn .icon,
.contact-dot .icon, .drawer-close .icon { width: 18px; height: 18px; }
.btn-lg .icon { width: 20px; height: 20px; }
.stat .icon { width: 20px; height: 20px; }
.float-btn .icon { width: 22px; height: 22px; }
.lightbox-close .icon, .lightbox-prev .icon, .lightbox-next .icon { width: 20px; height: 20px; }
.gallery-cta > .icon { width: 28px; height: 28px; }

.section-badge .icon, .hero-badge .icon,
.trust-item .icon, .hero-rating .icon,
.service-link .icon, .footer-contact .icon,
.form-success .icon { width: 14px; height: 14px; }
.service-title .icon, .why-card h3 .icon { width: 15px; height: 15px; }
.chip .icon, .gallery-caption .icon { width: 12px; height: 12px; }

/* ============================ 5. HEADER / NAV =========================== */
.header {
  position: sticky; inset-block-start: 0; z-index: 1000;
  height: var(--header-h); width: 100%;
  background: var(--teal-900); color: var(--on-dark);
  border-block-end: 1px solid rgb(255 255 255 / 0.07);
  transition: box-shadow var(--t-med) var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-1); }

.header-inner { display: flex; align-items: center; gap: var(--s6); height: 100%; }

.brand { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.brand-img { width: 42px; height: auto; }
.brand-name { font-size: 1.125rem; font-weight: 800; color: var(--on-dark); line-height: 1.2; display: block; }
.brand-sub { font-size: var(--fs-caption); font-weight: 500; color: var(--gold-300); display: block; }

.nav { display: flex; align-items: center; gap: var(--s5); margin-inline-start: var(--s5); }
.nav-link {
  position: relative; padding-block: var(--s2);
  font-size: var(--fs-small); font-weight: 500; color: var(--on-dark-2);
  transition: color var(--t-fast) var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; inset-inline: 0; inset-block-end: 0;
  height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--t-fast) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--on-dark); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--s3); margin-inline-start: auto; }
.header-call .num { direction: ltr; unicode-bidi: isolate; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: var(--s3);
  border-radius: var(--r-md); border: 1px solid rgb(255 255 255 / 0.18);
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--on-dark); border-radius: 2px; transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer (≤1024) */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 1001;
  background: rgb(8 12 16 / 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

/* Site is permanently RTL: drawer anchors to the physical right edge */
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0;
  z-index: 1002; width: min(320px, 86vw);
  background: var(--teal-900); color: var(--on-dark);
  padding: var(--s6) var(--s5);
  transform: translateX(105%);
  transition: transform 280ms var(--ease);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-block-end: var(--s4); margin-block-end: var(--s2); border-block-end: 1px solid rgb(255 255 255 / 0.1); }
.drawer-brand { display: flex; align-items: center; gap: var(--s2); font-weight: 800; font-size: var(--fs-small); }
.drawer-brand img { width: 34px; }
.drawer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); color: var(--on-dark-2); transition: background-color var(--t-fast), color var(--t-fast); }
.drawer-close:hover { background: rgb(255 255 255 / 0.08); color: var(--on-dark); }

.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  padding: var(--s4) var(--s1);
  font-size: var(--fs-body); font-weight: 500; color: var(--on-dark-2);
  border-block-end: 1px solid rgb(255 255 255 / 0.08);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.drawer-nav a:hover, .drawer-nav a.active { color: var(--on-dark); background: rgb(255 255 255 / 0.04); }
.drawer-foot { margin-block-start: auto; padding-block-start: var(--s5); display: flex; gap: var(--s3); }
.drawer-foot .btn { flex: 1; }

/* ================================ 6. HERO =============================== */
.hero { background: var(--teal-900); color: var(--on-dark); padding-block: var(--s11) var(--s11); }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: var(--s8); }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--fs-caption); font-weight: 700; color: var(--gold-300);
  border: 1px solid rgb(229 184 90 / 0.4);
  padding: var(--s1) var(--s3); border-radius: var(--r-sm);
  margin-block-end: var(--s5);
}

.hero-title {
  font-size: var(--fs-display); font-weight: 800; line-height: var(--lh-tight);
  color: #fff; margin-block-end: var(--s4);
}
.hero-title em { font-style: normal; color: var(--gold-300); }

.hero-desc { font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--on-dark-2); max-width: 54ch; margin-block-end: var(--s6); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6);
  margin-block-start: var(--s7); padding-block-start: var(--s5);
  border-block-start: 1px solid rgb(255 255 255 / 0.12);
}
.trust-item { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-small); font-weight: 500; color: var(--on-dark-2); }
.trust-item .icon { color: var(--gold-500); }
a.trust-item:hover { color: var(--on-dark); }

.hero-media { position: relative; }
.hero-media-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgb(255 255 255 / 0.14); box-shadow: var(--shadow-3); }
.hero-media-frame img { width: 100%; object-fit: cover; }

.hero-rating {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-block-start: var(--s4); padding: var(--s2) var(--s4);
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-md); box-shadow: var(--shadow-1);
  font-size: var(--fs-small); font-weight: 700;
}
.hero-rating .icon { color: var(--gold-500); }
.hero-rating small { font-weight: 500; color: var(--ink-3); }

/* ============================ 7. STATS BAND ============================= */
.stats { background: var(--surface); border-block: 1px solid var(--line); padding-block: var(--s7); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); text-align: center; }
.stat .icon { color: var(--gold-600); }
.stat-num { display: block; font-size: 1.625rem; font-weight: 800; color: var(--teal-700); line-height: 1.2; margin-block-start: var(--s1); font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--fs-caption); font-weight: 500; color: var(--ink-3); }

/* ============================= 8. SERVICES ============================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }

.service-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.service-media { height: 180px; background: var(--surface-2); overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.service-body { padding: var(--s6); display: flex; flex-direction: column; flex-grow: 1; }
.service-title { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-h3); font-weight: 700; color: var(--ink); line-height: 1.5; margin-block-end: var(--s2); }
.service-title .icon { color: var(--gold-600); }
.service-body p { font-size: var(--fs-small); color: var(--ink-2); flex-grow: 1; margin-block-end: var(--s4); }

.service-link { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-small); font-weight: 700; color: var(--teal-700); transition: color var(--t-fast) var(--ease); }
.service-link .icon { transition: transform var(--t-fast) var(--ease); }
.service-link:hover { color: var(--teal-600); }
.service-link:hover .icon { transform: translateX(-3px); }

/* ============================ 9. WHY CHOOSE US ========================== */
.why-section { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }

.why-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.why-card h3 { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-h3); font-weight: 700; color: var(--ink); margin-block-end: var(--s2); }
.why-card h3 .icon { color: var(--gold-600); }
.why-card p { font-size: var(--fs-small); color: var(--ink-2); }

/* ============================== 10. AREAS =============================== */
.areas-cloud { display: flex; flex-wrap: wrap; gap: var(--s3); max-width: 900px; margin-inline: auto; }
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: var(--fs-label); font-weight: 500; color: var(--ink-2);
}
.chip .icon { color: var(--gold-600); }

/* ============================= 11. GALLERY ============================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }

.gallery-item {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.gallery-item:hover, .gallery-item:focus-visible { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-caption {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4);
  background: rgb(8 37 42 / 0.88); color: var(--on-dark);
  font-size: var(--fs-small); font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--t-med) var(--ease);
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { transform: translateY(0); }
.gallery-caption .icon { color: var(--gold-300); }

.gallery-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s2); text-align: center; padding: var(--s6);
  background: var(--teal-800); color: var(--on-dark);
  border-radius: var(--r-lg); border: 1px solid var(--teal-800);
}
.gallery-cta > .icon { color: var(--gold-300); }
.gallery-cta h3 { font-size: var(--fs-h3); font-weight: 700; color: #fff; }
.gallery-cta p { font-size: var(--fs-small); color: var(--on-dark-2); margin-block-end: var(--s3); }

/* Lightbox dialog */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s6);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.lightbox.open { opacity: 1; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgb(5 10 12 / 0.88); }
.lightbox-figure { position: relative; z-index: 1; max-width: min(1040px, 92vw); }
.lightbox-figure img { max-width: 100%; max-height: 82vh; border-radius: var(--r-lg); margin-inline: auto; }
.lightbox-caption { margin-block-start: var(--s3); text-align: center; color: var(--on-dark-2); font-size: var(--fs-small); }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; z-index: 2;
  width: 44px; height: 44px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(255 255 255 / 0.1); color: #fff;
  transition: background-color var(--t-fast) var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgb(255 255 255 / 0.22); }
.lightbox-close { inset-block-start: var(--s5); inset-inline-end: var(--s5); }
.lightbox-next { inset-inline-end: var(--s5); inset-block-start: 50%; translate: 0 -50%; }
.lightbox-prev { inset-inline-start: var(--s5); inset-block-start: 50%; translate: 0 -50%; }

/* =========================== 12. SOCIAL STRIP =========================== */
.social-strip { background: var(--teal-900); color: var(--on-dark); padding-block: var(--s7); }
.social-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.social-strip-text h2 { font-size: 1.125rem; font-weight: 700; color: #fff; }
.social-strip-text p { font-size: var(--fs-small); color: var(--on-dark-2); }
.social-strip-actions { display: flex; gap: var(--s3); }
.social-btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 44px; padding-inline: var(--s5);
  border: 1px solid rgb(255 255 255 / 0.28); border-radius: var(--r-md);
  font-size: var(--fs-small); font-weight: 700; color: var(--on-dark);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.social-btn .icon { }
.social-btn:hover { border-color: var(--gold-300); color: var(--gold-300); background: rgb(255 255 255 / 0.05); }

/* ============================== 13. CONTACT ============================= */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--s7); align-items: start; }

.contact-info-title { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); margin-block-end: var(--s5); }

.contact-list { display: flex; flex-direction: column; gap: var(--s2); margin-block-end: var(--s6); }
.contact-row {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease);
}
a.contact-row:hover { background: var(--teal-50); }
.contact-dot {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full); background: var(--teal-50); color: var(--teal-700);
}
.contact-dot.wa { background: rgba(15, 118, 110, 0.12); color: var(--whatsapp); }
.contact-row small { display: block; font-size: var(--fs-caption); color: var(--ink-3); }
.contact-row strong { display: block; font-size: var(--fs-small); font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-row strong.ltr { direction: ltr; unicode-bidi: isolate; }

.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-frame iframe { width: 100%; height: 240px; border: 0; }

.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s7); }
.form-title { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); margin-block-end: var(--s5); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { margin-block-end: var(--s5); }
.field label { display: block; font-size: var(--fs-label); font-weight: 700; color: var(--ink); margin-block-end: var(--s2); }
.field label .req { color: var(--error); }

.field input, .field select, .field textarea {
  width: 100%; min-height: 44px;
  padding: var(--s3) var(--s4);
  font-family: inherit; font-size: var(--fs-body); color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 2 1.4.6 6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left var(--s4) center; padding-inline-end: var(--s4); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--teal-700); box-shadow: var(--ring);
}

.field-error { display: none; margin-block-start: var(--s1); font-size: var(--fs-caption); font-weight: 500; color: var(--error); }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

.form-note { font-size: var(--fs-caption); color: var(--ink-3); margin-block-start: var(--s3); text-align: center; }
.break-all { word-break: break-all; }

.form-success {
  display: none; align-items: flex-start; gap: var(--s3);
  margin-block-start: var(--s5); padding: var(--s4);
  background: rgba(21, 128, 61, 0.08); border: 1px solid rgba(21, 128, 61, 0.35);
  border-radius: var(--r-md); color: var(--success);
  font-size: var(--fs-small); font-weight: 500;
}
.form-success.visible { display: flex; }
.form-success .icon { margin-block-start: 2px; }
.form-success a { font-weight: 700; text-decoration: underline; }

/* ============================== 14. FOOTER ============================== */
.footer { background: var(--teal-900); color: var(--on-dark-2); padding-block-start: var(--s9); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.9fr 1fr 1.1fr; gap: var(--s8); padding-block-end: var(--s8); }

.footer-brand .brand { margin-block-end: var(--s4); }
.footer-desc { font-size: var(--fs-small); line-height: 1.8; margin-block-end: var(--s5); max-width: 34ch; }

.footer-social { display: flex; gap: var(--s3); }
.footer-social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.2); border-radius: var(--r-md);
  color: var(--on-dark);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.footer-social a:hover { border-color: var(--gold-300); color: var(--gold-300); }

.footer-heading { font-size: var(--fs-caption); font-weight: 700; color: var(--on-dark); margin-block-end: var(--s4); }
.footer-links { display: flex; flex-direction: column; gap: var(--s3); }
.footer-links a { font-size: var(--fs-small); color: var(--on-dark-2); transition: color var(--t-fast) var(--ease); }
.footer-links a:hover { color: var(--on-dark); }

.footer-contact { display: flex; flex-direction: column; gap: var(--s3); }
.footer-contact li { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-small); }
.footer-contact .icon { color: var(--gold-500); }
.footer-contact a:hover { color: var(--on-dark); }

.footer-bottom { border-block-start: 1px solid rgb(255 255 255 / 0.09); padding-block: var(--s5); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--fs-caption); }
.footer-tagline { color: rgb(244 247 249 / 0.55); }

/* ====================== 15. FLOATING LAYER / BACK-TO-TOP ================ */
.floating-buttons {
  position: fixed; inset-block-end: var(--s5); inset-inline-start: var(--s5);
  z-index: 999; display: flex; flex-direction: column; gap: var(--s3);
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med), transform var(--t-med) var(--ease);
}
.float-btn {
  width: 48px; height: 48px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-3);
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.float-btn:hover { filter: brightness(1.1); }
.float-btn:active { transform: translateY(1px); }
.float-whatsapp { background: var(--whatsapp); }
.float-call { background: var(--teal-700); }

.floating-buttons.hide-mobile { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }

.back-to-top {
  position: fixed; inset-block-end: var(--s5); inset-inline-end: var(--s5);
  z-index: 998; width: 44px; height: 44px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-1);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

/* ======================= 16. ENTRANCE ANIMATIONS ======================== */
.no-js [data-animate], .reduced-motion [data-animate] { opacity: 1; transform: none; }

[data-animate] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 240ms ease-out, transform 240ms var(--ease);
}
[data-animate].is-visible { opacity: 1; transform: none; }
[data-animate="fade-in"] { transform: none; }

/* ============================= 17. RESPONSIVE =========================== */
@media (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; --section-y: var(--s9); --gutter: var(--s5); }

  .hero { padding-block: var(--s10) var(--s9); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-desc { max-width: 62ch; }

  .nav, .header-actions { display: none; }
  .hamburger { display: flex; margin-inline-start: auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s7); }
}

@media (max-width: 768px) {
  :root { --section-y: var(--s8); }

  .services-grid, .why-grid, .gallery-grid { grid-template-columns: 1fr; }
  .service-media { height: 200px; }

  .hero { padding-block: var(--s9) var(--s8); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-trust { gap: var(--s3); }

  .social-strip-inner { flex-direction: column; align-items: flex-start; }

  .form-panel { padding: var(--s6) var(--s5); }
  .form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
  .form-row .field { margin-block-end: var(--s5); }

  .lightbox { padding: var(--s4); }
  .lightbox-next { inset-inline-end: var(--s2); }
  .lightbox-prev { inset-inline-start: var(--s2); }
  .lightbox-close { inset-block-start: var(--s2); inset-inline-end: var(--s2); }
}

@media (max-width: 480px) {
  :root { --gutter: var(--s4); --fs-display: 1.625rem; --fs-h2: 1.3125rem; }

  .brand-sub { display: none; }
  .hero-rating { width: 100%; justify-content: center; }
  .stat-num { font-size: 1.375rem; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .floating-buttons { inset-block-end: var(--s4); inset-inline-start: var(--s4); }
  .back-to-top { inset-block-end: var(--s4); inset-inline-end: var(--s4); }
}

/* ========================= 18. REDUCED MOTION =========================== */
@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;
  }
  [data-animate] { opacity: 1; transform: none; }
}
