/* ==========================================================================
   Albion Financial Advice — Public Design System
   Brand: Navy #06355B, Gold #D7AD3E
   Font: DM Sans (Google Fonts)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
    /* Brand colours */
    --navy:         #06355B;
    --navy-dark:    #042847;
    --navy-light:   #17679A;
    --gold:         #D7AD3E;
    --gold-light:   #F8C04F;
    --gold-dark:    #B8922F;

    /* Neutrals */
    --white:        #FFFFFF;
    --gray-50:      #F9FAFB;
    --gray-100:     #F3F4F6;
    --gray-200:     #E5E7EB;
    --gray-300:     #D1D5DB;
    --gray-400:     #9CA3AF;
    --gray-500:     #6B7280;
    --gray-600:     #4B5563;
    --gray-700:     #374151;
    --gray-800:     #1F2937;
    --gray-900:     #111827;
    --black:        #0A0A0A;

    /* Semantic */
    --success:      #10B981;
    --whatsapp:     #25D366;
    --danger:       #EF4444;

    /* Typography */
    --font:         'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --leading:      1.7;
    --leading-tight: 1.25;

    /* Spacing */
    --section-y:    80px;
    --section-y-sm: 56px;
    --gap:          24px;
    --radius:       16px;
    --radius-sm:    10px;
    --radius-pill:  60px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(6,53,91,0.06), 0 1px 2px rgba(6,53,91,0.04);
    --shadow:       0 4px 12px rgba(6,53,91,0.08), 0 2px 4px rgba(6,53,91,0.04);
    --shadow-md:    0 8px 24px rgba(6,53,91,0.10), 0 4px 8px rgba(6,53,91,0.05);
    --shadow-lg:    0 16px 48px rgba(6,53,91,0.12), 0 8px 16px rgba(6,53,91,0.06);

    /* Layout */
    --max-w:        1200px;
    --topbar-h:     44px;
    --header-h:     70px;
    --total-header:  calc(var(--topbar-h) + var(--header-h));

    /* Transitions */
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}


/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: var(--leading);
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--navy-light); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }
h5 { font-size: 1rem; margin-bottom: 10px; }
h6 { font-size: 0.875rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-600);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
th {
    font-weight: 600;
    color: var(--navy);
    background: var(--gray-50);
}

hr {
    border: none;
    height: 1px;
    background: var(--gray-200);
    margin: 32px 0;
}


/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-y) 0;
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 48px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 640px;
    margin: -32px auto 48px;
}


/* --------------------------------------------------------------------------
   5. Grid System
   -------------------------------------------------------------------------- */

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: var(--gap);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

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


/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97) translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(215,173,62,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(215,173,62,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-cta {
    background: var(--navy);
    color: var(--white);
}
.btn-cta:hover {
    background: var(--navy-dark);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}
.btn-whatsapp:hover {
    background: #1EBE57;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}


/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-flat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card-flat:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}


/* --------------------------------------------------------------------------
   8. Badges
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: var(--gray-100);
    color: var(--gray-600);
    letter-spacing: 0.02em;
}
.badge-gold {
    background: rgba(215,173,62,0.15);
    color: var(--gold-dark);
}
.badge-navy {
    background: rgba(6,53,91,0.1);
    color: var(--navy);
}


/* --------------------------------------------------------------------------
   9. Top Info Bar
   -------------------------------------------------------------------------- */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--topbar-h);
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

body.topbar-hidden .topbar {
    transform: translateY(-100%);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-left a,
.topbar-left span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.95);
    transition: color 0.2s;
    white-space: nowrap;
}
.topbar-left a:hover {
    color: var(--gold-light);
}
.topbar-left svg {
    opacity: 0.85;
    flex-shrink: 0;
}

.topbar-sep {
    color: rgba(255,255,255,0.2) !important;
    font-size: 0.7rem !important;
    margin: 0 4px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    padding: 5px 16px;
    font-size: 0.85rem;
    margin-right: 4px;
}

.topbar-trust-label {
    font-weight: 600;
    color: var(--gold) !important;
}

.topbar-trust-value {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500;
}

.topbar-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.topbar-right a:hover {
    color: var(--white);
}
.topbar-right a svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .topbar { display: none; }
    body.has-topbar { --topbar-h: 0px; --total-header: var(--header-h); }
}


/* --------------------------------------------------------------------------
   9b. Header / Main Navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: top 0.3s var(--ease), box-shadow 0.35s var(--ease);
}

/* When topbar hides on scroll, header moves to top */
body.topbar-hidden .site-header {
    top: 0;
    box-shadow: 0 2px 16px rgba(6,53,91,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.header-logo img {
    height: 48px;
    width: auto;
}

/* Desktop nav — always navy text on white background */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-nav a {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--navy);
    border-radius: var(--radius-sm);
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
    position: relative;
}
.header-nav a:hover {
    color: var(--gold-dark);
    background: var(--gray-50);
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}
.header-nav a:hover::after {
    transform: scaleX(1);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-dropdown-trigger svg {
    transition: transform 0.3s var(--ease);
    opacity: 0.5;
}
.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block !important;
    padding: 9px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--gray-700) !important;
    border-radius: 0 !important;
    transition: background 0.2s var(--ease), color 0.2s var(--ease) !important;
}
.nav-dropdown-item:hover {
    background: var(--gray-50) !important;
    color: var(--navy) !important;
}
.nav-dropdown-item::after {
    display: none !important;
}

