/*
Theme Name:  2A Architecture & Design Studio
Theme URI:   https://aamiar.ma
Author:      2A Architecture & Design Studio
Author URI:  https://aamiar.ma
Description: Thème personnalisé pour 2A Architecture & Design Studio — design de luxe sombre avec accents dorés. Compatible avec les projets d'architecture, design intérieur et urbanisme.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 2a-architecture
Tags:        architecture, dark, luxury, portfolio, custom-colors, custom-logo, full-width-template
*/

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
    --gold:        #B08D57;
    --gold-l:      #D4B07A;
    --gold-dark:   #8A6C3A;
    --dark:        #0A0E14;
    --panel:       #111720;
    --card:        #161E2A;
    --border:      rgba(176, 141, 87, 0.22);
    --border-hover:rgba(176, 141, 87, 0.55);
    --text:        #E8E2D9;
    --muted:       #8A8A8A;
    --muted-l:     #B0A89E;
    --white:       #FFFFFF;
    --error:       #E05252;
    --success:     #4CAF79;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --radius:      3px;
    --shadow-md:   0 8px 32px rgba(0,0,0,.45);
    --shadow-lg:   0 24px 80px rgba(0,0,0,.6);

    --transition:  0.22s ease;
    --max-w:       1240px;
    --header-h:    80px;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise grain overlay */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

p { margin-bottom: 1.2rem; color: var(--muted-l); }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { padding-left: 1.5rem; color: var(--muted-l); }
li { margin-bottom: .4rem; }

blockquote {
    border-left: 2px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

strong, b { color: var(--text); font-weight: 600; }
em, i { font-style: italic; }

code, pre {
    font-family: 'Courier New', monospace;
    font-size: .88rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
code { padding: .15rem .4rem; }
pre { padding: 1.2rem 1.5rem; overflow-x: auto; }

/* ── Utility ── */
.container {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══════════════════════════════════════════════════════
   HEADER & NAVIGATION
═══════════════════════════════════════════════════════ */
#masthead {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(10, 14, 20, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), box-shadow var(--transition);
}
#masthead.scrolled {
    background: rgba(10, 14, 20, 0.97);
    box-shadow: 0 4px 40px rgba(0,0,0,.5);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 1rem; }
.site-branding .custom-logo { height: 44px; width: auto; }
.site-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--white);
    text-decoration: none;
}
.site-title:hover { color: var(--gold); }
.site-description { display: none; }

/* Primary Nav */
.main-navigation {
    display: flex;
    align-items: center;
}
.main-navigation ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: .2rem;
    align-items: center;
}
.main-navigation a {
    display: block;
    padding: .5rem .9rem;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}
.main-navigation a::after {
    content: '';
    position: absolute; bottom: 0; left: .9rem; right: .9rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--gold-l);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after { transform: scaleX(1); }

/* Dropdown */
.main-navigation ul ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    box-shadow: var(--shadow-md);
    z-index: 100;
    gap: 0;
}
.main-navigation ul li { position: relative; }
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul ul a {
    padding: .7rem 1.2rem;
    letter-spacing: .1em;
    font-size: .72rem;
    border-bottom: 1px solid var(--border);
}
.main-navigation ul ul li:last-child a { border-bottom: none; }

