@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,500&display=swap');

:root {
    --bg-base: #f0f4f8;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --primary: #0f2c59;
    --primary-hover: #1e40af;
    --saffron: #f97316;
    --saffron-hover: #ea580c;
    --green: #16a34a;
    --border-color: #d1d5db;
    --border-strong: #9ca3af;
    --radius-sm: 4px;
    --radius-md: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --font-heading: 'Noto Sans', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-base); color: var(--text-main); overflow-x: hidden; }
body { font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary); }
/* Headings inside DARK hero sections should be white — NOT the homepage .hero (white bg) */
.page-hero h1, .page-hero h2,
.service-hero h1, .service-hero h2,
.cat-hero h1, .cat-hero h2,
.category-hero h1, .category-hero h2,
section[style*="background: #0a2463"] h1, section[style*="background: #0a2463"] h2 { color: #fff; }
h1 { font-size: clamp(24px, 5vw, 36px); }
h2 { font-size: clamp(22px, 4vw, 28px); margin-bottom: 24px; position: relative; padding-bottom: 12px; }
h2::after { content:''; position:absolute; bottom:0; left:0; width:60px; height:3px; background:var(--saffron); }
.text-center h2::after { left:50%; transform:translateX(-50%); }
h3 { font-size: 18px; margin-bottom: 12px; }

/* --- GOVT TOP BAR --- */
.top-bar { background: #111827; color: #d1d5db; font-size: 12px; padding: 6px 0; border-bottom: 3px solid var(--saffron); overflow: hidden; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; overflow: hidden; }
.top-links { display: flex; gap: 16px; flex-wrap: wrap; }
.top-links a { color: #d1d5db; text-decoration: none; white-space: nowrap; }
.top-links a:hover { color: #fff; }

/* --- NAV HEADER --- */
header.main-header {
    background: #fff; padding: 12px 0; border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; gap: 0; }
.header-quote-cta { flex-shrink: 0; margin-left: 16px; padding: 7px 18px !important; font-size: 12px !important; white-space: nowrap; cursor: pointer; }

.logo-area { display: flex; align-items: center; gap: 0; text-decoration: none; }
.logo-icon { display: none; }
.logo-text h2 { font-size: 20px; margin: 0; padding: 0; color: var(--primary); font-weight: 700; letter-spacing: 1px; line-height: 1.1; white-space: nowrap; }
.logo-text h2::after { display: none; }
.logo-text h2 .firm-name { font-family: var(--font-heading); font-weight: 800; color: #1a1a2e; letter-spacing: 2px; }
.logo-text h2 .firm-and-co { font-style: italic; font-weight: 400; color: var(--saffron); margin: 0 3px; font-size: 0.9em; }
.logo-text h2 .firm-llp { font-weight: 600; color: #1a1a2e; font-size: 0.75em; margin-left: 3px; letter-spacing: 1px; vertical-align: middle; }
.logo-text p { font-size: 9.5px; color: #8a9bb0; text-transform: uppercase; letter-spacing: 3.5px; margin: 3px 0 0; font-weight: 400; font-family: var(--font-body); white-space: nowrap; }

.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; text-decoration: none; transition: 0.2s; font-size: 14px; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom: 2px solid var(--saffron); }

/* ── Desktop Mega Nav ── */
.mega-nav { display: flex; align-items: center; gap: 0; }
.mega-nav-link { color: var(--text-muted); font-weight: 500; text-decoration: none; font-size: 14px; padding: 8px 12px; transition: 0.2s; white-space: nowrap; }
.mega-nav-link:hover, .mega-nav-link.active { color: var(--primary); }
.mega-nav-item { position: relative; }
.mega-nav-trigger { color: var(--text-muted); font-weight: 600; text-decoration: none; font-size: 13px; padding: 8px 12px; cursor: pointer; transition: 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 4px; background: none; border: none; font-family: var(--font-body); }
.mega-nav-trigger::after { content: '▾'; font-size: 10px; opacity: 0.5; transition: 0.2s; }
.mega-nav-item:hover .mega-nav-trigger { color: var(--primary); }
.mega-nav-item:hover .mega-nav-trigger::after { transform: rotate(180deg); opacity: 1; }

/* Single-column dropdown — centered under trigger */
.mega-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.13); padding: 16px;
    min-width: 220px; max-width: min(320px, calc(100vw - 24px)); z-index: 999;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.mega-nav-item:hover .mega-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Grouped (multi-column) dropdown — absolute under trigger, JS shifts left if overflow */
.mega-dropdown--grouped {
    position: absolute; top: 100%;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 230px));
    gap: 0 20px; width: max-content;
    max-width: min(860px, calc(100vw - 24px));
    padding: 20px 24px 16px;
    left: 0; transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.mega-nav-item:hover .mega-dropdown--grouped {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
}

.mega-group { margin-bottom: 12px; }
.mega-group-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--saffron); padding: 0 0 6px 0; margin-bottom: 4px;
    border-bottom: 1px solid #f0e4d0;
}
.mega-dropdown a {
    display: block; padding: 5px 8px; color: var(--text-muted); text-decoration: none;
    font-size: 12.5px; transition: 0.15s; border-radius: 4px;
}
.mega-dropdown a:hover { background: #f0f4ff; color: var(--primary); padding-left: 12px; }

/* ── Hamburger — hidden on desktop, shown on mobile ── */
.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    padding: 10px; background: none; border: none; z-index: 10;
    transition: 0.3s;
}
.hamburger:hover { opacity: 0.7; }
.hamburger span {
    display: block; width: 26px; height: 2.5px; background: var(--primary);
    border-radius: 2px; transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Slide-out Side Panel (mobile) ── */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100%;
    z-index: 9999; transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}
.mobile-nav.open { right: 0; }
.mobile-nav-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 44, 89, 0.45); backdrop-filter: blur(2px);
}
.mobile-nav-content {
    position: absolute; top: 0; right: 0;
    background: #fff; width: 360px; max-width: 88vw; height: 100%;
    padding: 28px 24px; box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    overflow-y: auto; display: flex; flex-direction: column;
}
.mobile-nav-close {
    background: none; border: none; font-size: 28px; cursor: pointer;
    color: var(--primary); align-self: flex-end; margin-bottom: 12px;
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%; transition: 0.2s;
}
.mobile-nav-close:hover { background: #f0f4ff; }
.mobile-nav-content > a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 0; color: var(--text-main); text-decoration: none;
    font-weight: 500; font-size: 15px; border-bottom: 1px solid #f3f4f6;
    transition: 0.2s;
}
.mobile-nav-content > a:hover { color: var(--saffron); padding-left: 8px; }
.mobile-menu-group { margin: 0; border-bottom: 1px solid #f3f4f6; }
.mobile-menu-group summary {
    font-weight: 600; color: var(--primary); font-size: 15px;
    padding: 13px 0; cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    transition: 0.2s;
}
.mobile-menu-group summary:hover { color: var(--saffron); }
.mobile-menu-group summary::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--text-muted); transition: 0.2s; }
.mobile-menu-group[open] summary::after { content: '−'; color: var(--saffron); }
.mobile-menu-group .sub-group-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--saffron); padding: 8px 0 4px 16px; margin: 0;
}
.mobile-menu-group a {
    display: block; padding: 8px 0 8px 16px;
    font-size: 13.5px; font-weight: 400; color: var(--text-muted);
    text-decoration: none; transition: 0.15s; border-bottom: none;
}
.mobile-menu-group a:hover { color: var(--primary); padding-left: 24px; }
.mobile-nav-cta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-color); }
.mobile-nav-cta .btn { display: block; width: 100%; text-align: center; padding: 12px; font-size: 14px; font-weight: 700; border-radius: 8px; }
.mobile-nav-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid #f3f4f6; display: flex; flex-wrap: wrap; gap: 0; }
.mobile-nav-footer a { font-size: 11px; color: var(--text-muted); text-decoration: none; padding: 4px 0; border-bottom: none; }
.mobile-nav-footer a:hover { color: var(--primary); }
.mobile-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--saffron); padding: 10px 0 4px 16px; }