.nav-dropdown-all {
    font-weight: 600 !important;
    color: var(--navy) !important;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
    padding-bottom: 10px !important;
}

.nav-dropdown-child {
    padding-left: 36px !important;
    font-size: 0.82rem !important;
    color: var(--gray-500) !important;
}
.nav-dropdown-child::before {
    content: '·';
    margin-right: 6px;
    color: var(--gray-400);
}

/* CTA button in header */
.header-cta .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}
.header-cta .btn svg {
    width: 16px;
    height: 16px;
}

/* Hamburger — always navy on white header */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    z-index: 1010;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1005;
}
.mobile-menu.open { display: block; }

.mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4,40,71,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--white);
    box-shadow: -8px 0 32px rgba(6,53,91,0.15);
    padding: 80px 24px 32px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
}
.mobile-menu.open .mobile-drawer {
    transform: translateX(0);
}

.mobile-drawer a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s;
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover { color: var(--navy); }

.mobile-drawer .btn {
    margin-top: 24px;
    width: 100%;
    text-align: center;
}

@media (max-width: 1024px) {
    .header-nav, .header-cta { display: none; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .site-header { top: 0; }
}


/* --------------------------------------------------------------------------
   10. Contact Bar (above footer)
   -------------------------------------------------------------------------- */

.contact-bar {
    background: var(--navy-dark);
    padding: 24px 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.contact-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.contact-bar-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}
.contact-bar-item a {
    color: inherit;
    transition: color 0.2s;
}
.contact-bar-item a:hover {
    color: var(--gold-light);
}

.contact-bar .btn-whatsapp {
    padding: 8px 20px;
    font-size: 0.85rem;
}
.contact-bar .btn-whatsapp svg {
    width: 18px;
    height: 18px;
    opacity: 1;
}

@media (max-width: 640px) {
    .contact-bar-inner {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        padding: 0 4px;
    }
}


/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover {
    color: var(--gold-light);
    transform: translateX(3px);
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
}
.footer-col p svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    opacity: 0.5;
}

.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}
.footer-contact-line svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
    margin-top: 3px;
}
.footer-contact-line a {
    display: inline;
    padding: 0;
}

/* Social row */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}
.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* FCA text */
.footer-fca {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-fca h4 {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.footer-fca p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 8px;
}
.footer-fca p:last-child {
    margin-bottom: 0;
}
.footer-fca a {
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-fca a:hover {
    color: var(--gold-light);
}

/* Copyright */
.footer-copy {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
    .site-footer { padding: 48px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* --------------------------------------------------------------------------
   12. Scroll Animations
   -------------------------------------------------------------------------- */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.fade-up-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.fade-up-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-up-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-up-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-up-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-up-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}


/* --------------------------------------------------------------------------
   13. Blog Post Content Typography
   -------------------------------------------------------------------------- */

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.post-content h2 {
    font-size: 1.6rem;
    margin-top: 48px;
    margin-bottom: 16px;
}
.post-content h3 {
    font-size: 1.3rem;
    margin-top: 36px;
    margin-bottom: 12px;
}
.post-content h4 {
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 10px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 28px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.post-content a {
    color: var(--navy-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-content a:hover {
    color: var(--gold);
}

.post-content img {
    border-radius: var(--radius-sm);
    margin: 28px 0;
    box-shadow: var(--shadow);
}

.post-content blockquote {
    font-size: 1.05rem;
}

.post-content table {
    font-size: 0.9rem;
}
.post-content table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--gray-900);
    color: var(--gray-200);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 24px 0;
}
.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content hr {
    margin: 40px 0;
}


/* --------------------------------------------------------------------------
   14. Utility Classes
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }

.bg-gray { background: var(--gray-50); }
.bg-navy { background: var(--navy); }
.bg-white { background: var(--white); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 48px; }

.d-flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }

/* Body offset for fixed header + topbar */
.has-header { padding-top: var(--header-h); }
.has-header.has-topbar { padding-top: var(--total-header); }


/* --------------------------------------------------------------------------
   15. Responsive Font Adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    :root {
        --section-y: 56px;
        --gap: 16px;
    }

    body { font-size: 15px; }

    .container { padding: 0 16px; }

    .section-title { margin-bottom: 32px; }
    .section-subtitle { margin: -20px auto 32px; font-size: 1rem; }

    .card { padding: 24px; }
    .card-flat { padding: 24px; }

    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .btn-lg { padding: 14px 32px; font-size: 1rem; }
}


/* ==========================================================================
   16. HOMEPAGE — Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--total-header));
    padding-top: var(--total-header);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0.85;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 24px 100px;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero trust badges */
.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.hero-trust-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hero-trust-badges {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}


/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}
.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
}
.scroll-dot {
    width: 4px;
    height: 12px;
    background: white;
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s var(--ease);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-outline-white:active {
    transform: scale(0.97) translateY(0);
}
.btn-outline-white.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .hero { min-height: 80vh; }
    .hero-inner { padding: 60px 16px 72px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn,
    .hero-actions .btn-outline-white { width: 100%; text-align: center; justify-content: center; }
    .btn-outline-white.btn-lg { padding: 14px 32px; font-size: 1rem; }
    .hero-scroll-indicator { bottom: 1rem; }
}


/* ==========================================================================
   17. HOMEPAGE — Trust Indicators
   ========================================================================== */

.trust-section {
    padding: 56px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.trust-item {
    padding: 24px 16px;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(215,173,62,0.1);
    color: var(--gold);
    margin-bottom: 16px;
}

.trust-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.88rem;
    color: var(--gray-500);
}

@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
    .trust-section { padding: 40px 0; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .trust-item { padding: 16px 8px; }
    .trust-number { font-size: 1.15rem; }
}


/* ==========================================================================
   18. HOMEPAGE — Service Cards
   ========================================================================== */

.service-card {
    text-align: center;
    padding: 36px 28px;
    position: relative;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6,53,91,0.06), rgba(6,53,91,0.12));
    color: var(--navy);
    margin-bottom: 20px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--navy);
}

