/*
 Theme Name:   David Arato Child
 Theme URI:    https://davidarato.com
 Description:  Child theme for davidarato.com, built on Twenty Twenty-One. Provides the shared header, footer, and design system for all pages.
 Author:       Lexicon Legal Content
 Template:     twentytwentyone
 Version:      1.0.0
*/

/* =========================================================
   David Arato -- Shared Style System
   Related to the Lexicon Legal Content brand (same type
   pairing, same structural DNA: dark hero/footer bands,
   eyebrow > heading > intro section pattern, generous
   whitespace) but a distinct, warmer palette of its own.
   ========================================================= */

:root {
    /* Primary */
    --charcoal: #1C1815;       /* dominant dark: hero, footer, headings */
    --brass: #B8873B;          /* CTAs, links, accents, active states */

    /* Secondary / warm neutrals */
    --bg: #FAF6F0;             /* page background */
    --divider: #E4DCCB;        /* rules, borders, subtle dividers */
    --border: #D8C9A8;         /* card borders, input outlines */
    --row: #F3ECDF;            /* alternating rows, light card fills */
    --highlight: #EFDFC0;      /* heading highlight strips, tags */
    --muted: #9C8354;          /* eyebrows, metadata, secondary labels */
    --soft-link: #8A6A2F;      /* secondary links, placeholder text */
    --mid: #6B4F23;            /* secondary headings, mid accents */
    --white: #FFFFFF;          /* card surfaces */

    /* Text */
    --body-text: #4A4440;

    --max-width: 880px;
}

body, .site, .wp-site-blocks { background-color: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--body-text);
    background-color: var(--bg);
}

h1, h2, h3 { font-family: 'Bodoni Moda', serif; color: var(--charcoal); }

h1 {
    font-weight: 700;
    line-height: 1.1;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    color: #FFFFFF; /* set on dark hero backgrounds */
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.5rem;
}

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

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */

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

.section { padding: 4.5rem 0; }
.section-light { background-color: #FFFFFF; }
.section-bg { background-color: var(--bg); }
.section-dark { background-color: var(--charcoal); }
.section-dark h2 { color: #FFFFFF; }
.section-dark .eyebrow { color: rgba(255,255,255,0.6); }
.section-dark p, .section-dark .section-intro { color: rgba(255,255,255,0.72); }
.section-dark a:not(.btn-primary):not(.btn-secondary) { color: var(--brass); }

.in-print-label { color: var(--charcoal); }

.section-cta { text-align: center; }
.section-cta .section-intro { max-width: 520px; margin-left: auto; margin-right: auto; }

.divider { width: 100%; height: 1px; background-color: var(--divider); }

/* ---------- Section header pattern ---------- */
/* Eyebrow > heading > one-sentence intro. Same convention as Lexicon docs. */

.eyebrow {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.section-intro {
    max-width: 620px;
    font-size: 1rem;
    color: var(--body-text);
    margin-bottom: 2rem;
}

.hl {
    background-color: var(--highlight);
    padding: 0 0.2rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
	    max-width: none;
	    margin-left: 0;
	    margin-right: 0;
	    width: 100%;
    background-color: var(--charcoal);
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-name {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }

.site-nav ul { display: flex; gap: 1.75rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

.site-nav a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

.site-nav a:hover,
.site-nav a.active,
.site-nav .current-menu-item a { color: var(--brass); text-decoration: none; }

/* ---------- Hero ---------- */

.hero { background-color: var(--charcoal); padding: 5rem 0 5.5rem; }

.hero-eyebrow {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
    border: 1px solid rgba(184,135,59,0.4);
    padding: 0.35rem 0.85rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; max-width: 720px; }

.hero-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.72);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2.25rem;
}

/* ---------- Buttons / CTAs ---------- */

.btn-primary, .btn-secondary {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.1rem;
    border-radius: 2px;
    margin: 0.35rem 0.35rem 0.35rem 0;
}

.btn-primary { color: #FFFFFF; background-color: var(--brass); }
.btn-primary:hover { background-color: #A2762F; text-decoration: none; }

.btn-secondary {
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--brass); color: var(--brass); text-decoration: none; }

/* Light-background variant (buttons placed on white/cream sections) */
.btn-secondary-dark {
    color: var(--charcoal);
    border: 1px solid var(--border);
}
.btn-secondary-dark:hover { border-color: var(--brass); color: var(--brass); text-decoration: none; }

/* ---------- Cards ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.5rem 0; }

.card {
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.75rem 2rem;
}

.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Pull quote / endorsement ---------- */

.quote {
    background-color: var(--row);
    border-left: 3px solid var(--brass);
    padding: 1.25rem 1.5rem;
    border-radius: 0 3px 3px 0;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    font-style: italic;
    color: var(--charcoal);
}

.quote cite {
    display: block;
    margin-top: 0.6rem;
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

/* ---------- Dark callout ---------- */

.callout {
    background-color: var(--charcoal);
    color: #FFFFFF;
    padding: 2rem 2.25rem;
    border-radius: 3px;
    margin: 2rem 0;
}
.callout h3 { color: var(--brass); margin-bottom: 0.5rem; }
.callout p { color: rgba(255,255,255,0.8); margin-bottom: 0.75rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
	    max-width: none;
	    margin-left: 0;
	    margin-right: 0;
	    width: 100%;
    background-color: var(--charcoal);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2.25rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-name {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 0.95rem;
}

.footer-links ul { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

.footer-links a {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--brass); }

.footer-text { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ---------- Placeholder text ---------- */
/* Content to fill in later. Always wrapped in [ ] so it stays obvious. */
.placeholder { color: var(--soft-link); font-style: italic; }

/* ---------- Blank page template (strip parent theme chrome) ---------- */
.davidarato-page main.site-main { max-width: none; padding: 0; margin: 0; width: 100%; }
.davidarato-page .entry-header, .davidarato-page .entry-footer { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .two-col, .three-col { grid-template-columns: 1fr; }
    .site-nav ul { gap: 1.1rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
