/* ============================================================
   Themaralbasra (TBC) — World Of Italian Coffee
   Main stylesheet
   Brand colors derived from official logo:
     Navy  #1B1F5C   (logo "T" + outer ring + Arabic text)
     Green #2DA864   (logo "B" + "C" + arc)
   ============================================================ */

:root {
  /* Brand */
  --c-navy: #1B1F5C;
  --c-navy-dark: #131645;
  --c-navy-soft: #2A2E78;
  --c-green: #2DA864;
  --c-green-dark: #1F8A4F;
  --c-green-soft: #4FBE82;
  /* Deeper shades of the SAME brand green — for headings/text (AA contrast)
     and for dark chrome surfaces (topbar, footer, inner-page heroes). */
  --c-green-ink: #15693B;   /* headings & text on light — ~5.8:1 on white */
  --c-green-deep: #0F3D24;  /* deep forest green for footer/topbar/hero bg */

  /* Supporting palette */
  --c-cream: #FAF6EE;
  --c-coffee: #3B2418;
  --c-gold: #C8A35B;
  --c-ink: #1A1A1A;
  --c-text: #2C2C2C;
  --c-muted: #6E6E6E;
  --c-line: #E6E6EA;
  --c-bg-soft: #F5F6F9;
  --c-white: #FFFFFF;

  /* Type */
  --f-display: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --f-body: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --f-en: "Playfair Display", Georgia, serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(27, 31, 92, 0.06);
  --shadow-md: 0 10px 30px rgba(27, 31, 92, 0.10);
  --shadow-lg: 0 22px 60px rgba(27, 31, 92, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--c-green-ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-green-dark); }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5 { font-family: var(--f-display); color: var(--c-green-ink); margin: 0 0 .6em; line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }

/* RTL adjustments */
html[dir="rtl"] body { font-family: "Cairo", "Tajawal", system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: "Cairo", "Tajawal", system-ui, sans-serif; }

/* ----- container / layout helpers ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--cream { background: var(--c-cream); }
.section--navy { background: var(--c-navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-green); font-weight: 700; margin-bottom: 14px; }
.section-title { margin-bottom: .25em; }
.section-lead { color: var(--c-muted); max-width: 680px; margin: 0 auto 2.4em; font-size: 1.06rem; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--c-green); color: #fff; box-shadow: 0 8px 22px rgba(45, 168, 100, 0.32); }
.btn--primary:hover { background: var(--c-green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(45, 168, 100, 0.4); }
.btn--secondary { background: var(--c-navy); color: #fff; }
.btn--secondary:hover { background: var(--c-navy-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--c-navy); border: 2px solid var(--c-navy); }
.btn--ghost:hover { background: var(--c-navy); color: #fff; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ----- topbar ----- */
.topbar { background: var(--c-green-deep); color: #fff; font-size: .88rem; }
.topbar-inner { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--c-green-soft); }
.topbar .topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .topbar-tools { display: flex; gap: 14px; align-items: center; }
.lang-toggle { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 4px 12px; border-radius: 999px; font-size: .78rem; }
.lang-toggle:hover { background: var(--c-green); border-color: var(--c-green); }

/* ----- header / nav ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--c-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-text { line-height: 1.2; }
.brand-text .brand-name { font-family: var(--f-display); font-weight: 800; color: var(--c-navy); font-size: 1.05rem; }
.brand-text .brand-sub { font-size: .78rem; color: var(--c-muted); }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; }
.main-nav a { display: inline-block; padding: 10px 14px; border-radius: 8px; font-weight: 600; color: var(--c-green-ink); }
.main-nav a:hover { background: var(--c-bg-soft); color: var(--c-green); }
/* Current-page link: stronger than hover so the visitor always knows where they are */
.main-nav a.active,
.main-nav a.active:hover { background: rgba(45,168,100,.12); color: var(--c-green-dark); box-shadow: inset 0 -2px 0 var(--c-green); }
.main-nav .has-mega { position: relative; }
.main-nav .mega { position: absolute; top: 100%; inset-inline-start: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 22px; min-width: 520px; box-shadow: var(--shadow-md); display: none; z-index: 60; }
.main-nav .has-mega:hover .mega { display: grid; }
.mega { grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.mega a { padding: 8px 10px; border-radius: 6px; font-weight: 500; color: var(--c-text); }
.mega a:hover { background: var(--c-bg-soft); color: var(--c-green); }
.mega a.active { background: rgba(45,168,100,.12); color: var(--c-green-dark); font-weight: 700; }
.mega .mega-title { grid-column: 1/-1; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 4px; }

.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-navy); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--c-navy); transition: transform .2s var(--ease), top .2s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ----- footer ----- */
.site-footer { background: var(--c-green-deep); color: rgba(255,255,255,.78); padding: 70px 0 26px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { font-size: .94rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,.78); }
.footer-grid a:hover { color: var(--c-green-soft); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: var(--c-green); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--c-green-soft); }
.designed-by a { letter-spacing: .02em; }
.designed-by strong { color: var(--c-green-soft); font-weight: 800; }

