/* ============================================================
   Σycamore Barber & Co. — Design System & Styles
   ============================================================ */

/* --- Design tokens --- */
:root {
    --ink: #e8e8e8;
    --ink-light: #a0a0a0;
    --paper: #0a0a0a;
    --paper-warm: #0c1220;
    --charcoal: #060606;
    --charcoal-light: #111111;
    --stone: #5a5a5a;
    --stone-light: #3a3a3a;
    --brass: #c4a24e;
    --brass-light: #d4b565;
    --cream: #0b1018;
    --navy: #0d1a30;
    --sage: #8b9a82;

    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max-width: 1400px;
    --content-width: 900px;
    --gutter: clamp(1.25rem, 4vw, 3rem);

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    --transition: 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: 200ms ease;

    --border: 1px solid rgba(255, 255, 255, 0.08);
    --border-light: 1px solid rgba(255, 255, 255, 0.1);

    --radius: 2px;
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */

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

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-sm);
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--stone);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    display: block;
}

.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: var(--ink-light);
}

/* --- Layout --- */

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

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

.section {
    padding: var(--space-xl) 0;
}

.section--dark {
    background: var(--charcoal);
    color: var(--ink);
}

.section--dark .eyebrow {
    color: var(--brass-light);
}

.section--dark .lead {
    color: var(--ink-light);
}

.section--cream {
    background: var(--cream);
}

.section--stone {
    background: var(--navy);
}

.text-center { text-align: center; }
.text-brass { color: var(--brass); }

/* --- Separator --- */

.separator {
    width: 48px;
    height: 1px;
    background: var(--brass);
    margin: var(--space-md) 0;
    border: none;
}

.separator--center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--paper);
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--stone);
}
.btn--outline:hover,
.btn--outline:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brass);
    color: var(--brass);
}

.btn--light {
    background: transparent;
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn--light:hover,
.btn--light:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ink);
}

.btn--brass {
    background: var(--brass);
    color: var(--paper);
    border-color: var(--brass);
}
.btn--brass:hover,
.btn--brass:focus-visible {
    background: var(--brass-light);
    border-color: var(--brass-light);
}

.btn--small {
    padding: 0.7rem 1.8rem;
    font-size: 0.65rem;
}

/* --- Header / Navigation --- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.header-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    transition: color var(--transition-fast);
}

.header-logo img {
    height: 56px;
    width: auto;
}

/* Mobile menu — hidden on desktop */
.nav-menu {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brass);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-book {
    margin-left: 1rem;
}

/* --- Header (all dark) --- */

.header--dark .header-logo,
.header--dark .nav-links a {
    color: var(--ink);
}

.header--dark.scrolled .header-logo,
.header--dark.scrolled .nav-links a {
    color: var(--ink);
}

/* --- Mobile nav toggle --- */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    position: absolute;
    left: 0;
    transition: all 300ms ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.is-open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.header--dark .nav-toggle span {
    background: var(--paper);
}
.header--dark.scrolled .nav-toggle span {
    background: var(--ink);
}

/* --- Hero --- */

.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--charcoal);
    color: var(--ink);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--charcoal);
    /* Replace with: background-image: url('/assets/images/hero.jpg'); */
    /* background-size: cover; background-position: center; */
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--gutter);
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--brass-light);
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-location {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: var(--space-lg);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Image placeholders --- */

.img-placeholder {
    background: var(--charcoal-light);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: 'IMAGE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    opacity: 0.5;
}

.img-placeholder--tall { aspect-ratio: 3 / 4; }
.img-placeholder--wide { aspect-ratio: 16 / 9; }
.img-placeholder--square { aspect-ratio: 1 / 1; }
.img-placeholder--hero { aspect-ratio: 4 / 3; }

.section--dark .img-placeholder {
    background: var(--charcoal-light);
}

/* --- Two-column layout --- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.split--offset {
    grid-template-columns: 5fr 4fr;
}

.split-content {
    padding: var(--space-md) 0;
}

/* --- Service cards --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-md);
    border: var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--brass);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
}

.service-card .service-desc {
    color: var(--ink-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: var(--border);
    font-size: 0.8rem;
}

.service-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--brass);
}

.service-duration {
    color: var(--stone);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Feature / Why blocks --- */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.feature h4 {
    margin-bottom: var(--space-xs);
}

.feature p {
    font-size: 0.9rem;
    color: var(--ink-light);
    max-width: 280px;
    margin: 0 auto;
}

.feature .separator {
    margin: var(--space-sm) auto;
}

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

.pull-quote {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--ink);
}

.section--dark .pull-quote {
    color: var(--ink);
}

/* --- CTA banner --- */

.cta-banner {
    text-align: center;
    padding: var(--space-xl) var(--gutter);
}

.cta-banner h2 {
    margin-bottom: var(--space-sm);
}

.cta-banner p {
    margin-bottom: var(--space-md);
    color: var(--ink-light);
}

/* --- Footer --- */

.site-footer {
    background: var(--charcoal);
    color: var(--ink);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: var(--stone);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-light);
    margin-bottom: var(--space-sm);
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--stone);
    padding: 0.3rem 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--paper);
}

.footer-bottom {
    border-top: var(--border-light);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--stone);
}

.footer-legal a {
    margin-left: 1.5rem;
    color: var(--stone);
    transition: color var(--transition-fast);
}
.footer-legal a:hover {
    color: var(--paper);
}

/* --- Page header (inner pages) --- */

.page-header {
    padding: calc(var(--space-2xl) + 2rem) 0 var(--space-xl);
    text-align: center;
    background: var(--navy);
    color: var(--ink);
}

.page-header h1 {
    font-weight: 300;
}

.page-header .lead {
    color: var(--ink-light);
    margin-top: var(--space-sm);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Contact layout --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.contact-detail {
    margin-bottom: var(--space-md);
}

.contact-detail h4 {
    margin-bottom: var(--space-xs);
}

.contact-detail p,
.contact-detail a {
    color: var(--ink-light);
    font-size: 0.95rem;
}

.contact-detail a:hover {
    color: var(--brass);
}

/* --- Hours --- */

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: var(--border);
    font-size: 0.9rem;
}

.hours-day {
    font-weight: 500;
}

.hours-time {
    color: var(--ink-light);
}

/* --- Map placeholder --- */

.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--charcoal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.map-container p {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone);
}

/* --- GHL booking container --- */

.booking-embed {
    min-height: 500px;
    background: var(--charcoal-light);
    border-radius: var(--radius);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-embed iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

/* --- Mobile sticky booking bar --- */

.mobile-booking-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 0.75rem var(--gutter);
    background: var(--charcoal);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.mobile-booking-bar .btn {
    width: 100%;
    text-align: center;
}

/* --- 404 --- */

.error-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--gutter);
}

.error-page h1 {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 300;
    color: var(--stone-light);
    line-height: 1;
}

/* --- Focus states --- */

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* --- Selection --- */

::selection {
    background: var(--brass);
    color: var(--paper);
}

/* --- Prose (privacy, terms) --- */

.prose h2 {
    font-size: 1.6rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.prose h3 {
    font-size: 1.2rem;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.prose p {
    margin-bottom: var(--space-sm);
    color: var(--ink-light);
}

.prose ul {
    margin-bottom: var(--space-sm);
    padding-left: 1.5rem;
}

.prose li {
    list-style: disc;
    margin-bottom: 0.4rem;
    color: var(--ink-light);
}
