/* =========================================================
   Site_Extras.css
   Loaded LAST in _Layout. Contains:
   1. Navbar dropdowns (moved out of _Layout)
   2. Inner pages (service lists, details, FAQ, contact, legal text)
   3. Sign-up role cards
   4. Mobile / tablet fixes
========================================================= */

/* ---------- 1. NAVBAR DROPDOWNS ---------- */
@media (min-width: 992px) {
    .nav-item.hover-dropdown { position: relative; }
    .nav-item.hover-dropdown:hover > .dropdown-menu {
        display: block; opacity: 1; visibility: visible; transform: translateY(0);
    }
    .dropdown-menu.custom-dropdown-menu {
        display: block; opacity: 0; visibility: hidden;
        transition: all .2s ease-in-out; transform: translateY(8px);
    }
}

.custom-dropdown-menu {
    background: #fff; border: none; border-top: 3px solid #d4af37;
    border-radius: 0 0 4px 4px; box-shadow: 0 10px 25px rgba(0,0,0,.25);
    padding: .75rem 1rem; min-width: 340px; margin-top: 0;
}
.dropdown-item-group {
    padding: .65rem .75rem; border-bottom: 1px solid #eaeaea;
    border-radius: 6px; transition: background-color .2s ease-in-out;
    list-style: none;
}
.dropdown-item-group:hover { background: #f8f9fa; }
.dropdown-item-link { display: block; text-decoration: none; }
.dropdown-item-link:hover .dropdown-title { color: #0b2545; }
.dropdown-title {
    display: block; font-family: 'Inter', sans-serif; font-weight: 600;
    font-size: 1rem; color: #111; margin-bottom: .15rem; line-height: 1.4;
}
.dropdown-desc {
    display: block; font-family: 'Inter', sans-serif;
    font-size: .8rem; color: #718096; line-height: 1.3;
}
.dropdown-viewall { list-style: none; padding: .75rem .75rem .25rem; }
.dropdown-viewall a {
    display: flex; align-items: center; justify-content: space-between;
    color: #855910; font-weight: 700; font-size: .9rem;
}
.dropdown-viewall a:hover { color: #0b2545; }
.dropdown-arrow { font-size: .75rem; margin-left: 4px; display: inline-block; transition: transform .2s ease; }
.nav-item.hover-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* ---------- 2. INNER PAGES ---------- */
.inner-main { background: #fff; color: var(--text-dark); }

.page-hero {
    position: relative; overflow: hidden;
    padding: 4.5rem 0 4rem; background: var(--dark); color: #fff;
}
.page-hero::before {
    content: ''; position: absolute; width: 700px; height: 700px;
    right: -200px; top: -350px; border: 1px solid rgba(255,255,255,.05);
    border-radius: 50%; pointer-events: none;
}
.page-hero h1 {
    font-family: var(--font-serif); font-weight: 500; color: #fff;
    font-size: 3.4rem; line-height: 1.1; letter-spacing: -.8px; margin: 0 0 1.2rem;
}
.page-hero .lead-text { max-width: 640px; color: #b0c0d0; font-size: 1.05rem; line-height: 1.65; margin: 0; }

.breadcrumb-al { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; font-size: .82rem; color: #8fa0b5; }
.breadcrumb-al a { color: #cbd5e1; }
.breadcrumb-al a:hover { color: var(--gold); }

.section-pad { padding: 4.5rem 0; }
.section-beige { background: var(--beige); }

/* Listing cards */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.listing-card {
    display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem;
    background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--gold-dark);
    border-radius: 2px; color: var(--text-dark);
    transition: transform .2s ease, box-shadow .2s ease;
}
.listing-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,18,30,.12); color: var(--text-dark); }
.listing-card .badge-box { width: 42px; height: 42px; }
.listing-card h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; margin: .3rem 0 0; }
    .listing-card p {
        margin: 0;
        color: var(--text-muted);
        font-size: .95rem;
        line-height: 1.75;
        text-align: left;
        flex-grow: 1;
    }
.listing-card .more { color: #855910; font-weight: 700; font-size: .85rem; margin-top: .4rem; }

/* Detail page */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
.detail-block { margin-bottom: 2.5rem; }
.detail-block h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
.detail-block p { color: #475569; font-size: 1rem; line-height: 1.8; margin: 0; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
    position: relative; padding: .85rem 0 .85rem 2.2rem;
    border-bottom: 1px solid var(--border); color: #334155; font-size: .98rem;
}
.check-list li:first-child { border-top: 1px solid var(--border); }
.check-list li::before {
    content: "\2713"; position: absolute; left: 0; top: .85rem;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--gold-dark); border-radius: 50%; color: var(--gold-dark); font-size: .7rem;
}

.side-card {
    position: sticky; top: 1.5rem; padding: 2rem 1.8rem;
    background: var(--dark); color: #fff; border-top: 4px solid var(--gold); border-radius: 2px;
}
.side-card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: .7rem; }
.side-card p { color: #a0aec0; font-size: .88rem; line-height: 1.6; }
.side-card .btn-gold-hero, .side-card .btn-outline-hero { width: 100%; justify-content: center; margin-top: .6rem; }
.side-note { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem !important; color: #8fa0b5 !important; }

.cta-band { background: var(--beige); padding: 4rem 0; text-align: center; }
.cta-band h2 { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 500; color: var(--text-dark); margin-bottom: .8rem; }
.cta-band p { color: #6c7a89; margin-bottom: 1.8rem; }
.cta-band .btn-outline-hero { color: var(--text-dark); border-color: #cbd5e1; }
.cta-band .btn-outline-hero:hover { border-color: var(--text-dark); color: var(--text-dark); }

.view-all-link { display: inline-flex; gap: .4rem; margin-top: 1.5rem; color: #855910; font-weight: 700; font-size: .92rem; }
.view-all-link:hover { color: #0b2545; }

/* Text pages (privacy, terms, standards) */
.prose { max-width: 780px; }
.prose h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; margin: 2.2rem 0 .8rem; }
.prose p, .prose li { color: #475569; line-height: 1.8; font-size: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose .updated { color: #94a3b8; font-size: .85rem; }

/* Principle cards (About / Standards) */
.principle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.principle { padding: 1.6rem; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold-dark); border-radius: 2px; }
.principle h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.principle p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* FAQ accordion */
.al-accordion .accordion-item { border: none; border-bottom: 1px solid var(--border); background: transparent; }
.al-accordion .accordion-button {
    padding: 1.3rem 0; background: transparent; box-shadow: none;
    font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--text-dark);
}
.al-accordion .accordion-button:not(.collapsed) { color: #855910; background: transparent; }
.al-accordion .accordion-body { padding: 0 0 1.4rem; color: #475569; line-height: 1.75; }

/* Contact form */
.al-form { max-width: 620px; }
.al-label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; color: #1a2938; }
.al-input {
    display: block; width: 100%; padding: .8rem 1rem; margin-bottom: 1.2rem;
    background: #eff4fc; border: 1px solid #c9d8eb; border-radius: 2px;
    font-size: 1rem; color: #1a2533;
}
.al-input:focus { outline: none; border-color: #d4a017; box-shadow: 0 0 0 3.5px rgba(212,160,23,.2); }
.al-alert { padding: 1rem 1.2rem; margin-bottom: 1.5rem; background: #fbf7ee; border: 1px solid #f1dfaa; border-left: 4px solid #c9a342; color: #5b4510; border-radius: 2px; }
.al-btn-gold {
    display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.8rem;
    background: #e5b02a; color: #0c1827; border: none; border-radius: 4px; font-weight: 700;
    transition: background-color .2s ease, transform .2s ease;
}
.al-btn-gold:hover { background: #d4a017; transform: scale(1.03); }

/* ---------- 3. SIGN-UP ROLE CARDS ---------- */
.role-selection-card { position: relative; }
/* hover on a NON-selected card must not look "selected" (gold) */
.role-selection-card:not(.active):hover { border-color: #a8b8cc; background: #faf8f3; }
.role-selection-card .role-check {
    position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
    display: none; align-items: center; justify-content: center;
    border-radius: 50%; background: #c9a342; color: #fff; font-size: .7rem;
}
.role-selection-card.active .role-check { display: flex; }
.role-status { margin: 0 0 1.2rem; font-size: .85rem; color: #6b7c93; }
.role-status strong { color: #8c610d; }

/* ---------- 4. RESPONSIVE ---------- */
.navbar-custom .navbar-toggler { border-color: rgba(255,255,255,.35); padding: .35rem .6rem; }
.navbar-custom .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(229,179,66,.35); }
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .custom-dropdown-menu { min-width: 0; width: 100%; box-shadow: none; border-top-width: 2px; }
    .navbar-custom .nav-link { padding: .75rem 0 !important; }
    .navbar-custom .nav-link.active::after { display: none; }
    .navbar-custom .nav-link.active { color: var(--gold) !important; }
    .nav-actions { padding: 1rem 0 .5rem; }
    .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .side-card { position: static; }
    .page-hero h1 { font-size: 2.6rem; }
    .section-pad { padding: 3.5rem 0; }

    /* Login / Sign-up hero headings (override !important in their own CSS) */
    .hero-main-title, .register-hero-title { font-size: 3rem !important; }
    .login-hero-side, .register-hero-side { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

@media (max-width: 767px) {
    .top-bar .container-fluid { flex-direction: column; align-items: flex-start !important; gap: .25rem; }
    .top-bar-text { font-size: .75rem; }
}

@media (max-width: 576px) {
    .page-hero { padding: 3rem 0 2.5rem; }
    .page-hero h1 { font-size: 2.1rem; }
    .cta-band h2 { font-size: 1.8rem; }

    .hero-section { padding: 3rem 0 3.5rem; }
    .services-main-title, .dark-section-title, .compliance-title, .how-main-title { font-size: 2.2rem; }
    .card-heading { font-size: 1.3rem; }
    .card-title { font-size: 1.7rem; }
    .hero-card { padding: 1.6rem 1.2rem; }
    .services-grid-section, .find-lawyer-section { padding: 3.5rem 0; }

    .hero-main-title, .register-hero-title { font-size: 2.3rem !important; }
    .login-card-container, .register-card-container { padding: 2rem 1.4rem !important; }
    .form-main-heading, .register-main-heading { font-size: 2rem !important; }
    .role-selection-card { min-height: 0; }
    .role-title { font-size: .95rem; }
    .btn-custom-gold, .btn-custom-outline, .btn-register-gold, .btn-register-outline { font-size: 1rem !important; height: 52px !important; }
}

/* =========================================================
   5. LONG SERVICE / COMPLIANCE / FIND-A-LAWYER PAGES
========================================================= */
.notice-box{max-width:560px;margin-top:2rem;padding:1.2rem 1.4rem;background:rgba(255,255,255,.06);border-left:3px solid var(--gold);color:#cbd5e1;font-size:.9rem;line-height:1.6}
.notice-box strong{display:block;margin-bottom:.3rem;color:var(--gold);font-size:.7rem;letter-spacing:1.5px;text-transform:uppercase}
.chip-nav{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:2rem}
.chip-nav a{padding:.45rem 1rem;border:1px solid rgba(255,255,255,.2);border-radius:999px;color:#e2eaf4;font-size:.85rem;font-weight:600}
.chip-nav a:hover{border-color:var(--gold);color:var(--gold)}

.intro-block{padding:4.5rem 0;background:var(--beige)}
.intro-block h2{font-family:var(--font-serif);font-size:2.4rem;font-weight:500;color:var(--text-dark);margin-bottom:1rem}
.intro-block p{max-width:760px;color:#475569;line-height:1.8}

.svc-section{padding:4rem 0;border-bottom:1px solid var(--border);scroll-margin-top:1rem}
.svc-section.alt{background:var(--beige)}
.svc-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:3.5rem;align-items:start}
.svc-tag{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem;color:#a3751e;font-size:.72rem;font-weight:800;letter-spacing:1.6px;text-transform:uppercase}
.svc-tag .num{color:var(--gold-dark);font-size:1rem}
.svc-section h2{font-family:var(--font-serif);font-size:2.2rem;font-weight:500;line-height:1.2;color:var(--text-dark);margin-bottom:1.2rem}
.svc-section .body-text{color:#475569;line-height:1.85;margin-bottom:1.6rem}
.svc-section .check-list{margin-bottom:1.8rem}
.svc-aside{padding:1.5rem;background:#fff;border:1px solid var(--border);border-top:3px solid var(--gold-dark)}
.svc-aside strong{display:block;margin-bottom:.6rem;color:#a3751e;font-size:.72rem;letter-spacing:1.4px;text-transform:uppercase}
.svc-aside p{margin:0;color:#475569;font-size:.92rem;line-height:1.7}

.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;margin-top:2rem}
.step-box{padding:1.5rem 0;border-top:2px solid var(--gold-dark)}
.step-box .n{display:block;margin-bottom:.5rem;color:var(--gold-dark);font-weight:800}
.step-box h3{font-family:var(--font-serif);font-size:1.3rem;font-weight:600;color:var(--text-dark);margin-bottom:.4rem}
.step-box p{margin:0;color:#64748b;font-size:.9rem;line-height:1.6}

.filter-bar{display:grid;grid-template-columns:repeat(3,1fr) auto;gap:1rem;align-items:end;max-width:980px;margin-top:2.2rem;padding:1.4rem;background:#fff;border-top:4px solid var(--gold);color:var(--text-dark)}
.filter-bar .al-input{margin-bottom:0}
.filter-bar .al-label{margin-bottom:.3rem}
.results-meta{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:1.5rem}
.results-meta h2{font-family:var(--font-serif);font-size:2rem;font-weight:500;margin:0}
.results-meta span{color:#64748b;font-size:.9rem}
.status-pill{align-self:flex-start;padding:.2rem .6rem;background:#f7f2e7;color:#855910;font-size:.68rem;font-weight:800;letter-spacing:1px;text-transform:uppercase}
.tag-row{display:flex;flex-wrap:wrap;gap:.4rem}
.tag-row span{padding:.2rem .6rem;border:1px solid var(--border);border-radius:999px;color:#475569;font-size:.75rem}
.meta-row{display:flex;gap:2rem;margin-top:.4rem;font-size:.82rem;color:#475569}
.meta-row small{display:block;color:#94a3b8;font-size:.68rem;letter-spacing:1px;text-transform:uppercase}
.no-results{display:none;padding:2rem;border:1px dashed var(--border);color:#64748b;text-align:center}
.pro-band{padding:4.5rem 0;background:var(--dark);color:#fff}
.pro-band h2{font-family:var(--font-serif);font-size:2.6rem;font-weight:500;margin-bottom:1rem}
.pro-band p{max-width:560px;color:#a0aec0;line-height:1.7}
.pro-points{display:grid;gap:.8rem;margin:0;padding:0;list-style:none}
.pro-points li{padding:1rem 1.2rem;border:1px solid rgba(255,255,255,.12);color:#e2eaf4;font-weight:600}
.pro-points li span{margin-right:.8rem;color:var(--gold)}

@media (max-width:991px){
  .svc-grid{grid-template-columns:1fr;gap:1.8rem}
  .filter-bar{grid-template-columns:1fr}
  .intro-block h2,.pro-band h2{font-size:2rem}
}
@media (max-width:576px){
  .svc-section h2{font-size:1.7rem}
  .meta-row{gap:1.2rem}
}

/* ---- 6. Catalog pages (22 services) ---- */
.clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.listing-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.filter-bar.single{max-width:560px}
.filter-bar select:disabled{opacity:.6;cursor:not-allowed}

/* =========================================================
   7. SCROLLABLE DROPDOWNS (many page names -> scroll inside the menu)
========================================================= */
.scroll-menu{
  overflow-y:auto; overscroll-behavior:contain; padding:0;
  scrollbar-width:thin; scrollbar-color:#c9a342 #f1efe9;
}
.scroll-menu::-webkit-scrollbar{width:8px}
.scroll-menu::-webkit-scrollbar-track{background:#f1efe9}
.scroll-menu::-webkit-scrollbar-thumb{background:#c9a342;border-radius:8px}
.scroll-menu .dropdown-item-group{padding:.6rem .9rem;border-bottom:1px solid #f0efea;border-radius:0}
.scroll-menu .dropdown-item-group:last-of-type{border-bottom:0}
.scroll-menu .dropdown-title{margin:0;font-size:.92rem;font-weight:600;line-height:1.35;white-space:normal}
/* "View all" stays visible at the bottom while the list scrolls */
.scroll-menu .dropdown-viewall{
  position:sticky; bottom:0; z-index:1; margin:0; padding:.85rem .9rem;
  background:#fff; border-top:1px solid #eaeaea;
}

/* Desktop: list opens directly under its own link */
@media (min-width:992px){
  .nav-item.hover-dropdown{position:relative;padding-bottom:.85rem;margin-bottom:-.85rem}
  .dropdown-menu.custom-dropdown-menu.scroll-menu{
    top:100%; left:0; right:auto; margin:0; min-width:0;
    width:360px; max-width:calc(100vw - 2rem);
    max-height:min(70vh, 520px);
  }
  .dropdown-menu.scroll-menu.dd-right{left:auto;right:0}
}

/* Tablet / mobile: opens inline inside the hamburger menu and scrolls */
@media (max-width:991px){
  .dropdown-menu.scroll-menu{max-height:50vh;margin:.25rem 0 .75rem}
  .navbar-collapse{max-height:calc(100vh - 80px);overflow-y:auto}
  .scroll-menu .dropdown-item-group{padding:.75rem .9rem}
}

/* =========================================================
   8. CONTACT PAGE
========================================================= */
.contact-hero{padding:4rem 0 5rem}
.contact-hero-row{display:flex;align-items:flex-start;justify-content:space-between;gap:2rem}
.contact-hero h1{font-size:4rem;margin-bottom:1.4rem}
.contact-hero .contact-cta{flex-shrink:0;margin-top:.6rem}

.info-section{padding:3.5rem 0;background:#fff}
.info-row{display:grid;grid-template-columns:340px minmax(0,1fr);gap:3rem;align-items:start}
.info-row h2{margin:0;font-family:var(--font-serif);font-size:1.9rem;font-weight:500;color:var(--text-dark)}
.info-row p{margin:0;max-width:880px;color:#64748b;font-size:1rem;line-height:1.9}
.info-row p a{color:#855910;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.info-row p a:hover{color:#0b2545}

@media (max-width:991px){
  .contact-hero h1{font-size:2.8rem}
  .info-row{grid-template-columns:1fr;gap:1rem}
}
@media (max-width:767px){
  .contact-hero{padding:3rem 0 3.5rem}
  .contact-hero-row{flex-direction:column;gap:1rem}
  .contact-hero h1{font-size:2.2rem}
  .contact-hero .contact-cta{margin-top:0}
  .info-section{padding:2.5rem 0}
}

/* =========================================================
   9. ABOUT PAGE
========================================================= */
.about-page .eyebrow-dark { display: block; margin-bottom: 1.2rem; color: #58697a; font-size: .75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.about-page .about-h2 { margin: 0; font-family: var(--font-serif, 'Playfair Display', serif); font-weight: 500; font-size: 4rem; line-height: 1.04; letter-spacing: -1px; }

/* 1. HERO */
.about-page .about-hero { padding: 2.2rem 0 4.5rem; }
.about-page .about-hero::after { content: ''; position: absolute; width: 340px; height: 340px; right: -20px; top: -170px; border: 1px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.about-page .about-hero .breadcrumb-al { margin-bottom: 3rem; }
.about-page .about-hero .breadcrumb-al span:last-child { color: #fff; font-weight: 600; }
.about-page .about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: end; }
.about-page .about-hero h1 { font-size: 5rem; line-height: 1.04; letter-spacing: -1.5px; margin: 0 0 1.6rem; }
.about-page .about-hero .lead-text { max-width: 680px; font-size: 1.1rem; line-height: 1.8; }
.about-page .about-role { padding: 1.6rem 1.8rem; background: #16233a; border-left: 3px solid var(--gold, #e5b342); }
.about-page .about-role strong { display: block; margin-bottom: .8rem; color: var(--gold, #e5b342); font-size: .72rem; letter-spacing: 1.8px; text-transform: uppercase; }
.about-page .about-role p { margin: 0; color: #cbd5e1; font-size: .92rem; line-height: 1.75; }

/* 2. PURPOSE */
.about-page .about-purpose { padding: 5rem 0; background: var(--beige, #f6f3eb); }
.about-page .purpose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.about-page .purpose-grid .about-h2 { color: #14202f; max-width: 560px; }
.about-page .purpose-text { padding-top: 2.6rem; }
.about-page .purpose-text p {
    margin: 0 0 1.4rem; max-width: 560px; padding: .25rem 0 .25rem 1.2rem;
    border-left: 2px solid transparent; color: #64748b; font-size: 1rem; line-height: 1.85;
    transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.about-page .purpose-text p:hover { color: #334155; border-left-color: var(--gold-dark, #c89528); transform: translateX(6px); }

/* 3. PRINCIPLES */
.about-page .about-principles { padding: 4.5rem 0 5rem; background: #fff; }
.about-page .principles-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.about-page .principles-head .about-h2 { color: #14202f; font-size: 3.8rem; }
.about-page .principles-head p { margin: 0; max-width: 400px; color: #64748b; line-height: 1.85; }
.about-page .principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #d1d5db; border-left: 1px solid #d1d5db; }
.about-page .principle-cell { display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; padding: 2rem; border-right: 1px solid #d1d5db; border-bottom: 1px solid #d1d5db; }
.about-page .principle-cell .num { color: #a3751e; font-family: var(--font-serif, 'Playfair Display', serif); font-size: .95rem; }
.about-page .principle-cell h3 { margin: 0 0 .9rem; font-family: var(--font-serif, 'Playfair Display', serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25; color: #0c1825; }
.about-page .principle-cell p { margin: 0; color: #64748b; font-size: .88rem; line-height: 1.85; }

/* 4. ROLES */
.about-page .about-roles { padding: 4.5rem 0 5rem; background: var(--dark, #07121e); color: #fff; border-bottom: 3px solid #f3d98b; }
.about-page .roles-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4rem; align-items: center; }
.about-page .roles-grid .about-h2 { color: #fff; margin-bottom: 1.6rem; }
.about-page .roles-intro p { margin: 0; max-width: 420px; color: #a9bbcd; line-height: 1.85; }
.about-page .roles-panels { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.15); }
.about-page .role-panel { display: flex; flex-direction: column; min-height: 460px; padding: 2.2rem; }
.about-page .role-panel.light { background: var(--gold, #e5b342); color: #0c1825; }
.about-page .role-panel .label { font-size: .72rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.about-page .role-panel h3 { margin: auto 0 1.4rem; padding-top: 3rem; font-family: var(--font-serif, 'Playfair Display', serif); font-size: 2.1rem; font-weight: 500; line-height: 1.2; }
.about-page .role-list { list-style: none; margin: 0; padding: 0; }
.about-page .role-list li { position: relative; padding: 0 0 1rem 2.2rem; font-size: .88rem; line-height: 1.6; }
.about-page .role-list li::before { content: "\2014"; position: absolute; left: 0; top: 0; opacity: .7; }
.about-page .role-panel.light .role-list li { color: #2b2a20; }

@media (max-width: 1199px) {
    .about-page .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-page .about-hero h1 { font-size: 4rem; }
}
@media (max-width: 991px) {
    .about-page .about-hero-grid,
    .about-page .purpose-grid,
    .about-page .principles-head,
    .about-page .roles-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-page .about-h2,
    .about-page .principles-head .about-h2 { font-size: 2.8rem; }
    .about-page .about-hero h1 { font-size: 3.2rem; }
    .about-page .about-hero .breadcrumb-al { margin-bottom: 2rem; }
    .about-page .about-purpose,
    .about-page .about-principles,
    .about-page .about-roles { padding: 3.5rem 0; }
}
@media (max-width: 767px) {
    .about-page .roles-panels { grid-template-columns: 1fr; }
    .about-page .role-panel { min-height: 0; }
    .about-page .role-panel h3 { padding-top: 2rem; }
}
@media (max-width: 575px) {
    .about-page .principles-grid { grid-template-columns: 1fr; }
    .about-page .principle-cell { min-height: 0; gap: 2rem; }
    .about-page .about-hero h1 { font-size: 2.4rem; }
    .about-page .about-h2,
    .about-page .principles-head .about-h2 { font-size: 2.2rem; }
}

/* =========================================================
   10. GLOBAL RESPONSIVE (all pages)
========================================================= */
main{overflow-x:clip}
img,svg,video{max-width:100%;height:auto}

/* grids never force a horizontal scrollbar on narrow phones */
.listing-grid{grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}
.steps-grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.principle-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}

.results-meta{flex-wrap:wrap;gap:.5rem 1rem}
.filter-bar .al-btn-gold{justify-content:center}

/* Tablet */
@media (min-width:576px) and (max-width:991px){
  .filter-bar{grid-template-columns:1fr 1fr}
  .filter-bar .al-btn-gold{grid-column:1 / -1}
  .filter-bar.single{grid-template-columns:1fr}
}
@media (max-width:991px){
  .page-hero .lead-text,.hero-description{max-width:100%}
  .cta-band{padding:3rem 0}
  .cta-band h2{font-size:2rem}
  .detail-block h2{font-size:1.6rem}
  .pro-band{padding:3.5rem 0}
}

/* Phones */
@media (max-width:575px){
  .btn-gold-hero,.btn-outline-hero,.al-btn-gold{white-space:normal;text-align:center}
  .hero-section .d-flex.flex-wrap.gap-3 > a,
  .cta-band .d-flex > a,
  .pro-band .btn-gold-hero,
  .side-card .btn-gold-hero,.side-card .btn-outline-hero{width:100%;justify-content:center}
  .filter-bar{padding:1rem;gap:.8rem}
  .listing-card{padding:1.3rem}
  .listing-card h3{font-size:1.2rem}
  .detail-block h2{font-size:1.4rem}
  .check-list li{font-size:.92rem;padding-left:2rem}
  .intro-block,.section-pad{padding:2.5rem 0}
  .intro-block h2{font-size:1.7rem}
  .pro-band h2{font-size:1.7rem}
  .results-meta h2{font-size:1.6rem}
  .al-accordion .accordion-button{font-size:1.05rem}
  .prose h2{font-size:1.35rem}
  .footer-links a{display:inline-block;padding:.15rem 0}
  .site-footer{padding:3rem 0 1.5rem}
}

/* =========================================================
   11. SCROLL REVEAL ANIMATION (add class "reveal" to any block)
   Hidden only when JS is active, so content never disappears if JS fails.
========================================================= */
.js .reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--reveal-delay,0s);
}
.js .reveal.in-view{opacity:1; transform:none}

@media (max-width:991px){
  .about-page .purpose-text{padding-top:0}
}
@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1; transform:none; transition:none}
  .about-page .purpose-text p{transition:none}
  .about-page .purpose-text p:hover{transform:none}
}
