/* ============================================
   EQUISIA - Private Equestrian & Polo Circle
   Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #0B0B0B;
    --bg-secondary: #141414;
    --bg-tertiary: #1A1A1A;
    --gold: #C9A96E;
    --gold-hover: #D4B87A;
    --gold-muted: #8B7355;
    --text-ivory: #F5F0E8;
    --text-muted: #9A9590;
    --divider: #2A2520;

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

    --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-base: 0.4s var(--ease-luxury);
    --max-width: 1200px;
    --section-padding: 120px;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--bg-primary);
    color: var(--text-ivory);
    line-height: 1.8;
    overflow-x: hidden;
}

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

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

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

/* --- Utility --- */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    display: block;
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--text-ivory);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.9;
    max-width: 650px;
    margin: 0 auto;
}

.gold-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 2rem auto;
    opacity: 0.6;
}

/* --- Buttons --- */
.btn-gold {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.9rem 2.4rem;
    transition: all var(--transition-base);
    cursor: pointer;
    background: transparent;
    text-decoration: none;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.btn-gold-lg {
    padding: 1.1rem 3rem;
    font-size: 0.75rem;
}

.btn-submit {
    display: block;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--bg-primary);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 1.1rem 2.4rem;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: all var(--transition-base);
    background: transparent;
}

nav.scrolled {
    background: rgba(11, 11, 11, 0.95);
    padding: 1rem 3rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.nav-crest {
    width: 36px;
    height: 36px;
    opacity: 0.9;
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--text-ivory);
}

.nav-dot {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-base);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text-ivory);
    transition: all 0.3s ease;
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1553284965-83fd3e82d5a6?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    transform: scale(1.05);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 11, 11, 0.7) 0%,
        rgba(11, 11, 11, 0.5) 40%,
        rgba(11, 11, 11, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 750px;
    padding: 2rem;
    animation: heroFadeIn 1.5s var(--ease-luxury) forwards;
    opacity: 0;
}

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

.hero-crest {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    opacity: 0.8;
    animation: heroFadeIn 1.5s var(--ease-luxury) 0.3s forwards;
    opacity: 0;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    display: block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: var(--text-ivory);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: heroFadeIn 1.5s var(--ease-luxury) 1s forwards;
    opacity: 0;
}

.hero-scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--gold-muted);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.section-philosophy {
    padding: var(--section-padding) 2rem;
    background: var(--bg-primary);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.section-experience {
    padding: 0;
    background: var(--bg-secondary);
}

.exp-row {
    display: flex;
    align-items: center;
    min-height: 600px;
}

.exp-row.reverse {
    flex-direction: row-reverse;
}

.exp-img-wrapper {
    flex: 1;
    min-height: 600px;
    overflow: hidden;
}

.exp-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-luxury);
}

.exp-row:hover .exp-img-wrapper img {
    transform: scale(1.03);
}

.exp-content {
    flex: 1;
    padding: 4rem 5rem;
}

.exp-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--text-ivory);
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.exp-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.exp-features {
    list-style: none;
    padding: 0;
}

.exp-features li {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-muted);
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--divider);
}

.exp-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 1px;
    background: var(--gold);
}

.exp-features li:last-child {
    border-bottom: none;
}

/* ============================================
   DESTINATIONS SECTION
   ============================================ */
.section-destinations {
    padding: var(--section-padding) 2rem;
    background: var(--bg-primary);
}

.destinations-header {
    text-align: center;
    margin-bottom: 4rem;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.destination-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--divider);
    border-radius: 2px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.destination-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-muted);
}

.destination-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.destination-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-luxury);
}

.destination-card:hover .destination-img img {
    transform: scale(1.05);
}

.destination-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    background: rgba(11, 11, 11, 0.85);
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(201, 169, 110, 0.3);
}

.destination-info {
    padding: 1.5rem;
}

.destination-loc {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.destination-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-ivory);
    margin-bottom: 0.8rem;
}

.destination-desc {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   INVITATION / FORM SECTION
   ============================================ */
.section-invitation {
    padding: var(--section-padding) 2rem;
    background: var(--bg-secondary);
}

.invitation-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 1px solid var(--divider);
    border-radius: 2px;
    padding: 3.5rem;
}

.invitation-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.invitation-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-ivory);
    background: var(--bg-secondary);
    border: 1px solid var(--divider);
    border-radius: 2px;
    padding: 0.9rem 1.2rem;
    transition: border-color var(--transition-base);
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-muted);
}

.form-group select {
    appearance: none;
    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' stroke='%238B7355' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-ivory);
}

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

.success-msg {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    color: var(--gold);
}

.success-msg h4 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-ivory);
    margin-bottom: 1rem;
}

.success-msg p {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 450px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 3rem 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--divider);
    text-align: center;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-crest {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.footer-copy {
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

footer a {
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--gold-muted);
    transition: color var(--transition-base);
}

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

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exp-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Nav mobile */
    nav {
        padding: 1.2rem 1.5rem;
    }

    nav.scrolled {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 11, 11, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Hero mobile */
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-crest {
        width: 60px;
        height: 60px;
    }

    /* Experience rows mobile */
    .exp-row,
    .exp-row.reverse {
        flex-direction: column;
    }

    .exp-img-wrapper {
        min-height: 300px;
        width: 100%;
    }

    .exp-content {
        padding: 2.5rem 1.5rem;
    }

    .exp-title {
        font-size: 1.8rem;
    }

    /* Destinations mobile */
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Section title */
    .section-title {
        font-size: 2rem;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .invitation-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-desc {
        font-size: 0.82rem;
    }

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

    .exp-title {
        font-size: 1.5rem;
    }
}
