/*
Theme Name: ABI Law Firm Custom
Theme URI: https://abilawfirm.in
Author: Abi Law Firm
Author URI: https://abilawfirm.in
Description: "Ivory & Sapphire" premium redesign — warm ivory, deep sapphire blue & gold, Fraunces + Plus Jakarta Sans, replay-on-scroll motion.
Version: 3.2
Text Domain: abilawfirm
*/

/* =========================================================
   1. DESIGN TOKENS — Ivory & Sapphire
   ========================================================= */
:root {
    /* Sapphire (primary brand) */
    --sapphire:      #1C3D8F;
    --sapphire-2:    #2E5AC8;   /* brighter accent */
    --sapphire-3:    #4B7BE5;   /* light accent */
    --sapphire-deep: #142C68;   /* darkest — footer */
    --sapphire-soft: rgba(28,61,143,0.07);
    --sapphire-tint: #EEF2FB;   /* very light blue section */

    /* Gold accent */
    --gold:      #C9A24B;
    --gold-2:    #E4C878;
    --gold-deep: #A97E2B;
    --gold-soft: rgba(201,162,75,0.14);

    /* Neutrals / paper */
    --white:   #FFFFFF;
    --ivory:   #F7F3E9;   /* warm ivory */
    --ivory-2: #FCFAF3;   /* lighter warm */
    --text:    #232A3A;   /* body text */
    --text-2:  #4C5566;
    --muted:   #737C8C;
    --line:    #EAE3D3;   /* warm hairline */
    --line-cool: #E1E7F2; /* cool hairline */

    /* Type */
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    /* Radii */
    --r-xs: 6px; --r-sm: 10px; --r: 16px; --r-lg: 26px;

    /* the palette is light by design — keeps mobile Chrome from auto-darkening it */
    color-scheme: only light;

    /* Shadows (soft, light-theme) */
    --shadow-sm:  0 4px 16px rgba(28,45,90,0.06);
    --shadow-md:  0 16px 40px rgba(28,45,90,0.10);
    --shadow-lg:  0 30px 70px rgba(28,45,90,0.14);
    --shadow-blue:0 18px 40px rgba(28,61,143,0.28);
    --shadow-gold:0 18px 40px rgba(201,162,75,0.30);

    /* Motion */
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.25s; --t: 0.4s; --t-slow: 0.7s;

    --maxw: 1240px;
    --header-h: 78px;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { max-width: 100%; }
/* prevent grid/flex children from forcing horizontal overflow on small screens */
.hero-inner > *, .contact-grid > *, .footer-top > *, .stats-grid > *, .services-grid > *, .features-grid > *, .team-grid > *, .tcar, .tcar-viewport { min-width: 0; }
svg { max-width: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; transition: color var(--t-fast) var(--ease); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.14; color: var(--sapphire); letter-spacing: -0.01em; }
::selection { background: var(--sapphire); color: #fff; }

/* =========================================================
   3. LAYOUT UTILITIES
   ========================================================= */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(70px, 8.5vw, 128px) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--tint  { background: var(--sapphire-tint); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 5vw, 70px); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-sans); font-size: 12.5px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold); display: inline-block; border-radius: 2px; }
/* centred section eyebrows get a matching trailing rule (— LABEL —) */
.section-head .eyebrow::after { content: ''; width: 26px; height: 2px; background: var(--gold); display: inline-block; border-radius: 2px; }
.section-title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 20px; color: var(--text); }
.section-title .accent { color: var(--gold-deep); font-style: italic; }
.section-sub { font-size: 1.06rem; color: var(--text-2); line-height: 1.75; }
.gold-rule { width: 66px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px; margin: 22px auto 0; }

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 32px; border-radius: 50px;
    font-family: var(--font-sans); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    cursor: pointer; overflow: hidden; white-space: nowrap; isolation: isolate;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn:hover::before { transform: translateX(120%); }

.btn-primary, .btn-whatsapp { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2A2410; box-shadow: 0 10px 24px rgba(201,162,75,0.26); }
.btn-primary:hover, .btn-whatsapp:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-whatsapp svg { fill: #2A2410; }

.btn-sapphire { background: linear-gradient(135deg, var(--sapphire-2), var(--sapphire)); color: #fff; box-shadow: 0 10px 24px rgba(28,61,143,0.26); }
.btn-sapphire:hover { transform: translateY(-3px); box-shadow: var(--shadow-blue); }

.btn-outline { background: transparent; color: var(--sapphire); border: 1.5px solid var(--sapphire); }
.btn-outline:hover { transform: translateY(-3px); background: var(--sapphire); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-light:hover { transform: translateY(-3px); background: #fff; color: var(--sapphire); border-color: #fff; }

/* used on gold contact panel */
.btn-dark { background: var(--sapphire); color: #fff; border: 1.5px solid var(--sapphire); }
.btn-dark:hover { transform: translateY(-3px); background: var(--sapphire-deep); box-shadow: var(--shadow-blue); }
.btn-outline-dark { background: transparent; color: var(--sapphire); border: 1.5px solid var(--sapphire); }
.btn-outline-dark:hover { transform: translateY(-3px); background: var(--sapphire); color: #fff; }

/* =========================================================
   5. SCROLL PROGRESS
   ========================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--sapphire), var(--gold)); z-index: 2000; transition: width 0.1s linear; }

/* =========================================================
   6. TOPBAR + HEADER + NAV
   ========================================================= */
.topbar { background: var(--sapphire-deep); color: rgba(255,255,255,0.8); font-size: 13px; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 9px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: rgba(255,255,255,0.8); }
.topbar a:hover { color: var(--gold-2); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 15px; height: 15px; stroke: var(--gold-2); }
.topbar-left { display: inline-flex; gap: 26px; }
.topbar-right { display: inline-flex; gap: 22px; align-items: center; }

.site-header { background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--line); transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease); }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(28,45,90,0.10); background: rgba(255,255,255,0.98); }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: var(--header-h); transition: height var(--t) var(--ease); }
.site-header.scrolled .header-container { height: 66px; }
/* Header logo — light logo, boxless on the white header */
.site-branding .brand-logo { height: 56px; width: auto; display: block; transition: transform var(--t) var(--ease), height var(--t) var(--ease); }
.site-header.scrolled .site-branding .brand-logo { height: 48px; }
.site-branding .brand-logo:hover { transform: scale(1.03); }
.mobile-nav-head .brand-logo { height: 44px; width: auto; display: block; }
.footer-brand .brand-logo { height: 58px; width: auto; display: block; margin-bottom: 18px; }

/* ===== Animated brand logo (gold seal) ===== */
.brand-logo .ring-outer { stroke-dasharray: 170; animation: bl-draw 1.5s var(--ease) both; }
.brand-logo .ring-beads { transform-box: fill-box; transform-origin: center; animation: bl-spin 22s linear infinite; }
.brand-logo .logo-scales { transform-box: fill-box; transform-origin: center; }
@keyframes bl-draw { from { stroke-dashoffset: 170; } to { stroke-dashoffset: 0; } }
@keyframes bl-spin { to { transform: rotate(360deg); } }
.brand-logo:hover .ring-beads { animation-duration: 8s; }
.brand-logo:hover .logo-scales { animation: bl-sway 1.4s var(--ease); }
@keyframes bl-sway { 0%,100% { transform: rotate(0deg); } 28% { transform: rotate(8deg); } 62% { transform: rotate(-5deg); } 85% { transform: rotate(2deg); } }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 38px; align-items: center; }
.main-nav a { font-family: var(--font-serif); font-size: 16px; font-weight: 500; letter-spacing: 0.005em; color: var(--text); position: relative; padding: 8px 1px; white-space: nowrap; transition: color 0.35s var(--ease); }
/* subtle underline that sweeps in from the left */
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: linear-gradient(90deg, var(--sapphire), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 0.42s var(--ease); }
.main-nav a:hover { color: var(--sapphire); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-right-group { display: flex; align-items: center; gap: 16px; }
.header-search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-cool); border-radius: 40px; padding: 6px 8px 6px 14px; background: #fff; transition: border-color var(--t), box-shadow var(--t); }
.header-search:focus-within { border-color: var(--sapphire-2); box-shadow: 0 0 0 3px var(--sapphire-soft); }
.header-search input { border: none; outline: none; font-size: 13px; width: 86px; background: transparent; color: var(--text); }
.header-search button { display: flex; align-items: center; color: var(--muted); }
.header-search button svg { width: 17px; height: 17px; stroke: currentColor; }
.header-search:focus-within button { color: var(--sapphire); }

.header-phone { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 40px; background: linear-gradient(135deg, var(--sapphire-2), var(--sapphire)); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; flex-shrink: 0; box-shadow: 0 8px 20px rgba(28,61,143,0.22); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.header-phone svg { width: 17px; height: 17px; stroke: var(--gold-2); }
.header-phone:hover { transform: translateY(-2px); color: #fff; box-shadow: var(--shadow-blue); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-cool); background: #fff; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 50%; width: 20px; height: 2px; background: var(--sapphire); border-radius: 2px; transform: translateX(-50%); transition: all var(--t) var(--ease); }
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; background: rgba(20,44,104,0.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); z-index: 1100; }
body.menu-open .nav-overlay { opacity: 1; visibility: visible; }
.mobile-nav { position: fixed; top: 0; right: 0; height: 100%; width: min(340px, 84vw); background: var(--sapphire-deep); color: #fff; z-index: 1200; transform: translateX(100%); transition: transform var(--t-slow) var(--ease); display: flex; flex-direction: column; padding: 26px; overflow-y: auto; }
body.menu-open .mobile-nav { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-nav-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.mobile-nav-close:hover { background: rgba(255,255,255,0.08); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a { display: block; padding: 15px 4px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.86); transition: color var(--t-fast), padding var(--t-fast); }
.mobile-nav a:hover { color: var(--gold-2); padding-left: 10px; }
.mobile-nav .btn { margin-top: 24px; }
.mobile-nav-contact { margin-top: auto; padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,0.62); line-height: 1.9; }
.mobile-nav-contact a { color: var(--gold-2); }

/* =========================================================
   7. HERO (light ivory)
   ========================================================= */
.hero { background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); color: var(--text); position: relative; overflow: hidden; padding: clamp(40px, 4vw, 64px) 0 clamp(48px, 4.5vw, 76px); }
.hero::before { content: ''; position: absolute; top: -20%; right: -8%; width: 55vw; height: 55vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(46,90,200,0.12) 0%, transparent 62%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(28,61,143,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(28,61,143,0.045) 1px, transparent 1px); background-size: 62px 62px; mask-image: radial-gradient(circle at 72% 34%, #000, transparent 68%); pointer-events: none; }
.hero-watermark { position: absolute; right: -50px; bottom: -70px; width: 440px; color: rgba(28,61,143,0.05); pointer-events: none; z-index: 0; }
.hero-watermark svg { width: 100%; height: auto; stroke: currentColor; fill: none; }

.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow { color: var(--gold-deep); }
.hero h1 { font-size: clamp(2.1rem, 3.7vw, 3.35rem); font-weight: 600; line-height: 1.14; margin-bottom: 22px; color: #20293B; }
.hero h1 .accent { color: var(--gold-deep); -webkit-text-fill-color: var(--gold-deep); background: none; font-style: italic; }
.hero-lead { font-size: 1.08rem; color: var(--text-2); max-width: 500px; margin-bottom: 26px; }

/* Hero practice-area tags */
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; margin-bottom: 34px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 18px; border-radius: 40px;
    background: rgba(255,255,255,0.72); border: 1px solid var(--line-cool);
    font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
    color: var(--sapphire); white-space: nowrap; box-shadow: 0 2px 8px rgba(28,45,90,0.04);
    transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; transition: transform 0.4s var(--ease), background 0.4s var(--ease); }
.hero-tag:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--sapphire-2), var(--sapphire)); border-color: transparent; color: #fff; box-shadow: var(--shadow-blue); }
.hero-tag:hover::before { background: var(--gold-2); transform: scale(1.5); }

/* Hero social links */
.hero-social { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.hero-social a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-cool); color: var(--sapphire); box-shadow: 0 2px 8px rgba(28,45,90,0.05); transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.hero-social a svg { width: 19px; height: 19px; fill: currentColor; }
.hero-social a:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--sapphire-2), var(--sapphire)); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }
.hero-call { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; color: var(--sapphire); padding: 11px 22px; margin-bottom: 30px; background: #fff; border: 1px solid var(--line-cool); border-radius: 40px; box-shadow: var(--shadow-sm); }
.hero-call svg { width: 20px; height: 20px; stroke: var(--sapphire-2); }
.hero-call .pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201,162,75,0.6); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%{box-shadow:0 0 0 0 rgba(201,162,75,0.55);} 70%{box-shadow:0 0 0 10px rgba(201,162,75,0);} 100%{box-shadow:0 0 0 0 rgba(201,162,75,0);} }
.hero-buttons { display: flex; gap: 16px 20px; flex-wrap: wrap; align-items: center; }
.hero-phone-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 1.08rem; font-weight: 700; color: var(--sapphire); letter-spacing: 0.01em; transition: color var(--t-fast) var(--ease); }
.hero-phone-link:hover { color: var(--gold-deep); }