.service-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-light);
    transition: color 0.2s var(--ease);
}
.service-card:hover .service-card-link {
    color: var(--gold-dark);
}


/* ==========================================================================
   19. HOMEPAGE — Why Albion
   ========================================================================== */

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-grid .section-title::after {
    left: 0;
    transform: none;
}

.why-lead {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(215,173,62,0.1);
    color: var(--gold);
}

.why-item strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 2px;
}

.why-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

.why-visual {
    display: flex;
    justify-content: center;
}

.why-stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 420px;
}

.why-stat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-stat:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.why-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.why-stat-label {
    font-size: 0.82rem;
    color: var(--gray-500);
}

@media (max-width: 1024px) {
    .why-grid { grid-template-columns: 1fr; gap: 48px; }
    .why-visual { justify-content: flex-start; }
    .why-stats-card { max-width: 100%; }
}

@media (max-width: 640px) {
    .why-stats-card { gap: 12px; }
    .why-stat { padding: 20px 12px; }
    .why-stat-number { font-size: 1.6rem; }
}


/* ==========================================================================
   20. HOMEPAGE — Media Section
   ========================================================================== */

.media-section {
    background: var(--gray-50);
}

.media-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.media-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.media-logo-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.media-outlet-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.media-logo-item:hover .media-outlet-name {
    color: var(--navy);
}


/* ==========================================================================
   21. HOMEPAGE — Blog Cards
   ========================================================================== */

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.blog-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-400);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body .badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-light);
    transition: color 0.2s;
}
.blog-card:hover .blog-card-link {
    color: var(--gold-dark);
}


/* ==========================================================================
   22. HOMEPAGE — Team Preview
   ========================================================================== */

.team-grid {
    text-align: center;
}

.team-card {
    padding: 16px;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--gray-200);
    transition: border-color 0.3s var(--ease);
}
.team-card:hover .team-photo {
    border-color: var(--gold);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-400);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.team-title {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
}


/* ==========================================================================
   22b. HOMEPAGE — Team Carousel
   ========================================================================== */

