/*
Theme Name: AUPY
Theme URI: https://aupy.consulting/
Author: AUPY Consultoria E.A.S.
Author URI: https://aupy.consulting/
Description: Custom bilingual (EN/ES) classic theme for AUPY Consultoria E.A.S. — an Australian-led consultancy based in Paraguay. Navy/gold palette, Fraunces + DM Sans.
Version: 3.18
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aupy
*/

/* ================================================================
   GLOBAL CSS (ported from includes/header.php <style> block)
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --navy:       #1a2e4a;
    --navy-deep:  #0f1d30;
    --gold:       #c8922a;
    --gold-light: #e8b84b;
    --sand:       #f5f0e8;
    --fog:        #f8f7f5;
    --mid:        #6b7280;
    --border:     #e5e0d8;
    --white:      #ffffff;
    --text:       #1a2e4a;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --max-w:      1240px;
    --radius:     10px;
    --transition: 0.22s ease;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.65; background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 400; }
p  { color: var(--mid); }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 30px; }
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.label { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; }
.btn-gold  { background: var(--gold); color: var(--white); }
.btn-gold:hover  { background: #b07820; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 30px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.header-logo img { height: 34px; display: block; }
.header-nav { display: flex; align-items: center; gap: 22px; list-style: none; flex-wrap: nowrap; }
.header-nav a { font-size: 14px; font-weight: 400; color: var(--mid); transition: color var(--transition); white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { color: var(--navy); }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--mid); padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; transition: all var(--transition); }
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 6px; transition: background var(--transition); }
.hamburger:hover { background: var(--fog); }
.hamburger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); z-index: 99; padding: 24px 5% 32px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.mobile-nav ul a { display: block; padding: 12px 0; font-size: 16px; font-weight: 400; color: var(--navy); border-bottom: 1px solid var(--border); transition: color var(--transition); }
.mobile-nav ul a:hover, .mobile-nav ul a.active { color: var(--gold); }
.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }

/* Page offset */
.page-body { padding-top: 68px; display: flex; flex-direction: column; min-height: 100vh; }
.page-body > footer { margin-top: auto; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--white); transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msg-success { background: #d1fae5; color: #065f46; padding: 18px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; }
.msg-error   { background: #fee2e2; color: #991b1b; padding: 18px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; }

/* Responsive */
/* Collapse the horizontal nav to the hamburger while there is room for the
   longer Spanish labels on one line. Below this width the mobile menu (which
   stacks items vertically) is used, so alignment is language-independent. */
@media (max-width: 1024px) {
    .header-nav, .header-right .btn-gold { display: none; }
    .hamburger { display: flex; }
}
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}
/* Dropdown nav: Capability Statements */
.has-dropdown { position: relative; }

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition);
    position: relative;
    top: 1px;
}

.has-dropdown.open .dropdown-arrow,
.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -16px;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(15, 29, 48, 0.12);
    list-style: none;
    padding: 8px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--mid);
    border-radius: 6px;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--fog);
    color: var(--navy);
}

/* Mobile dropdown: nested within .mobile-nav, follows the same row/border pattern */
.has-dropdown-mobile { display: flex; flex-direction: column; }

.dropdown-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--navy);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-align: left;
}

.has-dropdown-mobile .dropdown-arrow {
    font-size: 12px;
}

.has-dropdown-mobile.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu-mobile {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.has-dropdown-mobile.open .dropdown-menu-mobile {
    max-height: 200px;
}

.dropdown-menu-mobile li a {
    display: block;
    padding: 10px 0 10px 16px;
    font-size: 15px;
    font-weight: 400;
    color: var(--mid);
}

.dropdown-menu-mobile li a:hover {
    color: var(--gold);
}

/* ================================================================
   FOOTER CSS (ported from includes/footer.php)
   ================================================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ================================================================
   HOMEPAGE CSS (ported from index.php)
   ================================================================ */
.home-page body { min-height: 100vh; display: flex; flex-direction: column; }

.hero-home {
    flex: 1;
    padding: 180px 5% 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background:
        linear-gradient(rgba(15,29,48,0.82), rgba(15,29,48,0.88)),
        url('assets/images/index-header.png') center/cover no-repeat;
    color: var(--white);
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--gold-light);
    margin-bottom: 24px;
}
.hero-eyebrow::before,
.hero-eyebrow::after { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }

