/* Main Styles - Compactura Design System */
/* Fonts loaded via <link> tags in HTML — do not use @import here */

:root {
    --primary: #0f1923;
    --accent: #d4443b;
    --accent-warm: #e8624a;
    --secondary: #1b2d3e;
    --light: #f7f6f3;
    --cream: #ebe8e2;
    --gray: #7a7a72;
    --gray-light: #b5b3ac;
    --border: #dddbd6;
    --white: #ffffff;
    --gradient-hero: linear-gradient(165deg, #f7f6f3 0%, #ebe8e2 40%, #ddd8cf 100%);
    --gradient-accent: linear-gradient(135deg, #d4443b 0%, #e8624a 100%);
    --shadow-sm: 0 2px 8px rgba(15, 25, 35, 0.06);
    --shadow-md: 0 8px 30px rgba(15, 25, 35, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 25, 35, 0.12);
    --shadow-accent: 0 10px 30px rgba(212, 68, 59, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Sticky Footer Logic */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Pushes footer down */
main {
    flex: 1;
    margin-top: 0;
}

/* ─── Header & Navigation ─── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.header-transparent {
    background: transparent;
    border-bottom: none;
}

header.header-solid {
    background: rgba(247, 246, 243, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0;
    text-decoration: none;
    z-index: 1001;
    transition: opacity 0.2s ease;
}

.logo-svg {
    height: 40px;
    width: 180px;
    min-width: 120px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
    padding: 0.3rem 0;
}

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

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

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

/* ─── Hamburger Menu Button ─── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* X animation when menu is open */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* When menu is open, bars turn white (panel behind is dark) */
.hamburger.active span {
    background: var(--white);
}

/* ─── Mobile Nav Overlay ─── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 35, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Common Typography ─── */
.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.3rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--primary);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 540px;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.4rem;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: var(--shadow-accent);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(212, 68, 59, 0.35);
}

.btn-primary svg {
    transition: transform var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    border: 3px solid #000;
    cursor: pointer;
}

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

/* ─── Footer ─── */
footer {
	padding: 3rem 6%;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .logo {
    color: var(--white);
}

footer p {
    opacity: 0.5;
    font-size: 0.95rem;
	margin: 0 auto;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.7rem;
    }
}

@media (max-width: 768px) {
	.logo {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    /* Show hamburger */
    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-overlay {
        display: block;
    }

    /* Mobile fullscreen panel
       Uses clip-path to hide — no flicker on resize because
       clip-path doesn't cause layout/paint jumps like display or transform.
       Animates smoothly via transition on clip-path + opacity. */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        gap: 0;
        z-index: 1001;
        clip-path: circle(0% at calc(100% - 40px) 40px);
        opacity: 0;
        pointer-events: none;
        transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.3s ease;
    }

    .nav-links.active {
        clip-path: circle(150% at calc(100% - 40px) 40px);
        opacity: 1;
        pointer-events: auto;
    }

    /* Hide logo when menu is open */
	header.menu-open .logo {
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}
    /* Each list item gets generous spacing */
    .nav-links li {
        margin: 1.2rem 0;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger the items */
    .nav-links.active li:nth-child(1) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.35s; }

    /* White text inside dark panel */
    .nav-links a {
        color: rgba(255, 255, 255, 0.75) !important;
        font-size: 1.25rem;
        padding: 0.3rem 0;
        width: auto;
        text-align: center;
        border-bottom: none;
        letter-spacing: 2px;
        display: inline-block;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--white) !important;
    }

    /* Active underline — red, centered under text with space */
    .nav-links a::after {
        display: block;
        background: var(--accent);
        left: 50%;
        transform: translateX(-50%);
        bottom: -4px;
    }

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

    nav {
        padding: 1.2rem 5%;
    }
}