:root {
    /* Interface font family loaded from /font */
}

@font-face {
    font-family: 'InterFace';
    src: url('font/InterFace_Thin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InterFace';
    src: url('font/InterFace_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #5a5a5a;
    --font-heading: 'InterFace', 'brandon-grotesque', 'Playfair Display', serif;
    --font-body: 'InterFace', 'europa', 'Inter', sans-serif;
    --spacing-unit: 1rem;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

/* Explicit reset for html/body to ensure no default margins */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

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

body {
    font-family: var(--font-body) !important;
    font-weight: 300; /* use Thin weight for body/menu items */
    font-size: 1.125rem; /* ~18px, a bit larger */
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
}

/* Headings use the regular weight of InterFace */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Ensure nav/menu items use the thin weight for UI */
.sticky-nav a,
.mobile-inline-nav a,
.mobile-nav-menu a {
    font-weight: 300;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* (debug helpers removed) */

/* Header & Branding */
.branding-header {
    background-color: #fff;
    padding: 0.5rem 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1100;
    margin-bottom: 0;
    overflow: hidden; /* prevent collapsed top margins from child elements */
}

.branding-header .logo-container {
    text-align: center;
}

.logo-container .logo {
    height: 60px;
    /* Increased size for emphasis */
    width: auto;
    display: block; /* prevent inline image spacing */
}

/* Ensure header children do not introduce collapsing margins */
.branding-header > * {
    margin: 0;
    padding: 0;
}

@media (min-width: 900px) {
    .logo-container .logo {
        height: 90px;
    }
}

/* Sticky Navigation (Desktop) */
.sticky-nav {
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    padding: 0.5rem 0 0.6rem; /* reduced bottom padding for tighter band */
    transition: box-shadow 0.3s ease;
    display: none;
    /* Hidden by default on mobile, shown via media query */
}

.sticky-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center; /* vertically center nav items */
}

.sticky-nav a {
    text-decoration: none;
    color: #8a8a8a; /* more faded by default */
    font-family: var(--font-body);
    font-size: 1.08rem; /* slightly larger */
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.sticky-nav a:not(.active) {
    opacity: 0.65;
}

.sticky-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #cf635d;
    transition: width 0.3s ease;
}

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

.sticky-nav a:hover {
    color: #444;
}

.sticky-nav a.active {
    color: #cf635d;
}

/* Mobile Hamburger & Nav */
.hamburger {
    background: rgba(255, 255, 255, 0.6); /* less prominent background */
    border: none;
    cursor: pointer;
    z-index: 1200;
    position: fixed;
    right: 20px; /* anchor to the right edge on mobile */
    left: auto;
    top: 20px;
    margin: 0;
    display: none;
    /* Hidden by default, shown via JS when scrolled */
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    width: 48px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Slightly stronger background on hover to indicate affordance */
.hamburger:hover {
    background: rgba(255,255,255,0.78);
}

/* Fading state applied when scrolling is idle on mobile: make the white
   background transparent but keep the hamburger icon fully visible */
.hamburger.faded {
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Ensure the icon itself stays fully opaque */
.hamburger.faded img {
    opacity: 1 !important;
    transition: opacity 0.2s ease;
}

/* Small hover feedback: slightly reveal background on touch/hover */
.hamburger.faded:hover {
    background: rgba(255,255,255,0.06);
}

.hamburger.visible {
    display: block;
}

.hamburger.active {
    background: transparent;
    box-shadow: none;
}

.hamburger img {
    height: 24px;
    width: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.hamburger.active img {
    transform: rotate(90deg);
}

/* Mobile inline nav - visible by default on mobile */
.mobile-inline-nav {
    display: block;
    background-color: #fff;
    padding: 0.8rem 0;
    text-align: center;
}

.mobile-inline-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.mobile-inline-nav a {
    text-decoration: none;
    color: #8a8a8a; /* faded default for mobile inline nav */
    font-family: var(--font-body);
    font-size: 1.06rem; /* slightly larger for readability */
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.mobile-inline-nav a:not(.active) {
    opacity: 0.65;
}

.mobile-inline-nav a:hover {
    color: #444;
}

.mobile-inline-nav a.active {
    color: #cf635d;
}

/* Accordion-style dropdown menu (shown when hamburger clicked) */
.mobile-nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
}

.mobile-nav-menu.active {
    max-height: 200px;
}

.mobile-nav-menu ul {
    list-style: none;
    text-align: center;
    padding: 0.8rem 0;
}

.mobile-nav-menu li {
    margin: 1rem 0;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: #8a8a8a; /* faded default for mobile dropdown */
    font-family: var(--font-body);
    font-size: 1.1rem; /* a touch larger for the dropdown */
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

/* Animated underline for mobile nav items (match desktop sticky nav) */
.mobile-inline-nav a::after,
.mobile-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #cf635d;
    transition: width 0.3s ease;
}

.mobile-inline-nav a:hover::after,
.mobile-nav-menu a:hover::after {
    width: 100%;
}

.mobile-nav-menu a:hover {
    color: #444;
}

.mobile-nav-menu a.active {
    color: #cf635d;
}

.mobile-nav-menu a:not(.active) {
    opacity: 0.65;
}

/* Gallery Section Padding Adjustment */
.gallery-section {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background-color: #fff;
    width: 100%;
}


/* Media Queries */
@media (min-width: 900px) {
    .hamburger {
        display: none !important;
        /* Never show hamburger on desktop */
    }

    .mobile-nav-menu {
        display: none;
        /* Hide mobile dropdown on desktop */
    }

    .mobile-inline-nav {
        display: none;
        /* Hide mobile inline nav on desktop */
    }

    .sticky-nav {
        display: block;
        /* Show sticky nav on desktop */
        margin-top: 0.15rem; /* tighter top spacing */
    }

    .branding-header {
        padding: 0.5rem 0 0;
    }
}


.gallery-grid {
    /* JS-driven absolute-position masonry for consistent spacing across browsers */
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
    --gallery-gap: 0;
    gap: 0;
}

/* Firefox fallback: absolute-positioned masonry layout (activated by JS) */
.gallery-grid.masonry-js {
    display: block;
    position: relative;
    padding: 0;
}

/* Gallery viewport wrapper and gradient/toggle removed - gallery flows naturally into next section */

.gallery-grid.masonry-js .gallery-item {
    position: absolute;
    margin: 0;
    left: 0;
    top: 0;
}

/* Column count and widths are calculated in JS for the masonry layout. */

.gallery-item {
    position: absolute;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    contain: layout;
}

/* Large/featured tile styling (will span multiple columns on wider viewports) */
.gallery-item.featured img {
    object-fit: cover;
}

@media (min-width: 768px) {
    .gallery-item.featured {
        grid-column: span 2;
    }
}

@media (min-width: 1200px) {
    .gallery-item.featured {
        grid-column: span 2;
    }
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
    object-fit: contain;
}

.gallery-item.featured img {
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.03);
}
/* Improve transform performance and avoid reflow during hover */
.gallery-item img {
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
}

/* About Section & Parallax */
.about-section {
    position: relative;
    padding: 6rem 2rem;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.about-content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    gap: 3rem;
    z-index: 1;
    align-items: center;
}

@media (min-width: 900px) {
    .about-content {
        flex-direction: row;
        align-items: center;
    }
}

.about-image-wrapper {
    flex: 1;
    max-width: 500px;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    filter: grayscale(0%);
    transition: filter 0.4s ease;
}

.about-image:hover {
    filter: grayscale(100%);
}

.about-text {
    flex: 1;
    padding: 2rem;
}

.about-text h2 {
    font-family: var(--font-body);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.faded-red {
    color: rgba(207, 99, 93, 0.85);
}

.about-text .lead {
    font-size: 1.3125rem; /* increased for readability */
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Make all paragraphs under the about section match the lead size */
.about-text p {
    font-size: 1.3125rem;
    color: #444;
    line-height: 1.6;
}

/* Contact */
.contact-section {
    text-align: center;
    padding: 6rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    font-family: var(--font-body);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.instagram-link {
    display: block;
    margin-top: 1.5rem;
    color: rgba(207, 99, 93, 0.85);
    transition: color 0.3s ease, transform 0.3s ease;
}

.instagram-link:hover {
    color: #cf635d;
    transform: scale(1.1);
}

/* Pricing Section */
.pricing-section {
    /* reduce top spacing to tighten gap with the About section */
    padding: 3rem 2rem 6rem;
    background-color: #f9f9f9;
    text-align: center;
}

.pricing-section h2 {
    font-family: var(--font-body);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: rgba(207, 99, 93, 0.85);
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    padding: 0 1.5rem;
}

@media (min-width: 900px) {
    .pricing-cards {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    font-size: 1.05rem; /* slightly larger base for card copy */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .pricing-card {
        width: auto;
    }
}

.pricing-card::before {
    content: '';
    position: absolute;
    transition: all 0.4s ease;
}

/* Card 1 - partial border on top-left, fades right */
/* Card 1 - partial border on top-left, fades right */
.pricing-card.card-1::before {
    top: 0;
    left: 0;
    width: 60%;
    height: 5px;
    background: linear-gradient(to right, #cf635d, transparent);
}

.pricing-card.card-1:hover::before {
    width: 100%;
}

/* Card 2 - partial border on right side, fades down */
/* Card 2 - partial border on right side, fades down */
.pricing-card.featured::before {
    top: 10%;
    right: 0;
    width: 5px;
    height: 50%;
    background: linear-gradient(to bottom, #cf635d, transparent);
}

.pricing-card.featured:hover::before {
    height: 80%;
}

/* Card 3 - partial border on bottom-right, fades left */
.pricing-card.card-3::before {
    bottom: 0;
    right: 0;
    width: 60%;
    height: 5px;
    background: linear-gradient(to left, #cf635d, transparent);
}

.pricing-card.card-3:hover::before {
    width: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    position: relative;
}

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

.pricing-header h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.5rem;
}

.pricing-header .price {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-color);
}

.pricing-features {
    list-style: none;
    text-align: left;
    flex: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: #444;
    font-size: 1.1rem; /* increased for readability in cards */
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-features li::before {
    content: '✓';
    color: #cf635d;
    font-weight: 600;
    flex-shrink: 0;
}

.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background-color: var(--text-color);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #444;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #f0f0f0;
    font-size: 0.9rem;
    color: #666;
}

/* Navigation stabilization overlay used to prevent layout shifts
   interrupting anchor scrolls (shown briefly on Safari desktop). */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
}
.nav-overlay .note {
    color: #444;
    font-family: var(--font-body);
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Mobile tweaks: center About heading and tighten vertical spacing */
@media (max-width: 899px) {
    .about-section {
        padding: 3rem 1.5rem; /* reduce top/bottom padding */
    }

    .about-content {
        gap: 1.5rem; /* reduce gap between image and text */
    }

    .about-text {
        padding: 1rem; /* less inset on mobile */
    }

    .about-text h2 {
        text-align: center; /* center "meet mike" on mobile */
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .pricing-section {
        padding: 2rem 1.5rem 4rem; /* reduce top padding to tighten gap */
    }

    /* raise hamburger slightly on mobile and respect safe-area (moved higher) */
    .hamburger {
        top: calc(env(safe-area-inset-top, 0px) + 6px);
    }
}