/* ============================================================
   Canvas Signature Heritage — Main Stylesheet
   csh-main.css
   Core variables, reset, typography, buttons, utilities
   ============================================================ */

/* ─────────────────────────────────────────────
   CSS Custom Properties
───────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --csh-navy:         #1a2744;
    --csh-navy-dark:    #111d38;
    --csh-charcoal:     #2c2c2c;
    --csh-charcoal-lt:  #404040;
    --csh-ivory:        #f9f6f0;
    --csh-warm-white:   #fdfaf5;
    --csh-gold:         #c9a96e;
    --csh-gold-dark:    #b08a50;
    --csh-gold-light:   #e8d5b0;
    --csh-tan:          #d4c4a8;

    /* Text */
    --csh-text-dark:    #1a1a1a;
    --csh-text-mid:     #4a4a4a;
    --csh-text-muted:   #7a7a7a;
    --csh-text-light:   #f5f0e8;

    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-v:        120px;
    --section-v-sm:     80px;
    --container-max:    1440px;
    --container-narrow: 800px;
    --container-mid:    1100px;

    /* Borders */
    --border-gold:      1px solid var(--csh-gold);
    --border-light:     1px solid rgba(255,255,255,0.2);
    --border-dark:      1px solid rgba(0,0,0,0.12);

    /* Shadows */
    --shadow-sm:  0 2px 16px rgba(0,0,0,0.06);
    --shadow-md:  0 8px 40px rgba(0,0,0,0.10);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.15);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition:  all 0.4s var(--ease-smooth);
    --transition-slow: all 0.8s var(--ease-smooth);
}

/* ─────────────────────────────────────────────
   Base Reset
───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body.csh-site {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--csh-text-dark);
    background-color: var(--csh-warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

p {
    margin: 0 0 1.25rem;
}

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

address {
    font-style: normal;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--csh-ivory); }
::-webkit-scrollbar-thumb { background: var(--csh-gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--csh-gold-dark); }

/* Selection */
::selection {
    background: var(--csh-gold-light);
    color: var(--csh-navy);
}

/* ─────────────────────────────────────────────
   Typography
───────────────────────────────────────────── */
.csh-headline-xl {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--csh-charcoal);
}

.csh-headline-lg {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--csh-charcoal);
}

.csh-headline-md {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    line-height: 1.2;
    color: var(--csh-charcoal);
}

.csh-eyebrow {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--csh-gold);
    margin-bottom: 1rem;
    display: block;
}

.csh-eyebrow--light {
    color: rgba(255, 255, 255, 0.7);
}

.csh-eyebrow--gold {
    color: var(--csh-gold);
}

.csh-body-lg {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--csh-text-mid);
    margin-bottom: 1.5rem;
}

.csh-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--csh-text-mid);
    margin-bottom: 1.25rem;
}

.csh-body--wide {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.csh-note {
    font-size: 0.85rem;
    color: var(--csh-text-muted);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.csh-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--csh-gold-dark);
    line-height: 1.5;
}

.csh-quote--inline {
    display: block;
    margin: 2rem auto;
    max-width: 600px;
}

.csh-blockquote {
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.csh-blockquote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    line-height: 1.6;
    color: var(--csh-charcoal);
    margin-bottom: 1.5rem;
}

.csh-blockquote footer {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--csh-gold);
}

/* ─────────────────────────────────────────────
   Containers
───────────────────────────────────────────── */
.csh-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
}

.csh-container--narrow {
    max-width: var(--container-narrow);
}

.csh-container--mid {
    max-width: var(--container-mid);
}

/* ─────────────────────────────────────────────
   Sections
───────────────────────────────────────────── */
.csh-section {
    width: 100%;
    padding-top: var(--section-v);
    padding-bottom: var(--section-v);
}

