:root {
    --primary-dark: #1a1a1a;
    --primary-light: #f8f8f6;
    --accent-gold: #b8956a;
    --text-primary: #2d2d2d;
    --text-secondary: #6b6b6b;
    --border-color: #e0ddd6;
}

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

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-primary);
    background: #0f0f0f;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--primary-light);
    border-bottom: 1px solid rgba(184, 149, 106, 0.3);
    animation: slideDown 0.6s ease-out;
    transition: transform 0.3s ease;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.logo:visited,
.logo:hover,
.logo:active {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    white-space: nowrap;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: min(100vh, 800px);
    display: flex;
    align-items: center;
    padding: 148px 3rem 5rem;
    background: linear-gradient(135deg, #f8f8f6 0%, #ebe9e1 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(184, 149, 106, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(5deg); }
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.75rem;
    font-weight: 300;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-text h1 strong {
    font-weight: 600;
    display: block;
    color: var(--accent-gold);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-gold);
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button:hover {
    background: #a07d54;
}


/* Services Section */
.services {
    padding: 8rem 3rem;
    background: var(--primary-light);
}

.section-header {
    max-width: 1000px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}


.services-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.service-card {
    background: transparent;
    padding: 0;
    border: none;
    border-top: 2px solid var(--accent-gold);
    padding-top: 2rem;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-icon {
    display: none;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-left: 2.5rem;
}

.service-card > .service-features {
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* Expertise Section */
.expertise {
    padding: 8rem 3rem;
    background: var(--primary-dark);
    color: var(--primary-light);
}

.expertise .section-label {
    color: var(--accent-gold);
}

.expertise .section-title {
    color: var(--primary-light);
}

.expertise .section-description {
    color: rgba(248, 248, 246, 0.7);
}

.expertise-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.expertise-item {
    border-left: 2px solid var(--accent-gold);
    padding-left: 2rem;
}

.expertise-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.expertise-item p {
    color: rgba(248, 248, 246, 0.7);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}


/* About Section */
.about {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8f8f6 0%, #ebe9e1 100%);
}

.about .section-header {
    margin-bottom: 4rem;
}

.about-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 5rem;
    align-items: start;
}

.about-photo {
    align-self: start;
}

.headshot-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--primary-dark);
    border-top: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.headshot-placeholder-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(184, 149, 106, 0.4);
}

.headshot-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-top: 2px solid var(--accent-gold);
}

