/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Typography ===== */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ===== Navigation ===== */
.nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(26, 60, 42, 0.08);
    padding: 0 6vw;
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-menu-link {
    position: relative;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26, 60, 42, 0.06);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    background: #1a3c2a;
    color: #faf9f6;
    padding: 14px 32px;
    border: 1px solid #1a3c2a;
    border-radius: 0;
    transition: all 0.35s ease;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-primary:hover {
    background: #2f4a2b;
    border-color: #2f4a2b;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #1a3c2a;
    padding: 13px 30px;
    border: 1px solid rgba(26, 60, 42, 0.3);
    border-radius: 0;
    transition: all 0.35s ease;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-outline:hover {
    background: #1a3c2a;
    color: #faf9f6;
    border-color: #1a3c2a;
}

.btn-outline-light {
    display: inline-block;
    background: transparent;
    color: #faf9f6;
    padding: 14px 32px;
    border: 1px solid rgba(250, 249, 246, 0.3);
    border-radius: 0;
    transition: all 0.35s ease;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-outline-light:hover {
    background: rgba(250, 249, 246, 0.1);
    border-color: rgba(250, 249, 246, 0.6);
}

/* ===== Hero ===== */
.hero {
    background: #1a3c2a;
}

.hero-bg {
    will-change: transform;
}

.hero-img {
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero-img {
    transform: scale(1.08);
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(19, 45, 31, 0.82) 0%,
        rgba(26, 60, 42, 0.65) 50%,
        rgba(19, 45, 31, 0.75) 100%
    );
}

.hero-eyebrow {
    opacity: 0.7;
}

.hero-headline {
    line-height: 1.05;
}

.hero-subtext {
    max-width: 440px;
}

.hero-card {
    border: 1px solid rgba(26, 60, 42, 0.08);
}

/* Scroll indicator */
.scroll-line {
    background: rgba(155, 191, 146, 0.3);
}

.scroll-dot {
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ===== Divider ===== */
.divider {
    opacity: 0.6;
}

/* ===== Form Elements ===== */
.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(26, 60, 42, 0.2);
    padding: 10px 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #1a3c2a;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: rgba(26, 60, 42, 0.35);
}

.form-input:focus {
    border-bottom-color: #1a3c2a;
}

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

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

.form-success {
    animation: fadeIn 0.5s ease forwards;
}

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

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-dot {
        animation: none;
        top: 0;
        opacity: 1;
    }
    
    .hero-img {
        transition: none;
    }
    
    .group:hover .overflow-hidden img {
        transform: none;
    }
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-headline span {
        font-size: 2.5rem;
    }
    
    .hero-card {
        margin-top: 2rem;
    }
    
    .font-serif {
        font-size: inherit;
    }
}

/* ===== 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-width: 0;
}
