/* ==========================================================================
   The Wrap Factory Inc. — Shared Stylesheet
   Hand-written Vanilla CSS. Mobile-first, premium marine/automotive theme.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #0A1A2F;
  --primary-2: #10243F;
  --accent: #06B6D4;
  --accent-2: #22D3EE;
  --gold: #C9A227;
  --gold-2: #E8CB7A;
  --champagne: #F4E3B2;
  --bg: #0B1220;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #0F172A;
  --text-invert: #E6EEF7;
  --muted: #64748B;
  --border: #E2E8F0;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-head: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 47, .06), 0 2px 6px rgba(10, 26, 47, .08);
  --shadow-md: 0 8px 24px rgba(10, 26, 47, .12), 0 2px 6px rgba(10, 26, 47, .08);
  --shadow-lg: 0 24px 60px rgba(6, 18, 32, .35), 0 8px 24px rgba(6, 18, 32, .25);
  --glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 12px 40px rgba(6, 182, 212, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --topbar-h: 40px;
  --header-h: 72px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; }
p { color: var(--text); }

::selection { background: rgba(201,162,39,.32); color: inherit; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--dark { background: var(--primary); color: var(--text-invert); }
.section--darker {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6,182,212,.14), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(201,162,39,.1), transparent 60%),
    var(--bg);
  color: var(--text-invert);
}
.section--light { background: var(--surface-2); color: var(--text); }
.section--dark h2, .section--darker h2, .section--dark h3, .section--darker h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold-2), transparent); }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: linear-gradient(270deg, var(--gold-2), transparent); }
.section--light .eyebrow, .surface .eyebrow { color: #9a7b1c; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }
.section--dark .section-head p, .section--darker .section-head p { color: var(--text-invert); opacity: .82; }

.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; min-height: 48px;
  font-family: var(--font-head); font-weight: 600; font-size: .86rem;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s;
  text-align: center; line-height: 1;
}
.btn-primary {
  color: #231806;
  background: linear-gradient(135deg, var(--champagne), var(--gold-2) 45%, var(--gold));
  box-shadow: 0 0 0 1px rgba(232,203,122,.35), 0 12px 36px rgba(201,162,39,.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(232,203,122,.55), 0 18px 50px rgba(201,162,39,.42); }
.btn-gold {
  color: #231806;
  background: linear-gradient(135deg, var(--champagne), var(--gold-2) 45%, var(--gold));
  box-shadow: 0 0 0 1px rgba(232,203,122,.35), 0 12px 36px rgba(201,162,39,.3);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(232,203,122,.55), 0 18px 50px rgba(201,162,39,.42); }
.btn-ghost {
  color: #fff; background: rgba(255,255,255,.04);
  border: 1px solid rgba(232,203,122,.45); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(232,203,122,.12); border-color: rgba(232,203,122,.7); transform: translateY(-3px); }
.btn-outline {
  color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; min-height: 56px; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary-2);
  color: var(--text-invert);
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--topbar-h); flex-wrap: wrap;
}
.topbar-info { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar a { color: var(--text-invert); opacity: .9; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { opacity: 1; color: var(--gold-2); }
.topbar .badge { opacity: .8; display: inline-flex; align-items: center; gap: 7px; }
.topbar .ic { width: 15px; height: 15px; color: var(--gold-2); }
.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-social a {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); transition: background .2s, transform .2s;
}
.topbar-social a:hover { background: var(--accent); transform: translateY(-2px); }
.topbar-social .ic { width: 16px; height: 16px; color: #fff; }
@media (max-width: 720px) {
  .topbar-info .topbar-email, .topbar .badge { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 26, 47, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(232,203,122,.16);
  transition: background .3s, box-shadow .3s;
}
.header.scrolled { background: rgba(8, 19, 34, .96); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img {
  height: 50px; width: auto; border-radius: 10px;
  background: #fff; padding: 6px 18px; object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.brand .wordmark {
  display: inline-flex; gap: 5px; font-family: var(--font-head); font-weight: 800;
  color: #fff; font-size: 1.05rem; letter-spacing: .04em; line-height: 1; white-space: nowrap;
}
.brand .wordmark span { color: var(--gold-2); }
/* Logo fallback: if the image fails, hide the broken box — wordmark always carries the brand */
.brand img.img-fallback { display: none; }
.brand .wordmark.always { display: none; }
@media (max-width: 420px) {
  .brand .wordmark { font-size: .95rem; }
}

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-block; padding: 9px 10px; color: var(--text-invert);
  font-weight: 600; font-size: .76rem; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .07em;
  border-radius: 8px; position: relative; transition: color .2s, background .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Desktop dropdown ("Wraps") */