.team-carousel {
    position: relative;
    padding: 0 52px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 16px;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.team-card-link {
    flex: 0 0 auto;
    width: calc((100% - 72px) / 4);
    min-width: 250px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}
.team-card-link:hover {
    color: inherit;
}

.team-card-link .team-card {
    padding: 24px 16px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.team-card-link:hover .team-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.team-card-link .team-photo {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--gray-200);
    transition: border-color 0.3s var(--ease);
}
.team-card-link:hover .team-photo {
    border-color: var(--gold);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s var(--ease);
}
.carousel-arrow:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    box-shadow: var(--shadow-md);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Carousel scroll-in animation */
.carousel-reveal .team-card-link {
    opacity: 0;
    transform: translateY(28px) scale(0.95);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.carousel-reveal.visible .team-card-link {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.carousel-reveal.visible .team-card-link:nth-child(1) { transition-delay: 0.05s; }
.carousel-reveal.visible .team-card-link:nth-child(2) { transition-delay: 0.12s; }
.carousel-reveal.visible .team-card-link:nth-child(3) { transition-delay: 0.19s; }
.carousel-reveal.visible .team-card-link:nth-child(4) { transition-delay: 0.26s; }
.carousel-reveal.visible .team-card-link:nth-child(5) { transition-delay: 0.33s; }
.carousel-reveal.visible .team-card-link:nth-child(6) { transition-delay: 0.40s; }
.carousel-reveal.visible .team-card-link:nth-child(7) { transition-delay: 0.47s; }
.carousel-reveal.visible .team-card-link:nth-child(8) { transition-delay: 0.54s; }

@media (max-width: 1024px) {
    .team-card-link {
        width: calc((100% - 48px) / 3);
        min-width: 160px;
    }
    .team-carousel {
        padding: 0 44px;
    }
}

@media (max-width: 768px) {
    .team-carousel {
        padding: 0;
    }
    .carousel-arrow {
        display: none;
    }
    .carousel-track {
        padding: 8px 16px 16px;
        gap: 14px;
    }
    .team-card-link {
        width: 160px;
        min-width: 160px;
    }
    .team-card-link .team-photo {
        width: 130px;
        height: 130px;
    }
    .team-card-link .team-card {
        padding: 16px 12px;
    }
    .team-name {
        font-size: 0.88rem;
    }
    .team-title {
        font-size: 0.78rem;
    }
}


/* ==========================================================================
   23. HOMEPAGE — CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0a4a7a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(215,173,62,0.05);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: var(--white);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
}

.cta-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.cta-phone {
    margin-bottom: 32px;
}

.cta-phone a {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.cta-phone a:hover {
    color: var(--gold-light);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .cta-section { padding: 56px 0; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 320px; }
}


/* ==========================================================================
   24. PAGE HERO — Interior pages
   ========================================================================== */

.page-hero {
    position: relative;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, #0a4a7a 100%);
    overflow: hidden;
    margin-top: calc(-1 * var(--total-header));
    padding-top: var(--total-header);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-hero-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(215,173,62,0.05);
    top: -200px;
    right: -100px;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 56px 24px 48px;
    text-align: center;
}

.page-hero-title {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.page-hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .page-hero-inner { padding: 40px 16px 36px; }
}


/* ==========================================================================
   25. BREADCRUMB
   ========================================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb span {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}


/* ==========================================================================
   26. CONTENT AREA — Article/page content
   ========================================================================== */

.content-area {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.content-area h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}
.content-area h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}
.content-area h4 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 10px;
}

.content-area p {
    margin-bottom: 20px;
}

.content-area ul, .content-area ol {
    margin: 20px 0;
    padding-left: 28px;
}
.content-area ul { list-style: disc; }
.content-area ol { list-style: decimal; }
.content-area li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.content-area a {
    color: var(--navy-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.content-area a:hover {
    color: var(--gold);
}

.content-area img {
    border-radius: var(--radius-sm);
    margin: 28px 0;
    box-shadow: var(--shadow);
}

.content-area table {
    font-size: 0.9rem;
}
.content-area table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.empty-content {
    text-align: center;
    padding: 60px 0;
    color: var(--gray-400);
    font-style: italic;
}


/* ==========================================================================
   27. CONTACT PAGE
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-form-wrap h2 {
    margin-bottom: 8px;
}

.contact-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.95rem;
    color: var(--gray-800);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(23,103,154,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-info-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold);
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(6,53,91,0.06);
    color: var(--navy);
}

.contact-info-item strong {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.contact-info-item p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}
.contact-info-item p a {
    color: var(--gray-600);
    transition: color 0.2s;
}
.contact-info-item p a:hover {
    color: var(--navy-light);
}

.contact-whatsapp {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.contact-whatsapp .btn {
    width: 100%;
    justify-content: center;
}

/* Flash messages */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}
.flash-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: var(--danger);
}
.flash-success {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    color: var(--success);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-info-card {
        padding: 24px;
    }
}


/* ==========================================================================
   28. CONTACT THANKS PAGE
   ========================================================================== */

.thanks-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16,185,129,0.08);
    color: var(--success);
    margin-bottom: 28px;
}

.thanks-box h2 {
    margin-bottom: 12px;
}

.thanks-box p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.thanks-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    .thanks-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* ==========================================================================
   29. SERVICES PAGE — Link-wrapped cards
   ========================================================================== */

a.service-card-link-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
a.service-card-link-wrap:hover {
    color: inherit;
}


/* ==========================================================================
   30. SERVICE DETAIL — Sub-services
   ========================================================================== */

.service-children {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.service-children h2 {
    text-align: center;
    margin-bottom: 32px;
}

.service-child-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 28px;
}
.service-child-card:hover {
    color: inherit;
}
.service-child-card h4 {
    margin-bottom: 8px;
}
.service-child-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    flex: 1;
    margin-bottom: 12px;
}


/* ==========================================================================
   31. TEAM PAGE — Larger cards
   ========================================================================== */

.team-page-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 0;
    overflow: hidden;
}
.team-page-card:hover {
    color: inherit;
}

.team-page-photo {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--gray-100);
}
.team-page-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s var(--ease);
}
.team-page-card:hover .team-page-photo img {
    transform: scale(1.05);
}
.team-page-photo .team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-400);
}

.team-page-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-page-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-page-title {
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-page-bio {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}


/* ==========================================================================
   32. TEAM MEMBER PROFILE PAGE — Premium 3-column layout
   ========================================================================== */

/* --- Layout: sidebar (340px) + content (fluid) --- */
.member-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* --- Sidebar --- */
.member-sidebar {
    position: sticky;
    top: 120px;
}

.member-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(6,53,91,0.04);
    transition: box-shadow 0.4s var(--ease);
}
.member-card:hover {
    box-shadow: 0 8px 32px rgba(6,53,91,0.08);
}

