/*
Theme Name: Open Circuit Electrical & Solar (v4 — reviews)
Theme URI: https://www.opencircuit.co.za
Author: Open Circuit
Description: Bespoke custom theme for Open Circuit Electrical & Solar — registered electrical contractor in Durban. Bespoke solar, battery backup and electrical installations.
Version: 3.0
License: GPL v2 or later
Text Domain: opencircuit
*/

/* =========================================================================
   TOKENS
   ========================================================================= */
:root {
  /* Surfaces & ink */
  --bg:      #ffffff;
  --bg-alt:  #f3f6fa;
  --bg-tint: #e9eff6;
  --ink:     #122031;   /* body text on light */
  --ink-2:   #2f3e4f;
  --muted:   #5a6878;
  --line:    #e5eaf1;
  --line-2:  #d6deea;

  /* Deep navy near-black (dark sections) */
  --dark:    #08182b;
  --dark-2:  #0c2138;
  --dark-3:  #102a46;
  --on-dark:        rgba(255,255,255,.86);
  --on-dark-dim:    rgba(255,255,255,.60);
  --on-dark-line:   rgba(255,255,255,.14);

  /* The single accent */
  --amber:     #f7a823;
  --amber-2:   #ffbb3d;
  --amber-600: #de8f0d;
  --amber-ink: #8a5200;   /* amber text on white (AA) */

  /* Reserved for status/WhatsApp only */
  --green: #1f9d6b;
  --wa:    #25d366;

  /* Type */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem);
  --fs-h1:      clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem);
  --fs-h2:      clamp(1.85rem, 1.4rem + 1.9vw, 2.85rem);
  --fs-h3:      1.3rem;
  --fs-h4:      1.0625rem;
  --fs-lead:    clamp(1.05rem, 1rem + 0.45vw, 1.22rem);
  --fs-body:    1rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-2xs:     0.72rem;

  /* Shape & space */
  --maxw: 1200px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-btn: 10px;
  --section: clamp(4.5rem, 2.8rem + 6vw, 7.5rem);

  --shadow-sm: 0 4px 16px rgba(8,24,43,.07);
  --shadow:    0 18px 48px rgba(8,24,43,.13);
  --shadow-lg: 0 34px 80px rgba(5,16,30,.30);
}

/* =========================================================================
   BASE
   ========================================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--dark); line-height: 1.08; font-weight: 800; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 700; }
::selection { background: var(--amber); color: var(--dark); }
i[class^="fa-"], i[class*=" fa-"] { line-height: 1; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 86px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--dark); color: #fff; padding: 12px 18px; font-weight: 700; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: var(--fs-sm);
  padding: 15px 26px; border-radius: var(--r-btn); cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap; line-height: 1; letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.btn i { font-size: 1.02em; }
.btn-block { width: 100%; }

.btn-primary { background: var(--amber); color: var(--dark); box-shadow: 0 10px 26px rgba(247,168,35,.34); }
.btn-primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-130%); background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transition: transform .6s ease; }
.btn-primary:hover { background: var(--amber-2); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(247,168,35,.46); }
.btn-primary:hover::after { transform: translateX(130%); }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-3); transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.34); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); transform: translateY(-3px); }

.btn-outline { background: transparent; color: var(--dark); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--dark); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5a; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(37,211,102,.4); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.96); border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(8,24,43,.07); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 78px; }

.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.22rem; color: var(--dark); letter-spacing: -0.03em; }
.logo .mark { width: 42px; height: 42px; border-radius: 11px; flex: none; background: radial-gradient(120% 120% at 30% 18%, var(--dark-3), var(--dark)); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(5,16,30,.32), inset 0 1px 0 rgba(255,255,255,.12); }
.logo .mark svg { width: 26px; height: 26px; }
.logo > span { white-space: nowrap; }
.logo small { display: block; font-weight: 600; font-size: .64rem; letter-spacing: .19em; color: var(--muted); text-transform: uppercase; margin-top: 2px; white-space: nowrap; }
/* Header wordmark: larger + amber accent so it reads as the logo (no icon) */
.site-header .logo { font-size: 1.5rem; }
.site-header .logo small { font-size: .68rem; }
.logo .logo-accent { color: var(--amber-600); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-weight: 600; font-size: .92rem; color: var(--ink-2); padding: 9px 15px; border-radius: 8px; position: relative; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--dark); background: var(--bg-alt); }
.nav-links a.is-active { color: var(--dark); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px; background: var(--amber); border-radius: 2px; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--dark); font-size: .92rem; }
.nav-phone i { color: var(--amber-600); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; margin-right: -8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--dark); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(95deg, rgba(6,16,28,.72) 0%, rgba(8,24,43,.42) 45%, rgba(8,24,43,.05) 100%),
    var(--hero-img) center 28%/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48rem 32rem at 92% 6%, rgba(247,168,35,.30), transparent 60%),
    radial-gradient(40rem 28rem at 8% 100%, rgba(16,42,70,.55), transparent 60%);
}
.hero-inner { padding: clamp(5rem, 3rem + 8vw, 9rem) 0 clamp(4.5rem, 3rem + 6vw, 7.5rem); max-width: 880px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2); padding: 8px 16px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; margin-bottom: 26px; backdrop-filter: blur(4px);
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,107,.3); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,157,107,.45); } 50% { box-shadow: 0 0 0 6px rgba(31,157,107,0); } }
.hero h1 { color: #fff; font-size: var(--fs-display); font-weight: 900; letter-spacing: -0.035em; line-height: 1; max-width: 18ch; overflow-wrap: break-word; text-shadow: 0 2px 22px rgba(4,11,20,.5); }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { font-size: var(--fs-lead); color: var(--on-dark); margin: 24px 0 34px; max-width: 56ch; font-weight: 400; text-shadow: 0 1px 12px rgba(4,11,20,.45); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; margin-top: 44px; border-top: 1px solid var(--on-dark-line); padding-top: 28px; }
.hero-trust > div { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--on-dark-line); }
.hero-trust > div:last-child { border: 0; margin: 0; padding: 0; }
.hero-trust b { font-size: 1.8rem; font-weight: 800; color: var(--amber); display: block; line-height: 1; letter-spacing: -0.02em; }
.hero-trust span { font-size: var(--fs-xs); color: var(--on-dark-dim); margin-top: 7px; display: block; font-weight: 500; }