.hero-home h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    max-width: 700px;
    margin-bottom: 22px;
}

.hero-sub {
    font-size: 17px; max-width: 540px;
    color: rgba(255,255,255,0.85); margin-bottom: 0; line-height: 1.7;
}

.intro-section {
    background: var(--white);
    padding: 70px 5% 60px;
    text-align: center;
}
.intro-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 56px;
    background: var(--fog);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
}
.intro-inner::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 28px;
    border-radius: 2px;
}
.intro-inner h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 22px;
}
.intro-inner p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--mid);
}

.cards-section {
    background: var(--white);
    padding: 0 5% 80px;
}
.cards-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.25;
    color: var(--navy);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.cards-wrap {
    width: 100%; max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-radius: 16px;
    overflow: visible;
}

.pathway-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex; flex-direction: column;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.pathway-card:hover { background: var(--fog); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.09); }
.pathway-card.local-py { background: var(--fog); }
.pathway-card.local-py:hover { background: var(--sand); }

.card-label {
    font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.card-icon {
    width: 44px; height: 44px;
    background: var(--sand);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 18px;
    margin-bottom: 20px;
}
.pathway-card h3 {
    font-family: var(--font-display);
    font-weight: 400; font-size: 1.3rem;
    margin-bottom: 14px; color: var(--navy);
    line-height: 1.25;
}
.pathway-card p { font-size: 14px; line-height: 1.65; flex: 1; }

.card-cta {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 28px;
    font-size: 13px; font-weight: 600;
    color: var(--navy);
    transition: gap var(--transition), color var(--transition);
}
.card-cta i { font-size: 11px; transition: transform var(--transition); }
.pathway-card:hover .card-cta { color: var(--gold); }
.pathway-card:hover .card-cta i { transform: translateX(4px); }

@media (max-width: 860px) {
    .cards-wrap { grid-template-columns: 1fr; }
    .intro-inner { padding: 36px 28px; }
    .proof-logos .proof-logo-placeholder:nth-child(n+3) { display: none; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .cta-section { padding: 60px 5%; }
}

/* Social proof */
.proof-section {
    background: var(--sand);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 5%;
    text-align: center;
}
.proof-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.3;
    color: var(--navy);
    max-width: 640px;
    margin: 0 auto 28px;
}
.proof-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 40px;
    display: block;
}
.proof-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.proof-logos img {
    height: 48px;
    filter: brightness(0) saturate(0) opacity(0.45);
}
.proof-logo-placeholder {
    width: 140px; height: 48px;
    background: var(--border);
    border-radius: 6px;
    opacity: 0.5;
}
.proof-note {
    font-size: 13px;
    color: var(--mid);
    font-style: italic;
    margin-top: 32px;
}