.nav .has-dropdown { position: relative; }
.nav-parent {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 10px; color: var(--text-invert);
  font-family: var(--font-body); font-weight: 600; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .07em;
  white-space: nowrap; background: transparent; border: 0; cursor: pointer;
  border-radius: 8px; position: relative; transition: color .2s, background .2s;
}
.nav-parent .chev { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.nav-parent::after {
  content: ""; position: absolute; left: 12px; right: 26px; bottom: 5px; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav .has-dropdown:hover .nav-parent,
.nav .has-dropdown.open .nav-parent,
.nav .has-dropdown.active .nav-parent { color: #fff; }
.nav .has-dropdown.active .nav-parent::after { transform: scaleX(1); }
.nav .has-dropdown:hover .nav-parent .chev,
.nav .has-dropdown.open .nav-parent .chev { transform: rotate(180deg); }

.nav .dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  min-width: 214px; padding: 8px; list-style: none;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(12, 28, 49, .98);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .has-dropdown:hover .dropdown,
.nav .has-dropdown:focus-within .dropdown,
.nav .has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav .dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: rgba(230,238,247,.85); font-weight: 500; font-size: .94rem; white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav .dropdown a::after { display: none; }
.nav .dropdown a:hover, .nav .dropdown a[aria-current="page"] {
  background: rgba(255,255,255,.08); color: #fff;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { display: none; padding: 12px 20px; min-height: 44px; font-size: .78rem; }

.hamburger {
  width: 46px; height: 46px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.hamburger:hover { background: rgba(255,255,255,.16); }
.hamburger .bars { position: relative; width: 22px; height: 16px; }
.hamburger .bars span {
  position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.hamburger .bars span:nth-child(1) { top: 0; }
.hamburger .bars span:nth-child(2) { top: 7px; }
.hamburger .bars span:nth-child(3) { top: 14px; }
.hamburger[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 19, 34, .98);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; padding: 24px 20px;
  transform: translateX(100%); transition: transform .35s var(--ease);
  visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mobile-nav-close {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-nav-close .ic { width: 22px; height: 22px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav ul a {
  display: block; color: var(--text-invert); font-family: var(--font-head); font-weight: 700;
  font-size: 1.4rem; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav ul a:hover, .mobile-nav ul a[aria-current="page"] { color: var(--gold-2); }

/* Mobile sub-menu accordion ("Wraps") */
.mobile-nav .m-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  color: var(--text-invert); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; cursor: pointer;
}
.mobile-nav .m-sub-toggle .chev { width: 22px; height: 22px; color: var(--gold-2); transition: transform .3s var(--ease); }
.mobile-nav .m-has-sub.open .m-sub-toggle,
.mobile-nav .m-has-sub.active .m-sub-toggle { color: var(--gold-2); }
.mobile-nav .m-has-sub.open .m-sub-toggle .chev { transform: rotate(180deg); }
.mobile-nav .m-subnav {
  display: flex; flex-direction: column; gap: 0;
  max-height: 0; overflow: hidden; transition: max-height .32s var(--ease);
}
.mobile-nav .m-has-sub.open .m-subnav { max-height: 320px; }
.mobile-nav .m-subnav a {
  font-size: 1.12rem; padding-left: 24px; color: rgba(230,238,247,.82);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.mobile-nav .btn { margin-top: 28px; }
.mobile-nav-contact { margin-top: auto; padding-top: 24px; color: var(--text-invert); opacity: .8; font-size: .95rem; }
.mobile-nav-contact a { color: var(--gold-2); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-actions .btn { display: inline-flex; }
  .hamburger { display: none; }
  /* Keep the brand compact on desktop (logo chip only); wordmark restores if the logo fails to load */
  .brand .wordmark { display: none; }
  .brand img.img-fallback + .wordmark { display: inline-flex; }
}
@media (min-width: 1240px) {
  .nav a, .nav-parent { font-size: .8rem; letter-spacing: .1em; padding: 9px 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 88vh, 860px);
  display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -8% 0 -8% 0; z-index: -2;
  background-image: url("https://static.wixstatic.com/media/11062b_95d34f15761e4114a57b17823228948ef000.jpg/v1/fill/w_1920,h_1080,al_c,q_85,enc_auto/photo.jpg");
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,19,34,.55) 0%, rgba(8,19,34,.78) 55%, rgba(8,19,34,.96) 100%),
    radial-gradient(900px 500px at 78% 18%, rgba(6,182,212,.18), transparent 60%),
    radial-gradient(800px 420px at 12% 88%, rgba(201,162,39,.14), transparent 60%);
}
.hero-boat {
  position: absolute; z-index: -1; right: -3%; bottom: 8%;
  width: min(58%, 820px); height: auto; pointer-events: none;
  filter: drop-shadow(0 24px 42px rgba(0,0,0,.55));
  animation: heroBoatFloat 6s ease-in-out infinite;
}
@keyframes heroBoatFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) { .hero-boat { animation: none; } }
@media (max-width: 860px) {
  .hero-boat { width: 108%; right: -6%; bottom: 4%; opacity: .28; }
}
.hero-inner { padding: clamp(80px, 12vw, 130px) 0; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.8vw, 5rem); font-weight: 700;
  letter-spacing: 0; margin-top: 22px; line-height: 1.06;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero h1 .grad {
  font-style: italic; font-weight: 700;
  background: linear-gradient(115deg, var(--champagne) 10%, var(--gold-2) 45%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em; /* room for the italic overhang so it doesn't clip */
}
.hero .lead { color: rgba(230,238,247,.92); margin-top: 20px; max-width: 600px; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative;
}
.hero-scroll .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; border-radius: 2px; background: var(--gold-2);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } 100% { opacity: 0; } }

/* Page hero (sub pages) */
.page-hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 7vw, 90px);
}
.page-hero .hero-bg { inset: 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,19,34,.7), rgba(8,19,34,.92)),
    radial-gradient(800px 400px at 85% 10%, rgba(6,182,212,.25), transparent 60%);
}
.page-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-top: 14px; }
.page-hero .lead { color: rgba(230,238,247,.9); margin-top: 16px; max-width: 640px; }
.breadcrumbs { display: flex; gap: 8px; font-size: .9rem; color: rgba(230,238,247,.7); flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs span[aria-current] { color: var(--gold-2); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.stat { padding: 34px 22px; text-align: center; background: var(--primary-2); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4.2vw, 3rem); color: var(--gold-2); }
.stat .label {
  color: var(--text-invert); opacity: .72; font-size: .8rem; margin-top: 8px;
  text-transform: uppercase; letter-spacing: .14em;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.5); }