/* hero entrance */
/* Hero entrance: text is visible by default; the keyframe handles the fade-in
   (animation-fill-mode: backwards). If any plugin strips the animation, the
   text simply stays visible — it can never get stuck invisible. */
.hero [data-reveal] { animation: heroRise .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero [data-reveal="1"] { animation-delay: .05s; } .hero [data-reveal="2"] { animation-delay: .14s; }
.hero [data-reveal="3"] { animation-delay: .23s; } .hero [data-reveal="4"] { animation-delay: .32s; }
.hero [data-reveal="5"] { animation-delay: .41s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   MARQUEE (brand ticker)
   ========================================================================= */
.marquee { background: var(--dark-2); border-top: 1px solid var(--on-dark-line); border-bottom: 1px solid var(--on-dark-line); overflow: hidden; padding: 22px 0; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, #000 90px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(to right, transparent, #000 90px, #000 calc(100% - 90px), transparent); }
.marquee__label { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); }
.marquee__track { display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; will-change: transform; animation: ticker 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track .item { display: inline-flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: rgba(255,255,255,.5); transition: color .25s; }
.marquee__track .item i { color: var(--amber); font-size: .8em; }
.marquee__track .item:hover { color: #fff; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================================
   SECTION SYSTEM (editorial)
   ========================================================================= */
.pad { padding: var(--section) 0; }
.pad-sm { padding: clamp(3.2rem, 2rem + 4vw, 4.8rem) 0; }
.alt { background: var(--bg-alt); }
.dark-sec { background: var(--dark); color: var(--on-dark); position: relative; }
/* --- Contrast safety net: any heading on a dark background is forced light --- */
.dark-sec h1, .dark-sec h2, .dark-sec h3, .dark-sec h4, .dark-sec h5, .dark-sec .sec-head h2,
.hero h1, .hero h2, .hero h3,
.cta-band h1, .cta-band h2, .cta-band h3,
.page-hero h1, .page-hero h2, .page-hero h3,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 { color: #fff; }
/* …and their body text stays legible too */
.dark-sec p, .dark-sec li, .cta-band p, .page-hero p, .hero p.lead { color: var(--on-dark); }

.sec-head { max-width: 760px; margin-bottom: clamp(2.4rem, 1.5rem + 3vw, 3.6rem); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 16px; }
.dark-sec .eyebrow, .hero .eyebrow { color: var(--amber); }
.eyebrow .ix { font-size: .95rem; font-weight: 800; letter-spacing: 0; color: var(--amber); }
.dark-sec .eyebrow .ix { color: var(--amber); }
.sec-head h2 { margin-bottom: 16px; }
.sec-head h2 .accent { color: var(--amber-600); }
.dark-sec .sec-head h2 .accent { color: var(--amber); }
.sec-head p { color: var(--muted); font-size: var(--fs-lead); }
.dark-sec .sec-head p { color: var(--on-dark-dim); }

/* =========================================================================
   SERVICES (clean grid — no accordion)
   ========================================================================= */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 56px; }
.svc-item { padding: 30px 0; border-top: 2px solid var(--line); }
.svc-item .svc-ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, var(--sun-soft), #ffe2b3); color: var(--amber-ink); font-size: 1.4rem; margin-bottom: 16px; box-shadow: inset 0 0 0 1px rgba(154,90,0,.08); }
.svc-item h3 { color: var(--dark); margin-bottom: 10px; }
.svc-item > p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 16px; }
.svc-specs { list-style: none; display: grid; gap: 9px; }
.svc-specs li { position: relative; padding-left: 20px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.svc-specs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.svc-cta { text-align: center; margin-top: 44px; }

/* =========================================================================
   WORK (bento)
   ========================================================================= */
.grid-work { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.work { border-radius: var(--r); overflow: hidden; position: relative; background: var(--dark); box-shadow: var(--shadow-sm); min-height: 230px; isolation: isolate; }
.work.feature { grid-column: span 2; grid-row: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,15,28,.92) 0%, rgba(5,15,28,.2) 46%, transparent 70%); z-index: 1; }
.work:hover img { transform: scale(1.07); }
.work .cap { position: absolute; inset: auto 0 0 0; padding: 18px 20px; color: #fff; z-index: 2; }
.work .cap .tag { display: inline-block; font-size: var(--fs-2xs); letter-spacing: .1em; text-transform: uppercase; color: var(--dark); background: var(--amber); font-weight: 800; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.work .cap p { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; }
.work.feature .cap p { font-size: 1.15rem; }
.work-more-wrap { display: none; text-align: center; margin-top: 28px; } /* desktop shows all 12 */

/* =========================================================================
   PROCESS (ghost numbers)
   ========================================================================= */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 12px; }
.step .n { font-size: 3.4rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--amber); margin-bottom: 14px; }
.dark-sec .step .n { -webkit-text-stroke-color: var(--amber); }
.step h4 { margin-bottom: 9px; color: #fff; }
.dark-sec .step h4 { color: #fff; }
.step p { color: var(--on-dark-dim); font-size: var(--fs-sm); }
.dark-sec .step p { color: var(--on-dark-dim); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 62px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-media .stat-card { position: absolute; right: -16px; bottom: -24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 15px; max-width: 270px; }
.about-media .stat-card .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--dark); color: var(--amber); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.about-media .stat-card b { display: block; color: var(--dark); font-size: .98rem; font-weight: 800; }
.about-media .stat-card span { font-size: var(--fs-xs); color: var(--muted); }
.about-body p { color: var(--muted); margin-bottom: 14px; }
.about .points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 24px 0 30px; }
.about .points li { display: flex; gap: 11px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); align-items: flex-start; }
.about .points li i { color: var(--amber-600); margin-top: 4px; font-size: .9rem; flex: none; }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band { background: radial-gradient(130% 150% at 12% 0%, var(--dark-3), var(--dark) 62%); color: #fff; border-radius: var(--r-lg); padding: clamp(2.6rem, 1.6rem + 4vw, 4.2rem); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(247,168,35,.32), transparent 70%); top: -150px; right: -100px; }
.cta-band .eyebrow { color: var(--amber); justify-content: center; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: var(--on-dark); font-size: var(--fs-lead); margin: 14px auto 30px; max-width: 54ch; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =========================================================================
   REVIEWS
   ========================================================================= */
.reviews-card { max-width: 720px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(2rem, 1.2rem + 3vw, 3.4rem); box-shadow: var(--shadow); }
.reviews-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 14px; }
.reviews-brand i { color: #4285F4; font-size: 1.15rem; }
.reviews-card h2 { margin-bottom: 12px; }
.reviews-card p { color: var(--muted); font-size: var(--fs-lead); margin: 0 auto 26px; max-width: 52ch; }
.reviews-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* Scrolling review ribbon */
.review-ribbon { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 80px, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(to right, transparent, #000 80px, #000 calc(100% - 80px), transparent); }
.review-track { display: inline-flex; gap: 22px; padding: 0 11px; will-change: transform; animation: ticker 60s linear infinite; }
.review-ribbon:hover .review-track { animation-play-state: paused; }
.review-card { flex: 0 0 clamp(280px, 82vw, 360px); white-space: normal; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 26px 26px 22px; text-align: left; }
.rv-stars { color: var(--amber); font-size: .95rem; letter-spacing: 3px; margin-bottom: 13px; }
.rv-text { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv-by { display: flex; flex-direction: column; gap: 2px; }
.rv-name { font-weight: 800; color: var(--dark); font-size: var(--fs-sm); }
.rv-src { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.rv-src i { color: #4285F4; }
.reviews-agg { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: var(--fs-lead); }
.reviews-agg .rv-stars { color: var(--amber); font-size: 1.15rem; letter-spacing: 2px; margin: 0; }
.reviews-agg strong { color: var(--dark); font-size: 1.45rem; font-weight: 800; }
.reviews-embed { margin-top: 4px; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 22px 4px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font); font-weight: 700; font-size: 1.08rem; color: var(--dark); transition: color .2s; }
.faq__q:hover { color: var(--amber-600); }
.faq__q .ic { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); flex: none; transition: transform .35s, background .25s, color .25s, border-color .25s; }
.faq.is-open .faq__q .ic { background: var(--amber); border-color: var(--amber); color: var(--dark); transform: rotate(180deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq__a p { color: var(--muted); padding: 0 50px 24px 4px; font-size: var(--fs-sm); margin: 0; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.info-row { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.info-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.info-row .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--bg-tint); display: grid; place-items: center; color: var(--dark); flex: none; font-size: 1.15rem; }
.info-row b { display: block; color: var(--dark); font-size: var(--fs-sm); font-weight: 800; margin-bottom: 1px; }
.info-row a, .info-row span { color: var(--muted); font-size: var(--fs-sm); }
.info-row a:hover { color: var(--amber-600); }
.contact .btn-wa { margin-top: 4px; }
.follow-label { font-size: var(--fs-xs); font-weight: 800; color: var(--dark); letter-spacing: .1em; text-transform: uppercase; margin: 12px 0; }

form.oc-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }
form.oc-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.oc-form .field { margin-bottom: 16px; }
form.oc-form label { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--dark); margin-bottom: 7px; letter-spacing: .01em; }
form.oc-form input, form.oc-form textarea, form.oc-form select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  font-family: inherit; font-size: var(--fs-sm); color: var(--ink); background: #fbfcfe;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
form.oc-form input::placeholder, form.oc-form textarea::placeholder { color: #9aa6b4; }
form.oc-form input:focus, form.oc-form textarea:focus, form.oc-form select:focus { outline: none; border-color: var(--amber); background: #fff; box-shadow: 0 0 0 3px rgba(247,168,35,.18); }
form.oc-form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.5; }
.form-note strong { color: var(--dark); }
.oc-alert { padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: var(--fs-sm); }
.oc-alert.ok { background: #e7f7ef; color: #137a52; border: 1px solid #b6e6cf; }

/* =========================================================================
   SOCIALS
   ========================================================================= */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 1.05rem; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.socials a:hover { transform: translateY(-3px); background: var(--amber); color: var(--dark); border-color: var(--amber); }
.socials.dark a { background: var(--bg-tint); border-color: var(--line); color: var(--dark); }
.socials.dark a:hover { background: var(--amber); color: var(--dark); border-color: var(--amber); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--dark); color: var(--on-dark-dim); padding: 66px 0 30px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--amber), var(--amber-2)); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 46px; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: rgba(255,255,255,.5); }
.site-footer h5 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 18px; letter-spacing: .02em; }
.site-footer .flinks a { color: var(--on-dark-dim); font-size: var(--fs-sm); display: flex; align-items: center; gap: 9px; margin-bottom: 11px; transition: color .2s, transform .2s; width: fit-content; }
.site-footer .flinks a:hover { color: var(--amber); transform: translateX(3px); }
.site-footer .flinks a i { width: 16px; text-align: center; color: var(--amber); flex: none; }
.foot-about { font-size: var(--fs-sm); max-width: 330px; margin: 18px 0 22px; line-height: 1.6; }
.foot-bottom { border-top: 1px solid var(--on-dark-line); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 18px; font-size: var(--fs-xs); color: rgba(255,255,255,.5); }
.foot-credit { color: rgba(255,255,255,.45); transition: color .2s; }
.foot-credit strong { font-weight: 700; color: rgba(255,255,255,.62); transition: color .2s; }
.foot-credit:hover, .foot-credit:hover strong { color: var(--amber); }

/* =========================================================================
   INNER PAGE HERO
   ========================================================================= */
.page-hero { background: radial-gradient(130% 170% at 10% 0%, var(--dark-3), var(--dark) 65%); color: #fff; padding: clamp(4rem, 2.6rem + 4vw, 6rem) 0 clamp(3.2rem, 2rem + 3vw, 4.8rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(247,168,35,.22), transparent 70%); top: -160px; right: -70px; }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); position: relative; }
.page-hero p { color: var(--on-dark); margin-top: 14px; font-size: var(--fs-lead); position: relative; }
.oc-page-content { color: var(--ink-2); }
.oc-page-content h2, .oc-page-content h3 { margin: 28px 0 12px; }
.oc-page-content p { margin-bottom: 16px; }
.oc-page-content a { color: var(--amber-ink); text-decoration: underline; }

/* =========================================================================
   FLOATING WHATSAPP
   ========================================================================= */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float i { font-size: 1.75rem; position: relative; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70%,100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
.wa-float:hover { transform: scale(1.09); }

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* No-JS: accordions stay open so content is always visible */
.no-js .svc__panel, .no-js .faq__a { max-height: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .nav-links a { padding: 9px 11px; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-work { grid-template-columns: 1fr 1fr; }
  .work.feature { grid-column: span 2; grid-row: span 1; }
  .svc__panel-inner { grid-template-columns: 1fr; gap: 16px; padding-left: 50px; }
  .about { grid-template-columns: 1fr; gap: 46px; }
  .about-media .stat-card { right: 14px; }
  .contact { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 78px; left: 0; right: 0; background: #fff; padding: 16px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open a { padding: 14px 16px; border-radius: 10px; font-size: 1rem; }
  .nav-links.open a.is-active::after { display: none; }
  .nav-links.open a.is-active { background: var(--bg-alt); }
  /* Hero on tablet/mobile: stronger overlay so all copy sits on dark, trim the load */
  .hero::before { background: linear-gradient(180deg, rgba(6,16,28,.82) 0%, rgba(6,16,28,.6) 52%, rgba(7,24,43,.45) 100%), var(--hero-img) center 28%/cover no-repeat; }
  .hero-inner { padding-top: clamp(3.4rem, 2rem + 7vw, 5rem); padding-bottom: clamp(3.4rem, 2rem + 5vw, 5rem); }
  .lead-extra { display: none; }
  /* Centre the hero content on mobile */
  .hero-inner { text-align: center; }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .hero p.lead { margin: 18px auto 26px; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
}
@media (max-width: 600px) {
  :root { --section: clamp(3rem, 2.2rem + 3.5vw, 4rem); } /* tighter vertical rhythm on phones */
  .nav-cta .btn-primary { display: none; } /* hamburger menu + hero CTA + WhatsApp cover this */
  .grid-4, .grid-work, .foot-grid, .svc-grid { grid-template-columns: 1fr; }
  .foot-grid > div:first-child { grid-column: auto; }
  .work.feature { grid-column: span 1; }
  .work { min-height: 210px; }
  .work--more { display: none; } /* mobile: show 6, reveal rest on tap */
  .grid-work.is-expanded .work--more { display: block; }
  .work-more-wrap { display: block; }
  .hero h1 { font-size: clamp(1.95rem, 1.1rem + 3.6vw, 2.5rem); }
  /* trust stats: clean centred single row of three */
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-trust > div { padding: 0 6px; margin: 0; border-right: 1px solid var(--on-dark-line); }
  .hero-trust > div:last-child { border-right: 0; }
  .hero-trust b { font-size: 1.35rem; }
  .hero-trust span { font-size: 0.66rem; }
  .about .points { grid-template-columns: 1fr; }
  form.oc-form .form-row { grid-template-columns: 1fr; gap: 0; }
  form.oc-form { padding: 24px 20px; }
  .cta-band { padding: 36px 22px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .logo { font-size: 1.05rem; }
  .logo .mark { width: 38px; height: 38px; }
  .hero-trust b { font-size: 1.2rem; }
  .marquee__track .item { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track, .review-track { animation: none !important; }
  .js .reveal, .hero [data-reveal] { opacity: 1 !important; transform: none !important; }
}
