/* ============================================
   Sevenoaks Farm — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(94, 234, 212, 0.2);
    color: #fff;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Hero Reveal --- */
.hero-reveal p {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Gradient Orbs --- */
.hero-gradient-orb,
.exp-orb,
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 58, 110, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

.exp-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: -3s;
}

.exp-orb.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(26, 58, 110, 0.2) 0%, transparent 70%);
    bottom: 5%;
    right: -5%;
    animation-delay: -10s;
}

.cta-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.12) 0%, transparent 70%);
    top: -15%;
    right: -10%;
    animation-delay: -5s;
}

.cta-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 58, 110, 0.25) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: -12s;
}

/* --- Decorative Lines --- */
.hero-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(94, 234, 212, 0.08), transparent);
}

.line-1 {
    width: 1px;
    height: 100%;
    left: 15%;
    top: 0;
}

.line-2 {
    width: 1px;
    height: 80%;
    right: 20%;
    top: 10%;
}

.line-3 {
    width: 60%;
    height: 1px;
    left: 20%;
    bottom: 30%;
    background: linear-gradient(to right, transparent, rgba(94, 234, 212, 0.06), transparent);
}

/* --- Scroll Line --- */
.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line-inner {
    width: 100%;
    height: 100%;
    background: rgba(94, 234, 212, 0.5);
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- Divider --- */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(94, 234, 212, 0.6);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: rgba(94, 234, 212, 0.9) !important;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(94, 234, 212, 0.12);
    border: 1px solid rgba(94, 234, 212, 0.3);
    color: rgba(94, 234, 212, 0.95);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: rgba(94, 234, 212, 0.2);
    border-color: rgba(94, 234, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(94, 234, 212, 0.1);
}

.btn-primary .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-reserve {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.25);
    color: rgba(94, 234, 212, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-reserve:hover {
    background: rgba(94, 234, 212, 0.18);
    border-color: rgba(94, 234, 212, 0.4);
}

/* --- Room Cards --- */
.room-card {
    position: relative;
}

.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    pointer-events: none;
    transition: border-color 0.4s ease;
    z-index: 1;
}

.room-card:hover::before {
    border-color: rgba(94, 234, 212, 0.15);
}

.room-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(94, 234, 212, 0.7);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.room-link:hover {
    color: rgba(94, 234, 212, 1);
    gap: 12px;
}

/* --- Feature Cards --- */
.feature-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(94, 234, 212, 0.15);
    background: rgba(94, 234, 212, 0.02);
}

.feature-icon {
    color: rgba(94, 234, 212, 0.6);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: rgba(94, 234, 212, 0.9);
}

/* --- Section Reveal --- */
.section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Form Styles --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
    border-color: rgba(94, 234, 212, 0.4);
    background: rgba(94, 234, 212, 0.04);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='rgba(255,255,255,0.4)' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: #0a1628;
    color: rgba(255, 255, 255, 0.85);
}

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

/* --- Contact Icons --- */
.contact-icon {
    color: rgba(94, 234, 212, 0.5);
    transition: color 0.3s ease;
}

.section-reveal:hover .contact-icon {
    color: rgba(94, 234, 212, 0.8);
}

/* --- Success State --- */
#formSuccess {
    display: none;
}

#formSuccess.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.success-icon {
    color: rgba(94, 234, 212, 0.7);
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-link {
    animation: fadeInUp 0.5s ease forwards;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* --- Mobile Menu Button --- */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Hero Button Container --- */
#hero .flex {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-gradient-orb,
    .exp-orb,
    .cta-orb {
        filter: blur(60px);
    }
    
    .orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    .hero-line {
        display: none;
    }
    
    .room-image {
        height: 280px !important;
    }
    
    .location-image {
        height: 400px !important;
    }
    
    .location-inset {
        display: none;
    }
}

@media (max-width: 640px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}