/* ----- hero (full-bleed photographic) ----- */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: center;
  background: var(--c-green-deep);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% center;
  animation: hero-zoom 26s var(--ease) both;
}
/* Left-to-right readability scrim over the photo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(98deg,
    rgba(8, 26, 17, .93) 0%,
    rgba(8, 26, 17, .80) 34%,
    rgba(8, 26, 17, .38) 62%,
    rgba(8, 26, 17, .10) 100%);
}
html[dir="rtl"] .hero::before { background: linear-gradient(-98deg,
    rgba(8, 26, 17, .93) 0%,
    rgba(8, 26, 17, .80) 34%,
    rgba(8, 26, 17, .38) 62%,
    rgba(8, 26, 17, .10) 100%); }
.hero-content { position: relative; z-index: 2; padding-block: clamp(90px, 12vh, 150px); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-gold); font-weight: 700; margin-bottom: 24px;
}
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--c-gold); flex: none; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.6rem); margin-bottom: .35em; line-height: 1.08; }
.hero h1 .accent { font-family: var(--f-en); font-style: italic; font-weight: 600; color: var(--c-green-soft); }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 600px; margin-bottom: 2.2em; line-height: 1.75; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--c-green-deep); }
/* Official credentials strip — the hero's signature */
.hero-agencies { border-top: 1px solid rgba(255,255,255,.22); padding-top: 20px; max-width: 660px; }
.hero-agencies-label {
  display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 12px;
}
.hero-agencies ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; }
.hero-agencies li { font-family: var(--f-en); font-size: 1.02rem; color: rgba(255,255,255,.9); letter-spacing: .05em; white-space: nowrap; }
.hero-agencies li.more a { font-family: var(--f-body); font-size: .88rem; font-weight: 700; color: var(--c-green-soft); }
.hero-agencies li.more a:hover { color: #fff; }

@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }

/* mouse-driven parallax variables (set by JS) */
.parallax { transition: transform .25s var(--ease); }

/* ----- generic page hero (smaller, for inner pages) ----- */
.page-hero {
  background: linear-gradient(135deg, var(--c-green-deep) 0%, var(--c-green-dark) 100%);
  color: #fff; padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 8vw, 120px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 90% 10%, rgba(45,168,100,.25), transparent 60%);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; }
.page-hero .container { position: relative; }
.breadcrumb { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--c-green-soft); }

/* ----- cards / grids ----- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .card-media { aspect-ratio: 4/3; background: var(--c-bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card .card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card .card-title { font-size: 1.1rem; font-weight: 700; color: var(--c-green-ink); }
.card .card-desc { color: var(--c-muted); font-size: .94rem; flex: 1; }
.card .card-link { color: var(--c-green); font-weight: 700; margin-top: 8px; }

/* category tile */
.category-tile {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--c-line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s var(--ease);
}
.category-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--c-green-soft); }
.category-tile .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--c-green), var(--c-navy));
  display: inline-flex; align-items: center; justify-content: center;
}
.category-tile .icon svg { width: 28px; height: 28px; fill: #fff; }
.category-tile h3 { color: var(--c-green-ink); margin: 0; font-size: 1.18rem; }
.category-tile p { color: var(--c-muted); margin: 0; font-size: .94rem; }

/* brand tile */
.brand-tile {
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--c-line);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center;
  text-align: center; min-height: 160px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
}
.brand-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-green-soft); }
.brand-tile .brand-logo {
  width: 100%; height: 96px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: var(--c-navy);
  background: var(--c-bg-soft); border-radius: var(--radius-sm);
  padding: 10px;
}
.brand-tile .brand-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.brand-tile .brand-name { font-weight: 700; color: var(--c-green-ink); }
.brand-tile .brand-origin { font-size: .82rem; color: var(--c-muted); }

