/* Self-hosted variable fonts (latin subset) */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Color Palette */
    --primary-color: #2C3E50;
    /* Deep Navy - Professionalism */
    --accent-color: #D4A373;
    /* Warm Bronze/Gold - Premium/Warmth */
    --secondary-color: #E8E8E4;
    /* Soft Grey/Beige - Calm */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #FAFAFA;
    --success: #27ae60;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Transitions */
    --transition-fast: 0.3s ease;

    /* Layout */
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Offset anchor targets below the fixed header */
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Unified section heading device: short bronze rule */
h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--accent-color);
    margin: 1rem auto 0;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

/* Mobile Menu */
.nav-links {
    display: none;
    /* Hidden on mobile by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

.nav-links li {
    list-style: none;
    margin: 1rem 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: 0.3s;
}

/* Hero Section */
/* Hidden until script.js adds .hero-ready (fonts + hero image loaded),
   then fades in; the no-JS fallback lives in a <noscript> style block */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: var(--header-height);
    /* Header offset */
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.9s ease;
}

#hero.hero-ready {
    opacity: 1;
}

.hero-content {
    z-index: 2;
    padding: 2rem;
    opacity: 0;
    max-width: 900px;
    margin: 0 auto;
}

#hero.hero-ready .hero-content {
    opacity: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.8);
}

.tagline {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0.5rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.full-width {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Sections — one shared style: same background, hairline dividers */
section {
    padding: 3rem 0;
}

section + section {
    border-top: 1px solid #ECE7DF;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--primary-color);
}

.content-block {
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* One card style, shared everywhere a card appears */
.card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid #ECE7DF;
    /* border-top: 3px solid var(--accent-color); */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.06);
}

.prose-block {
    max-width: 700px;
    margin: 0 auto;
}

.prose-block h3 {
    margin-top: 2rem;
}

.grid-2-col {
    display: grid;
    gap: 2rem;
}

/* Who I Work With list */
.who-list {
    margin: 1rem 0 1.5rem;
}

.who-list li {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.who-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* Price List */
.price-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.price-card {
    text-align: center;
}

.price-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* Portrait */
.portrait-figure {
    text-align: center;
}

.portrait-photo {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portrait-figure figcaption {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.calendly-inline-widget {
    max-width: 700px;
    margin: 0 auto;
}

/* Contact CTA + modal */
.contact-cta {
    text-align: center;
}

#contact-modal {
    width: calc(100% - 2rem);
    max-width: 560px;
    margin: auto;
    padding: 2rem;
    border: 1px solid #ECE7DF;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.25);
    background: var(--white);
}

#contact-modal::backdrop {
    background: rgba(44, 62, 80, 0.55);
}

#contact-modal h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

/* Footer */
footer {
    background-color: #1a252f;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .nav-links li {
        margin: 0 1.5rem;
    }

    .mobile-menu-btn {
        display: none;
    }

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

    .price-list {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }

    .btn-nav {
        background-color: var(--primary-color);
        color: var(--white) !important;
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        transition: 0.3s;
    }

    .btn-nav:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
    }
}

#portrait {
    margin-bottom: 20px;
}