/* ═══════════════════════════════════════════
   Ole Gilliam Mill Pottery — Custom Styles
   ═══════════════════════════════════════════ */

/* ── NAV ────────────────────────────────── */
.nav {
    background: rgba(255, 249, 245, 0);
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
    background: rgba(255, 249, 245, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(107, 47, 91, 0.08);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #E8850F;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── MOBILE MENU ───────────────────────── */
.mobile-menu {
    z-index: 40;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}
.mobile-link {
    font-size: 2rem;
}
.menu-line {
    transition: all 0.3s ease;
}
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── HERO ───────────────────────────────── */
.hero {
    position: relative;
}
.hero-gradient {
    background: radial-gradient(ellipse at 30% 50%, #6B2F5B 0%, #2D1226 50%, #1A0A18 100%);
}
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4943A' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
    animation-delay: -3s;
    animation-duration: 10s;
}
.hero-orb-3 {
    animation-delay: -5s;
    animation-duration: 6s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}
.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}
.hero-title {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}
.hero-buttons {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}
.hero-scroll {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #E8850F 0%, #C46A0A 100%);
    color: #FFF9F5;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #FF9A35 0%, #E8850F 100%);
    color: #FFF9F5;
}
.btn-secondary {
    transition: all 0.3s ease;
}
.btn-nav {
    transition: all 0.3s ease;
}

/* ── SECTION HEADINGS ───────────────────── */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9B3A7F;
}
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1A1A2E;
}

/* ── REVEAL ANIMATIONS ─────────────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
/* Default state is visible — JS adds the revealed class for scroll timing */

/* ── CLASS CARDS ────────────────────────── */
.class-card {
    transition: all 0.4s ease;
}
.class-card:hover {
    transform: translateY(-4px);
}

/* ── CTA SECTION ────────────────────────── */
.cta-gradient {
    background: linear-gradient(135deg, #4A1D3F 0%, #2D1226 60%, #1A0A18 100%);
}
.cta-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4943A' fill-opacity='0.3'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .hero-orb-1 { display: none; }
    .hero-orb-2 { width: 60%; }
}
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

/* ── REDUCED MOTION ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    html { scroll-behavior: auto; }
}
