/* ==========================================================================
   CAPE ESTATE DESIGN SYSTEM
   Cape House Construction — Custom Home Builder, Cape Cod, MA
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Palette */
    --bg: #FAF0E6;
    --bg-alt: #F5E6D3;
    --text: #2B2B2B;
    --text-light: #5A5A5A;
    --navy: #2B2D5E;
    --navy-light: #3D3F7A;
    --brass: #C17840;
    --brass-light: #D08B55;
    --white: #FFFFFF;
    --border: #E0D5C7;
    --error: #C0392B;
    --success: #27AE60;

    /* Typography Scale */
    --font-headline: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Raleway', 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 3.5rem;
    --space-3xl: 5rem;

    /* Widths */
    --max-width: 1200px;
    --max-width-narrow: 800px;

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

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;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
}

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

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

a:hover {
    color: var(--navy-light);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--space-md);
}

.text-light {
    color: var(--text-light);
}

.text-navy {
    color: var(--navy);
}

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

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

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

.section--alt {
    background-color: var(--bg-alt);
}

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

.section--navy h2,
.section--navy h3,
.section--navy h4 {
    color: var(--white);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn--primary {
    background-color: var(--brass);
    color: var(--white);
    border-color: var(--brass);
}

.btn--primary:hover {
    background-color: var(--brass-light);
    border-color: var(--brass-light);
    color: var(--white);
}

.btn--outline {
    background-color: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

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

.btn--outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn--lg {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.nav--scrolled {
    box-shadow: var(--shadow-md);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 80px;
}

.nav__logo {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav__logo:hover {
    color: var(--navy);
}

.nav__logo span {
    color: var(--brass);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.nav__links a {
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

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

.nav__links a:hover {
    color: var(--navy);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.7rem 1.6rem;
    background-color: var(--brass);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

.nav__cta:hover {
    background-color: var(--brass-light);
    color: var(--white) !important;
}

.nav__cta::after {
    display: none !important;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--navy);
    transition: all var(--transition);
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 1024px) {
    .nav__hamburger {
        display: flex;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav__links.active {
        display: flex;
    }

    .nav__links a::after {
        display: none;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, #363878 40%, #4A4C8A 70%, var(--bg) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(193, 120, 64, 0.08) 0%, transparent 60%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-2xl) var(--space-lg);
}

.hero__title {
    font-family: var(--font-headline);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero__cta {
    display: inline-flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   PROJECT CARDS
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 960px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-card__image {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.project-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-card__placeholder--waterfront {
    background: linear-gradient(135deg, #1B365D 0%, #2A8A8A 100%);
}

.project-card__placeholder--new_home {
    background: linear-gradient(135deg, #1B365D 0%, #D5C8B0 100%);
}

.project-card__placeholder--renovation {
    background: linear-gradient(135deg, #C5A55A 0%, #E8DCC8 100%);
}

.project-card__placeholder--cottage {
    background: linear-gradient(135deg, #4A7A5A 0%, #E8DCC8 100%);
}

.project-card__placeholder--addition_deck {
    background: linear-gradient(135deg, #7A5C3D 0%, #E8DCC8 100%);
}

.project-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background-color: rgba(27, 54, 93, 0.9);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
}

.project-card__body {
    padding: var(--space-lg);
}

.project-card__title {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.project-card__location {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   ABOUT TEASER
   ========================================================================== */

.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (max-width: 768px) {
    .about-teaser {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.about-teaser__text h2 {
    margin-bottom: var(--space-lg);
}

.about-teaser__text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-teaser__image {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-family: var(--font-headline);
    font-size: 1.1rem;
}

/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */

.testimonial-highlight {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.testimonial-highlight__quote-mark {
    font-family: var(--font-headline);
    font-size: 5rem;
    color: var(--brass);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.testimonial-highlight__text {
    font-family: var(--font-headline);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.testimonial-highlight__author {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brass);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   HOW WE WORK
   ========================================================================== */

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: center;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    padding: var(--space-lg);
}

.process-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--white);
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.process-step__title {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.process-step__text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.cta-section h2 {
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header__line {
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--brass);
    margin: var(--space-md) auto;
}

/* ==========================================================================
   VIEW ALL LINK
   ========================================================================== */

.view-all {
    text-align: center;
    margin-top: var(--space-xl);
}

.view-all a {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

.view-all a:hover {
    color: var(--brass);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

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

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

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer__brand h3 {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.footer__col h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-md);
}

.footer__col ul {
    list-style: none;
}

.footer__col ul li {
    margin-bottom: var(--space-sm);
}

.footer__col ul li a {
    font-size: 0.9rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Type badge display names */
.badge-type {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-alt);
    color: var(--text-light);
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   PORTFOLIO HERO
   ========================================================================== */

.portfolio-hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, #363878 60%, #4A4C8A 100%);
}

.portfolio-hero__title {
    font-family: var(--font-headline);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.portfolio-hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   PORTFOLIO CONTROLS (FILTERS + SORT)
   ========================================================================== */

.portfolio-controls {
    margin-bottom: var(--space-xl);
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.filter-pill {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-pill:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.filter-pill.active {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.portfolio-sort-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-count {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.sort-select {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--text);
    cursor: pointer;
    appearance: auto;
}

.portfolio-empty {
    text-align: center;
    padding: var(--space-2xl) 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   PROJECT DETAIL — HERO
   ========================================================================== */

.detail-hero {
    position: relative;
    height: 400px;
    margin-top: 80px;
    overflow: hidden;
}

.detail-hero__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.4);
}

.detail-hero__placeholder--waterfront {
    background: linear-gradient(135deg, #1B365D 0%, #363878 100%);
}

.detail-hero__placeholder--new_home {
    background: linear-gradient(135deg, #1B365D 0%, var(--bg) 100%);
}

.detail-hero__placeholder--renovation {
    background: linear-gradient(135deg, var(--brass) 0%, var(--bg) 100%);
}

.detail-hero__placeholder--cottage {
    background: linear-gradient(135deg, #3D5F4E 0%, var(--bg) 100%);
}

.detail-hero__placeholder--addition_deck {
    background: linear-gradient(135deg, #6B4E3D 0%, var(--bg) 100%);
}

.detail-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--space-xl);
}

.detail-hero__title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.detail-hero__tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* ==========================================================================
   PROJECT DETAIL — INFO BAR
   ========================================================================== */

.detail-info-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) 0;
}

.detail-info-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: center;
}

.detail-info-bar__item {
    text-align: center;
}

.detail-info-bar__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-xs);
}

.detail-info-bar__value {
    display: block;
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
}

@media (max-width: 600px) {
    .detail-info-bar__inner {
        gap: 1.25rem;
    }

    .detail-info-bar__item {
        flex: 1 1 40%;
    }
}

/* ==========================================================================
   PROJECT DETAIL — DESCRIPTION
   ========================================================================== */

.detail-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.detail-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   PROJECT DETAIL — GALLERY
   ========================================================================== */

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

@media (max-width: 960px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.gallery-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.gallery-placeholder--waterfront {
    background: linear-gradient(135deg, #1B365D 0%, #363878 100%);
}

.gallery-placeholder--new_home {
    background: linear-gradient(135deg, #1B365D 0%, var(--bg) 100%);
}

.gallery-placeholder--renovation {
    background: linear-gradient(135deg, var(--brass) 0%, var(--bg) 100%);
}

.gallery-placeholder--cottage {
    background: linear-gradient(135deg, #3D5F4E 0%, var(--bg) 100%);
}

.gallery-placeholder--addition_deck {
    background: linear-gradient(135deg, #6B4E3D 0%, var(--bg) 100%);
}

/* ==========================================================================
   PROJECT DETAIL — PREV/NEXT NAVIGATION
   ========================================================================== */

.detail-nav {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
}

.detail-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-nav__link {
    text-decoration: none;
    transition: color var(--transition);
}

.detail-nav__link:hover .detail-nav__name {
    color: var(--brass);
}

.detail-nav__direction {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.detail-nav__name {
    display: block;
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    transition: color var(--transition);
}

.detail-nav__link--next {
    text-align: right;
}

@media (max-width: 600px) {
    .detail-nav__inner {
        flex-direction: column;
        gap: 1.25rem;
    }

    .detail-nav__link--next {
        text-align: left;
    }
}

/* ==========================================================================
   PAGE HERO (About, How We Work — refined, linen bg)
   ========================================================================== */

.page-hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
    background-color: var(--bg);
}

.page-hero__title {
    font-family: var(--font-headline);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 300;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   ABOUT — COMPANY STORY
   ========================================================================== */

.about-story {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 768px) {
    .about-story {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.about-story__text h2 {
    margin-bottom: var(--space-lg);
}

.about-story__text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-story__placeholder {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
    border-radius: var(--radius-md);
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-family: var(--font-headline);
    font-size: 1rem;
    position: sticky;
    top: calc(80px + var(--space-lg));
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */

.stats-bar {
    background-color: var(--navy);
    padding: var(--space-2xl) 0;
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .stats-bar__grid {
        grid-template-columns: 1fr;
    }
}

.stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stats-bar__number {
    font-family: var(--font-headline);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--brass);
    line-height: 1;
}

.stats-bar__plus {
    font-family: var(--font-headline);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--brass);
    line-height: 1;
}

.stats-bar__label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   TEAM GRID
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 960px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    text-align: center;
    padding: var(--space-lg);
}

.team-card--featured {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.team-card__photo {
    margin-bottom: var(--space-lg);
}

.team-card__placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.team-card--featured .team-card__placeholder {
    width: 200px;
    height: 200px;
    font-size: 2.6rem;
}

.team-card__name {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.team-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-md);
}

.team-card__bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   CERTIFICATIONS
   ========================================================================== */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 960px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

.certification-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.certification-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.certification-card h4 {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.certification-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   SERVICE AREA
   ========================================================================== */

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

.service-area__towns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.service-area__town {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--navy);
    transition: all var(--transition);
}

.service-area__town:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* ==========================================================================
   TIMELINE (How We Work)
   ========================================================================== */

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--navy);
    opacity: 0.2;
}

.timeline__step {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.timeline__step:last-child {
    margin-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -50px;
    top: 0;
}

.timeline__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--brass);
    color: var(--white);
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.timeline__content {
    padding-bottom: var(--space-lg);
}

.timeline__title {
    font-family: var(--font-headline);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

.timeline__lead {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.timeline__content > p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.timeline__details {
    margin-top: var(--space-md);
}

.timeline__details h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-sm);
}

.timeline__details ul {
    list-style: none;
    padding: 0;
}

.timeline__details ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.timeline__details ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--navy);
    opacity: 0.4;
}

.timeline__duration {
    display: inline-block;
    margin-top: var(--space-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    background-color: var(--bg-alt);
    border-radius: 100px;
    color: var(--navy);
}

.timeline__note {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline__marker {
        left: -40px;
    }

    .timeline__number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox--active {
    display: flex;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 2001;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: var(--space-sm);
    transition: color var(--transition);
}

.lightbox__close:hover {
    color: var(--brass);
}

.lightbox__content {
    position: relative;
    z-index: 2001;
    max-width: 900px;
    width: 90%;
    text-align: center;
}

.lightbox__image-wrap {
    margin-bottom: var(--space-md);
}

.lightbox__placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
}

/* Lightbox placeholder gradients matching gallery */
.lightbox__placeholder--waterfront {
    background: linear-gradient(135deg, #1B365D 0%, #363878 100%);
}

.lightbox__placeholder--new_home {
    background: linear-gradient(135deg, #1B365D 0%, var(--bg) 100%);
}

.lightbox__placeholder--renovation {
    background: linear-gradient(135deg, var(--brass) 0%, var(--bg) 100%);
}

.lightbox__placeholder--cottage {
    background: linear-gradient(135deg, #3D5F4E 0%, var(--bg) 100%);
}

.lightbox__placeholder--addition_deck {
    background: linear-gradient(135deg, #6B4E3D 0%, var(--bg) 100%);
}

.lightbox__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.lightbox__caption {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.lightbox__counter {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    margin: 0;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2001;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    padding: var(--space-md);
    transition: color var(--transition);
    line-height: 1;
}

.lightbox__arrow:hover {
    color: var(--brass);
}

.lightbox__arrow--prev {
    left: var(--space-md);
}

.lightbox__arrow--next {
    right: var(--space-md);
}

@media (max-width: 600px) {
    .lightbox__arrow {
        font-size: 2rem;
    }

    .lightbox__close {
        top: var(--space-md);
        right: var(--space-md);
        font-size: 2rem;
    }

    .lightbox__info {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* ==========================================================================
   TESTIMONIALS PAGE — FEATURED
   ========================================================================== */

.testimonial-featured {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.testimonial-featured__quote-mark {
    font-family: var(--font-headline);
    font-size: 6rem;
    color: var(--brass);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.testimonial-featured__text {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.testimonial-featured__author {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brass);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.testimonial-featured__stars {
    margin-bottom: var(--space-md);
}

.testimonial-featured__project {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.testimonial-featured__project:hover {
    color: var(--brass);
}

/* Star ratings */
.star {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 1px;
}

.star--filled {
    color: var(--brass);
}

.testimonial-card__stars {
    margin-bottom: var(--space-md);
}

.testimonial-card__stars .star {
    color: rgba(0, 0, 0, 0.15);
}

.testimonial-card__stars .star--filled {
    color: var(--brass);
}

/* ==========================================================================
   TESTIMONIALS PAGE — GRID (Masonry-style)
   ========================================================================== */

.testimonial-grid {
    columns: 2;
    column-gap: 1.25rem;
}

@media (max-width: 768px) {
    .testimonial-grid {
        columns: 1;
    }
}

.testimonial-card {
    break-inside: avoid;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-card__text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
}

.testimonial-card__author {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.testimonial-card__badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-alt);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.testimonial-card__link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.testimonial-card__link:hover {
    color: var(--brass);
}

/* ==========================================================================
   TESTIMONIAL CAROUSEL (Homepage)
   ========================================================================== */

.testimonial-carousel {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    min-height: 280px;
}

.testimonial-carousel__slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.testimonial-carousel__slide--active {
    display: block;
    opacity: 1;
}

.testimonial-carousel__quote-mark {
    font-family: var(--font-headline);
    font-size: 5rem;
    color: var(--brass);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.testimonial-carousel__text {
    font-family: var(--font-headline);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

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

.testimonial-carousel__project-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    margin-bottom: var(--space-md);
}

.testimonial-carousel__project-link:hover {
    color: var(--brass);
}

.testimonial-carousel__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.testimonial-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.testimonial-carousel__dot:hover {
    border-color: var(--brass);
}

.testimonial-carousel__dot--active {
    background-color: var(--brass);
    border-color: var(--brass);
}

/* ==========================================================================
   TESTIMONIAL BLOCK (Reusable component)
   ========================================================================== */

.testimonial-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.testimonial-block__quote-mark {
    font-family: var(--font-headline);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.testimonial-block__text {
    font-family: var(--font-headline);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.testimonial-block__author {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.testimonial-block__project-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

/* Navy variant */
.testimonial-block--navy {
    color: var(--white);
}

.testimonial-block--navy .testimonial-block__quote-mark {
    color: var(--brass);
}

.testimonial-block--navy .testimonial-block__text {
    color: rgba(255, 255, 255, 0.95);
}

.testimonial-block--navy .testimonial-block__author {
    color: var(--brass);
}

.testimonial-block--navy .testimonial-block__project-link {
    color: rgba(255, 255, 255, 0.7);
}

.testimonial-block--navy .testimonial-block__project-link:hover {
    color: var(--brass);
}

/* Linen variant */
.testimonial-block--linen .testimonial-block__quote-mark {
    color: var(--brass);
}

.testimonial-block--linen .testimonial-block__text {
    color: var(--text-light);
}

.testimonial-block--linen .testimonial-block__author {
    color: var(--navy);
}

.testimonial-block--linen .testimonial-block__project-link {
    color: var(--navy);
}

.testimonial-block--linen .testimonial-block__project-link:hover {
    color: var(--brass);
}

/* ==========================================================================
   PRESS PAGE
   ========================================================================== */

.press-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .press-grid {
        grid-template-columns: 1fr;
    }
}

.press-card {
    display: flex;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition);
}

.press-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.press-card__logo-area {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.press-card__publication-initial {
    font-family: var(--font-headline);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.press-card__content {
    flex: 1;
}

.press-card__publication {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-xs);
}

.press-card__title {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.press-card__date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.press-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.press-card__link:hover {
    color: var(--brass);
}

/* ==========================================================================
   AWARDS GRID
   ========================================================================== */

.awards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

@media (max-width: 960px) {
    .awards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.award-card {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.award-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.award-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-light) 100%);
    margin-bottom: var(--space-md);
}

.award-card__year {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.award-card__title {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.award-card__org {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form__honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.form__section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.form__section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-lg);
    padding-bottom: 0;
}

.form__section-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.form__group {
    margin-bottom: var(--space-lg);
}

.form__group--error .form__input,
.form__group--error .form__textarea,
.form__group--error .form__help {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    font-style: italic;
}

.form__select {
    border-color: var(--error);
}

.form__label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.form__required {
    color: var(--error);
}

.form__input,
.form__textarea,
.form__select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background-color: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: #B0A89E;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A5A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form__error {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.875rem;
    color: var(--error);
    font-weight: 500;
}

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

@media (max-width: 640px) {
    .form__row {
        grid-template-columns: 1fr;
    }
}

.form-success {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background-color: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    color: #2E7D32;
}

.form-success svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.form-success p {
    margin: 0;
    line-height: 1.5;
}

.form-error-banner {
    padding: var(--space-md) var(--space-lg);
    background-color: #FDEDEC;
    border: 1px solid #F5B7B1;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    color: var(--error);
}

.form-error-banner p {
    margin: 0;
}

/* Navy submit button variant */
.btn--navy {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn--navy:hover {
    background-color: var(--brass);
    border-color: var(--brass);
    color: var(--white);
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info__card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.contact-info__card h3 {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.contact-info__item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info__item:last-child {
    margin-bottom: 0;
}

.contact-info__item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brass);
}

.contact-info__item strong {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-info__item a {
    color: var(--navy);
    font-weight: 500;
}

.contact-map-placeholder {
    margin-top: var(--space-lg);
    height: 200px;
    background-color: var(--bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    border: 1px dashed var(--border);
}

.contact-map-placeholder svg {
    opacity: 0.5;
}

/* ==========================================================================
   THANK YOU PAGE
   ========================================================================== */

.thank-you-steps {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-steps h2 {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: var(--space-xl);
}

.thank-you-steps__list {
    text-align: left;
}

.thank-you-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: var(--space-xl);
    align-items: flex-start;
}

.thank-you-step:last-child {
    margin-bottom: 0;
}

.thank-you-step__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 700;
}

.thank-you-step h3 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.thank-you-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   PERMITTING GUIDE — LAYOUT
   ========================================================================== */

.permitting-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 960px) {
    .permitting-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   PERMITTING GUIDE — ANCHOR NAVIGATION
   ========================================================================== */

.permitting-nav {
    position: sticky;
    top: calc(80px + var(--space-lg));
}

@media (max-width: 960px) {
    .permitting-nav {
        position: sticky;
        top: 80px;
        z-index: 100;
        background-color: var(--bg);
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--border);
        margin-bottom: var(--space-xl);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .permitting-nav__list {
        display: flex;
        gap: var(--space-sm);
        white-space: nowrap;
        padding-bottom: var(--space-xs);
    }
}

.permitting-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 961px) {
    .permitting-nav__list {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
    }
}

.permitting-nav__link {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition);
}

@media (max-width: 960px) {
    .permitting-nav__link {
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }
}

.permitting-nav__link:hover {
    color: var(--navy);
    background-color: var(--bg-alt);
}

.permitting-nav__link.active {
    color: var(--navy);
    font-weight: 600;
    border-left-color: var(--brass);
    background-color: rgba(193, 120, 64, 0.08);
}

@media (max-width: 960px) {
    .permitting-nav__link.active {
        border-left-color: transparent;
        border-bottom-color: var(--brass);
    }
}

/* ==========================================================================
   PERMITTING GUIDE — CONTENT SECTIONS
   ========================================================================== */

.permitting-content {
    min-width: 0;
}

.permitting-section {
    margin-bottom: var(--space-3xl);
    scroll-margin-top: calc(80px + var(--space-lg));
}

@media (max-width: 960px) {
    .permitting-section {
        scroll-margin-top: calc(80px + 60px + var(--space-lg));
    }
}

.permitting-section:last-child {
    margin-bottom: 0;
}

.permitting-section__title {
    font-family: var(--font-headline);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
}

.permitting-section > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.permitting-section__timeline {
    font-size: 0.95rem;
    color: var(--navy);
    padding: var(--space-sm) 0;
}

/* ==========================================================================
   PERMITTING GUIDE — "HOW WE HELP" CALLOUT
   ========================================================================== */

.how-we-help {
    margin-top: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background-color: var(--bg-alt);
    border-left: 4px solid var(--brass);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.how-we-help__title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-sm);
}

.how-we-help p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 0;
}

/* ==========================================================================
   PERMITTING GUIDE — FAQ ACCORDION
   ========================================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    line-height: 1.3;
    transition: background-color var(--transition);
}

.faq-item__question:hover {
    background-color: rgba(250, 240, 230, 0.5);
}

.faq-item__question[aria-expanded="true"] {
    border-bottom: 1px solid var(--border);
}

.faq-item__icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--brass);
    line-height: 1;
    transition: transform var(--transition);
}

.faq-item__answer {
    padding: 0 var(--space-xl) var(--space-lg);
    transition: height 0.3s ease;
}

.faq-item__answer p {
    padding-top: var(--space-md);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   BLOG — LISTING PAGE
   ========================================================================== */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card__image {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.blog-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, #3D5F8A 100%);
    font-family: var(--font-headline);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.blog-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background-color: rgba(27, 54, 93, 0.9);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
}

.blog-card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__title {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.blog-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card__title a:hover {
    color: var(--navy);
}

.blog-card__date {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brass);
    margin-bottom: var(--space-md);
}

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card__read-more:hover {
    color: var(--brass);
}

.blog-empty {
    text-align: center;
    padding: var(--space-2xl) 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   BLOG — PAGINATION
   ========================================================================== */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

.blog-pagination__link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-pagination__link:hover {
    color: var(--brass);
}

.blog-pagination__link--disabled {
    color: var(--border);
    pointer-events: none;
}

.blog-pagination__pages {
    display: flex;
    gap: var(--space-xs);
}

.blog-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition);
}

.blog-pagination__page:hover {
    background-color: var(--bg-alt);
    color: var(--navy);
}

.blog-pagination__page--active {
    background-color: var(--navy);
    color: var(--white);
}

/* ==========================================================================
   BLOG — DETAIL HERO
   ========================================================================== */

.blog-detail-hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-xl);
    text-align: center;
    background-color: var(--bg);
}

.blog-detail-hero__badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    background-color: var(--navy);
    color: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

.blog-detail-hero__title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.blog-detail-hero__meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.blog-detail-hero__meta time {
    color: var(--brass);
    font-weight: 600;
}

.blog-detail-hero__sep {
    margin: 0 var(--space-sm);
}

/* ==========================================================================
   BLOG — DETAIL FEATURED IMAGE
   ========================================================================== */

.blog-detail-image {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.blog-detail-image__placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--navy) 0%, #3D5F8A 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   BLOG — POST CONTENT TYPOGRAPHY
   ========================================================================== */

.blog-content {
    max-width: 720px;
}

.blog-content h2 {
    font-family: var(--font-headline);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--navy);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.blog-content h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.blog-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.blog-content ul,
.blog-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-lg);
}

.blog-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.blog-content blockquote {
    border-left: 4px solid var(--brass);
    margin: var(--space-xl) 0;
    padding: var(--space-md) var(--space-xl);
    background-color: var(--bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-content blockquote p {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 0;
}

.blog-content strong {
    color: var(--text);
    font-weight: 600;
}

.blog-content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

/* ==========================================================================
   BLOG — SHARE SECTION
   ========================================================================== */

.blog-share {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.blog-share__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
}

.blog-share__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.blog-share__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.4rem;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all var(--transition);
}

.blog-share__copy-btn:hover {
    border-color: var(--navy);
    background-color: var(--navy);
    color: var(--white);
}

.blog-share__copy-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   BLOG — RELATED POSTS GRID
   ========================================================================== */

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 960px) {
    .blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN REFINEMENTS
   Mobile-first touch targets, spacing, and overflow fixes.
   ========================================================================== */

/* --- Mobile nav overlay & animation (< 960px) --- */
@media (max-width: 960px) {
    .nav__links {
        animation: navSlideDown 0.25s ease;
    }

    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav__links a {
        font-size: 1rem;
        padding: 0.75rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav__cta {
        display: inline-block;
        text-align: center;
        margin-top: var(--space-sm);
        padding: 0.75rem 1.4rem !important;
        min-height: 44px;
    }

    .nav__hamburger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* --- Buttons: touch-friendly minimum sizes --- */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Forms: mobile full-width, proper sizing --- */
@media (max-width: 640px) {
    .form__input,
    .form__textarea,
    .form__select {
        font-size: 1rem; /* prevents iOS zoom on focus */
    }

    .btn--lg {
        width: 100%;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 var(--space-lg);
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* --- Section padding on mobile --- */
@media (max-width: 640px) {
    .section {
        padding: var(--space-xl) 0;
    }

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

    .cta-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .portfolio-hero,
    .page-hero,
    .blog-detail-hero {
        padding-top: calc(80px + var(--space-2xl));
        padding-bottom: var(--space-xl);
    }
}

/* --- Portfolio filters: scroll on mobile --- */
@media (max-width: 640px) {
    .portfolio-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: var(--space-sm);
        scrollbar-width: none;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        flex-shrink: 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .portfolio-sort-row {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
}

/* --- Blog filters: scroll on mobile --- */
@media (max-width: 640px) {
    .blog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: var(--space-sm);
        scrollbar-width: none;
    }

    .blog-filters::-webkit-scrollbar {
        display: none;
    }

    .blog-filters .filter-pill {
        flex-shrink: 0;
    }
}

/* --- Blog share: stack on mobile --- */
@media (max-width: 640px) {
    .blog-share__inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* --- Press cards: stack on smallest screens --- */
@media (max-width: 600px) {
    .press-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
}

/* --- FAQ: touch-friendly question buttons --- */
.faq-item__question {
    min-height: 44px;
}

/* --- Testimonial carousel: touch-friendly dots --- */
.testimonial-carousel__dot {
    width: 14px;
    height: 14px;
    min-width: 44px;
    min-height: 44px;
    background-clip: content-box;
    padding: 15px;
    margin: -15px;
}

/* --- Lightbox: touch-friendly close and arrows --- */
.lightbox__close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__arrow {
    min-width: 44px;
    min-height: 44px;
}

/* --- Image overflow prevention --- */
.detail-hero img,
.gallery-item img,
.blog-card img,
.blog-detail-image img,
.project-card img {
    max-width: 100%;
    height: auto;
}

/* --- Admin table: horizontal scroll on mobile --- */
@media (max-width: 768px) {
    .table-wrap {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
}