/* --- UTILS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.text-center { text-align: center; }
.card { background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); padding: 24px; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; font-weight: 600; font-size: 14px;
    border-radius: var(--radius-sm); text-decoration: none; transition: 0.2s; cursor: pointer; border: 1px solid transparent; text-transform: uppercase;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-md); }
.btn-saffron { background: var(--saffron); color: #fff; }
.btn-saffron:hover { background: var(--saffron-hover); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: #f3f4f6; }

/* --- HERO --- */
.hero { background: #fff; border-bottom: 1px solid var(--border-color); padding: 32px 0; position: relative; overflow: hidden; }
.hero-content { max-width: 700px; }
.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

/* Stats Bar */
.stats-bar { background: var(--primary); color: #fff; padding: 16px 0; border-bottom: 4px solid var(--saffron); overflow: hidden; }

/* Stats grid — minmax(0,1fr) prevents grid items from overflowing */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); text-align: center; gap: 16px; }
.stat-val { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--saffron); }
.stat-lbl { font-size: 11px; text-transform: uppercase; }

/* Hero CTA row — stacks to column on mobile */
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }


/* Layout Split */
.layout-split { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }

/* --- TIMELINE --- */
.process-steps { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 40px; position: relative; }
.process-steps::before {
    content:''; position: absolute; top: 24px; left: 40px; right: 40px; height: 2px;
    background: var(--border-color); z-index: 1;
}
.step-item { text-align: center; position: relative; z-index: 2; flex: 1; }
.step-circle {
    width: 48px; height: 48px; background: #fff; border: 2px solid var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--primary); margin: 0 auto 12px; font-size: 18px;
}
.step-item.active .step-circle { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.step-item h4 { font-size: 13px; margin-bottom: 4px; }

/* --- NOTICE BOARD --- */
.notice-board { background: #fff; border: 1px solid #fecaca; border-top: 3px solid #ef4444; padding: 16px; }
.notice-item { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--border-color); font-size: 13px; }
.notice-item:last-child { border: none; margin: 0; padding: 0; }
.notice-date { display: inline-block; background: #fee2e2; color: #b91c1c; padding: 2px 6px; font-weight: 600; border-radius: 4px; margin-right: 8px; }

/* --- CONSULTATION CARDS --- */
.consult-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; margin-top: 8px; }
.consult-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 32px 28px; transition: 0.3s; position: relative;
}
.consult-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.consult-badge {
    display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--primary); background: #eef2f7;
    padding: 6px 14px; border-radius: 4px; border: 1px solid #d1dae5; margin-bottom: 16px;
}
.consult-title {
    font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 16px;
    font-family: var(--font-heading); padding: 0;
}
.consult-title::after { display: none; }
.consult-divider {
    border-top: 2px dashed #d1d5db; margin-bottom: 20px;
}
.consult-quote {
    width: 100%; padding: 12px 24px; font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px; margin-bottom: 24px; border-radius: 6px;
}
.consult-list {
    list-style: none; padding: 0; margin: 0 0 20px;
}
.consult-list li {
    font-size: 14px; color: var(--text-main); padding: 8px 0;
    border-bottom: 1px solid #f3f4f6; position: relative; padding-left: 18px;
}
.consult-list li:last-child { border-bottom: none; }
.consult-list li::before {
    content: '›'; position: absolute; left: 0; color: var(--text-muted);
    font-size: 16px; font-weight: 600;
}
.consult-tc {
    font-size: 12px; color: #9ca3af; text-align: right; margin: 0; font-style: italic;
}