/* CTA button in nav */
.nav-cta a {
    background: transparent !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    padding: .45rem 1.2rem !important;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition) !important;
}
.nav-cta a:hover {
    background: var(--gold) !important;
    color: var(--dark) !important;
}
.nav-cta a::after { display: none !important; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .5rem .7rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--text);
    transition: transform .25s, opacity .25s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .main-navigation {
        display: none;
        position: fixed;
        top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: rgba(10,14,20,.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }
    .main-navigation.open { display: flex; }
    .main-navigation ul { flex-direction: column; gap: .5rem; text-align: center; }
    .main-navigation a { font-size: 1rem; padding: .8rem 1.5rem; letter-spacing: .2em; }
    .main-navigation ul ul { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   SITE LAYOUT
═══════════════════════════════════════════════════════ */
#page { position: relative; z-index: 1; }

.site-content {
    padding-top: var(--header-h);
    min-height: 60vh;
}

/* ── Full width page ── */
.page-template-fullwidth .site-content,
.page-template-default .entry-content {
    padding-top: var(--header-h);
}

/* ═══════════════════════════════════════════════════════
   HERO / BANNER
═══════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}
.hero-section .hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .35;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1); }
.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,20,.9) 0%, rgba(10,14,20,.5) 50%, rgba(10,14,20,.8) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 720px;
    padding: 4rem 1.5rem;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .7rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px; height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin-right: .8rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--gold-l); }
.hero-subtitle {
    font-size: 1rem;
    color: var(--muted-l);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Vertical line after hero */
.hero-section .hero-line {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn, button.btn, input[type="submit"].btn,
.wp-block-button__link {
    display: inline-block;
    padding: .85rem 2.2rem;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--dark);
}
.btn-primary:hover {
    background: var(--gold-l);
    border-color: var(--gold-l);
    color: var(--dark);
    box-shadow: 0 8px 32px rgba(176,141,87,.35);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-l);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn-gold-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 8px 24px rgba(176,141,87,.25);
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════ */
.section { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 9rem 0; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-size: .68rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
}
.section-label::after {
    content: '';
    width: 40px; height: 1px;
    background: var(--gold);
    opacity: .5;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--muted-l);
    font-size: .95rem;
    max-width: 560px;
    line-height: 1.75;
}

/* Alt background */
.section-dark  { background: var(--panel); }
.section-card  { background: var(--card); }
.section-light { background: rgba(176,141,87,.04); }

/* Horizontal rule gold */
.gold-rule {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 4rem 0;
}

/* ═══════════════════════════════════════════════════════
   CARDS / SERVICES
═══════════════════════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }
.card-icon {
    width: 42px; height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.4rem;
    color: var(--gold);
    font-size: 1.2rem;
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: .6rem;
}
.card-text { font-size: .88rem; color: var(--muted-l); line-height: 1.7; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.2rem;
    text-decoration: none;
    transition: gap var(--transition);
}
.card-link:hover { gap: .8rem; color: var(--gold-l); }

/* ═══════════════════════════════════════════════════════
   PORTFOLIO GRID
═══════════════════════════════════════════════════════ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.2rem;
    margin-top: 3rem;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    cursor: pointer;
}
.portfolio-item:nth-child(1) { grid-column: span 8; grid-row: span 2; min-height: 520px; }
.portfolio-item:nth-child(2) { grid-column: span 4; min-height: 250px; }
.portfolio-item:nth-child(3) { grid-column: span 4; min-height: 250px; }
.portfolio-item:nth-child(n+4) { grid-column: span 4; min-height: 280px; }
@media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-item:nth-child(n) { grid-column: span 1; grid-row: span 1; min-height: 240px; }
}
@media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease, filter .6s ease;
    filter: brightness(.85) saturate(.9);
}
.portfolio-item:hover img {
    transform: scale(1.06);
    filter: brightness(.7) saturate(1);
}
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,20,.9) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .35s ease;
    display: flex; align-items: flex-end;
    padding: 2rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-info {}
.portfolio-category {
    font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .4rem;
}
.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 300;
    color: var(--white);
}

/* ═══════════════════════════════════════════════════════
   STATS / NUMBERS
═══════════════════════════════════════════════════════ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 3rem;
}
.stat-item {
    background: var(--card);
    padding: 2.5rem 2rem;
    text-align: center;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: .4rem;
}
.stat-label {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   TEAM
═══════════════════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.team-card {
    text-align: center;
}
.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
    filter: grayscale(.3) brightness(.9);
    transition: filter var(--transition);
    margin-bottom: 1.2rem;
}
.team-card:hover .team-photo { filter: grayscale(0) brightness(1); }
.team-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: .2rem;
}
.team-role {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.testimonial-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}
.testimonial-text::before { content: '"'; color: var(--gold); font-size: 2rem; line-height: 0; vertical-align: -.4em; margin-right: .2rem; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--border);
    background: var(--panel);
}
.testimonial-name { font-size: .85rem; color: var(--text); font-weight: 500; }
.testimonial-company { font-size: .72rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.contact-info-icon {
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    font-size: 1rem;
}
.contact-info-label {
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .2rem;
}
.contact-info-value { color: var(--text); font-size: .92rem; line-height: 1.6; }
.contact-info-value a { color: var(--text); }
.contact-info-value a:hover { color: var(--gold); }

/* ── Contact Form ── */
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label {
    display: block;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .9rem;
    padding: .8rem 1rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176,141,87,.1);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form textarea { resize: vertical; min-height: 140px; }

/* ═══════════════════════════════════════════════════════
   BLOG / POSTS
═══════════════════════════════════════════════════════ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.post-card-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(.85);
    transition: filter var(--transition), transform .5s ease;
}
.post-card:hover .post-card-thumb { filter: brightness(1); transform: scale(1.03); }
.post-card-thumb-wrap { overflow: hidden; }
.post-card-body { padding: 1.6rem; }
.post-card-meta {
    font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .6rem;
    display: flex; gap: .8rem; align-items: center;
}
.post-card-meta span::before { content: '·'; margin-right: .8rem; color: var(--border); }
.post-card-meta span:first-child::before { display: none; }
.post-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 300;
    color: var(--white);
    margin-bottom: .7rem;
    text-decoration: none;
    display: block;
    transition: color var(--transition);
}
.post-card-title:hover { color: var(--gold-l); }
.post-card-excerpt { font-size: .85rem; color: var(--muted-l); line-height: 1.65; }

/* Single post */
.single .entry-header { padding: 6rem 0 3rem; }
.single .entry-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--white);
}
.entry-meta {
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); margin-top: 1rem;
    display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center;
}
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--gold); }
.entry-content { max-width: 720px; margin: 3rem auto 5rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.5rem; margin-bottom: .8rem; }
.entry-content p { margin-bottom: 1.4rem; }
.entry-content img { border-radius: var(--radius); margin: 2rem auto; }