/* CTA section */
.cta-section {
    background: var(--fog);
    padding: 90px 5%;
}
.cta-left .label { color: var(--gold); }
.cta-left h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-left p { color: var(--mid); font-size: 15px; line-height: 1.75; margin-bottom: 28px; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-detail i { color: var(--gold); margin-top: 2px; width: 16px; }
.contact-detail span, .contact-detail a { font-size: 14px; color: var(--mid); text-decoration: none; }
.contact-detail a:hover { color: var(--gold); }

/* ================================================================
   ADVISORY PAGE CSS (ported from advisory.php)
   ================================================================ */
/* Hero */
.hero {
    background:
        linear-gradient(rgba(15,29,48,0.82), rgba(15,29,48,0.88)),
        url('assets/images/advisory-header.jpg') center/cover no-repeat;
    padding: 110px 0 90px;
    color: var(--white);
}
.hero .label { color: var(--gold-light); }
.hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem,4vw,3.2rem); margin-bottom: 22px; line-height: 1.15; max-width: 680px; }
.hero h1 em { font-style: italic; }
.hero p { font-size: 17px; opacity: 0.88; max-width: 560px; line-height: 1.7; margin-bottom: 36px; color: var(--white); }
.hero-stats { display: flex; gap: 48px; margin-top: 50px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--gold-light); }
.hero-stat p  { font-size: 13px; opacity: 0.75; color: var(--white); margin-top: 2px; }

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--fog);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.22s;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.service-card .icon {
    width: 42px; height: 42px; background: var(--sand);
    border-radius: 9px; display: flex; align-items: center;
    justify-content: center; color: var(--gold); font-size: 17px;
    margin-bottom: 18px;
}
.service-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); }
.service-card p  { font-size: 14px; line-height: 1.65; }
.service-card.highlight { border-color: var(--gold); background: #fffbf4; }

/* Sectors */
.sectors-section { background: var(--navy); }
.sectors-section .label { color: var(--gold-light); }
.sectors-section h2 { color: var(--white); font-family: var(--font-display); font-weight: 300; margin-bottom: 12px; }
.sectors-section > .container > p { color: rgba(255,255,255,0.7); margin-bottom: 48px; }
.sectors-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.sector-tile {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 24px 18px;
    text-align: center; font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: all 0.22s;
}
.sector-tile:hover { background: rgba(200,146,42,0.15); border-color: var(--gold); color: var(--white); }
.sector-tile i { display: block; font-size: 22px; color: var(--gold); margin-bottom: 10px; }

/* Why AUPY */
.why-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.why-text h2 { font-family: var(--font-display); font-weight: 300; margin-bottom: 20px; }
.why-text p  { margin-bottom: 16px; font-size: 15px; line-height: 1.75; }
.why-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-feature {
    background: var(--fog); border: 1px solid var(--border);
    border-radius: 10px; padding: 22px;
}
.why-feature .fi { color: var(--gold); font-size: 18px; margin-bottom: 10px; }
.why-feature h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.why-feature p  { font-size: 13px; }

/* Process */
.process-section { background: var(--sand); }
.process-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    position: relative; margin-top: 50px;
}
.process-steps::before {
    content: ''; position: absolute;
    top: 28px; left: calc(16.66% + 28px); right: calc(16.66% + 28px);
    height: 1px; background: var(--gold); opacity: 0.4;
}
.process-step { padding: 0 30px; text-align: center; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold); color: var(--white);
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 400;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
}
.process-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 12px; color: var(--navy); }
.process-step p  { font-size: 14px; }

/* Contact */
.contact-section { background: var(--fog); }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-weight: 300; margin-bottom: 16px; }
.contact-info p  { font-size: 15px; margin-bottom: 30px; }
.contact-form-wrap {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 14px; padding: 40px;
}