.hero-figure { position: relative; justify-self: center; }
.hero-figure-frame { position: relative; width: min(410px, 82vw); }
/* soft blue blob behind portrait */
.hero-figure-frame::before { content: ''; position: absolute; inset: -6% -6% -3% -6%; border-radius: 46% 54% 48% 52% / 54% 46% 54% 46%; background: linear-gradient(150deg, var(--sapphire-2), var(--sapphire)); z-index: 0; opacity: 0.16; }
/* gold ring accent */
.hero-figure-frame::after { content: ''; position: absolute; inset: 14px; border: 1.5px solid var(--gold); border-radius: var(--r-lg); z-index: 0; transform: translate(16px, 16px); opacity: 0.55; }
.hero-figure img { position: relative; z-index: 1; width: 100%; max-height: 480px; border-radius: var(--r-lg); background: #fff; object-fit: cover; object-position: top center; display: block; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.8); }
.hero-badge { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line-cool); border-radius: var(--r); padding: 15px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-md); }
.hero-badge--tl { top: 24px; left: -30px; }
.hero-badge--br { bottom: 28px; right: -26px; }
.hero-badge .num { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 700; color: var(--sapphire); line-height: 1; }
.hero-badge .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.hero-badge svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 1.5px solid var(--sapphire-3); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--gold); border-radius: 3px; animation: scroll-wheel 1.8s infinite; }
@keyframes scroll-wheel { 0%{opacity:0;transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0;transform:translate(-50%,12px);} 100%{opacity:0;} }

/* =========================================================
   8. FEATURES
   ========================================================= */
.features { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.feature-card { background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--r); padding: 38px 24px; text-align: center; position: relative; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t), background var(--t); }
.feature-card::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--sapphire), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: transparent; background: #fff; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon { width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #fff; position: relative; transition: transform var(--t) var(--ease); box-shadow: 0 10px 22px rgba(201,162,75,0.30); }
.feature-icon::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0.5; transition: transform var(--t) var(--ease), opacity var(--t); }
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.06); }
.feature-card:hover .feature-icon::before { transform: scale(1.14); opacity: 0.9; }
.feature-icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.feature-card h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 10px; color: var(--sapphire); }
.feature-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* =========================================================
   9. STATS (sapphire band)
   ========================================================= */
.stats { background: linear-gradient(135deg, var(--sapphire), var(--sapphire-deep)); position: relative; padding: clamp(58px, 6vw, 86px) 0; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 120%, rgba(201,162,75,0.18), transparent 55%); pointer-events: none; }
.stats::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle at 80% 0%, #000, transparent 70%); pointer-events: none; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.stat { text-align: center; padding: 10px 14px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,0.16); }
.stat-number { display: block; font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; color: var(--gold-2); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.78); }

/* =========================================================
   10. SERVICES
   ========================================================= */
.services { background: var(--ivory); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 38px 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--sapphire), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 60px; height: 60px; border-radius: 16px; background: rgba(201,162,75,0.13); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; transition: background var(--t), color var(--t), transform var(--t) var(--ease); }
.service-icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.service-card:hover .service-icon { background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #fff; transform: rotate(-6deg); }
.service-card h3 { font-size: 1.26rem; font-weight: 600; margin-bottom: 20px; color: var(--sapphire); line-height: 1.3; }
.service-card ul { display: flex; flex-direction: column; gap: 11px; }
.service-card li { font-size: 0.94rem; line-height: 1.5; color: var(--text-2); display: flex; align-items: flex-start; gap: 11px; }
.service-card li svg { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; stroke: var(--gold-deep); fill: none; stroke-width: 2.4; }

/* =========================================================
   11. TESTIMONIALS CAROUSEL (light tint)
   ========================================================= */
.testimonials { background: var(--sapphire-tint); position: relative; overflow: hidden; }
.testimonials::before { content: ''; position: absolute; top: -15%; left: -8%; width: 44vw; height: 44vw; max-width: 560px; max-height: 560px; background: radial-gradient(circle, rgba(201,162,75,0.14), transparent 62%); pointer-events: none; }
.tcar { position: relative; max-width: 1180px; margin: 0 auto; z-index: 1; }
.tcar-viewport { overflow: hidden; padding: 12px 4px 24px; }
.tcar-track { display: flex; gap: 28px; will-change: transform; transition: transform 0.6s var(--ease); }
.tcar-slide { flex: 0 0 auto; }
.t-card { background: #fff; border: 1px solid var(--line-cool); border-radius: var(--r); padding: 38px 34px; height: 100%; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t); }
.t-card:hover { transform: translateY(-6px); border-color: var(--sapphire-2); box-shadow: var(--shadow-md); }
.t-quote { font-family: var(--font-serif); font-size: 4rem; line-height: 0.7; color: var(--gold); opacity: 0.55; margin-bottom: 10px; }
.t-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.t-stars svg { width: 17px; height: 17px; fill: var(--gold); }
.t-card p { font-size: 0.97rem; line-height: 1.8; color: var(--text-2); margin-bottom: 24px; flex: 1; }
.t-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line-cool); }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--sapphire-2), var(--sapphire)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.t-author .name { font-family: var(--font-serif); font-size: 1.06rem; font-weight: 600; color: var(--sapphire); display: block; }
.t-author .role { font-size: 12px; color: var(--gold-deep); letter-spacing: 0.04em; font-weight: 600; }