.about-content {
    text-align: left;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    padding: 8rem 3rem;
    background: var(--primary-light);
    color: var(--text-primary);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact .section-label {
    color: var(--accent-gold);
}

.contact .section-title {
    color: var(--primary-dark);
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 1.5rem auto 3rem;
    max-width: 1000px;
}

/* Contact Form */
.contact-form {
    text-align: left;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-bottom: 2.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: var(--accent-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 0.85rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
}

.custom-select-trigger:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.custom-select-trigger.has-value {
    color: var(--text-primary);
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--accent-gold);
}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.custom-select-option:hover {
    background: var(--accent-gold);
    color: white;
}

.custom-select-option.selected {
    background: var(--accent-gold);
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .cta-button {
    width: 100%;
    text-align: center;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    animation: none;
}

.contact-form .cta-button:hover {
    background: #a07d54;
}

.form-message {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2.5rem;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.form-message.visible {
    opacity: 1;
}

.form-message.success {
    color: var(--accent-gold);
}

.form-message.error {
    color: #dc3545;
}

/* Footer */
footer {
    background: #0f0f0f;
    color: rgba(248, 248, 246, 0.6);
    padding: 1.5rem 3rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: 0.9rem;
}

footer .mht-logo {
    margin: 0 auto 0.75rem;
    display: block;
    opacity: 1;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(248, 248, 246, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

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

footer p {
    margin: 0;
}

/* Engagement Models Section */
.engagements {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8f8f6 0%, #ebe9e1 100%);
    color: var(--text-primary);
}

.engagements .section-label { color: var(--accent-gold); }
.engagements .section-title { color: var(--primary-dark); }

.engagements-guide {
    max-width: 1000px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.engagements-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 5rem;
}

.engagement-card {
    border-top: 2px solid var(--accent-gold);
    padding-top: 2rem;
}

.engagement-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.engagement-card p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Hero additions */
.hero-text h1 strong {
    display: block;
}

.hero .cta-button {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.proof-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 3rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.proof-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 1.5rem;
}

.proof-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* Services guide callout */
.services-guide {
    max-width: 1000px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

/* Services — featured card & additions */
.section-intro {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 1000px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.service-card-highlight {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.service-card--wide {
    grid-column: 1 / -1;
}

/* Expertise — single column layout & numbers */
.expertise-grid--single {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 900px;
}

.expertise-grid--single .expertise-item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(184, 149, 106, 0.25);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.expertise-item-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
}

/* Case Studies Section */
.case-studies {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8f8f6 0%, #ebe9e1 100%);
}

.case-studies-list {
    max-width: 1000px;
    margin: 0 auto;
}

.case-study {
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0;
}

.case-study:first-child {
    border-top: 2px solid var(--accent-gold);
}

.case-study-header {
    margin-bottom: 1.5rem;
}

.case-study h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.case-study-kicker {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.case-study-body {
    padding-left: 0;
}

.case-study-lede {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.case-study-body p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.case-study-conclusion {
    color: var(--text-secondary) !important;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 160px 6rem 8rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-photo {
        position: static;
    }

    .headshot-placeholder,
    .headshot-img {
        max-width: 280px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .services,
    .case-studies,
    .expertise,
    .about,
    .contact {
        padding: 8rem 6rem;
    }

    .engagements-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-photo {
        display: flex;
        justify-content: center;
    }

    footer {
        padding: 1.5rem 6rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .logo,
    .logo:visited,
    .logo:hover,
    .logo:active {
        font-size: 1.6rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-light);
        flex-direction: column;
        gap: 0;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(184, 149, 106, 0.3);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 150px 5rem 6rem;
    }

    .hero-text h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .proof-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero .cta-button {
        display: block;
        width: 100%;
        text-align: center;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .services-grid {
        gap: 2rem;
    }

    .service-card {
        padding-top: 1.5rem;
    }

    .service-card h3,
    .expertise-item h3 {
        font-size: 1.8rem;
    }

    .service-card p {
        margin-bottom: 1rem;
    }

    .expertise-grid {
        gap: 2.5rem;
    }

    .expertise-item {
        padding-left: 1.5rem;
    }

    .expertise-item p {
        font-size: 1rem;
    }

    .service-features {
        padding-left: 0;
    }

    .service-features li {
        font-size: 1rem;
    }

    .section-description,
    .section-intro,
    .service-card p,
    .about-content p,
    .contact-intro,
    .case-study-body p,
    .case-study-kicker {
        font-size: 1rem;
    }

    .contact .section-title {
        white-space: normal;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .services,
    .case-studies,
    .expertise,
    .about,
    .contact {
        padding: 5rem 5rem;
    }

    .engagements-grid {
        grid-template-columns: 1fr;
    }

    .case-study h3 {
        font-size: 1.35rem;
    }

    .case-study {
        padding: 2rem 0;
    }

    .expertise-grid--single .expertise-item {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    footer {
        padding: 1.5rem 5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .logo,
    .logo:visited,
    .logo:hover,
    .logo:active {
        font-size: 1.25rem;
    }

    .hero {
        padding: 140px 2.5rem 5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .section-description,
    .section-intro,
    .service-card p,
    .expertise-item p,
    .service-features li,
    .about-content p,
    .contact-intro,
    .case-study-body p,
    .case-study-kicker {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding-top: 1.25rem;
    }

    .service-card h3,
    .expertise-item h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        margin-bottom: 0.75rem;
    }

    .service-features li {
        padding: 0.3rem 0 0.3rem 1.5rem;
    }

    .expertise-grid {
        gap: 2rem;
    }

    .services,
    .case-studies,
    .expertise,
    .about,
    .contact {
        padding: 3.5rem 2.5rem;
    }

    .service-card--featured {
        padding: 1.75rem 2.5rem;
    }

    .engagement-card h3 {
        font-size: 1.5rem;
    }

    footer {
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card h3,
    .expertise-item h3 {
        font-size: 1.35rem;
    }

    .case-study h3 {
        font-size: 1.1rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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