/* --- GOV TABLE --- */
.compare-container { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow-x: auto; margin-top: 24px; }
table.gov-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.gov-table th, .gov-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 13px; }
.gov-table th { background: var(--primary); color: #fff; font-weight: 600; text-transform: uppercase; font-size: 12px; white-space: nowrap; }
.gov-table tr:hover { background: #f9fafb; }

/* --- FORM --- */
.gov-form { background: #fff; border: 1px solid var(--border-color); border-top: 4px solid var(--primary); padding: 24px; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--text-main); margin-bottom: 6px; font-size: 13px; }
.form-group input, .form-group select {
    width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body);
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(15, 44, 89, 0.2); }
.form-step { display: none; }
.form-step.active { display: block; }

/* --- LEGAL PAGE --- */
.legal-content h3 { margin-top: 28px; color: var(--text-main); font-size: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.legal-content p, .legal-content ul { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; }

/* --- REVIEWS --- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.review-card { background: #fff; padding: 24px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); border-top: 3px solid var(--saffron); box-shadow: var(--shadow-sm); }
.stars { color: #f59e0b; font-size: 18px; margin-bottom: 12px; }
.review-text { font-size: 14px; color: var(--text-muted); font-style: italic; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border-color); padding-top: 16px; }
.author-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-base); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--primary); flex-shrink: 0; }

/* --- BLOG --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.post-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-img { height: 160px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; }
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: 12px; color: var(--saffron); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.post-title { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.post-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; flex: 1; }
.post-link { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; border-top: 1px solid var(--border-color); padding-top: 12px; margin-top: auto; display: block; }

/* --- ABOUT VALUES --- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
    text-align: center; padding: 28px 20px; border-radius: 8px;
    border: 1px solid #e5e7eb; transition: 0.3s;
}
.value-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-2px); }
.value-icon { font-size: 32px; margin-bottom: 12px; }
.value-card h4 { font-size: 16px; color: var(--primary); margin-bottom: 8px; padding: 0; }
.value-card h4::after { display: none; }
.value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* --- USEFUL LINKS --- */
.useful-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.useful-link {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
    text-decoration: none; color: var(--text-main); transition: 0.2s;
}
.useful-link:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-1px); }
.useful-link-icon { font-size: 24px; flex-shrink: 0; }
.useful-link strong { font-size: 14px; color: var(--primary); }
.useful-link small { font-size: 11px; color: var(--text-muted); }

/* --- FOOTER --- */
footer { background: #111827; color: #d1d5db; border-top: 5px solid var(--saffron); padding: 48px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; border-bottom: 1px solid #374151; padding-bottom: 32px; }
.footer-title { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: #9ca3af; text-decoration: none; font-size: 13px; margin-bottom: 8px; display: block; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { padding: 20px 0; border-bottom: 1px solid #374151; }
.footer-disclaimer p { font-size: 11px; color: #6b7280; line-height: 1.6; }
.footer-bot { text-align: center; padding-top: 24px; font-size: 12px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; margin-bottom: 16px; }
.footer-grid a.social-icon {
    width: 36px; height: 36px; border-radius: 50%; background: #374151;
    display: inline-flex; align-items: center; justify-content: center;
    color: #d1d5db; font-size: 12px; font-weight: 700; text-decoration: none; transition: 0.2s;
    margin-bottom: 0; padding: 0;
}
.footer-grid a.social-icon:hover { background: var(--saffron); color: #fff; transform: translateY(-2px); }

/* --- TEXTAREA --- */
.form-group textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body); resize: vertical;
}
.form-group textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(15, 44, 89, 0.2); }

/* --- QUOTE MODAL --- */
.quote-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    z-index: 10000; align-items: center; justify-content: center; padding: 24px;
}
.quote-modal-overlay.open { display: flex; }
.quote-modal {
    background: #fff; border-radius: 8px; width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto; position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.quote-modal-close {
    position: absolute; top: 12px; right: 16px; background: none; border: none;
    font-size: 28px; cursor: pointer; color: #9ca3af; transition: 0.2s; line-height: 1; z-index: 1;
}
.quote-modal-close:hover { color: #ef4444; }
.quote-modal-header {
    padding: 28px 28px 0; border-bottom: none;
}
.quote-modal-header h3 {
    font-size: 20px; margin-bottom: 4px; color: var(--primary); padding: 0;
}
.quote-modal-header h3::after { display: none; }
.quote-modal-header p {
    font-size: 13px; color: var(--saffron); font-weight: 600;
    background: #fff7ed; display: inline-block; padding: 4px 10px; border-radius: 4px; margin-top: 8px;
}
.quote-modal form { padding: 20px 28px 28px; }
.quote-modal .form-group { margin-bottom: 16px; }
.quote-modal .form-group label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-main); font-weight: 600; margin-bottom: 6px; display: block; }
.quote-modal .form-group input,
.quote-modal .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body); transition: 0.2s;
}
.quote-modal .form-group input:focus,
.quote-modal .form-group textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1); }
.quote-success { text-align: center; padding: 48px 28px; }