.tcar-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 34px; }
.tcar-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--sapphire-2); color: var(--sapphire); background: #fff; display: flex; align-items: center; justify-content: center; transition: all var(--t) var(--ease); }
.tcar-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.tcar-arrow:hover { background: var(--sapphire); color: #fff; border-color: var(--sapphire); transform: scale(1.06); }
.tcar-arrow:disabled { opacity: 0.35; cursor: not-allowed; transform: none; background: #fff; color: var(--sapphire); }
.tcar-dots { display: flex; gap: 9px; align-items: center; }
.tcar-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(28,61,143,0.25); transition: all var(--t) var(--ease); }
.tcar-dot.active { width: 26px; border-radius: 6px; background: linear-gradient(90deg, var(--sapphire), var(--gold)); }

/* =========================================================
   12. TEAM (color photos, no grayscale)
   ========================================================= */
.team { background: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 700px; margin: 0 auto; }
.team-card { text-align: center; }
.team-photo { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, var(--sapphire-tint), var(--ivory)); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--t-slow) var(--ease); }
.team-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,44,104,0.55), transparent 52%); opacity: 0; transition: opacity var(--t); z-index: 1; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-card:hover .team-photo::after { opacity: 1; }
.team-ring { display: none; }
.team-info h3 { font-size: 1.2rem; font-weight: 600; color: var(--sapphire); margin-bottom: 4px; }
.team-info span { font-size: 0.82rem; color: var(--gold-deep); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* =========================================================
   13. STEPS TIMELINE
   ========================================================= */
.steps { background: var(--ivory); }
.steps-wrap { position: relative; max-width: 1040px; margin: 0 auto; }
.steps-line { position: absolute; top: 36px; left: 14%; right: 14%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: 0.6; z-index: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; position: relative; z-index: 1; }
.step { text-align: center; }
.step-num { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: #fff; border: 2px solid var(--sapphire-2); color: var(--sapphire); font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), background var(--t), color var(--t); }
.step:hover .step-num { transform: translateY(-6px) scale(1.05); background: linear-gradient(140deg, var(--sapphire-2), var(--sapphire)); color: var(--gold-2); border-color: transparent; }
.step h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 12px; color: var(--sapphire); }
.step p { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; max-width: 300px; margin: 0 auto; }

/* =========================================================
   14. CONTACT
   ========================================================= */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; max-width: 1140px; margin: 0 auto; }
.contact-left { background: linear-gradient(150deg, var(--sapphire), var(--sapphire-deep)); color: #fff; border-radius: var(--r-lg); padding: clamp(36px, 4vw, 54px); position: relative; overflow: hidden; }
.contact-left::before { content: ''; position: absolute; bottom: -40%; right: -20%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(201,162,75,0.2), transparent 65%); }
.contact-left .eyebrow { color: var(--gold-2); }
.contact-left h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; position: relative; }
.contact-left h2 span { color: var(--gold-2); }
.contact-tagline { color: rgba(255,255,255,0.75); margin-bottom: 38px; position: relative; }
.contact-detail { display: flex; gap: 18px; margin-bottom: 26px; position: relative; }
.contact-icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 22px; height: 22px; stroke: var(--gold-2); fill: none; stroke-width: 1.7; }
.contact-detail strong { display: block; font-family: var(--font-sans); font-size: 1rem; margin-bottom: 4px; color: #fff; }
.contact-detail p, .contact-detail a { color: rgba(255,255,255,0.76); font-size: 0.94rem; line-height: 1.6; }
.contact-detail a:hover { color: var(--gold-2); }

.contact-right { background: linear-gradient(150deg, var(--gold-2), var(--gold)); border-radius: var(--r-lg); padding: clamp(36px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-gold); }
.contact-right::before { content: '§'; position: absolute; top: -34px; right: 8px; font-family: var(--font-serif); font-size: 12rem; color: rgba(20,44,104,0.1); }
.contact-right h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--sapphire-deep); margin-bottom: 14px; position: relative; }
.contact-right p { color: rgba(20,30,60,0.82); font-size: 1.02rem; margin-bottom: 30px; position: relative; }
.contact-cta-buttons { display: flex; flex-direction: column; gap: 14px; position: relative; }

/* =========================================================
   15. FLOATING WHATSAPP + BACK TO TOP
   ========================================================= */
.float-whatsapp { position: fixed; bottom: 28px; right: 28px; background: #25d366; color: #fff; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.45); z-index: 900; animation: wa-pulse 2.4s infinite; transition: transform var(--t) var(--ease); }
.float-whatsapp svg { width: 30px; height: 30px; fill: #fff; }
.float-whatsapp:hover { transform: scale(1.1); }
@keyframes wa-pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.55);} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

.back-to-top { position: fixed; bottom: 96px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--sapphire); color: var(--gold-2); display: flex; align-items: center; justify-content: center; z-index: 900; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--t), visibility var(--t), transform var(--t) var(--ease), background var(--t); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sapphire-deep); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* =========================================================
   16. FOOTER (sapphire)
   ========================================================= */
.site-footer { background: var(--sapphire-deep); color: rgba(255,255,255,0.74); border-top: 3px solid var(--gold); position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: -30%; right: -10%; width: 40vw; height: 40vw; max-width: 500px; max-height: 500px; background: radial-gradient(circle, rgba(201,162,75,0.1), transparent 60%); pointer-events: none; }
.footer-top { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(54px, 6vw, 78px) 24px clamp(38px, 4vw, 54px); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.footer-brand img { height: 58px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.8; color: rgba(255,255,255,0.62); max-width: 320px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.92rem; color: rgba(255,255,255,0.68); transition: color var(--t-fast), padding-left var(--t-fast); }
.footer-links a:hover { color: var(--gold-2); padding-left: 8px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.68); }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: var(--gold-2); fill: none; stroke-width: 1.7; }
.footer-contact-item a:hover { color: var(--gold-2); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.72); transition: all var(--t) var(--ease); }
.footer-social a:hover { background: var(--gold); color: var(--sapphire-deep); border-color: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bottom-inner a:hover { color: var(--gold-2); }

/* =========================================================
   17. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .float-whatsapp, .hero-call .pulse-dot, .scroll-cue .mouse::after { animation: none !important; }
}

/* =========================================================
   18. RESPONSIVE
   ========================================================= */
/* Below this width the serif menu switches to the tidy hamburger drawer
   (which shows the full names). */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
}
@media (max-width: 1080px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 54px; text-align: center; }
    .hero .eyebrow { justify-content: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-tags { justify-content: center; }
    .hero-social { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
    .topbar-left .topbar-item.hide-sm { display: none; }
}
@media (max-width: 760px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-line { display: none; }
    .steps-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 12px; }
    .stat + .stat::before { display: none; }
    .hero-badge--tl { left: 2px; }
    .hero-badge--br { right: 2px; }
    .topbar { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .header-phone { display: none; }
    .header-container { height: 66px; }
    .site-header.scrolled .header-container { height: 60px; }
    .site-branding .brand-logo { height: 48px; }
    .site-header.scrolled .site-branding .brand-logo { height: 44px; }

    /* Cleaner, tighter mobile rhythm */
    .section { padding: clamp(46px, 11vw, 68px) 0; }
    .section-head { margin-bottom: 30px; }
    .section-title { font-size: clamp(1.38rem, 5.6vw, 1.85rem); }
    .eyebrow { font-size: 10.5px; letter-spacing: 0.14em; margin-bottom: 13px; }
    .eyebrow::before { width: 20px; }
    .section-sub { font-size: 0.95rem; }

    /* Hero */
    .scroll-cue { display: none; }
    .hero { padding-bottom: 44px; }
    .hero-inner { gap: 34px; }
    .hero h1 { font-size: clamp(1.5rem, 6.2vw, 1.95rem); margin-bottom: 18px; }
    .hero-figure { margin-top: 4px; }
    .hero-badge { padding: 10px 13px; gap: 10px; }
    .hero-badge .num { font-size: 1.35rem; }
    .hero-badge .lbl { font-size: 9.5px; }
    .hero-badge svg { width: 24px; height: 24px; }
    .hero-tags { gap: 8px; margin-bottom: 24px; }
    .hero-tag { font-size: 0.8rem; padding: 8px 14px; }
    .hero-social { margin-top: 22px; gap: 10px; }
    .hero-social a { width: 40px; height: 40px; }

    /* Stats */
    .stats { padding: 44px 0; }
    .stat-number { font-size: clamp(2rem, 9vw, 2.55rem); }
    .stat-label { font-size: 11px; letter-spacing: 0.1em; }

    /* Cards */
    .service-card { padding: 30px 24px; }
    .service-card h3 { font-size: 1.14rem; }
    .feature-card { padding: 26px 16px; }
    .feature-icon { width: 54px; height: 54px; margin-bottom: 16px; }
    .feature-card h3 { font-size: 0.95rem; }
    .feature-card p { font-size: 0.82rem; }
    .team-grid { gap: 18px; }
    .team-info h3 { font-size: 0.92rem; line-height: 1.25; }
    .team-info span { font-size: 0.64rem; letter-spacing: 0.03em; }

    /* Testimonials + contact */
    .t-card { padding: 30px 24px; }
    .t-card p { font-size: 0.94rem; }
    .contact-left, .contact-right { padding: 34px 26px; }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .hero-figure-frame { width: min(300px, 82vw); }
    .container, .hero-inner { padding-left: 20px; padding-right: 20px; }
}

/* =========================================================
   19. INTERIOR PAGE HERO (shared banner for sub-pages)
   ========================================================= */
.page-shell { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px,6vw,90px) 24px; }