/* Image placeholder (consistent across the site for missing images) */
.placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #F1F2F6, #F1F2F6 14px, #E9EBEF 14px, #E9EBEF 28px);
  color: var(--c-muted); font-size: .82rem; text-align: center; padding: 14px;
  position: relative;
}
.placeholder::before {
  content: "📷"; display: block; font-size: 2rem; opacity: .55;
  position: absolute; top: 30%;
}
.placeholder span { position: relative; top: 22px; max-width: 80%; line-height: 1.4; font-weight: 600; }

/* ----- CTA banner ----- */
.cta-banner {
  background: linear-gradient(120deg, var(--c-green-deep) 0%, var(--c-green) 120%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 20%, rgba(255,255,255,.15), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 28px; }
.cta-banner .btn--primary { background: #fff; color: var(--c-navy); }
.cta-banner .btn--primary:hover { background: var(--c-cream); color: var(--c-navy); }

/* ----- form ----- */
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row--full { grid-template-columns: 1fr; }
label { display: block; font-weight: 600; color: var(--c-green-ink); margin-bottom: 8px; font-size: .94rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--c-line);
  border-radius: 10px; font: inherit; color: var(--c-text);
  background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--c-green);
  box-shadow: 0 0 0 4px rgba(45, 168, 100, .15);
}
textarea { min-height: 130px; resize: vertical; }
.form-field { margin-bottom: 18px; }
.form-help { font-size: .82rem; color: var(--c-muted); margin-top: 6px; }

/* ----- branch card ----- */
.branch-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.branch-card .branch-name { font-weight: 700; color: var(--c-green-ink); font-size: 1.15rem; }
.branch-card .branch-meta { color: var(--c-muted); font-size: .94rem; }
.branch-card .badge { display: inline-block; background: var(--c-green); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; align-self: flex-start; }

