/*
Theme Name: Taveras Advisory Group
Theme URI: https://taverasadvisorygroup.com
Author: Antigravity
Description: Boutique luxury theme for Taveras Group — matte black, refined gold, editorial typography.
Version: 3.0.0
Text Domain: taveras
*/

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
    --black:        #0A0A0A;
    --black-light:  #111111;
    --surface:      #141414;
    --surface-2:    #1A1A1A;
    --gold:         #C9A84C;
    --gold-light:   #E2C97E;
    --gold-dim:     rgba(201,168,76,0.12);
    --gold-border:  rgba(201,168,76,0.18);
    --white:        #F5F5F0;
    --white-pure:   #FFFFFF;
    --text:         rgba(245,245,240,0.60);
    --text-light:   rgba(245,245,240,0.40);
    --line:         rgba(245,245,240,0.06);

    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body:    'Inter', 'Helvetica Neue', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --duration:     0.5s;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--black);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--white);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3.2rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { margin-bottom: 1.5rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
a:hover { color: var(--gold-light); }

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

/* =========================================
   LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 48px);
}

.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1400px; }

/* =========================================
   UTILITY CLASSES
   ========================================= */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--sm { padding: clamp(50px, 8vw, 100px) 0; }
.bg-dark { background: var(--black-light); }
.text-center { text-align: center; }

/* Eyebrow label */
.eyebrow {
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Section heading */
.section__title {
    margin-bottom: 1.5rem;
}

/* Thin gold line */
.divider {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 2rem auto;
    opacity: 0.6;
}
.divider--left { margin-left: 0; }

/* Grid */
.grid { display: grid; gap: clamp(32px, 4vw, 64px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--black) !important;
}
.btn-primary:hover {
    background: var(--gold-light);
    color: var(--black) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201,168,76,0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--white) !important;
    border: 1px solid var(--gold-border);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text) !important;
    border: none;
    padding: 14px 16px;
}
.btn-ghost:hover { color: var(--gold) !important; }

.btn-outline {
    background: transparent;
    color: var(--white) !important;
    border: 1px solid var(--line);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
}

/* Link arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    transition: gap var(--duration) var(--ease);
}
.link-arrow:hover { gap: 16px; color: var(--gold-light); }
.link-arrow span { transition: transform var(--duration) var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: relative;
    z-index: 9000;
    background: var(--black);
    border-bottom: 1px solid var(--line);
}

.header-main { padding: 20px 0; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding { flex-shrink: 0; }

.brand-logo-img,
.custom-logo {
    max-height: 70px;
    width: auto;
    mix-blend-mode: lighten;
    filter: contrast(1.1) brightness(1.05);
    transition: opacity var(--duration) var(--ease);
}
.brand-logo-img:hover,
.custom-logo:hover { opacity: 0.85; }

.primary-navigation ul {
    list-style: none;
    display: flex;
    gap: clamp(20px, 3vw, 40px);
}
.primary-navigation a {
    color: var(--text);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 400;
    padding-bottom: 3px;
    position: relative;
    transition: color var(--duration) var(--ease);
}
.primary-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--duration) var(--ease);
}
.primary-navigation a:hover { color: var(--white); }
.primary-navigation a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* =========================================
   HERO — Full-viewport cinematic
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.4) 0%,
        rgba(10,10,10,0.7) 50%,
        rgba(10,10,10,0.95) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    animation: heroFadeIn 1.2s var(--ease-out) both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text);
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 300;
}

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

/* Scroll line */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    animation: scrollPulse 3s ease infinite;
}
.hero__scroll-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0.7; transform: translateX(-50%) translateY(6px); }
}

/* Page-level hero (shorter, for inner pages) */
.hero--page {
    min-height: 50vh;
}

/* =========================================
   CARDS — Refined service cards
   ========================================= */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(32px, 4vw, 56px);
    position: relative;
    transition: all var(--duration) var(--ease);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}
.card:hover {
    border-color: var(--gold-border);
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    border: 1px solid var(--gold-border);
    margin-bottom: 2rem;
    transition: all var(--duration) var(--ease);
}
.card:hover .card__icon {
    background: var(--gold-dim);
    border-color: var(--gold);
}

.card h3 { margin-bottom: 1rem; }
.card p { font-size: 0.92rem; color: var(--text); }

/* =========================================
   FEATURES — Numbered 3-column
   ========================================= */
.features {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.features__item {
    padding: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px);
    border-right: 1px solid var(--line);
    transition: background var(--duration) var(--ease);
}
.features__item:last-child { border-right: none; }
.features__item:hover { background: rgba(201,168,76,0.02); }

.features__number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--gold-dim);
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.features__item h3 { margin-bottom: 0.75rem; }
.features__item p { font-size: 0.92rem; }