.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); color: var(--text); padding: clamp(54px, 7vw, 100px) 0 clamp(60px, 7vw, 96px); }
.page-hero::before { content: ''; position: absolute; top: -16%; left: -6%; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(28,61,143,0.08), transparent 62%); pointer-events: none; }
.page-hero::after { content: ''; position: absolute; bottom: -20%; right: -5%; width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: radial-gradient(circle, rgba(201,162,75,0.12), transparent 64%); pointer-events: none; }
.page-hero-watermark { position: absolute; right: -46px; top: 50%; transform: translateY(-50%); width: 360px; color: rgba(28,61,143,0.06); pointer-events: none; z-index: 0; }
.page-hero-watermark svg { width: 100%; height: auto; stroke: currentColor; fill: none; }
.page-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); transition: color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: var(--sapphire); }
.breadcrumb svg { width: 14px; height: 14px; stroke: #B9C0CE; fill: none; stroke-width: 2; }
.breadcrumb .current { color: var(--sapphire); }
.page-hero .eyebrow { color: var(--gold-deep); }
.page-hero h1 { color: var(--text); font-size: 2.2rem; line-height: 1.08; margin-bottom: 20px; max-width: 760px; }
/* hero heading only — smaller on desktop, mobile keeps 2.2rem */
@media (min-width: 769px) { .page-hero h1 { font-size: 1.75rem; max-width: 700px; } }
.page-hero h1 .accent { color: var(--sapphire); font-style: italic; }
.page-hero-lead { font-size: 1.08rem; line-height: 1.78; color: var(--text-2); max-width: 640px; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.page-hero-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 40px; background: #fff; border: 1px solid var(--line-cool); font-size: 13.5px; font-weight: 600; color: var(--sapphire); box-shadow: var(--shadow-sm); }
.page-hero-chip svg { width: 16px; height: 16px; stroke: var(--gold-deep); fill: none; stroke-width: 1.8; }
.page-hero-chip b { color: var(--sapphire); font-weight: 800; }

/* =========================================================
   20. LEGAL PRECEDENCE — case-law library
   ========================================================= */
.prec-section { background: var(--ivory); }
.prec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.prec-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 30px 26px; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.prec-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--sapphire), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.prec-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prec-card:hover::before { transform: scaleX(1); }
.prec-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.prec-icon { width: 56px; height: 56px; border-radius: 15px; background: var(--sapphire-soft); color: var(--sapphire); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--t), color var(--t), transform var(--t) var(--ease); }
.prec-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.prec-card:hover .prec-icon { background: linear-gradient(140deg, var(--sapphire-2), var(--sapphire)); color: #fff; transform: rotate(-6deg); }
.prec-cat { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 40px; background: var(--sapphire-tint); color: var(--sapphire); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.prec-cat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.prec-card h3 { font-size: 1.24rem; font-weight: 600; color: var(--sapphire); line-height: 1.34; margin-bottom: 14px; }
.prec-card p { font-size: 0.95rem; line-height: 1.7; color: var(--text-2); margin-bottom: 24px; }
.prec-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.prec-note { font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.prec-read { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700; color: var(--sapphire); transition: color var(--t-fast) var(--ease); }
.prec-read svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform var(--t) var(--ease); }
.prec-card:hover .prec-read { color: var(--gold-deep); }
.prec-card:hover .prec-read svg { transform: translateX(5px); }

/* ---- CTA band ---- */
.prec-cta { background: linear-gradient(135deg, var(--sapphire), var(--sapphire-deep)); color: #fff; position: relative; overflow: hidden; }
.prec-cta::before { content: ''; position: absolute; top: -32%; right: -6%; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(201,162,75,0.18), transparent 62%); pointer-events: none; }
.prec-cta-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; padding: 0 24px; }
.prec-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.prec-cta p { color: rgba(255,255,255,0.82); font-size: 1.06rem; line-height: 1.7; max-width: 620px; margin: 0 auto 32px; }
.prec-cta-btns { display: flex; gap: 16px 20px; flex-wrap: wrap; justify-content: center; align-items: center; }
.btn-light { background: #fff; color: var(--sapphire); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--sapphire); }

/* ---- responsive ---- */
@media (max-width: 1080px) { .prec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .prec-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .page-hero { padding: 46px 0 52px; }
    .page-hero-watermark { display: none; }
    .page-hero-meta { gap: 9px; }
    .prec-card { padding: 26px 22px 22px; }
    .prec-card h3 { font-size: 1.12rem; }
    .prec-icon { width: 50px; height: 50px; }
}

.gallery-item img { transition: transform var(--t) var(--ease), box-shadow var(--t); }
.gallery-item img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* =========================================================
   21. COMMERCIAL SERVICES
   ========================================================= */
/* Who we are — image + text */
.cs-about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.cs-about-figure { position: relative; }
.cs-about-figure img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: block; position: relative; z-index: 1; }
.cs-about-figure::after { content: ''; position: absolute; inset: 14px; border: 1.5px solid var(--gold); border-radius: var(--r-lg); transform: translate(18px, 18px); opacity: 0.5; z-index: 0; }
.cs-about-text .eyebrow { margin-bottom: 16px; }
.cs-about-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--sapphire); margin-bottom: 22px; }
.cs-about-text p { font-size: 1.02rem; line-height: 1.86; color: var(--text-2); margin-bottom: 28px; }
.cs-about-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Practice-area cards */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.cs-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--sapphire), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.cs-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cs-card:hover::before { transform: scaleX(1); }
.cs-card .service-icon { margin-bottom: 20px; }
.cs-card:hover .service-icon { background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #fff; transform: rotate(-6deg); }
.cs-card h3 { font-size: 1.16rem; font-weight: 600; color: var(--sapphire); line-height: 1.32; margin-bottom: 9px; }
.cs-tagline { font-family: var(--font-serif); font-style: italic; font-size: 0.98rem; color: var(--gold-deep); margin-bottom: 14px; line-height: 1.4; }
.cs-card > p { font-size: 0.94rem; line-height: 1.68; color: var(--text-2); }
.cs-card ul { display: flex; flex-direction: column; gap: 9px; margin-top: 15px; }
.cs-card li { font-size: 0.9rem; line-height: 1.45; color: var(--text-2); display: flex; align-items: flex-start; gap: 10px; }
.cs-card li svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; stroke: var(--gold-deep); fill: none; stroke-width: 2.4; }