/* ═══════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════ */
.widget-area { padding-left: 2rem; }
.widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    margin-bottom: 2rem;
}
.widget-title {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 400;
    color: var(--white);
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; padding: 0; }
.widget ul li {
    padding: .45rem 0;
    border-bottom: 1px solid rgba(176,141,87,.08);
    font-size: .88rem;
    color: var(--muted-l);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--muted-l); text-decoration: none; }
.widget ul li a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   PAGE HEADER / BANNER
═══════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    padding: 9rem 0 5rem;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(176,141,87,.06) 0%, transparent 70%);
}
.page-hero-label {
    font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem;
}
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--white);
}
.page-hero-title em { font-style: italic; color: var(--gold-l); }

/* Breadcrumbs */
.breadcrumbs {
    font-size: .72rem; letter-spacing: .1em;
    color: var(--muted); margin-top: 1.2rem;
    display: flex; gap: .5rem; align-items: center; justify-content: center;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--border); }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
#colophon {
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    position: relative; z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-title { font-size: 1rem; margin-bottom: .8rem; display: block; }
.footer-brand .custom-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .82rem; color: var(--muted); line-height: 1.7; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
    font-size: .83rem;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-l); }
.footer-col p { font-size: .83rem; color: var(--muted); }
.footer-col address { font-style: normal; font-size: .83rem; color: var(--muted); line-height: 1.8; }
.footer-col address a { color: var(--muted); }
.footer-col address a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .75rem;
    color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
    width: 34px; height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-size: .8rem;
    transition: border-color var(--transition), color var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   WORDPRESS BLOCKS
═══════════════════════════════════════════════════════ */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-quote {
    border-left: 2px solid var(--gold);
    padding: 1rem 1.5rem;
    font-family: var(--font-display);
    font-style: italic;
}
.wp-block-separator { border-color: var(--border); }
.wp-block-button__link {
    background: var(--gold);
    color: var(--dark);
    border-radius: var(--radius);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .85rem 2rem;
}
.wp-block-button__link:hover {
    background: var(--gold-l);
    color: var(--dark);
}
.wp-block-cover { border-radius: var(--radius); }

/* ═══════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════ */
.comments-area {
    max-width: 720px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.comments-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 2rem;
}
.comment-list { list-style: none; padding: 0; }
.comment {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.comment-author img { border-radius: 50%; border: 1px solid var(--border); }
.comment-meta { font-size: .75rem; color: var(--muted); margin-bottom: .6rem; }
.comment-content p { font-size: .9rem; }
.comment-reply-link {
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold);
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    padding: .75rem 1rem;
    margin-bottom: .8rem;
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--gold); }
.comment-form .submit {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .85rem 2rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    border-radius: var(--radius);
}
.comment-form .submit:hover { background: var(--gold); color: var(--dark); }

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.navigation.pagination {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}
.nav-links { display: flex; gap: .5rem; align-items: center; }
.page-numbers {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .82rem;
    color: var(--muted);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}
.page-numbers:hover,
.page-numbers.current {
    border-color: var(--gold);
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════
   CUSTOM PAGE BUILDER CLASSES
═══════════════════════════════════════════════════════ */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-serif { font-family: var(--font-display); }
.bg-dark  { background: var(--dark); }
.bg-panel { background: var(--panel); }
.bg-card  { background: var(--card); }

/* ═══════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
.skip-link {
    position: absolute;
    top: -40px; left: 1rem;
    background: var(--gold);
    color: var(--dark);
    padding: .5rem 1rem;
    font-size: .8rem;
    z-index: 9999;
    transition: top .2s;
}
.skip-link:focus { top: .5rem; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-lg { padding: 5rem 0; }
    .hero-section { min-height: 75vh; }
    .cards-grid { grid-template-columns: 1fr; }
    .widget-area { padding-left: 0; margin-top: 3rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