/* ----- step list ----- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 28px 24px; position: relative; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-display); font-size: 2rem; font-weight: 800;
  color: var(--c-green); display: block; margin-bottom: 8px;
}
.step h4 { color: var(--c-green-ink); font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--c-muted); font-size: .94rem; margin: 0; }

/* ----- product / brand detail ----- */
.brand-hero {
  background: linear-gradient(135deg, var(--c-green-deep), var(--c-green-dark));
  color: #fff; padding: 100px 0;
  position: relative; overflow: hidden;
}
.brand-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.brand-hero h1 { color: #fff; }
.brand-hero p { color: rgba(255,255,255,.85); }
.brand-hero .brand-meta { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.brand-hero .brand-meta div { font-size: .92rem; }
.brand-hero .brand-meta strong { color: var(--c-green-soft); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.brand-hero-img {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4/3; box-shadow: var(--shadow-lg);
}
/* On narrow screens the hero card goes full-width and much taller than the
   logo's fixed pixel height — let the logo scale WITH the card instead.
   !important is needed to beat the per-page inline sizes (desktop keeps them). */
@media (max-width: 1080px) {
  .brand-hero-img img { width: 82% !important; height: auto !important; max-height: 85% !important; object-fit: contain; }
}

/* product list */
.product .product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.catalog-sub { margin: 44px 0 16px; text-align: center; }

.product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.product { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product .product-media { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.product .product-body { padding: 18px; }
.product .product-name { font-weight: 700; color: var(--c-green-ink); margin-bottom: 4px; font-size: 1rem; }
.product .product-meta { font-size: .85rem; color: var(--c-muted); }

/* badges */
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.tag--green { background: rgba(45,168,100,.12); color: var(--c-green-dark); }
.tag--navy { background: rgba(27,31,92,.1); color: var(--c-navy); }
.tag--gold { background: rgba(200,163,91,.18); color: #8C6A2D; }

/* ----- testimonials ----- */
.testimonial { background: #fff; padding: 30px; border-radius: var(--radius-md); border: 1px solid var(--c-line); }
.testimonial p { font-style: italic; color: var(--c-text); }
.testimonial .who { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.testimonial .who .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--c-bg-soft); }
.testimonial .who strong { color: var(--c-green-ink); }
.testimonial .who span { color: var(--c-muted); font-size: .88rem; }

/* ----- floating WhatsApp ----- */
.whatsapp-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .4);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ----- two-column page layouts that stack on small screens -----
   (used by about / contact / quote instead of inline grid styles,
   which cannot respond to viewport changes) */
.split { display: grid; gap: 50px; }
.split--center { align-items: center; }
.split--about   { grid-template-columns: 1.05fr .95fr; }
.split--contact { grid-template-columns: 1fr 1.2fr; }
.split--quote   { grid-template-columns: 1.3fr 1fr; }
.split--half    { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .split--about, .split--contact, .split--quote, .split--half { grid-template-columns: 1fr; gap: 36px; }
  /* 3-across cards (branch cards with nowrap buttons) need the room */
  .card-grid--3 { grid-template-columns: 1fr 1fr; }
}

/* ----- responsive ----- */
/* The full desktop nav (8 items + CTA) needs ~1030px — below 1080px it
   collapses to the hamburger drawer so the header can never overflow. */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter on the sticky header turns it into the containing block
     for position:fixed children — the drawer would render as a squashed box
     inside the header. The header bg is 92% opaque white, so dropping the
     blur below 1080px is invisible but makes the drawer truly viewport-fixed. */
  .site-header { backdrop-filter: none; }
  /* the drawer is a sibling of .header-cta inside the header — raise the
     toggle above it (z 90 > drawer 70) so ☰ stays clickable to close */
  .nav-toggle { position: relative; z-index: 90; }
  /* ☰ morphs into ✕ while the drawer is open */
  .main-nav.open ~ .header-cta .nav-toggle span { background: transparent; }
  .main-nav.open ~ .header-cta .nav-toggle span::before { transform: rotate(45deg); top: 0; }
  .main-nav.open ~ .header-cta .nav-toggle span::after { transform: rotate(-45deg); top: 0; }
  .main-nav { display: none; position: fixed; top: 0; inset-inline-end: 0; bottom: 0; width: 84%; max-width: 360px; background: #fff; padding: 80px 24px 40px; box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 70; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 12px 16px; }
  .main-nav .mega { position: static; min-width: 0; box-shadow: none; padding: 0 0 0 14px; border: none; }
  .main-nav .has-mega:hover .mega { display: grid; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--6 { grid-template-columns: repeat(3, 1fr); }
  .brand-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-cta .btn { display: none; }
  .header-cta { gap: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid--4, .card-grid--3, .card-grid--6 { grid-template-columns: 1fr 1fr; }
  .topbar .topbar-info { font-size: .78rem; gap: 12px; }
}

@media (max-width: 720px) {
  .hero { min-height: 82vh; }
  .hero-bg img { object-position: 74% center; }
  .hero::before { background: linear-gradient(180deg, rgba(8,26,17,.86) 0%, rgba(8,26,17,.68) 55%, rgba(8,26,17,.45) 100%); }
  .hero-kicker { font-size: .72rem; letter-spacing: .16em; }
  .hero-kicker::before { display: none; }
  .hero-cta { margin-bottom: 40px; }
  .hero-agencies ul { gap: 6px 18px; }
  .hero-agencies li { font-size: .94rem; }
}

@media (max-width: 480px) {
  .card-grid--4, .card-grid--3, .card-grid--6 { grid-template-columns: 1fr; }
}

/* ----- reveal-on-scroll utility ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* v5 launch (2026-09-29): hide photo slots still waiting on client photos.
   Replacing a .placeholder with an <img> automatically re-shows its slot. */
.product-media:has(> .placeholder), .card-media:has(> .placeholder) { display: none; }
.placeholder { display: none !important; }