/* Industries we serve */
.cs-ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cs-ind { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line-cool); border-radius: var(--r-sm); padding: 18px 20px; font-size: 0.94rem; font-weight: 600; color: var(--sapphire); box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), box-shadow var(--t); }
.cs-ind:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cs-ind .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--sapphire-soft); color: var(--sapphire); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--t), color var(--t); }
.cs-ind .tick svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.8; }
.cs-ind:hover .tick { background: linear-gradient(140deg, var(--sapphire-2), var(--sapphire)); color: #fff; }

/* Our approach */
.cs-approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cs-approach { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 26px; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.cs-approach::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: linear-gradient(180deg, var(--sapphire), var(--gold)); transform: scaleY(0); transform-origin: top; transition: transform var(--t) var(--ease); }
.cs-approach:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cs-approach:hover::before { transform: scaleY(1); }
.cs-approach .num { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.cs-approach h4 { font-size: 1.04rem; font-weight: 700; color: var(--sapphire); margin-bottom: 8px; }
.cs-approach p { font-size: 0.9rem; line-height: 1.62; color: var(--text-2); }

@media (max-width: 1080px) {
    .cs-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-ind-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-approach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .cs-about-grid { grid-template-columns: 1fr; gap: 44px; }
    .cs-about-figure { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 680px) {
    .cs-grid { grid-template-columns: 1fr; }
    .cs-ind-grid { grid-template-columns: 1fr; }
    .cs-approach-grid { grid-template-columns: 1fr; }
    .cs-about-figure::after { display: none; }
}

/* =========================================================
   22. BLOG
   ========================================================= */
.blog-section { background: var(--ivory); }

/* Featured article (large horizontal card) */
.blog-featured { display: grid; grid-template-columns: 0.72fr 1.28fr; max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--t), transform var(--t) var(--ease); }
.blog-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-featured-media { position: relative; overflow: hidden; min-height: 260px; background: var(--sapphire-deep); }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.blog-featured:hover .blog-featured-media img { transform: scale(1.05); }
.blog-badge { position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 40px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2A2410; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.blog-badge svg { width: 14px; height: 14px; fill: #2A2410; }
.blog-featured-body { padding: clamp(26px, 3vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.blog-cat { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 6px 14px; border-radius: 40px; background: var(--sapphire-tint); color: var(--sapphire); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
.blog-cat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.blog-meta { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.blog-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--sapphire-2), var(--sapphire)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 19px; flex-shrink: 0; }
.blog-meta .who { font-size: 14px; line-height: 1.4; }
.blog-meta .who strong { display: block; color: var(--sapphire); font-weight: 700; }
.blog-meta .who span { color: var(--muted); font-size: 12.5px; }
.blog-featured-body h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); color: var(--sapphire); line-height: 1.28; margin-bottom: 16px; }
.blog-featured-body > p { font-size: 1rem; line-height: 1.75; color: var(--text-2); margin-bottom: 28px; }
.blog-featured-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.blog-stats { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.blog-stats span { display: inline-flex; align-items: center; gap: 6px; }
.blog-stats svg { width: 16px; height: 16px; stroke: var(--gold-deep); fill: none; stroke-width: 1.8; }
.blog-featured-foot .btn { margin-left: auto; }

/* Vertical article cards (used when more posts exist) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 34px; }
.blog-card-v { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), box-shadow var(--t); }
.blog-card-v:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card-v-media { height: 200px; overflow: hidden; background: var(--sapphire-deep); }
.blog-card-v-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.blog-card-v:hover .blog-card-v-media img { transform: scale(1.06); }
.blog-card-v-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card-v-body .blog-cat { margin-bottom: 14px; }
.blog-card-v-body h3 { font-size: 1.14rem; color: var(--sapphire); line-height: 1.34; margin-bottom: 10px; }
.blog-card-v-body p { font-size: 0.92rem; line-height: 1.65; color: var(--text-2); margin-bottom: 18px; }
.blog-read { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; color: var(--sapphire); transition: color var(--t-fast); }
.blog-read svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform var(--t) var(--ease); }
.blog-card-v:hover .blog-read { color: var(--gold-deep); }
.blog-card-v:hover .blog-read svg { transform: translateX(5px); }

/* Browse by topic */
.blog-topics { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.blog-topic { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 40px; background: #fff; border: 1px solid var(--line-cool); color: var(--sapphire); font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), background var(--t), color var(--t), box-shadow var(--t), border-color var(--t); }
.blog-topic::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transition: background var(--t); }
.blog-topic:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--sapphire-2), var(--sapphire)); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }
.blog-topic:hover::before { background: var(--gold-2); }

@media (max-width: 1080px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-media { min-height: 240px; }
}
@media (max-width: 680px) { .blog-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .blog-featured-foot { flex-direction: column; align-items: flex-start; }
    .blog-featured-foot .btn { margin-left: 0; width: 100%; }
}

/* =========================================================
   23. ARTICLE / SINGLE POST (long-form reading)
   ========================================================= */
.article-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); color: var(--text); text-align: center; padding: clamp(52px, 7vw, 94px) 24px clamp(90px, 9vw, 140px); }
.article-hero.compact { padding-bottom: clamp(48px, 6vw, 84px); }
.article-hero.compact + .article-wrap { padding-top: clamp(44px, 5vw, 72px); }
.article-hero::before { content: ''; position: absolute; top: -18%; left: -6%; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(28,61,143,0.07), transparent 62%); pointer-events: none; }
.article-hero::after { content: ''; position: absolute; bottom: -22%; right: -6%; width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: radial-gradient(circle, rgba(201,162,75,0.12), transparent 64%); pointer-events: none; }
.article-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.article-hero .breadcrumb { justify-content: center; }
.article-cat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 40px; background: var(--sapphire-tint); border: 1px solid var(--line-cool); color: var(--sapphire); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.article-hero h1 { color: var(--sapphire); font-size: clamp(1.85rem, 3.4vw, 2.9rem); line-height: 1.18; margin: 20px 0 22px; }
.article-hero-meta { display: inline-flex; align-items: center; gap: 13px; color: var(--text-2); font-size: 14px; }
.article-hero-meta .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #2A2410; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.article-hero-meta .who { text-align: left; line-height: 1.4; }
.article-hero-meta .who strong { display: block; color: var(--sapphire); font-weight: 700; }
.article-hero-meta .who span { color: var(--muted); font-size: 12.5px; }

.article-wrap { max-width: 840px; margin: 0 auto; padding: 0 24px clamp(60px, 8vw, 100px); }
.article-figure { margin: clamp(-130px, -9vw, -70px) auto 44px; position: relative; z-index: 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.5); }
.article-figure img { width: 100%; display: block; max-height: 460px; object-fit: cover; }

.article-content { font-size: 1.075rem; }
.article-content p { line-height: 1.9; color: var(--text); margin-bottom: 22px; }
.article-content p.lead { font-size: 1.22rem; line-height: 1.75; color: var(--text-2); margin-bottom: 30px; }
.article-content h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.85rem); color: var(--sapphire); margin: 44px 0 16px; padding-left: 20px; position: relative; line-height: 1.3; }
.article-content h2::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--sapphire), var(--gold)); }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--sapphire); margin: 30px 0 12px; }
.article-content ul, .article-content ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.article-content ul li { position: relative; padding-left: 32px; font-size: 1.03rem; line-height: 1.72; color: var(--text-2); }
.article-content ul li::before { content: ''; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--sapphire-soft); }
.article-content ol { counter-reset: art; }
.article-content ol li { position: relative; padding-left: 40px; font-size: 1.03rem; line-height: 1.72; color: var(--text-2); counter-increment: art; }
.article-content ol li::before { content: counter(art); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--sapphire-soft); color: var(--sapphire); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.article-content strong { color: var(--sapphire); font-weight: 700; }
.article-content a { color: var(--sapphire-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t-fast); }
.article-content a:hover { color: var(--gold-deep); }
.article-content blockquote { margin: 30px 0; padding: 22px 26px; background: var(--sapphire-tint); border-left: 4px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--font-serif); font-style: italic; font-size: 1.12rem; color: var(--sapphire); }
.article-content img { max-width: 100%; border-radius: var(--r); margin: 26px 0; display: block; }

/* In-article CTA box */
.article-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--sapphire), var(--sapphire-deep)); color: #fff; border-radius: var(--r-lg); padding: clamp(34px, 4vw, 52px); text-align: center; margin-top: 54px; }
.article-cta::before { content: ''; position: absolute; top: -40%; right: -8%; width: 46vw; height: 46vw; max-width: 460px; max-height: 460px; background: radial-gradient(circle, rgba(201,162,75,0.2), transparent 62%); pointer-events: none; }
.article-cta > * { position: relative; z-index: 1; }
.article-cta h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.95rem); margin-bottom: 12px; }
.article-cta p { color: rgba(255,255,255,0.85); font-size: 1.02rem; line-height: 1.7; max-width: 540px; margin: 0 auto 28px; }
.article-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.article-back { max-width: 840px; margin: 0 auto; padding: 0 24px clamp(50px, 6vw, 80px); }
.article-back a { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--sapphire); transition: gap var(--t) var(--ease), color var(--t-fast); }
.article-back a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.article-back a:hover { color: var(--gold-deep); gap: 14px; }

@media (max-width: 520px) {
    .article-hero-meta { flex-direction: column; gap: 10px; }
    .article-figure { margin-top: -60px; }
    .article-content { font-size: 1.02rem; }
    .article-cta-btns .btn { width: 100%; }
}

/* =========================================================
   24. PER-PAGE DISTINCT LAYOUTS
   ========================================================= */