/* =========================================
   CTA — Refined call to action
   ========================================= */
.cta {
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(201,168,76,0.04), transparent 70%);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* =========================================
   PORTAL FEATURES LIST
   ========================================= */
.portal-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}
.portal-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--text);
}
.portal-features li:last-child { border-bottom: none; }
.portal-features .check {
    color: var(--gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* =========================================
   ABOUT — Image + text layout
   ========================================= */
.about-image-wrap { position: relative; }

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    position: relative;
}
.about-image-placeholder::after {
    content: '';
    position: absolute;
    top: 16px; left: 16px;
    right: -16px; bottom: -16px;
    border: 1px solid var(--gold-border);
    z-index: -1;
}

.image-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.3;
}

/* =========================================
   QUOTE / BLOCKQUOTE
   ========================================= */
.quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold);
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    line-height: 1.7;
}

/* =========================================
   CHECKLIST
   ========================================= */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text);
}
.checklist li::before {
    content: '—';
    color: var(--gold);
    flex-shrink: 0;
    font-weight: 500;
}

/* =========================================
   VALUE CARDS
   ========================================= */
.value-card {
    padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
    text-align: center;
    border-top: 1px solid var(--gold);
    background: var(--surface);
}
.value-card h3 { margin-bottom: 1rem; }
.value-card p { font-size: 0.9rem; color: var(--text); }

/* =========================================
   SERVICE DETAIL BLOCKS (inner pages)
   ========================================= */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
}

.service-detail__card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(32px, 4vw, 56px);
    position: relative;
}
.service-detail__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--line);
    padding: clamp(60px, 8vw, 100px) 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(40px, 5vw, 60px);
    border-bottom: 1px solid var(--line);
}

.footer-logo-img {
    max-width: 140px;
    mix-blend-mode: lighten;
    filter: contrast(1.1) brightness(1.05);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--white);
    opacity: 0.5;
}

.footer-col h3 {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col a { color: var(--text-light); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-light);
}
.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--gold); }

/* =========================================
   LOGIN MODAL
   ========================================= */
.portal-login-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}
.portal-login-modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--gold-border);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px;
    z-index: 100000;
    box-shadow: 0 32px 80px rgba(0,0,0,0.9);
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-out);
}
.modal-content::-webkit-scrollbar { width: 3px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--gold); }
.portal-login-modal.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color var(--duration) var(--ease);
}
.modal-close:hover { color: var(--gold); }

.modal-header { text-align: center; margin-bottom: 2rem; }
.modal-logo { max-height: 85px; mix-blend-mode: lighten; margin: 0 auto 1.5rem; }
.modal-header h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.modal-header p { font-size: 0.85rem; }

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

/* WP Login / Register form */
.custom-login-form label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 500;
}
.custom-login-form input[type="text"],
.custom-login-form input[type="password"],
.custom-login-form input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    background: var(--black);
    border: 1px solid var(--line);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    margin-bottom: 16px;
    transition: border-color var(--duration) var(--ease);
}
.custom-login-form input:focus {
    outline: none;
    border-color: var(--gold);
}
.custom-login-form input[type="submit"],
.custom-login-form .button-primary {
    width: 100%;
    padding: 14px 20px;
    background: var(--gold);
    color: var(--black) !important;
    border: none;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.custom-login-form input[type="submit"]:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}
.custom-login-form p.login-remember { margin-bottom: 14px; font-size: 0.85rem; }
#tag-register-form p { margin-bottom: 0; }

/* =========================================
   PORTAL / DASHBOARD
   ========================================= */
.portal-page {
    padding: 60px 24px 100px;
    max-width: 1240px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}
.dashboard-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 2rem;
}
.dashboard-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.profile-avatar {
    width: 64px; height: 64px;
    background: var(--gold);
    color: var(--black);
    font-size: 1.6rem;
    font-family: var(--font-display);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
}
.profile-card { text-align: center; }

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--black);
    border: 1px solid var(--line);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-top: 6px;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--duration) var(--ease);
}
.form-control:focus { outline: none; border-color: var(--gold); }

/* Upload Zone */
.upload-zone {
    border: 1px dashed rgba(245,245,240,0.1);
    padding: 48px 20px;
    text-align: center;
    margin-top: 1.5rem;
    background: var(--black);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.upload-zone:hover { border-color: var(--gold-border); }
.upload-zone.dragover {
    border-color: var(--gold);
    background: var(--gold-dim);
}

/* History Table */
.history-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.history-table th {
    text-align: left;
    color: var(--text-light);
    padding: 12px 10px;
    border-bottom: 1px solid var(--gold-border);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.68rem;
    font-weight: 500;
}
.history-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
}
.history-table tbody tr:hover { background: rgba(245,245,240,0.015); }

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    background: var(--black);
    border: 1px solid var(--line);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    margin-bottom: 1rem;
    transition: border-color var(--duration) var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }

.contact-form label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 500;
}

/* =========================================
   LOGO
   ========================================= */
.custom-fallback-logo { display: inline-flex; }

/* =========================================
   LEGACY COMPAT — Old class bridging
   ========================================= */
.hero-section { /* bridge old class */
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 24px; animation: heroFadeIn 1.2s var(--ease-out) both; }
.hero-section h1 { font-size: clamp(3.2rem, 8vw, 6rem); margin-bottom: 1.5rem; line-height: 1.05; }
.hero-subtitle { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text); max-width: 520px; margin: 0 auto 3rem; line-height: 1.8; font-weight: 300; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; opacity: 0.4; animation: scrollPulse 3s ease infinite; }
.hero-scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--gold), transparent); }

.section-padding { padding: clamp(80px, 12vw, 160px) 0; }
.section-padding-sm { padding: clamp(50px, 8vw, 100px) 0; }
.section-eyebrow { /* bridge old class */
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.section-title { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1.5rem; }
.gold-divider { width: 48px; height: 1px; background: var(--gold); margin: 2rem auto; opacity: 0.6; }
.gold-text { color: var(--gold); }

.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px); align-items: center; }

.home-about { position: relative; }
.about-text p { font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.25rem; }
.home-services { position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 3rem; }
.service-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(32px, 4vw, 56px); position: relative; transition: all var(--duration) var(--ease); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: var(--gold-border); transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.card-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--gold); border: 1px solid var(--gold-border); margin-bottom: 2rem; transition: all var(--duration) var(--ease); }
.service-card:hover .card-icon { background: var(--gold-dim); border-color: var(--gold); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.service-card p { font-size: 0.92rem; color: var(--text); }

.home-cta { position: relative; overflow: hidden; }
.home-cta::before { content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(ellipse, rgba(201,168,76,0.04), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; text-align: center; }
.cta-actions { display: flex; justify-content: center; gap: 16px; margin-top: 3rem; flex-wrap: wrap; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature-item { padding: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px); border-right: 1px solid var(--line); transition: background var(--duration) var(--ease); }
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(201,168,76,0.02); }
.feature-number { font-family: var(--font-display); font-size: 3.5rem; color: var(--gold-dim); line-height: 1; margin-bottom: 1.5rem; }
.feature-item h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.feature-item p { font-size: 0.92rem; }

.bg-darker { background: var(--black-light); }

.mobile-menu-toggle { display: none; }
.mobile-only-actions { display: none !important; }

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .grid--4 { grid-template-columns: 1fr 1fr; }
    .features__grid { grid-template-columns: 1fr 1fr; }
    .features__item:nth-child(2) { border-right: none; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .feature-item:nth-child(2) { border-right: none; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .service-detail { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: clamp(60px, 8vw, 100px) 0; }
    .section-padding { padding: clamp(60px, 8vw, 100px) 0; }

    .header-inner { flex-wrap: nowrap; justify-content: space-between; }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10000;
        padding: 8px;
    }
    .mobile-menu-toggle .bar {
        width: 26px;
        height: 2px;
        background-color: var(--white);
        transition: all 0.3s ease;
    }
    .mobile-menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .primary-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(10px);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s var(--ease-out);
    }
    .primary-navigation.is-active { right: 0; }
    
    .primary-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .primary-navigation a { font-size: 1.25rem; }
    .mobile-only-actions { display: flex !important; }

    .header-actions { display: none; } /* Simplify header on mobile, menu has links */

    .brand-logo-img, .custom-logo { max-height: 56px; z-index: 10000; position: relative; }

    .hero, .hero-section { min-height: 90vh; }
    .hero h1, .hero-section h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); }
    .hero__actions, .hero-actions { flex-direction: column; align-items: center; }
    .hero__subtitle, .hero-subtitle { margin-bottom: 2rem; }

    .grid--2, .grid-2-col { grid-template-columns: 1fr; }
    .grid--3 { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: 1fr 1fr; }

    .features__grid, .features-grid { grid-template-columns: 1fr; }
    .features__item, .feature-item { border-right: none; border-bottom: 1px solid var(--line); }

    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .dashboard-grid { grid-template-columns: 1fr; }
    .cta__actions, .cta-actions { flex-direction: column; align-items: center; }

    .about-image-wrap { order: -1; }
    .about-image-placeholder { aspect-ratio: 3/2; }
    .about-image-placeholder::after { display: none; }

    .service-detail { grid-template-columns: 1fr; gap: 2rem; }
    .values-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .grid--4 { grid-template-columns: 1fr; }
    .btn { padding: 14px 28px; width: 100%; }
}