.csh-section--ivory     { background-color: var(--csh-ivory); }
.csh-section--white     { background-color: #ffffff; }
.csh-section--warm      { background-color: var(--csh-warm-white); }
.csh-section--navy      { background-color: var(--csh-navy); }
.csh-section--charcoal  { background-color: var(--csh-charcoal); }

.csh-section-header {
    margin-bottom: 64px;
}

.csh-section-header--center {
    text-align: center;
}

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.csh-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 40px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.csh-btn--gold {
    background: transparent;
    border-color: var(--csh-gold);
    color: var(--csh-gold);
}
.csh-btn--gold:hover, .csh-btn--gold:focus-visible {
    background: var(--csh-gold);
    color: var(--csh-navy);
    outline: none;
}

.csh-btn--gold-solid {
    background: var(--csh-gold);
    border-color: var(--csh-gold);
    color: var(--csh-navy);
}
.csh-btn--gold-solid:hover {
    background: var(--csh-gold-dark);
    border-color: var(--csh-gold-dark);
}

.csh-btn--navy-outline {
    background: transparent;
    border-color: var(--csh-navy);
    color: var(--csh-navy);
}
.csh-btn--navy-outline:hover, .csh-btn--navy-outline:focus-visible {
    background: var(--csh-navy);
    color: #fff;
    outline: none;
}

.csh-btn--navy-sm {
    background: var(--csh-navy);
    border-color: var(--csh-navy);
    color: #fff;
    padding: 10px 24px;
    font-size: 0.68rem;
}
.csh-btn--navy-sm:hover {
    background: var(--csh-navy-dark);
    border-color: var(--csh-navy-dark);
}

.csh-btn--outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}
.csh-btn--outline-white:hover, .csh-btn--outline-white:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    outline: none;
}

.csh-btn--ghost {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding-left: 0;
    padding-right: 0;
}
.csh-btn--ghost:hover { color: #fff; }

.csh-btn--ghost-navy {
    background: transparent;
    border: none;
    color: var(--csh-text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding-left: 0;
    padding-right: 0;
}
.csh-btn--ghost-navy:hover { color: var(--csh-navy); }

.csh-btn--sm     { padding: 10px 24px; font-size: 0.68rem; }
.csh-btn--full   { width: 100%; text-align: center; }

.csh-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 2rem;
}

/* Submit loading state */
.csh-btn--submit.is-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

/* ─────────────────────────────────────────────
   Feature Lists
───────────────────────────────────────────── */
.csh-feature-list {
    margin: 1.5rem 0 2rem;
    padding: 0;
}
.csh-feature-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: var(--csh-text-mid);
}
.csh-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 1px;
    background: var(--csh-gold);
}
.csh-feature-list--light li {
    color: rgba(255,255,255,0.8);
}
.csh-feature-list--light li::before {
    background: var(--csh-gold);
}

/* ─────────────────────────────────────────────
   Splits / Grids
───────────────────────────────────────────── */
.csh-split {
    display: grid;
    gap: 64px;
    align-items: start;
}
.csh-split--equal    { grid-template-columns: 1fr 1fr; }
.csh-split--60-40    { grid-template-columns: 3fr 2fr; }
.csh-split--40-60    { grid-template-columns: 2fr 3fr; }
.csh-split__col--center { display: flex; flex-direction: column; justify-content: center; }

.csh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ─────────────────────────────────────────────
   Utility
───────────────────────────────────────────── */
.csh-text-center { text-align: center; }
.csh-text-right  { text-align: right; }

.csh-link-arrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--csh-gold);
    text-decoration: none;
    transition: var(--transition);
}
.csh-link-arrow:hover { color: var(--csh-gold-dark); letter-spacing: 0.2em; }
.csh-link-arrow--gold { color: var(--csh-gold); }

/* ─────────────────────────────────────────────
   Reveal Animation (JS-driven)
───────────────────────────────────────────── */
.csh-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}
.csh-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.csh-reveal > *:nth-child(1) { transition-delay: 0s; }
.csh-reveal > *:nth-child(2) { transition-delay: 0.1s; }
.csh-reveal > *:nth-child(3) { transition-delay: 0.2s; }
.csh-reveal > *:nth-child(4) { transition-delay: 0.3s; }
.csh-reveal > *:nth-child(5) { transition-delay: 0.4s; }
.csh-reveal > *:nth-child(6) { transition-delay: 0.5s; }

/* ─────────────────────────────────────────────
   Skip link
───────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--csh-gold);
    color: var(--csh-navy);
    padding: 12px 24px;
    font-weight: 700;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─────────────────────────────────────────────
   Main layout
───────────────────────────────────────────── */
.csh-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#csh-main {
    flex: 1;
}