/* Photo */
.member-card-photo {
    overflow: hidden;
    height: 340px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.member-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s var(--ease);
}
.member-card:hover .member-card-photo img {
    transform: scale(1.05);
}
.member-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

/* Name & Role */
.member-card-info {
    padding: 1.5rem 1.5rem 0.25rem;
    text-align: center;
}
.member-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: var(--leading-tight);
    margin-bottom: 4px;
}
.member-card-role {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* Qualifications section */
.member-card-section {
    padding: 1rem 1.5rem;
}
.member-card-section h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.member-card-section h4 svg {
    flex-shrink: 0;
    color: var(--gold);
}
.member-quals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Action Buttons */
.member-card-actions {
    padding: 0.5rem 1.5rem 1rem;
}
.member-btn-full {
    width: 100%;
    justify-content: center;
}
.member-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.member-btn-row .btn {
    justify-content: center;
    font-size: 0.82rem;
    padding: 10px 12px;
}

/* Contact details box */
.member-card-contact {
    background: var(--gray-50);
    border-radius: 12px;
    margin: 0 1rem 1rem;
    padding: 1rem;
    font-size: 0.85rem;
}
.member-card-contact div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}
.member-card-contact svg {
    flex-shrink: 0;
    color: var(--gray-400);
}
.member-card-contact a {
    color: var(--gray-500);
    transition: color 0.2s var(--ease);
    word-break: break-all;
}
.member-card-contact a:hover {
    color: var(--navy-light);
}

/* Social links */
.member-card-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 1.5rem 1.25rem;
}
.member-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    transition: all 0.3s var(--ease);
}
.member-social-link:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6,53,91,0.2);
}
.member-social-link svg {
    width: 18px;
    height: 18px;
}

/* --- Right Content Cards --- */
.member-content {
    min-width: 0;
}

.member-content-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(6,53,91,0.03);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.member-content-card:hover {
    box-shadow: 0 8px 32px rgba(6,53,91,0.06);
    transform: translateY(-2px);
}

/* Accent bar at top of card */
.member-content-card-accent {
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
}
.accent-navy  { background: var(--navy); }
.accent-gold  { background: var(--gold); }
.accent-green { background: var(--success); }

/* Card heading */
.member-content-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}
.member-content-card h3 svg {
    flex-shrink: 0;
    color: var(--navy);
}

/* Bio text */
.member-bio {
    max-width: none;
    color: var(--gray-600);
    line-height: 1.85;
    font-size: 1.05rem;
}
.member-bio p {
    margin-bottom: 1rem;
}
.member-bio p:last-child {
    margin-bottom: 0;
}
.member-bio ul, .member-bio ol {
    margin: 16px 0;
    padding-left: 24px;
}
.member-bio ul { list-style: disc; }
.member-bio ol { list-style: decimal; }
.member-bio li {
    margin-bottom: 6px;
}

/* CTA Card */
.member-cta-card {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    border: none;
    overflow: hidden;
}
.member-cta-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(215,173,62,0.08);
    pointer-events: none;
}
.member-cta-card:hover {
    box-shadow: 0 12px 40px rgba(6,53,91,0.25);
}
.member-cta-card-inner {
    position: relative;
    z-index: 1;
}
.member-cta-card h3 {
    color: var(--white);
}
.member-cta-card h3 svg {
    color: var(--gold);
}
.member-cta-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
    line-height: 1.7;
}
.member-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.member-cta-phone-btn {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}
.member-cta-phone-btn:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    box-shadow: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .member-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .member-sidebar {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }
    .member-card-photo {
        height: 280px;
    }
}

@media (max-width: 640px) {
    .member-card-photo {
        height: 240px;
    }
    .member-content-card {
        padding: 1.5rem;
    }
    .member-content-card h3 {
        font-size: 1.1rem;
    }
    .member-cta-buttons {
        flex-direction: column;
    }
    .member-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .member-btn-row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   33. MEDIA PAGE — Sidebar + 2-column grid
   ========================================================================== */

.media-layout {
    display: flex;
    gap: 2rem;
}

.media-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.media-sidebar-inner {
    position: sticky;
    top: calc(var(--total-header) + 24px);
}

.media-sidebar-inner h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.media-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.media-filter {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s var(--ease);
}
.media-filter:hover {
    border-color: var(--gold);
    color: var(--navy);
}
.media-filter.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.media-filter-logo {
    height: 22px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.media-filter.active .media-filter-logo {
    filter: brightness(0) invert(1);
}

.media-cta {
    margin-top: 1.5rem;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.media-cta h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 8px;
}
.media-cta p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 14px;
}
.media-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.media-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-content: start;
}

.media-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s var(--ease);
}
.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.media-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.media-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.media-card:hover .media-card-image img {
    transform: scale(1.04);
}

.media-card-body {
    padding: 20px 24px 24px;
}

.media-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.media-outlet-logo {
    height: 24px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.media-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 10px;
}

.media-quote {
    font-style: italic;
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.media-date {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.media-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-light);
    transition: color 0.2s;
}
.media-link:hover {
    color: var(--gold-dark);
}