@media (max-width: 900px) {
    .services-grid, .sectors-grid, .why-features { grid-template-columns: 1fr 1fr; }
    .why-grid, .contact-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .process-steps::before { display: none; }
    .process-step { margin-bottom: 36px; }
    .hero-stats { gap: 28px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .services-grid, .sectors-grid, .why-features { grid-template-columns: 1fr !important; }
}

/* ================================================================
   PROJECTS PAGE CSS (ported from projects.php)
   ================================================================ */
/* Projects hero uses hero-mining.jpg */
.hero.hero-projects {
    background:
        linear-gradient(rgba(15,29,48,0.86), rgba(15,29,48,0.90)),
        url('assets/images/hero-mining.jpg') center 40%/cover no-repeat;
}

/* Who we work with */
.who-section { background: var(--navy); }
.who-section .label { color: var(--gold-light); }
.who-section h2 { color: var(--white); font-family: var(--font-display); font-weight: 300; margin-bottom: 12px; }
.who-section > .container > p { color: rgba(255,255,255,0.7); margin-bottom: 44px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who-tile {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 22px 20px;
    display: flex; align-items: center; gap: 14px;
    color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
    transition: all 0.22s;
}
.who-tile:hover { background: rgba(200,146,42,0.15); border-color: var(--gold); color: var(--white); }
.who-tile i { color: var(--gold); font-size: 18px; width: 20px; flex-shrink: 0; }

/* Why AUPY (projects variant) */
.cost-badge {
    background: var(--sand); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px;
    margin-top: 10px;
}
.cost-badge p { font-size: 14px; font-style: italic; color: var(--navy); opacity: 0.8; margin: 0; }
.cost-badge p strong { color: var(--gold); font-style: normal; }

.why-image-wrap { position: relative; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
    background: var(--fog); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px 24px; text-align: center;
}
.stat-card h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--gold); margin-bottom: 6px; }
.stat-card p  { font-size: 13px; color: var(--mid); }

/* EOR */
.eor-section { background: var(--sand); }
.eor-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.eor-content h2 { font-family: var(--font-display); font-weight: 300; margin-bottom: 18px; }
.eor-content p  { font-size: 15px; line-height: 1.75; margin-bottom: 24px; }
.eor-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eor-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--navy); }
.eor-list li i { color: var(--gold); width: 16px; }

@media (max-width: 900px) {
    .who-grid { grid-template-columns: 1fr 1fr; }
    .eor-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .who-grid, .stat-cards, .eor-list { grid-template-columns: 1fr; }
}

/* ================================================================
   LOCAL PAGE CSS (ported from local-py.php)
   ================================================================ */
/* Local hero uses local-header.png */
.hero.hero-local {
    background:
        linear-gradient(rgba(15,29,48,0.82), rgba(15,29,48,0.88)),
        url('assets/images/local-header.png') center/cover no-repeat;
}
.hero.hero-local h1 { max-width: 640px; font-size: clamp(2rem,4vw,3rem); }
.hero.hero-local p  { max-width: 520px; }

/* Local services cards */
.services-grid.local-services { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.services-grid.local-services .service-card {
    background: var(--white);
    border-radius: 14px; padding: 36px;
    display: flex; gap: 22px;
}
.services-grid.local-services .service-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }
.local-services .card-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--sand); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 20px; margin-top: 2px; margin-bottom: 0;
}
.local-services .card-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 10px; color: var(--navy); }
.local-services .card-body p  { font-size: 14px; line-height: 1.7; }

/* About section (local) */
.about-section { background: var(--sand); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-text h2 { font-family: var(--font-display); font-weight: 300; margin-bottom: 20px; }
.about-text p  { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }

.value-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.value-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--mid); line-height: 1.6; }
.value-list li i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

.highlight-box {
    background: var(--navy); color: var(--white);
    border-radius: 14px; padding: 40px;
}
.highlight-box p { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box strong { color: var(--gold-light); }

@media (max-width: 860px) {
    .services-grid.local-services, .about-inner { grid-template-columns: 1fr; }
}

/* ================================================================
   BLOG / GENERIC PAGE CSS (theme additions, brand-consistent)
   ================================================================ */
.blog-wrap { padding: 40px 0 90px; }
.blog-hero { max-width: 720px; margin: 0 0 48px; }
.blog-hero .label { color: var(--gold); }
.blog-hero h1 { font-family: var(--font-display); font-weight: 300; color: var(--navy); font-size: 2.6rem; line-height: 1.1; }
.blog-hero-sub { color: var(--mid); font-size: 1.05rem; line-height: 1.7; margin-top: 16px; }

/* Hero posts: Latest Post (large) + Editor's Picks (three horizontal) */
.hero-posts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-bottom: 56px; align-items: stretch; }
.hero-latest, .hero-picks { display: flex; flex-direction: column; }
.hero-posts-title { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.box-post {
    display: block; background: var(--white); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.box-post:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.10); }