/* Breadcrumb on light backgrounds */
.breadcrumb--ink { color: var(--muted); }
.breadcrumb--ink a { color: var(--muted); }
.breadcrumb--ink a:hover { color: var(--sapphire); }
.breadcrumb--ink svg { stroke: #B9C0CE; }
.breadcrumb--ink .current { color: var(--sapphire); }

/* Left-aligned section header variant */
.section-head--left { text-align: left; max-width: 720px; margin-left: 0; margin-right: 0; }
.section-head--left .gold-rule { margin-left: 0; margin-right: 0; }

/* ---------- COMMERCIAL SERVICES — light split hero ---------- */
.cs-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); padding: clamp(40px, 5vw, 72px) 0 clamp(52px, 6vw, 92px); }
.cs-hero::before { content: ''; position: absolute; top: -18%; left: -8%; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(28,61,143,0.08), transparent 62%); pointer-events: none; }
.cs-hero::after { content: ''; position: absolute; bottom: -20%; right: -6%; width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: radial-gradient(circle, rgba(201,162,75,0.12), transparent 64%); pointer-events: none; }
.cs-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 54px; align-items: center; }
.cs-hero-left h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); color: var(--text); line-height: 1.12; margin: 6px 0 20px; }
.cs-hero-left h1 .accent { color: var(--sapphire); font-style: italic; }
.cs-hero-lead { font-size: 1.08rem; color: var(--text-2); line-height: 1.78; max-width: 520px; margin-bottom: 30px; }
.cs-hero-btns { display: flex; gap: 14px 16px; flex-wrap: wrap; align-items: center; }
.cs-hero-panel { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--sapphire-2), var(--sapphire-deep)); color: #fff; border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--shadow-blue); }
.cs-hero-panel::before { content: ''; position: absolute; top: -30%; right: -20%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(201,162,75,0.24), transparent 64%); pointer-events: none; }
.cs-hero-panel .p-kicker { position: relative; z-index: 1; color: var(--gold-2); font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px; }
.cs-hero-panel ul { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.cs-hero-panel li { display: flex; align-items: center; gap: 14px; font-size: 1rem; font-weight: 500; line-height: 1.35; color: rgba(255,255,255,0.94); }
.cs-hero-panel li .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--t), transform var(--t) var(--ease); }
.cs-hero-panel li .ic svg { width: 20px; height: 20px; stroke: var(--gold-2); fill: none; stroke-width: 1.7; }
.cs-hero-panel li:hover .ic { background: rgba(201,162,75,0.22); transform: translateY(-2px); }
.cs-hero-panel .p-foot { position: relative; z-index: 1; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.72); }
.cs-hero-panel .p-foot svg { width: 17px; height: 17px; stroke: var(--gold-2); fill: none; stroke-width: 1.8; flex-shrink: 0; }

/* Commercial CTA — light bordered card (distinct from sapphire band) */
.cs-cta-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.cs-cta-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--sapphire), var(--gold)); }
.cs-cta-card .t h2 { color: var(--sapphire); font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-bottom: 10px; }
.cs-cta-card .t p { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; max-width: 540px; }
.cs-cta-card .b { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .cs-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .cs-hero-panel { max-width: 520px; }
}
@media (max-width: 560px) {
    .cs-hero-btns .btn { width: 100%; }
    .cs-cta-card { flex-direction: column; align-items: flex-start; }
    .cs-cta-card .b .btn { width: 100%; }
}

/* ---------- BLOG — centered editorial masthead ---------- */
.blog-masthead { position: relative; background: var(--ivory); text-align: center; padding: clamp(46px, 6vw, 88px) 24px clamp(30px, 3vw, 40px); }
.blog-masthead::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.blog-masthead .eyebrow { justify-content: center; }
.blog-masthead h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--sapphire); line-height: 1.08; margin: 8px 0 0; }
.blog-masthead h1 .accent { color: var(--gold-deep); font-style: italic; }
.blog-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 6px; color: var(--gold); }
.blog-ornament .line { width: 54px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.blog-ornament .line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.blog-ornament svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.blog-masthead .sub { font-size: 1.06rem; color: var(--text-2); line-height: 1.7; max-width: 600px; margin: 0 auto; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }

/* Blog CTA — light tinted centered panel (distinct again) */
.blog-cta { position: relative; overflow: hidden; background: var(--sapphire-tint); border-radius: var(--r-lg); text-align: center; padding: clamp(40px, 5vw, 66px) 24px; }
.blog-cta::before { content: ''; position: absolute; top: -34%; left: -6%; width: 40vw; height: 40vw; max-width: 460px; max-height: 460px; background: radial-gradient(circle, rgba(201,162,75,0.14), transparent 62%); pointer-events: none; }
.blog-cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.blog-cta h2 { color: var(--sapphire); font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 14px; }
.blog-cta p { color: var(--text-2); font-size: 1.04rem; line-height: 1.72; max-width: 560px; margin: 0 auto 28px; }
.blog-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 520px) { .blog-cta-btns .btn { width: 100%; } }

/* =========================================================
   25. LEGAL PRECEDENCE — interactive filter
   ========================================================= */
.prec-filter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 20px; }
.prec-filter-btn { font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600; color: var(--text-2); background: #fff; border: 1px solid var(--line-cool); border-radius: 40px; padding: 10px 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; transition: transform var(--t) var(--ease), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t); }
.prec-filter-btn .n { font-size: 0.72rem; font-weight: 800; color: var(--muted); background: var(--sapphire-tint); border-radius: 20px; padding: 1px 8px; line-height: 1.6; transition: background var(--t), color var(--t); }
.prec-filter-btn:hover { border-color: var(--sapphire-2); color: var(--sapphire); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.prec-filter-btn.is-active { background: linear-gradient(135deg, var(--sapphire-2), var(--sapphire)); border-color: transparent; color: #fff; box-shadow: var(--shadow-blue); }
.prec-filter-btn.is-active .n { background: rgba(255,255,255,0.22); color: var(--gold-2); }
.prec-count { text-align: center; font-size: 0.9rem; color: var(--muted); margin-bottom: 40px; }
.prec-count b { color: var(--sapphire); font-weight: 700; }
.prec-card.is-hidden { display: none; }
@keyframes precIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* landmark ribbon on a featured card */
.prec-card .prec-flag { position: absolute; top: 0; right: 0; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 16px; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #2A2410; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 0 var(--r) 0 var(--r); }
.prec-card .prec-flag svg { width: 13px; height: 13px; fill: #2A2410; }

/* =========================================================
   26. REFERENCE-STYLE SECTIONS (video stats, cases, process)
   ========================================================= */
/* --- Stats band: dark + gold + video tour --- */
.stats { background: linear-gradient(135deg, #161d2b 0%, #0b0f18 100%); }
.stats-video { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 46px; position: relative; z-index: 1; }
.stats-play { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #201a0c; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 10px 26px rgba(201,162,75,0.4); transition: transform var(--t) var(--ease); position: relative; }
.stats-play::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(201,162,75,0.45); animation: pulse-ring 2.4s ease-out infinite; }
.stats-play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.stats-play:hover { transform: scale(1.08); }
.stats-video-text strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; color: #fff; font-weight: 600; line-height: 1.2; }
.stats-video-text span { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.3); opacity: 0; } }

/* --- Case Studies (light) --- */
.cases { background: var(--ivory); }
.cases-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 48px); }
.cases-head .section-head { text-align: left; max-width: 620px; margin: 0; }
.cases-head .section-head .gold-rule { margin-left: 0; margin-right: 0; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), box-shadow var(--t); }
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.case-media { position: relative; height: 172px; overflow: hidden; background: var(--sapphire-deep); }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.13) saturate(1.2) contrast(1.04); transition: transform var(--t-slow) var(--ease), filter var(--t); }
.case-card:hover .case-media img { transform: scale(1.06); filter: brightness(1.2) saturate(1.24) contrast(1.05); }
.case-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,20,40,0.55) 0%, rgba(13,20,40,0.14) 44%, transparent 74%); }
.case-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; border-radius: 30px; background: rgba(255,255,255,0.93); color: var(--sapphire); font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.case-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 1.14rem; color: var(--sapphire); line-height: 1.34; margin-bottom: 16px; }
.case-read { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--gold-deep); }
.case-read svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform var(--t) var(--ease); }
.case-card:hover .case-read svg { transform: translateX(4px); }