/* ===== RESPONSIVE ===== */

/* 1400px — hide desktop CTA so nav has room */
@media(max-width:1400px) {
    .btn-saffron.header-cta { display:none; }
}

/* 1200px — shrink nav + logo */
@media(max-width:1200px) {
    .mega-nav-trigger { font-size:11.5px; padding:6px 7px; }
    .mega-nav-link   { font-size:11.5px; padding:6px 7px; }
    .logo-text h2    { font-size:19px; }
    .logo-text p     { font-size:9px; letter-spacing:2.5px; }
}

/* 1100px — switch to hamburger */
@media(max-width:1100px) {
    .mega-nav { display:none !important; }
    .hamburger { display:flex; }
}


/* 1024px — tablet grid adjustments */
@media(max-width:1024px) {
    /* Homepage */
    .layout-split        { grid-template-columns:1fr; }
    .footer-grid         { grid-template-columns:1fr 1fr; gap:24px; }
    .consult-grid        { grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:20px; }
    .values-grid         { grid-template-columns:repeat(2,1fr); }
    .useful-links-grid   { grid-template-columns:repeat(2,1fr); }
    .review-grid         { padding:0 8px; }
    /* Service page */
    .layout-service      { grid-template-columns:1fr !important; }
    .service-form-card   { position:static !important; top:auto !important; }
    /* Category pages */
    .services-grid       { grid-template-columns:repeat(2, 1fr); }
    .why-grid            { grid-template-columns:repeat(3,1fr); }
}