/* Media page responsive */
@media (max-width: 1024px) {
    .media-layout {
        flex-direction: column;
    }
    .media-sidebar {
        width: 100%;
    }
    .media-sidebar-inner {
        position: static;
    }
    .media-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .media-filter {
        width: auto;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    .media-cta {
        display: none;
    }
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    .media-card-body {
        padding: 16px 20px 20px;
    }
    .media-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .media-filter {
        flex-shrink: 0;
        white-space: nowrap;
    }
}


/* ==========================================================================
   34. HERO STAT CARDS — Overlapping hero bottom
   ========================================================================== */

.hero-with-stats {
    padding-bottom: 0;
}

.hero-with-stats .hero-inner {
    padding-bottom: 60px;
}

.hero-stats-row {
    position: relative;
    z-index: 2;
    transform: translateY(50%);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--gold);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(6,53,91,0.18);
}

.hero-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(215,173,62,0.12);
    color: var(--gold);
    margin-bottom: 16px;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    /* No overlap — cards flow inside hero */
    .hero-stats-row {
        transform: none;
        position: static;
        padding: 0 16px 32px;
    }
    .hero-stats-row.container {
        max-width: 100%;
        padding: 0 16px 32px;
    }
    .hero-with-stats .hero-inner {
        padding-bottom: 24px;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: none;
    }
    .hero-stat-card {
        background: rgba(255,255,255,0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,0.15);
        border-top: 2px solid var(--gold);
        padding: 14px 10px;
        box-shadow: none;
    }
    .hero-stat-card:hover {
        transform: none;
        box-shadow: none;
    }
    .hero-stat-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
        border-radius: 10px;
        background: rgba(215,173,62,0.2);
    }
    .hero-stat-icon svg {
        width: 16px;
        height: 16px;
    }
    .hero-stat-number {
        font-size: 1.2rem;
        margin-bottom: 2px;
        color: var(--white);
    }
    .hero-stat-label {
        font-size: 0.7rem;
        line-height: 1.25;
        color: rgba(255,255,255,0.7);
    }
    /* No extra padding needed on next section */
    .trusted-section {
        padding-top: var(--section-y);
    }
}


/* ==========================================================================
   35. TRUSTED NAME SECTION
   ========================================================================== */

.trusted-section {
    padding-top: calc(var(--section-y) + 80px);
    /* Extra top padding to account for overlapping stat cards */
}

.trusted-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.trusted-grid .section-title {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.trusted-grid .section-title::after {
    left: 0;
    transform: none;
}

.trusted-lead {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.trusted-text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 28px;
}

.trusted-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.trusted-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
}

.trusted-check-item svg {
    flex-shrink: 0;
    color: var(--success);
}

.trusted-image {
    position: relative;
}

.trusted-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1024px) {
    .trusted-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .trusted-image {
        max-width: 500px;
    }
}

/* trusted-section mobile padding handled in hero-stats 768px block */


/* ==========================================================================
   36. TRUST CARDS — "Built on Trust" Section
   ========================================================================== */

.trust-card {
    text-align: center;
    padding: 36px 28px;
}

.trust-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(6,53,91,0.06);
    color: var(--navy);
    margin-bottom: 20px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.trust-card:hover .trust-card-icon {
    background: var(--gold);
    color: var(--navy);
}

.trust-card-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}


/* ==========================================================================
   37. SERVICES SIDEBAR LAYOUT
   ========================================================================== */

.services-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: flex-start;
}

/* Sidebar */
.services-sidebar {
    position: sticky;
    top: calc(var(--total-header) + 24px);
}

.sidebar-mobile-toggle {
    display: none;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.sidebar-nav {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-group {
    margin-bottom: 4px;
}
.sidebar-group:last-child {
    margin-bottom: 0;
}

.sidebar-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    line-height: 1.4;
}
.sidebar-link:hover {
    color: var(--navy);
    background: var(--gray-50);
    border-left-color: var(--gray-300);
}

.sidebar-link-parent {
    font-weight: 600;
    color: var(--navy);
}

.sidebar-link-child {
    font-weight: 400;
    font-size: 0.85rem;
    padding-left: 28px;
    color: var(--gray-500);
}

.sidebar-link.active {
    color: var(--navy);
    background: rgba(215,173,62,0.08);
    border-left-color: var(--gold);
    font-weight: 600;
}

.sidebar-link.parent-active {
    color: var(--navy);
    font-weight: 700;
}

.sidebar-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.sidebar-children-open,
.sidebar-group:has(.sidebar-link-parent.active) .sidebar-children,
.sidebar-group:has(.sidebar-link-parent.parent-active) .sidebar-children {
    max-height: 500px;
}

/* Content area within sidebar layout */
.services-content {
    min-width: 0;
}

.services-content .content-area {
    max-width: none;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .services-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 32px;
    }

    .sidebar-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 20px;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--navy);
        width: 100%;
        transition: border-color 0.2s var(--ease);
    }
    .sidebar-mobile-toggle:hover {
        border-color: var(--gold);
    }
    .sidebar-mobile-toggle span {
        flex: 1;
    }

    .sidebar-chevron {
        transition: transform 0.3s var(--ease);
    }
    .services-sidebar.sidebar-open .sidebar-chevron {
        transform: rotate(180deg);
    }

    .sidebar-nav {
        display: none;
        margin-top: 8px;
    }
    .services-sidebar.sidebar-open .sidebar-nav {
        display: block;
    }

    .sidebar-children,
    .sidebar-children-open {
        max-height: 500px;
    }
}