/* --- Working process (dark band) --- */
.process { background: linear-gradient(135deg, #161d2b 0%, #0b0f18 100%); position: relative; overflow: hidden; }
.process::before { content: ''; position: absolute; top: -20%; right: -8%; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(201,162,75,0.14), transparent 62%); pointer-events: none; }
.process .section-head .section-title { color: #fff; }
.process .section-head .section-sub { color: rgba(255,255,255,0.7); }
.process-steps { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.process-steps::before { content: ''; position: absolute; top: 42px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,162,75,0.5), transparent); z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; }
.process-circle { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(201,162,75,0.4); display: flex; align-items: center; justify-content: center; position: relative; transition: transform var(--t) var(--ease), border-color var(--t); }
.process-step:hover .process-circle { transform: translateY(-4px); border-color: var(--gold-2); }
.process-circle > svg { width: 32px; height: 32px; stroke: var(--gold-2); fill: none; stroke-width: 1.6; }
.process-circle .step-num { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #201a0c; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); }
.process-step h4 { font-size: 1.18rem; color: #fff; margin-bottom: 10px; font-weight: 600; }
.process-step p { font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,0.62); max-width: 260px; margin: 0 auto; }

@media (max-width: 860px) {
    .process-steps { grid-template-columns: 1fr; gap: 42px; }
    .process-steps::before { display: none; }
    .cases-grid { grid-template-columns: 1fr; }
    .cases-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .stats-video { flex-direction: column; text-align: center; gap: 12px; }
}

/* =========================================================
   27. ABOUT — "Experts In Law Business"
   ========================================================= */
.about { background: var(--ivory-2); }
.about-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 54px; align-items: stretch; }
.about-text { align-self: center; }
.about-aside { display: flex; }
.about-values { position: relative; overflow: hidden; width: 100%; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(155deg, var(--sapphire-2), var(--sapphire-deep)); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-blue); padding: clamp(32px, 3.2vw, 50px); }
.about-values::before { content: ''; position: absolute; top: -28%; right: -16%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(201,162,75,0.22), transparent 64%); pointer-events: none; }
.av-title { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 24px; }
.about-values .about-tab-btns { position: relative; z-index: 1; border-bottom-color: rgba(255,255,255,0.18); }
.about-values .about-tab { color: rgba(255,255,255,0.6); }
.about-values .about-tab:hover, .about-values .about-tab.is-active { color: #fff; }
.about-values .about-panels { position: relative; z-index: 1; min-height: 104px; }
.about-values .about-panel { color: rgba(255,255,255,0.85); }
.about-values .about-more { position: relative; z-index: 1; color: var(--gold-2); }
.about-values .about-more:hover { color: var(--gold-2); }
.about-text .section-title { margin-bottom: 18px; }
.about-text > p { font-size: 1.04rem; line-height: 1.8; color: var(--text-2); margin-bottom: 26px; }
.about-quote { position: relative; background: #fff; border: 1px solid var(--line-cool); border-left: 3px solid var(--gold); border-radius: var(--r-sm); padding: 24px 28px; box-shadow: var(--shadow-sm); margin-bottom: 30px; }
.about-quote .qmark { position: absolute; top: -16px; left: 22px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #201a0c; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.about-quote .qmark svg { width: 18px; height: 18px; fill: currentColor; }
.about-quote blockquote { font-family: var(--font-serif); font-style: italic; font-size: 1.06rem; line-height: 1.6; color: var(--text); margin: 6px 0 18px; }
.about-quote .qauthor { display: flex; align-items: center; gap: 13px; }
.about-quote .qauthor img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top center; border: 2px solid var(--gold-2); }
.about-quote .qauthor strong { display: block; font-family: var(--font-serif); font-size: 1.02rem; color: var(--sapphire); }
.about-quote .qauthor span { font-size: 12px; color: var(--gold-deep); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.about-tab-btns { display: flex; flex-wrap: wrap; gap: 26px; border-bottom: 1px solid var(--line-cool); margin-bottom: 18px; }
.about-tab { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); background: none; border: none; padding: 6px 2px 12px; cursor: pointer; position: relative; transition: color var(--t-fast); }
.about-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.about-tab:hover { color: var(--sapphire); }
.about-tab.is-active { color: var(--sapphire); }
.about-tab.is-active::after { transform: scaleX(1); }
.about-panel { display: none; font-size: 1rem; line-height: 1.78; color: var(--text-2); }
.about-panel.is-active { display: block; animation: aboutFade 0.4s var(--ease) both; }
@keyframes aboutFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.about-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; font-size: 0.95rem; color: var(--gold-deep); transition: gap var(--t) var(--ease); }
.about-more svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.about-more:hover { gap: 13px; color: var(--gold-deep); }

.about-figure { position: relative; }
.about-figure img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: block; position: relative; z-index: 1; max-height: 520px; object-fit: cover; object-position: top center; }
.about-figure::after { content: ''; position: absolute; inset: 16px; border: 1.5px solid var(--gold); border-radius: var(--r-lg); transform: translate(18px, 18px); opacity: 0.5; z-index: 0; }
.about-play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #201a0c; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,0.28); transition: transform var(--t) var(--ease); }
.about-play::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6); animation: pulse-ring 2.4s ease-out infinite; }
.about-play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.about-play:hover { transform: translate(-50%, -50%) scale(1.08); }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 44px; }
    .about-figure { max-width: 480px; margin: 0 auto; order: -1; }
}
@media (max-width: 600px) { .about-figure::after { display: none; } }

/* =========================================================
   28. HERO — reference-style (points, call pill, video)
   ========================================================= */
.hero-points { list-style: none; display: flex; flex-direction: column; gap: 15px; margin-bottom: 32px; max-width: 500px; }
.hero-points li { display: flex; align-items: center; gap: 13px; font-size: 1.02rem; font-weight: 500; color: var(--text); }
.hero-points li .ck { width: 28px; height: 28px; border-radius: 50%; background: rgba(201,162,75,0.16); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-points li .ck svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.6; }

.hero-call-pill { display: inline-flex; align-items: center; gap: 13px; padding: 8px 26px 8px 8px; border-radius: 50px; background: linear-gradient(135deg, #1a2234, #0d1420); box-shadow: 0 12px 26px rgba(13,20,32,0.26); transition: transform var(--t) var(--ease), box-shadow var(--t); }
.hero-call-pill:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(13,20,32,0.32); }
.hero-call-pill .ic { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #201a0c; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-call-pill .ic svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; }
.hero-call-pill .t { display: flex; flex-direction: column; line-height: 1.25; }
.hero-call-pill .t small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.hero-call-pill .t strong { font-size: 1.06rem; font-weight: 700; color: #fff; }

.hero-play { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #201a0c; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,0.3); transition: transform var(--t) var(--ease); }
.hero-play::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.75); animation: pulse-ring 2.4s ease-out infinite; }
.hero-play svg { width: 27px; height: 27px; fill: currentColor; margin-left: 3px; }
.hero-play:hover { transform: translate(-50%, -50%) scale(1.08); }

@media (max-width: 600px) {
    .hero-points li { font-size: 0.95rem; }
    .hero-call-pill { width: 100%; justify-content: flex-start; }
}

/* =========================================================
   29. SERVICES as image cards (reference style)
   ========================================================= */
.svc-card { position: relative; display: block; height: 300px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.13) saturate(1.2) contrast(1.04); transition: transform var(--t-slow) var(--ease), filter var(--t); }
.svc-card:hover img { filter: brightness(1.2) saturate(1.24) contrast(1.05); }
.svc-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,24,0.86) 0%, rgba(10,14,24,0.38) 34%, rgba(10,14,24,0) 62%); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card:hover img { transform: scale(1.08); }
.svc-badge { position: absolute; left: 20px; bottom: 76px; z-index: 2; width: 52px; height: 52px; border-radius: 14px; background: rgba(201,162,75,0.18); border: 1px solid rgba(201,162,75,0.55); color: var(--gold-2); display: flex; align-items: center; justify-content: center; transition: background var(--t), color var(--t), transform var(--t) var(--ease); }
.svc-badge svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.svc-card:hover .svc-badge { background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); color: #201a0c; transform: translateY(-3px); }
.svc-title { position: absolute; left: 20px; right: 20px; bottom: 24px; z-index: 2; color: #fff; font-family: var(--font-serif); font-size: 1.24rem; font-weight: 600; line-height: 1.28; }
.svc-title .arr { display: inline-flex; align-items: center; margin-left: 6px; opacity: 0; transform: translateX(-4px); transition: opacity var(--t), transform var(--t) var(--ease); }
.svc-title .arr svg { width: 18px; height: 18px; stroke: var(--gold-2); fill: none; stroke-width: 2; }
.svc-card:hover .svc-title .arr { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) { .svc-card { height: 264px; } }

/* =========================================================
   30. REVIEWS (left-aligned head + full-width stacked cards)
   ========================================================= */
.reviews { background: var(--ivory); }
.reviews .section-head { text-align: left; max-width: 1080px; margin: 0 auto clamp(38px, 4.5vw, 56px); }
.reviews .section-head .eyebrow::after { display: none; }
.reviews-list { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.review-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 32px 40px; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-qmark { position: absolute; top: 24px; right: 34px; line-height: 1; pointer-events: none; }
.review-qmark svg { width: 54px; height: 48px; fill: var(--gold); opacity: 0.16; }
.review-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.review-stars svg { width: 18px; height: 18px; fill: var(--gold); }
.review-text { font-style: italic; font-size: 1.06rem; line-height: 1.75; color: var(--text); margin-bottom: 22px; max-width: 90%; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(140deg, var(--sapphire-2), var(--sapphire)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }
.review-author .name { display: block; font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; color: var(--sapphire); }
.review-author .role { font-size: 12.5px; color: var(--gold-deep); font-weight: 600; letter-spacing: 0.03em; }
@media (max-width: 600px) { .review-card { padding: 26px 24px; } .review-text { max-width: 100%; font-size: 1rem; } .review-qmark svg { width: 40px; } }

/* =========================================================
   31. SERVICE DETAIL MODAL
   ========================================================= */
.svc-detail { display: none; }
.svc-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 24px; }
.svc-modal.open { display: flex; }
.svc-modal-overlay { position: absolute; inset: 0; background: rgba(10,16,30,0.62); backdrop-filter: blur(4px); animation: svcFade 0.3s ease both; }
.svc-modal-panel { position: relative; z-index: 1; background: #fff; border-radius: var(--r-lg); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; padding: clamp(32px, 4vw, 52px); box-shadow: var(--shadow-lg); animation: svcModalIn 0.42s var(--ease) both; }
.svc-modal-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sapphire), var(--gold)); }
.svc-modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-cool); background: #fff; color: var(--sapphire); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--t), color var(--t); }
.svc-modal-close:hover { background: var(--sapphire); color: #fff; }
.svc-modal-body h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.95rem); color: var(--sapphire); line-height: 1.25; margin-bottom: 18px; padding-right: 34px; }
.svc-modal-body p { font-size: 1rem; line-height: 1.85; color: var(--text-2); }
.svc-modal-body ul { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; list-style: none; padding: 0; }
.svc-modal-body li { font-size: 1.02rem; line-height: 1.65; color: var(--text-2); display: flex; align-items: flex-start; gap: 12px; }
.svc-modal-body li::before { content: ''; display: block; width: 18px; height: 18px; background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23C9A24B" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M5 12l5 5L20 7"/></svg>') no-repeat center center; background-size: contain; flex-shrink: 0; margin-top: 4px; }
.svc-modal-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
@keyframes svcModalIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes svcFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 520px) { .svc-modal-cta .btn { width: 100%; } }