/* ======= 768px MOBILE ======= */
@media(max-width:768px) {

    /* ---- Base ---- */
    .container  { padding:0 16px; }
    .section    { padding:32px 0; }
    .hero       { padding:16px 0; }
    .card       { padding:16px; }

    /* ---- Top bar ---- */
    .top-bar .container { font-size:10px; flex-direction:column; gap:4px; align-items:flex-start; }
    .top-links  { display:none; }

    /* ---- Navigation ---- */
    header.main-header { padding:8px 0; }
    header.main-header { padding:8px 0; }
    .header-container  { padding:0 16px; }

    /* ---- Logo ---- */
    .logo-text h2 { font-size:17px; letter-spacing:0.5px; }
    .logo-text p  { font-size:8px; letter-spacing:2px; }

    /* ---- Typography ---- */
    h1 { font-size:clamp(20px,6vw,28px); }
    h2 { font-size:clamp(18px,5vw,24px); margin-bottom:16px; }
    h3 { font-size:16px; }

    /* ---- Buttons ---- */
    .btn { padding:12px 20px; font-size:13px; }
    /* Hero CTAs stack on mobile */
    .hero-cta-row { flex-direction:column; gap:10px; width:100%; }
    .hero-cta-row .btn,
    .hero-cta-row button { width:100%; text-align:center; justify-content:center; flex:none !important; }
    .hero-actions, .cta-btns {
        flex-direction:column; gap:12px; width:100%;
    }
    .hero-actions .btn-saffron,
    .hero-actions a,
    .cta-btns .btn-saffron,
    .cta-btns a {
        width:100%; text-align:center; justify-content:center; box-sizing:border-box;
    }

    /* ---- Stats bar ---- */
    .stats-bar     { padding:12px 0; }
    .stats-grid    { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .stat-val      { font-size:clamp(18px,5vw,24px); }
    .stat-lbl      { font-size:9px; }

    /* ======= HOMEPAGE HERO ======= */
    .hero { text-align:center; }
    .hero-content { max-width:100%; }
    .hero .hero-actions { align-items:center; }

    /* ======= CATEGORY PAGES ======= */
    /* Hero */
    .cat-hero       { padding:40px 0 32px; }
    .cat-hero h1    { font-size:clamp(22px,6vw,32px); }
    .cat-hero p     { font-size:15px; margin-bottom:24px; }
    .hero-stats     { gap:20px; margin-top:28px; }
    .hero-stat .num { font-size:22px; }
    .hero-stat .lbl { font-size:10px; }

    /* Service cards */
    .services-grid  { grid-template-columns:1fr; gap:12px; }
    .svc-card       { padding:16px 18px; }
    .svc-card h3    { font-size:13px; }

    /* Group label */
    .group-section  { margin-bottom:36px; }
    .group-title    { font-size:20px; }

    /* Why grid */
    .why-section    { padding:40px 0; }
    .why-grid       { grid-template-columns:repeat(2,1fr); gap:14px; }
    .why-card       { padding:18px; }
    .why-icon       { font-size:28px; }
    .why-card h3    { font-size:13px; }
    .why-card p     { font-size:12px; }

    /* CTA section */
    .cta-section    { padding:40px 0; }
    .cta-section h2 { font-size:22px; }

    /* ======= SERVICE DETAIL PAGE ======= */
    .service-hero   { padding:40px 0 32px; }
    .service-hero h1 { font-size:clamp(22px,6vw,32px); }
    .service-hero p  { font-size:15px; }
    .service-breadcrumb { font-size:12px; }

    /* Stack the 2-column layout */
    .layout-service { display:block !important; }
    .service-content { padding:24px 0; }
    .service-form-card { position:static !important; top:auto; margin-top:24px; }

    /* Process steps */
    .process-steps { flex-direction:column; align-items:center; gap:20px; }
    .process-steps::before { display:none; }
    .process-step { width:100%; max-width:280px; display:flex; align-items:center; gap:16px; text-align:left; }
    .process-step:not(:last-child)::after { display:none; }
    .step-num { margin:0; flex-shrink:0; }
    .step-label { font-size:14px; }

    /* Doc list */
    .doc-list li { font-size:13px; }

    /* Feature chips */
    .feature-list { flex-direction:column; gap:8px; }
    .feature-chip { font-size:12px; }

    /* Sticky form → plain card */
    .service-form-card { border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,0.08); }

    /* ======= FORMS ======= */
    .form-grid { grid-template-columns:1fr; gap:12px; }
    .form-group { margin-bottom:14px; }
    /* 16px minimum prevents iOS auto zoom */
    .form-group input,
    .form-group select,
    .form-group textarea { padding:14px 12px; font-size:16px; border-radius:6px; }
    .form-group label   { font-size:13px; margin-bottom:6px; }
    .gov-form { padding:16px; }

    /* ======= HOMEPAGE PROCESS ======= */
    /* (index.html uses .step-item not .process-step) */
    .step-item      { flex-direction:column; text-align:center; }

    /* ======= CONSULT CARDS ======= */
    .consult-grid  { grid-template-columns:1fr; gap:16px; }
    .consult-card  { padding:20px 16px; }
    .consult-title { font-size:18px; }

    /* ======= REVIEWS ======= */
    .review-grid   { grid-template-columns:1fr; gap:16px; }
    .review-card   { padding:20px; }

    /* ======= BLOG ======= */
    .blog-grid     { grid-template-columns:1fr; gap:16px; }
    .post-img      { height:140px; }
    .post-body     { padding:16px; }

    /* ======= ABOUT ======= */
    .values-grid   { grid-template-columns:1fr 1fr; gap:12px; }
    .value-card    { padding:20px 12px; }
    .value-icon    { font-size:28px; }
    .value-card h4 { font-size:13px; }
    .value-card p  { font-size:12px; }

    /* ======= USEFUL LINKS ======= */
    .useful-links-grid { grid-template-columns:1fr; gap:10px; }
    .useful-link       { padding:14px; }

    /* ======= FOOTER ======= */
    footer           { padding:28px 0 16px; margin-top:24px; }
    .footer-grid     { grid-template-columns:1fr; gap:20px; }
    .footer-title    { font-size:15px; margin-bottom:10px; }
    .footer-grid a   { font-size:14px; padding:4px 0; }
    .footer-disclaimer { padding:14px 0; }
    .footer-disclaimer p { font-size:10px; }
    .footer-bot      { padding-top:14px; font-size:11px; }

    /* ======= MOBILE NAV ======= */
    .mobile-nav-content { width:85vw; max-width:320px; }
    .mobile-nav-content a { padding:14px 0; font-size:15px; }
    .mobile-menu-group summary { font-size:15px; padding:12px 0; }
    .mobile-menu-group a { padding:10px 0 10px 16px; font-size:14px; }

    /* ======= QUOTE MODAL ======= */
    .quote-modal-overlay { padding:0; align-items:flex-end; }
    .quote-modal {
        max-height:92vh; border-radius:12px 12px 0 0;
        animation:modalSlideUp 0.3s ease;
    }
    @keyframes modalSlideUp {
        from { opacity:0; transform:translateY(100%); }
        to   { opacity:1; transform:translateY(0); }
    }
    .quote-modal-header { padding:20px 20px 0; }
    .quote-modal-header h3 { font-size:18px; }
    .quote-modal form { padding:16px 20px 24px; }
    .quote-modal .form-group input,
    .quote-modal .form-group textarea { font-size:16px; }

    /* ======= LEGAL PAGES ======= */
    .legal-content h3 { font-size:15px; margin-top:20px; }
    .legal-content p, .legal-content ul { font-size:13px; }

    /* ======= TABLES ======= */
    .compare-container { margin-top:12px; }
    table.gov-table { min-width:100%; }
    .gov-table th, .gov-table td { padding:10px 8px; font-size:12px; }

    /* ======= NOTICE BOARD ======= */
    .notice-board { padding:12px; }
    .notice-item  { font-size:12px; }

    /* ======= 404 PAGE ======= */
    .err-code  { font-size:80px; }
    .err-title { font-size:22px; }
    .err-links { flex-direction:column; align-items:center; }
}

