/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #c23a22;
    --dark: #1a1a1a;
    --text: #3a3a3a;
    --light-bg: #fcfcfc;
    --white: #ffffff;
    --border: #e5e5e5;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: Georgia, 'Times New Roman', Times, serif;
    --max-width: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--light-bg);
    line-height: 1.7;
}

a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a03020; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover { background: #a03020; border-color: #a03020; color: var(--white); }
.btn-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ── Top Bar ──────────────────────────────────────────────── */
.top-bar {
    background: var(--dark);
    color: #bbb;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--white); }
.top-bar .sep { margin: 0 0.75rem; color: #555; }
.top-bar svg { vertical-align: middle; }

/* ── Main Header ──────────────────────────────────────────── */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.site-logo img { height: 40px; width: auto; }

/* ── Navigation ───────────────────────────────────────────── */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--red);
}

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    min-width: 260px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 100;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a {
    display: block;
    padding: 0.4rem 1.25rem;
    color: var(--text);
    font-size: 0.85rem;
}
.nav-menu .sub-menu li a:hover { color: var(--red); background: #f9f9f9; }

/* 3rd level dropdown */
.nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
    background: #f5f5f5;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.page-header h1 { margin-bottom: 0.25rem; }

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs {
    font-size: 0.85rem;
    color: #888;
}
.breadcrumbs a { color: #888; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { margin: 0 0.4rem; }
.breadcrumbs .current { color: var(--text); }

/* ── Page Layout (content + sidebar) ──────────────────────── */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}
.content-area {
    min-width: 0;
}
.content-full {
    max-width: 900px;
    padding: 2.5rem 0 3rem;
}

/* ── Consultant Sidebar ───────────────────────────────────── */
.consultant-sidebar {
    position: sticky;
    top: 80px;
}
.consultant-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--red);
}
.consultant-card {
    margin-bottom: 2rem;
    text-align: center;
}
.consultant-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
}
.consultant-card h4 { margin-bottom: 0.2rem; }
.consultant-role {
    color: var(--red);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.consultant-card p { font-size: 0.85rem; margin-bottom: 0.3rem; }

.contact-info-box {
    background: #f5f5f5;
    padding: 1.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.contact-info-box h4 { margin-bottom: 0.5rem; }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 5rem 1.5rem;
}
.hero h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: #f5f5f5; }
.section h2 { text-align: center; margin-bottom: 2.5rem; }

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

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* ── Jurisdiction Cards ───────────────────────────────────── */
.jurisdiction-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s;
    text-align: center;
}
.jurisdiction-card:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Feature Cards ────────────────────────────────────────── */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    text-align: center;
}
.feature-card h3 { color: var(--red); margin-bottom: 0.75rem; }

/* ── Service Cards (country page) ─────────────────────────── */
.country-services { margin-bottom: 2.5rem; }
.service-card {
    display: block;
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s;
    color: var(--dark);
}
.service-card:hover {
    border-color: var(--red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: var(--red);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--red); font-size: 0.85rem; margin: 0; }

/* ── Post Cards ───────────────────────────────────────────── */
.post-card {
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.post-card time {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-card h2, .post-card h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.post-card h2 a, .post-card h3 a { color: var(--dark); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--red); }
.post-card p { font-size: 0.9rem; color: #666; margin: 0; }

/* ── Single Post ──────────────────────────────────────────── */
.post-single .post-meta { margin-bottom: 2rem; }
.post-single .post-meta time { font-size: 0.85rem; color: #888; }

/* ── Related Pages ────────────────────────────────────────── */
.related-pages {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.related-pages h3 { margin-bottom: 1rem; }
.related-pages ul { list-style: none; padding: 0; }
.related-pages li { margin-bottom: 0.5rem; }
.related-pages a { font-weight: 500; }

/* ── Service List ─────────────────────────────────────────── */
.service-list { list-style: none; padding: 0; }
.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    padding-left: 1.25rem;
    position: relative;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* ── Contact Info ─────────────────────────────────────────── */
.contact-info {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination { margin-top: 2rem; text-align: center; }
.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-size: 0.9rem;
}
.pagination .page-numbers.current { background: var(--red); color: var(--white); border-color: var(--red); }
.pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #bbb; padding: 3rem 0 0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #bbb; font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* ── WordPress Content Styles ─────────────────────────────── */
.content-area table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.content-area th, .content-area td { padding: 0.6rem 0.8rem; border: 1px solid var(--border); text-align: left; }
.content-area th { background: #f5f5f5; font-weight: 600; }
.content-area blockquote {
    border-left: 3px solid var(--red);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9f9f9;
    font-style: italic;
}
.content-area hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── CF7 Contact Form ─────────────────────────────────────── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    border-color: var(--red);
    outline: none;
}
.wpcf7 input[type="submit"] {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 3px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
}
.wpcf7 input[type="submit"]:hover { background: #a03020; }

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .page-layout { grid-template-columns: 1fr 280px; gap: 2rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .main-nav.active { display: block; }
    .nav-menu { flex-direction: column; }
    .nav-menu > li > a { padding: 0.75rem 1.5rem; border-bottom: 1px solid #f0f0f0; }
    .nav-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: #f9f9f9;
    }
    .nav-menu li.menu-open > .sub-menu { display: block; }

    .page-layout { grid-template-columns: 1fr; }
    .sidebar-area { order: 2; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 3rem 1.5rem; }

    .top-bar-left { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    h1 { font-size: 1.6rem; }
    .hero h1 { font-size: 1.5rem; }
}
