/* ============================================
   Rogers' Cideryard — Custom Styles
   Premium Dark Luxury · Terracotta + Sand
   ============================================ */

/* ── 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;
}

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

::selection {
    background: #C8956C;
    color: #1A1410;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #C9A84C;
    color: #1A1410;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ── Typography ── */
h1, h2, h3 {
    font-weight: 300;
}

/* ── Navigation ── */
.nav {
    background: rgba(18, 14, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.08);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(18, 14, 10, 0.96);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #C9A84C !important;
}

/* ── Mobile Menu ── */
.mobile-menu {
    z-index: 50;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #C9A84C;
    margin-top: 2px;
    transition: width 0.3s ease;
}

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

/* Mobile menu button active state */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Buttons ── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #C9A84C 0%, #B08D3A 100%);
    color: #1A1410;
    border: none;
    border-radius: 2px;
    padding: 0 2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #D4B96A 0%, #C9A84C 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-gold:hover::before {
    opacity: 1;
}

.btn-gold span,
.btn-gold svg {
    position: relative;
    z-index: 1;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #E8D5C0;
    border: 1px solid rgba(200, 149, 108, 0.4);
    border-radius: 2px;
    padding: 0 2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline:hover {
    border-color: #C9A84C;
    color: #C9A84C;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.1);
}

/* ── Badges ── */
.badge-gold {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    color: #C9A84C;
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-terracotta {
    display: inline-block;
    background: rgba(200, 149, 108, 0.15);
    color: #C8956C;
    border: 1px solid rgba(200, 149, 108, 0.3);
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Section Layout ── */
.section-padding {
    padding: 6rem 0;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* ── Hero ── */
.hero {
    position: relative;
}

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

.hero-bg__image {
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

/* ── Scroll Indicator ── */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

/* ── Divider ── */
.divider {
    padding: 0 0 2rem;
}

/* ── Stats Grid ── */
.stats-grid {
    border-top: 1px solid rgba(200, 149, 108, 0.15);
    padding-top: 2rem;
}

.stat:hover .text-cider-gold {
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
    transition: text-shadow 0.3s ease;
}

/* ── Image Grid ── */
.image-grid {
    position: relative;
}

/* ── Cider Cards ── */
.cider-card__inner {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.5s ease;
}

.cider-card__inner:hover {
    transform: translateY(-4px);
}

/* ── Event Cards ── */
.event-card__inner {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.5s ease;
}

.event-card__inner:hover {
    transform: translateY(-4px);
}

/* ── Visit Details ── */
.visit-detail {
    transition: transform 0.3s ease;
}

.visit-detail:hover {
    transform: translateX(4px);
}

.visit-detail__icon {
    transition: border-color 0.3s ease, background 0.3s ease;
}

.visit-detail:hover .visit-detail__icon {
    border-color: #C9A84C;
    background: rgba(201, 168, 76, 0.1);
}

/* ── Contact Form ── */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: rgba(26, 20, 16, 0.6);
    border: 1px solid rgba(200, 149, 108, 0.2);
    border-radius: 2px;
    color: #E8D5C0;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 300;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: rgba(232, 213, 192, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select option {
    background: #1A1410;
    color: #E8D5C0;
}

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

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

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

/* ── Social Icons ── */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(200, 149, 108, 0.2);
    border-radius: 50%;
    color: #E8D5C0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: #C9A84C;
    color: #C9A84C;
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-2px);
}

/* ── Footer ── */
.footer {
    position: relative;
}

/* ── Reveal Animations ── */
[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-anim="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-anim="fade-left"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-anim="fade-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero animations — visible by default, JS enhances */
.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-actions {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow {
        animation: fadeUp 0.8s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }
    .hero-title {
        animation: fadeUp 0.8s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }
    .hero-subtitle {
        animation: fadeUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }
    .hero-actions {
        animation: fadeUp 0.8s 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }
    .hero-image {
        animation: fadeLeft 0.8s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }
}

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

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Floating Card ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ── Utility ── */
.reveal {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    .hero-image {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-eyebrow {
        justify-content: center;
    }
}

@media (max-width: 639px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-title span {
        display: block;
    }
}

/* ── Print ── */
@media print {
    .nav, .scroll-indicator, .mobile-menu {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