/* ======= 480px SMALL MOBILE ======= */
@media(max-width:480px) {
    .container   { padding:0 14px; }
    h1 { font-size:clamp(18px,7vw,24px); }
    h2 { font-size:clamp(16px,6vw,20px); }

    /* Logo */
    .logo-text h2 { font-size:15px; }
    .logo-text h2 .firm-name { letter-spacing:1px; }
    .logo-text p  { font-size:7.5px; letter-spacing:1.5px; white-space:normal; display:block; }

    /* Stats */
    .stats-grid  { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
    .stat-val    { font-size:16px; }
    .stat-lbl    { font-size:9px; }

    /* Category pages */
    .cat-hero h1 { font-size:clamp(20px,7vw,26px); }
    .why-grid    { grid-template-columns:1fr; gap:12px; }
    .hero-stats  { gap:16px; }
    .hero-stat .num { font-size:20px; }

    /* Homepage service cards */
    .consult-card    { padding:16px 12px; }
    .consult-title   { font-size:16px; }

    /* Values */
    .values-grid     { grid-template-columns:1fr; gap:12px; }

    /* Process steps */
    .process-step    { max-width:100%; }
    .step-label      { font-size:13px; }

    /* Buttons */
    .btn             { padding:12px 16px; font-size:12px; }

    /* Footer */
    footer           { margin-top:16px; }
    .footer-grid     { gap:16px; }
}

/* ======= 360px VERY SMALL ======= */
@media(max-width:360px) {
    .logo-text h2        { font-size:12px; }
    .logo-text h2 .firm-llp { display:none; }
    .logo-text p         { font-size:7px; letter-spacing:1px; white-space:normal; display:block; }
    .hamburger           { padding:6px; }
    .hamburger span      { width:20px; }
    .hero-stat .num      { font-size:18px; }
    .why-grid            { grid-template-columns:1fr; }
    .svc-icon            { width:36px; height:36px; font-size:16px; }
}