/* =========================================================
   32. RESPONSIVE VIDEO EMBED & DIVORCE PAGE STYLES
   ========================================================= */
.video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-cool); background: #000; margin: 32px 0; }
.video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.video-poster-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background-size: cover; background-position: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.3s ease; }
.video-poster-overlay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.75) 100%); transition: opacity 0.3s ease; }
.video-poster-overlay:hover::before { opacity: 0.85; }
.video-play-btn { position: relative; z-index: 3; width: 72px; height: 72px; background: #ff0000; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px rgba(255, 0, 0, 0.6); transition: transform 0.3s ease, background-color 0.3s ease; }
.video-poster-overlay:hover .video-play-btn { transform: scale(1.12); background: #cc0000; }
.video-play-btn svg { width: 32px; height: 32px; fill: #ffffff; margin-left: 4px; }
.video-poster-info { position: absolute; bottom: 20px; left: 24px; right: 24px; z-index: 3; color: #fff; text-align: left; }
.video-poster-info h4 { font-family: var(--font-sans); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; margin: 0 0 4px 0; text-shadow: 0 2px 6px rgba(0,0,0,0.8); color: #fff; }
.video-poster-info p { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin: 0; font-weight: 500; }
.video-caption { text-align: center; font-size: 0.92rem; color: var(--text-2); margin-top: -16px; margin-bottom: 32px; }
.video-caption a { color: var(--sapphire-2); font-weight: 600; text-decoration: underline; }
.video-caption a:hover { color: var(--gold-deep); }

/* the buttons' spacing used to be an inline style on the markup */
.page-hero .cs-hero-btns { margin-top: 24px; }

/* ---- Mobile: compact HOME hero — heading through both CTAs on the first screen ---- */
@media (max-width: 768px) {
    .hero { padding: 22px 0 34px; }
    .hero-inner { gap: 26px; }
    .hero h1 { font-size: clamp(1.42rem, 5.6vw, 1.78rem); line-height: 1.16; margin-bottom: 12px; }
    .hero-lead { font-size: 0.94rem; line-height: 1.55; margin-bottom: 16px; }
    /* centred block, left-aligned rows — a centred multi-line row reads ragged against its tick */
    .hero-points { gap: 9px; margin-bottom: 18px; text-align: left; max-width: none; }
    .hero-points li { font-size: 0.94rem; gap: 10px; align-items: flex-start; }
    .hero-points li .ck { margin-top: 1px; }
    .hero-points li .ck { width: 22px; height: 22px; }
    .hero-points li .ck svg { width: 12px; height: 12px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { padding: 12px 20px; font-size: 13px; }
    .hero-buttons .btn svg { width: 18px; height: 18px; }
    .hero-call-pill { gap: 10px; padding: 6px 20px 6px 6px; }
    .hero-call-pill .ic { width: 38px; height: 38px; }
    .hero-call-pill .ic svg { width: 18px; height: 18px; }
    .hero-social { margin-top: 14px; gap: 9px; }
    .hero-social a { width: 36px; height: 36px; }
    .hero-social a svg { width: 17px; height: 17px; }
}
/* short viewports get one more step down */
@media (max-width: 768px) and (max-height: 640px) {
    .hero { padding: 16px 0 26px; }
    .hero h1 { font-size: 1.32rem; margin-bottom: 10px; }
    .hero-lead { font-size: 0.88rem; line-height: 1.48; margin-bottom: 13px; }
    .hero-points { gap: 7px; margin-bottom: 14px; }
    .hero-points li { font-size: 0.88rem; }
}

/* ---- Mobile: compact hero so heading, video and both CTAs land on the first screen ---- */
@media (max-width: 768px) {
    .page-hero--compact { padding: 16px 0 20px; }
    /* breadcrumb + eyebrow cost ~75px of the fold and are absent from the reference layout */
    .page-hero--compact .breadcrumb,
    .page-hero--compact .eyebrow { display: none; }
    .page-hero--compact h1 { font-size: 1.55rem; line-height: 1.18; margin-bottom: 10px; }
    .page-hero--compact .page-hero-lead { font-size: 0.94rem; line-height: 1.5; }
    /* keep 16:9 but let a short screen cap the video instead of pushing the CTAs under the fold */
    .page-hero--compact .page-hero-media .video-container {
        height: auto; padding-bottom: 0; aspect-ratio: 16 / 9;
        width: min(100%, calc(30vh * 16 / 9));
        width: min(100%, calc(30dvh * 16 / 9));
        margin: 10px auto 12px;
    }
    .page-hero--compact .cs-hero-btns { margin-top: 12px; gap: 10px; }
    .page-hero--compact .cs-hero-btns .btn { padding: 12px 20px; font-size: 13px; }
    .page-hero--compact .cs-hero-btns .btn svg { width: 18px; height: 18px; }
    /* poster shows the title only — the second line collides with the play button once the box is small */
    .page-hero--compact .video-poster-info p { display: none; }
    .page-hero--compact .video-poster-info h4 { font-size: 0.95rem; }
    /* the floating bubble hides while the hero CTAs are on screen (toggled by the page script) */
    .float-whatsapp.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* short viewports (small phones, or a phone with browser chrome eating the fold) */
@media (max-width: 768px) and (max-height: 640px) {
    .page-hero--compact h1 { font-size: 1.35rem; }
    .page-hero--compact .page-hero-lead { font-size: 0.88rem; line-height: 1.45; }
    .page-hero--compact .page-hero-media .video-container {
        width: min(100%, calc(25vh * 16 / 9));
        width: min(100%, calc(25dvh * 16 / 9));
    }
    .page-hero--compact .cs-hero-btns .btn { padding: 10px 18px; }
    .page-hero--compact .video-poster-info h4 { font-size: 0.85rem; }
    .page-hero--compact .video-play-btn { width: 48px; height: 48px; }
    .page-hero--compact .video-play-btn svg { width: 22px; height: 22px; }
}

/* ---- Mobile: featured video sits inside the hero, straight under the H1 ---- */
.page-hero-media { display: none; }
body.video-in-hero .page-hero-media { display: block; }
body.video-in-hero .video-section { display: none; }
.page-hero-media .video-container { margin: 20px 0 24px; }

@media (max-width: 768px) {
    .page-hero-media .video-container { margin: 18px 0 22px; border-radius: var(--r); box-shadow: var(--shadow-md); }
    /* keep the poster title clear of the centred play button on narrow screens */
    .video-poster-info { top: 14px; bottom: auto; left: 16px; right: 16px; }
    .video-poster-info h4 { font-size: 1.02rem; line-height: 1.32; }
    .video-poster-info p { font-size: 0.8rem; }
    .video-poster-overlay::before { background: linear-gradient(180deg, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.15) 45%, rgba(15,23,42,0.5) 100%); }
    .video-play-btn { width: 58px; height: 58px; }
    .video-play-btn svg { width: 26px; height: 26px; }
    /* stacked CTAs with Call Now first, as on the live mobile page */
    .page-hero .cs-hero-btns { flex-direction: column; align-items: stretch; gap: 12px; }
    .page-hero .cs-hero-btns .btn { width: 100%; }
    .page-hero .cs-hero-btns .btn-sapphire { order: -1; }
    .video-caption { word-break: break-word; }
}