@media (min-width: 1025px) {
    .sidebar-mobile-toggle {
        display: none;
    }
    .sidebar-nav {
        display: block !important;
    }
}


/* ==========================================================================
   38. BLOG LAYOUT — Listing + Sidebar
   ========================================================================== */

.blog-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}
.blog-main {
    flex: 1;
    min-width: 0;
}
.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}
.blog-sidebar-inner {
    position: sticky;
    top: calc(var(--total-header) + 24px);
}

/* -- Featured Post Card (top of listing) -- */
.blog-featured-card {
    display: flex;
    flex-direction: row;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2rem;
}
.blog-featured-img {
    width: 420px;
    min-height: 280px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gray-100);
}
.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.blog-featured-card:hover .blog-featured-img img {
    transform: scale(1.05);
}
.blog-featured-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-featured-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* -- Blog Grid -- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* -- Pagination -- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
a.pagination-link:hover {
    color: var(--navy);
    border-color: var(--navy);
    background: rgba(6,53,91,0.04);
}
.pagination-link.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    font-weight: 600;
}
.pagination-dots {
    padding: 8px 4px;
    color: var(--gray-400);
    font-size: 0.9rem;
}


/* ==========================================================================
   39. BLOG SIDEBAR — Widgets
   ========================================================================== */

.blog-sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}
.blog-sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Search */
.blog-search {
    display: flex;
    gap: 8px;
}
.blog-search input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: border-color 0.2s var(--ease);
    outline: none;
    background: var(--white);
}
.blog-search input:focus {
    border-color: var(--navy);
}
.blog-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s var(--ease);
}
.blog-search button:hover {
    background: var(--navy-dark);
}

/* Categories list */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories li {
    margin-bottom: 2px;
}
.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--gray-600);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
.sidebar-cat-link:hover {
    color: var(--navy);
    background: var(--gray-50);
}
.sidebar-cat-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    min-width: 24px;
    text-align: center;
}

/* Recent posts */
.sidebar-recent {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-recent li {
    margin-bottom: 12px;
}
.sidebar-recent li:last-child {
    margin-bottom: 0;
}
.sidebar-recent-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}
.sidebar-recent-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.sidebar-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-recent-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}
.sidebar-recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-recent-item:hover .sidebar-recent-title {
    color: var(--navy-light);
}
.sidebar-recent-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 2px;
}

/* Tags cloud */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sidebar-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-pill);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
.sidebar-tag:hover {
    color: var(--navy);
    background: rgba(6,53,91,0.1);
}


/* ==========================================================================
   40. SINGLE POST — Article styles
   ========================================================================== */

/* Hero meta */
.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.post-hero-date,
.post-hero-author {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
}
.post-hero-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin-right: 8px;
    vertical-align: middle;
}
.post-hero-meta .badge {
    font-size: 0.7rem;
}

/* Featured image below hero */
.post-featured-image-section {
    margin-top: -40px;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}
.post-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Post article area */
.post-article {
    max-width: 780px;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2.5rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.post-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-pill);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
.post-tag:hover {
    color: var(--navy);
    background: rgba(6,53,91,0.1);
}

/* Share buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2rem 0;
}
.post-share-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-500);
}
.post-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.post-share-facebook {
    background: #1877f2;
    color: var(--white);
}
.post-share-linkedin {
    background: #0a66c2;
    color: var(--white);
}
.post-share-twitter {
    background: var(--gray-800);
    color: var(--white);
}
.post-share-whatsapp {
    background: #25D366;
    color: var(--white);
}

/* Author card */
.post-author-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin: 2rem 0;
    align-items: center;
}
.post-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}
.post-author-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 4px;
}
.post-author-bio {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Related posts */
.post-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.post-related-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}


/* ==========================================================================
   41. SEARCH PAGE
   ========================================================================== */

.search-page {
    max-width: 800px;
    margin: 0 auto;
}

.search-form-big {
    display: flex;
    gap: 12px;
    margin-bottom: 2.5rem;
}
.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}
.search-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s var(--ease);
    outline: none;
}
.search-input-wrap input:focus {
    border-color: var(--navy);
}