.box-post-media img { width: 100%; display: block; object-fit: cover; }
.hero-latest .box-post { flex: 1; display: flex; flex-direction: column; }
.hero-latest .box-post-media { flex: 1; min-height: 0; }
.hero-latest .box-post-media img { height: 100%; aspect-ratio: auto; }
.box-post-body { padding: 28px; }
.box-post-title { font-family: var(--font-display); font-weight: 400; color: var(--navy); line-height: 1.2; margin-bottom: 12px; }
.hero-latest .box-post-title { font-size: 1.7rem; }
.box-post-excerpt { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.box-post-byline { font-size: 12px; color: var(--mid); }
.hero-picks-list { display: flex; flex-direction: column; gap: 18px; }
.box-post.medium { display: grid; grid-template-columns: 132px 1fr; align-items: stretch; }
.box-post.medium .box-post-media img { height: 100%; aspect-ratio: auto; }
.box-post.medium .box-post-body { padding: 18px 20px; }
.box-post.medium .box-post-title { font-size: 1.1rem; margin-bottom: 8px; }
.box-post.medium .box-post-excerpt {
    font-size: 13px; line-height: 1.55; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Newsletter band */
.newsletter-band { position: relative; background: var(--navy); border-radius: 18px; padding: 48px; margin-bottom: 56px; color: var(--white); }
.newsletter-band-icon { position: absolute; left: 48px; bottom: 48px; width: 224px; height: auto; opacity: 0.25; pointer-events: none; z-index: 0; }
.newsletter-row .newsletter-band .newsletter-band-icon { left: 40px; bottom: 40px; }
.newsletter-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.newsletter-row.has-article {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
    margin-bottom: 56px;
}
.newsletter-row .newsletter-band { grid-column: 2 / 4; margin-bottom: 0; height: 100%; padding: 40px; }
.newsletter-row .newsletter-band .newsletter-inner { grid-template-columns: 1fr 1fr; align-items: start; }
.newsletter-copy .label { color: var(--gold-light); }
.newsletter-copy h2 { font-family: var(--font-display); font-weight: 300; color: var(--white); font-size: 1.9rem; line-height: 1.15; margin-bottom: 12px; }
.newsletter-copy p { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.7; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form .nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.newsletter-form .nl-select {
    width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
    font-family: var(--font-body); font-size: 15px; color: var(--white); background: rgba(255,255,255,0.08);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus, .newsletter-form .nl-select:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.12); }
.newsletter-form .nl-select { appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e8b84b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.newsletter-form .nl-select option { color: var(--navy); }
.newsletter-form .btn-gold { white-space: nowrap; padding: 14px 26px; border-radius: 10px; margin-top: 4px; }
.newsletter-privacy { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 12px; }
.newsletter-terms { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-top: 4px; }
.newsletter-terms a { color: var(--gold-light); text-decoration: underline; }
.newsletter-notice { font-size: 15px; padding: 14px 18px; border-radius: 10px; }
.newsletter-notice.success { background: rgba(200,146,42,0.18); color: var(--gold-light); }
.newsletter-notice.error { background: rgba(255,255,255,0.1); color: #fca5a5; margin-bottom: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.post-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
    transition: all var(--transition); box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.post-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.09); }
.post-card .post-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card .post-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.post-card h2, .post-card h3 { font-family: var(--font-display); font-weight: 400; color: var(--navy); margin-bottom: 12px; font-size: 1.3rem; line-height: 1.25; }
.post-card p { font-size: 14px; line-height: 1.65; flex: 1; }
.post-card .card-cta { margin-top: 22px; color: var(--navy); }
.post-card:hover .card-cta { color: var(--gold); }

/* Row of 3 post cards above the newsletter band */
.post-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }

/* Blog search box */
.blog-search { position: relative; max-width: 520px; margin: 0 auto 48px; }
.blog-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 15px; pointer-events: none; }
.blog-search input[type="search"] {
    width: 100%; padding: 14px 22px 14px 48px; border: 1px solid var(--border); border-radius: 999px;
    font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.blog-search input[type="search"]::placeholder { color: var(--mid); }
.blog-search input[type="search"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,42,0.12); }
.blog-no-results { text-align: center; color: var(--mid); font-size: 1.05rem; margin: 0 0 40px; }

