/* ========================================
   Magnolia Lakeside Cottage — Styles
   ======================================== */

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

:root {
    --navy: #1e3a5f;
    --navy-deep: #152a45;
    --navy-light: #2a4f73;
    --gold: #d4a853;
    --gold-light: #e8c97a;
    --gold-pale: #f5e6c4;
    --cream: #faf8f4;
    --cream-dark: #f3efe8;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --text-muted: #8a9bab;
    --border: #e8e4dc;
    --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.06);
    --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.10);
    --shadow-lg: 0 8px 40px rgba(30, 58, 95, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Karla', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.nav.scrolled .nav-logo {
    color: var(--navy);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--text-light);
}

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

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

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

.nav-cta {
    background: var(--gold) !important;
    color: var(--navy-deep) !important;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.35);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav.scrolled .nav-toggle span {
    background: var(--navy);
}

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(21, 42, 69, 0.72) 0%,
        rgba(30, 58, 95, 0.55) 50%,
        rgba(30, 58, 95, 0.40) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 83, 0.18);
    border: 1px solid rgba(212, 168, 83, 0.35);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    max-width: 480px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating Stat Cards */
.hero-stats {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    animation: floatUp 0.8s ease-out both;
}

.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

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

.stat-card-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.stat-card-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.stat-card-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-deep);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.btn-ghost-light {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
}

.btn-ghost-light:hover {
    border-color: var(--gold);
    color: var(--navy);
    background: var(--gold-pale);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    color: var(--navy);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ========================================
   Cottage Section
   ======================================== */
.cottage {
    background: var(--white);
}

.cottage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.cottage-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.cottage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cottage-image:hover img {
    transform: scale(1.04);
}

.cottage-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.cottage-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cottage-detail svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.cottage-detail span {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

/* ========================================
   Amenities Section
   ======================================== */
.amenities {
    background: var(--cream);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.amenity-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-pale);
}

.amenity-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.amenity-icon svg {
    width: 26px;
    height: 26px;
    color: var(--gold);
}

.amenity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.amenity-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ========================================
   Surroundings Section
   ======================================== */
.surroundings {
    background: var(--white);
}

.surroundings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.surroundings-content .section-tag {
    text-align: left;
}

.surroundings-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.surroundings-content .section-subtitle {
    text-align: left;
    margin-bottom: 36px;
}

.surroundings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.surrounding-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.surrounding-dot {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.surrounding-item strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}

.surrounding-item span {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.surroundings-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.surrounding-img {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.surrounding-img.large {
    aspect-ratio: 5/6;
}

.surrounding-img.small {
    aspect-ratio: 3/2;
}

.surrounding-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.surrounding-img:hover img {
    transform: scale(1.03);
}

/* ========================================
   Stay / CTA Section
   ======================================== */
.stay {
    background: var(--cream);
    padding: 80px 0;
}

.stay-card {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
    border-radius: var(--radius-lg);
    padding: 72px 64px;
    position: relative;
    overflow: hidden;
}

.stay-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.stay-card-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.stay-text .section-tag {
    color: var(--gold-light);
}

.stay-text .section-title {
    color: var(--white);
    margin-bottom: 16px;
}

.stay-text .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 420px;
}

.stay-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 12px;
}

.contact-info .section-subtitle {
    text-align: left;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--gold);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--navy);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin: 0 auto 16px;
}

.form-success h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .nav-logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.875rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Scroll Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos][data-delay="80"] { transition-delay: 0.08s; }
[data-aos][data-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-delay="150"] { transition-delay: 0.15s; }
[data-aos][data-delay="160"] { transition-delay: 0.16s; }
[data-aos][data-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-delay="240"] { transition-delay: 0.24s; }
[data-aos][data-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-delay="320"] { transition-delay: 0.32s; }
[data-aos][data-delay="400"] { transition-delay: 0.4s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .cottage-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .surroundings-layout {
        gap: 40px;
    }
    
    .stay-card {
        padding: 56px 40px;
    }
    
    .stay-card-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .stay-actions {
        flex-direction: row;
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        color: var(--text) !important;
        font-size: 1.05rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        margin-top: 48px;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .hero-content {
        padding: 100px 24px 40px;
    }
    
    .cottage-grid {
        grid-template-columns: 1fr;
    }
    
    .cottage-details {
        grid-template-columns: 1fr;
        padding: 28px;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .surroundings-layout {
        grid-template-columns: 1fr;
    }
    
    .surroundings-images {
        order: -1;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .section {
        padding: 72px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.6rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stay-card {
        padding: 40px 24px;
    }
    
    .stay-actions {
        flex-direction: column;
    }
    
    .stay-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 28px 20px;
    }
}