.search-results {
    margin-top: 1rem;
}
.search-result {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.search-result:last-child {
    border-bottom: none;
}
.search-result-type {
    margin-bottom: 8px;
}
.search-result-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.search-result-title a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}
.search-result-title a:hover {
    color: var(--navy-light);
}
.search-result-snippet {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.search-result-snippet b {
    color: var(--navy);
    font-weight: 600;
}


/* ==========================================================================
   42. BLOG — Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
        order: 2;
    }
    .blog-sidebar-inner {
        position: static;
    }
    .blog-featured-card {
        flex-direction: column;
    }
    .blog-featured-img {
        width: 100%;
        min-height: 220px;
        max-height: 320px;
    }
    .related-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .related-posts {
        grid-template-columns: 1fr;
    }
    .blog-featured-body {
        padding: 20px;
    }
    .blog-featured-title {
        font-size: 1.2rem;
    }
    .post-author-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    .post-share {
        flex-wrap: wrap;
    }
    .search-form-big {
        flex-direction: column;
    }
}


/* ==========================================================================
   40. CALCULATORS
   ========================================================================== */

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.calc-form,
.calc-results {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.calc-form h2,
.calc-results h2 {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

/* Input groups */
.calc-group {
    margin-bottom: 1.25rem;
}

.calc-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 6px;
    font-weight: 500;
}

.calc-group input,
.calc-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    background: var(--white);
    color: var(--gray-800);
}

.calc-group input:focus,
.calc-group select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(215,173,62,0.15);
}

.calc-group input::placeholder {
    color: var(--gray-400);
}

.calc-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-group .calc-hint {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Inline computed field */
.calc-computed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-200);
}

.calc-computed-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.calc-computed-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

/* Result items */
.calc-result-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: transform 0.2s var(--ease);
}

.calc-result-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.calc-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    transition: opacity 0.15s;
}

/* Primary result highlight */
.calc-result-highlight {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0a4a7a 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.calc-result-highlight::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(215,173,62,0.08);
}

.calc-result-highlight .calc-result-label {
    color: rgba(255,255,255,0.7);
}

.calc-result-highlight .calc-result-value {
    color: var(--gold);
    font-size: 2rem;
}

/* Stamp duty / comparison table */
.calc-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.calc-table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}

.calc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.calc-table tr:last-child td {
    font-weight: 700;
    background: var(--gray-50);
    color: var(--navy);
    border-bottom: none;
}

.calc-table tr:nth-child(even) td {
    background: var(--gray-50);
}

.calc-table tr:last-child td {
    background: rgba(215,173,62,0.08);
}

/* Checkbox / Radio in calcs */
.calc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    cursor: pointer;
}

.calc-check input[type="checkbox"],
.calc-check input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
}

.calc-check label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.calc-radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.calc-radio-group .calc-check {
    margin: 0;
}

/* LTV badge */
.calc-ltv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.calc-ltv-badge.ltv-green {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.calc-ltv-badge.ltv-amber {
    background: rgba(245,158,11,0.1);
    color: #D97706;
}

.calc-ltv-badge.ltv-red {
    background: rgba(239,68,68,0.1);
    color: #DC2626;
}

/* Feasibility indicator */
.calc-feasibility {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.calc-feasibility.feasible {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.calc-feasibility.not-feasible {
    background: rgba(239,68,68,0.08);
    color: #DC2626;
}

.calc-feasibility-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feasible .calc-feasibility-icon {
    background: rgba(16,185,129,0.15);
}

.not-feasible .calc-feasibility-icon {
    background: rgba(239,68,68,0.12);
}

/* Scheme cards */
.calc-schemes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.calc-scheme-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--gray-200);
}

.calc-scheme-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.calc-scheme-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Print button */
.calc-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    float: right;
    margin-top: -3rem;
    margin-bottom: 1rem;
}

.calc-print-btn:hover {
    background: var(--gray-200);
    color: var(--navy);
}

/* CTA section */
.calc-cta {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid var(--gray-200);
}

.calc-cta h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.calc-cta p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.calc-cta .btn {
    margin: 0 8px 10px;
}

/* SEO info section */
.calc-info {
    max-width: 800px;
    margin: 3rem auto 0;
}

.calc-info h2 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.calc-info h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.calc-info p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.calc-info ul {
    margin: 0 0 1rem 1.5rem;
    list-style: disc;
}

.calc-info ul li {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

/* Results empty / placeholder */
.calc-results-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--gray-400);
}

.calc-results-empty svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.calc-results-empty p {
    font-size: 0.9rem;
}

/* Print styles */
@media print {
    .site-header,
    .topbar,
    .contact-bar,
    .site-footer,
    .calc-cta,
    .calc-info,
    .breadcrumb,
    .calc-print-btn,
    .page-hero-bg,
    .page-hero-shape,
    .mobile-menu { display: none !important; }

    .page-hero { background: var(--navy) !important; }
    .calc-layout { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .calc-form, .calc-results { box-shadow: none !important; border: 1px solid #ccc !important; }
    .section { padding: 1rem 0 !important; }
    body { font-size: 12pt; }
}

@media (max-width: 768px) {
    .calc-layout { grid-template-columns: 1fr; }
    .calc-group-row { grid-template-columns: 1fr; }
    .calc-result-highlight .calc-result-value { font-size: 1.5rem; }
    .calc-print-btn { float: none; margin-top: 0; margin-bottom: 1rem; }
    .calc-schemes { grid-template-columns: 1fr; }
    .calc-radio-group { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .calc-form, .calc-results { padding: 1.25rem; }
    .calc-cta { padding: 1.5rem; }
    .calc-cta .btn { display: block; margin: 0 0 10px; }
}