/* When searching, hide curated chrome so results read as a clean set */
.blog-wrap.is-searching .newsletter-row,
.blog-wrap.is-searching .newsletter-band,
.blog-wrap.is-searching .hero-posts-title { display: none; }

@media (max-width: 960px) {
    .hero-posts { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
    .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
    .newsletter-row.has-article { grid-template-columns: 1fr; }
    .newsletter-row .newsletter-band { grid-column: auto; padding: 36px 28px; }
    .newsletter-band { padding: 36px 28px; }
    .newsletter-band-icon { display: none; }
    .newsletter-form { flex-direction: column; }
    .box-post.medium { grid-template-columns: 110px 1fr; }
    .blog-hero h1 { font-size: 2rem; }
    .post-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .post-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .box-post.medium { grid-template-columns: 1fr; }
    .box-post.medium .box-post-media img { aspect-ratio: 16 / 9; }
}

.single-post-wrap { padding: 40px 0 90px; }
.single-post { max-width: 100%; margin: 0 auto; }
.single-post .post-meta { display: block; margin-bottom: 16px; }
.single-post h1 { font-family: var(--font-display); font-weight: 300; color: var(--navy); margin-bottom: 24px; line-height: 1.2; }
.single-post .featured-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 32px; }
.single-post .entry-content p { color: var(--text); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
.single-post .entry-content h2, .single-post .entry-content h3 { color: var(--navy); margin: 32px 0 16px; }
.single-post .entry-content a { color: var(--gold); text-decoration: underline; }
.single-post .entry-content img { max-width: 100%; height: auto; border-radius: 10px; }
.single-post .entry-content ul, .single-post .entry-content ol { margin: 0 0 20px 24px; color: var(--text); }
.single-post .entry-content h2 { scroll-margin-top: 92px; }

/* Single post: author line + two-column (TOC : content) body */
.single-post .post-author { font-size: 15px; color: var(--mid); margin: 0 0 36px; }
.single-post .post-author strong { color: var(--navy); font-weight: 600; }
.single-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.single-layout.no-toc { display: block; }
.single-layout.no-toc .entry-content { max-width: 760px; }
.post-toc { position: sticky; top: 92px; }
.post-toc-title { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.post-toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.post-toc a { display: block; font-size: 14px; line-height: 1.45; color: var(--mid); text-decoration: none; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.post-toc a:hover { color: var(--navy); border-color: var(--gold); }
@media (max-width: 820px) {
    .single-layout { grid-template-columns: 1fr; gap: 28px; }
    .post-toc { position: static; margin-bottom: 8px; }
}

/* Comments */
.comments-area { max-width: 100%; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--border); }
.comments-title { font-family: var(--font-display); font-weight: 300; color: var(--navy); font-size: 1.5rem; margin-bottom: 28px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 20px 0 0 40px; padding: 0; }
.comment-list li.comment { margin-bottom: 24px; }
.comment-body { background: var(--bg-soft, #f7f8fa); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--navy); font-style: normal; font-size: 14px; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--mid); margin-bottom: 10px; }
.comment-metadata a { color: var(--mid); }
.comment-content p { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 12px; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 10px; }
.comment-reply-link { font-size: 13px; font-weight: 500; color: var(--gold); }

.comment-respond { max-width: 100%; margin: 0 auto; }
.comment-reply-title { font-family: var(--font-display); font-weight: 300; color: var(--navy); font-size: 1.4rem; margin-bottom: 20px; }
.comment-reply-title small { margin-left: 12px; font-size: 13px; font-family: var(--font-body); }
.comment-reply-title small a { color: var(--gold); }
.comment-form { display: flex; flex-direction: column; gap: 18px; }
.comment-form .logged-in-as { font-size: 13px; color: var(--mid); margin: 0; }
.comment-form .logged-in-as a { color: var(--gold); }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--text); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--white);
    transition: border-color var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--gold); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .form-submit { margin-top: 4px; }
.comment-form .submit {
    display: inline-block; background: var(--gold); color: var(--navy);
    border: none; border-radius: 999px; padding: 13px 30px;
    font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
    cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.comment-form .submit:hover { background: var(--gold-dark, #c9a24a); transform: translateY(-1px); }
.no-comments { color: var(--mid); font-size: 14px; }

.page-content-wrap { padding: 120px 0 90px; }
.page-content-inner { max-width: 820px; margin: 0 auto; }
.page-content-inner h1 { font-family: var(--font-display); font-weight: 300; color: var(--navy); margin-bottom: 28px; }
.page-content-inner .entry-content p { color: var(--text); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
.page-content-inner .entry-content h2, .page-content-inner .entry-content h3 { color: var(--navy); margin: 32px 0 16px; }
.page-content-inner .entry-content a { color: var(--gold); text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 56px; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 14px; color: var(--mid); transition: all var(--transition);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* Newsletter thank-you (replaces the signup form after submit) */
.newsletter-thanks { text-align: center; color: var(--white); padding: 12px 0; }
.newsletter-thanks i { font-size: 34px; color: var(--gold); margin-bottom: 14px; display: block; }
.newsletter-thanks h3 { font-size: 22px; color: var(--white); margin: 0 0 8px; }
.newsletter-thanks p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.8); margin: 0; }

/* Keep the signup band's height stable when the form is replaced by a
   confirmation / thank-you message. The form isn't in the DOM in those states,
   so reserve its approximate height on the form column and vertically centre
   the message. Released to auto on the stacked (single-column) mobile layout. */
.newsletter-form-wrap { display: flex; flex-direction: column; justify-content: center; min-height: 470px; }
@media (max-width: 820px) { .newsletter-form-wrap { min-height: 0; } }

/* Dedicated newsletter confirmation / opt-out page */
/* Newsletter page: reuses the signup band (top) + a smaller opt-out section (bottom).
   Keep light styles scoped to .np-unsub-section so they never override the navy band. */
.newsletter-page { background: var(--white); }

/* Constrain the reused signup band to the site max-width (it has no width of
   its own — on the blog it lives inside a .container). */
.newsletter-signup-wrap { padding: 56px 0; }
.newsletter-signup-wrap .newsletter-band { margin-bottom: 0; }

.np-unsub-section { padding: 56px 0; background: var(--fog); }
.np-unsub-section .container { max-width: 560px; }
.np-unsub-section h2 { color: var(--navy); font-size: 22px; margin: 0 0 10px; }
.np-unsub-desc { color: var(--mid); font-size: 14px; line-height: 1.65; margin: 0 0 18px; }

.np-status { text-align: center; padding: 8px 0; }
.np-status i { font-size: 44px; margin-bottom: 16px; display: block; }
.np-status.success i { color: var(--gold); }
.np-status.error i { color: #ef4444; }
.np-status h2 { color: var(--navy); font-size: 22px; margin: 0 0 10px; }
.np-status p { color: var(--mid); font-size: 14px; line-height: 1.65; }

.np-unsub-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; max-width: 420px; }
.np-unsub-form input[type="email"] { padding: 13px 15px; border-radius: 8px; border: 1px solid var(--border); background: var(--white); color: var(--text); font-size: 15px; }
.np-unsub-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.np-unsub-form input[type="email"]::placeholder { color: var(--mid); }