.card .icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(6,182,212,.16), rgba(34,211,238,.08));
  color: #0e7490; margin-bottom: 18px; border: 1px solid rgba(6,182,212,.2);
}
.card .icon-badge .ic { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600;
  font-family: var(--font-head); color: #9a7b1c; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.card .card-link .ic { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card-link .ic { transform: translateX(4px); }
.card.glass {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px); color: var(--text-invert);
}
.card.glass h3 { color: #fff; }
.card.glass p { color: var(--text-invert); opacity: .82; }
.card.glass .icon-badge { color: var(--accent-2); background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.3); }

/* ---------- Services preview / detail ---------- */
.svc-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; position: relative;
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-media:hover img { transform: scale(1.06); }

.svc-detail { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .svc-detail { grid-template-columns: 1fr 1fr; gap: 50px; } .svc-detail.reverse .svc-text { order: 2; } }
.svc-detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.svc-detail p { color: var(--muted); margin-bottom: 14px; }
.section--dark .svc-detail p, .section--darker .svc-detail p { color: var(--text-invert); opacity: .85; }
.svc-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.section--dark .svc-list li { color: var(--text-invert); opacity: .9; }
.svc-list .ic { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.svc-num { font-family: var(--font-display); font-style: italic; font-weight: 600; color: rgba(201,162,39,.3); font-size: 3rem; line-height: 1; }
.section--dark .svc-num, .section--darker .svc-num { color: rgba(232,203,122,.3); }

/* ---------- Reviews ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.tab {
  padding: 10px 20px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all .25s var(--ease);
}
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-sm); }
.review-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease), box-shadow .3s, opacity .35s, scale .35s;
}
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review[hidden] { display: none; }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars .ic { width: 18px; height: 18px; }
.review blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; line-height: 1.65; color: var(--text); }
.review .reviewer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.review .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--primary)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700;
}
.review .reviewer .name { font-family: var(--font-head); font-weight: 700; font-size: .96rem; }
.review .reviewer .meta { color: var(--muted); font-size: .85rem; }
.review .cat-tag {
  align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(6,182,212,.12); color: #0e7490;
}

/* ---------- Process steps ---------- */
.process { display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 32px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.step .step-num {
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #231806;
  background: linear-gradient(135deg, var(--champagne), var(--gold-2) 45%, var(--gold)); margin-bottom: 18px;
  box-shadow: 0 0 0 1px rgba(232,203,122,.35), 0 10px 28px rgba(201,162,39,.3);
}
.step h3 { color: #fff; margin-bottom: 10px; }
.step p { color: var(--text-invert); opacity: .82; font-size: .98rem; }
.process .step:not(:last-child)::after {
  content: ""; display: none;
}
@media (min-width: 760px) {
  .process .step:not(:last-child)::after {
    display: block; position: absolute; top: 56px; right: -16px; width: 32px; height: 1px;
    background: linear-gradient(90deg, var(--gold-2), transparent);
  }
}

/* ---------- Featured / Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.gallery-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); background: var(--surface-2);
  transition: transform .35s var(--ease), box-shadow .35s; will-change: transform;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff; opacity: 0; transition: opacity .3s;
  background: linear-gradient(to top, rgba(8,19,34,.9), rgba(8,19,34,.1) 60%, transparent);
}
.gallery-item:hover .overlay, .gallery-item:focus-visible .overlay { opacity: 1; }
.gallery-item .overlay .cat { color: var(--gold-2); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.gallery-item .overlay .title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.gallery-item .zoom-ic {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,162,39,.88); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s;
}
.gallery-item:hover .zoom-ic { opacity: 1; transform: scale(1); }
.gallery-item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(5, 12, 22, .92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s; backdrop-filter: blur(6px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--font-head); font-weight: 600; }
.lightbox-close, .lightbox-nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); transform: scale(1.06); }
.lightbox-nav .ic, .lightbox-close .ic { width: 26px; height: 26px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(48px, 7vw, 84px); color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232,203,122,.28);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 20% 0%, rgba(6,182,212,.22), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(201,162,39,.26), transparent 60%);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(230,238,247,.9); max-width: 620px; margin: 16px auto 28px; font-size: 1.1rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Forms ---------- */
.form-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid .col-2 { grid-template-columns: repeat(2, 1fr); display: grid; gap: 18px; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text); }
.field .req { color: #dc2626; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6,182,212,.18);
}
.field .error-msg { color: #dc2626; font-size: .84rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .error-msg { display: block; }
.form-success {
  display: none; padding: 18px 20px; border-radius: var(--radius-sm); margin-bottom: 18px;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4); color: #047857;
  align-items: center; gap: 12px; font-weight: 600;
}
.form-success.show { display: flex; }
.form-success .ic { width: 22px; height: 22px; flex-shrink: 0; }
.form-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }

.mini-form {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
}
.mini-form h3 { color: #fff; margin-bottom: 6px; }
.mini-form p { color: var(--text-invert); opacity: .8; margin-bottom: 20px; }
.mini-form .field label { color: var(--text-invert); }
.mini-form .field input, .mini-form .field select, .mini-form .field textarea {
  background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.2);
}

/* ---------- About / values ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1.05fr .95fr; gap: 56px; } .split.reverse .split-text { order: 2; } }
.split-media { position: relative; }
.split-media .img-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media .img-main img { width: 100%; aspect-ratio: 5/6; object-fit: cover; }
.split-media .img-float {
  position: absolute; bottom: -28px; right: -10px; width: 48%; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid #fff;
}
.split-media .img-float img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .badge-float {
  position: absolute; top: -22px; left: -14px; background: var(--gold); color: #2a1700;
  font-family: var(--font-head); font-weight: 800; padding: 14px 18px; border-radius: 14px;
  box-shadow: var(--shadow-md); line-height: 1.1; text-align: center;
}
.split-media .badge-float .big { font-size: 1.6rem; display: block; }
@media (max-width: 540px) { .split-media .img-float { position: static; width: 100%; margin-top: 16px; } .split-media .badge-float { top: 12px; left: 12px; } }

.values { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.value h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: .96rem; }
.section--dark .value p, .section--darker .value p { color: var(--text-invert); opacity: .82; }
.section--dark .value h3 { color: #fff; }
.section--dark .value .icon-badge { color: var(--accent-2); background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.3); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { flex-shrink: 0; margin-bottom: 0; width: 46px; height: 46px; }
.contact-list .icon-badge .ic { width: 22px; height: 22px; }
.contact-list .ct { font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.contact-list .cv { color: var(--muted); }
.contact-list a.cv:hover { color: #0e7490; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }
.hours-note {
  margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.32); color: #7a601a; font-size: .95rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--text-invert); padding-top: 72px; border-top: 1px solid rgba(232,203,122,.22); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 44px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer .brand img { height: 52px; }
.footer-about p { color: var(--text-invert); opacity: .72; margin-top: 16px; max-width: 320px; font-size: .96rem; }
.footer h4 {
  font-family: var(--font-head); font-size: .82rem; color: var(--gold-2); margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .2em; font-weight: 600;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { opacity: .72; transition: opacity .2s, color .2s; }
.footer-links a:hover { opacity: 1; color: var(--gold-2); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; opacity: .82; }
.footer-contact .ic { width: 18px; height: 18px; color: var(--gold-2); flex-shrink: 0; margin-top: 3px; }
.footer-contact a:hover { color: var(--gold-2); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-social .ic { width: 20px; height: 20px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; text-align: center;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; font-size: .9rem;
}
.footer-bottom p { color: var(--text-invert); opacity: .7; }
.footer-bottom .credit { color: var(--gold-2); font-weight: 600; }

/* ---------- Mobile sticky bottom bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 -8px 30px rgba(0,0,0,.3);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 56px; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1rem;
}
.mobile-bar .ic { width: 20px; height: 20px; }
.mobile-bar .call { background: var(--primary); }
.mobile-bar .whatsapp { background: #25D366; color: #04331a; }
.mobile-bar .call:active { background: var(--primary-2); }
@media (min-width: 1000px) { .mobile-bar { display: none; } }
@media (max-width: 999px) { body { padding-bottom: 56px; } }

/* ---------- Image fallback ---------- */
.img-fallback {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  min-height: 220px; position: relative;
}
.img-fallback::after {
  content: "The Wrap Factory"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; color: rgba(255,255,255,.7);
  letter-spacing: .04em; font-size: .95rem; text-align: center; padding: 16px;
}

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in-view { opacity: 1; transform: none; }
  .reveal.delay-1 { transition-delay: .08s; }
  .reveal.delay-2 { transition-delay: .16s; }
  .reveal.delay-3 { transition-delay: .24s; }
  .reveal.delay-4 { transition-delay: .32s; }
  .float-anim { animation: floaty 6s ease-in-out infinite; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--accent); color: #04121f; padding: 10px 18px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 8px; }
