/* ==========================================
   LUTHE LUTHERIA - Nature Distilled Style
   Artisan / Organic / Handcrafted Warmth
   ========================================== */

:root {
    --luth-primary: #6B3A1F;
    --luth-primary-hover: #8B5233;
    --luth-secondary: #C4873B;
    --luth-accent: #DEB887;
    --luth-yellow: #F7D448;
    --luth-bg: #FAF7F2;
    --luth-surface: #FFFFFF;
    --luth-border: #E2D5C5;
    --luth-border-light: #EDE4D8;
    --luth-text: #2A1810;
    --luth-text-secondary: #7A6B5A;
    --luth-text-muted: #9B8E7E;
}

/* === Base === */
body, html {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: var(--luth-bg);
    color: var(--luth-text);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

main {
    flex: 1;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

p {
    color: var(--luth-text-secondary);
    line-height: 1.7;
}

/* === Nav === */
nav {
    background-color: var(--luth-yellow);
    color: var(--luth-text);
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(42, 24, 16, 0.2);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

nav.scrolled {
    background-color: rgba(247, 212, 72, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* === Footer === */
footer.footer {
    background-color: var(--luth-yellow);
    color: var(--luth-text);
    padding: 40px 0 20px;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(42, 24, 16, 0.1);
}

.footer {
    background-color: var(--luth-yellow);
    color: var(--luth-text);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.footer-content div {
    margin: 10px;
}

.footer-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 10px;
    color: var(--luth-primary);
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.footer-content a {
    color: var(--luth-text);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-content a:hover {
    color: var(--luth-secondary);
    transform: translateY(-3px);
}

.footer-copy {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(42, 24, 16, 0.15);
    font-size: 0.85em;
    color: var(--luth-primary);
}

.address {
    font-size: 15px !important;
    color: var(--luth-text) !important;
}

.address:hover {
    color: var(--luth-primary) !important;
}

/* === Logo === */
.logo-svg {
    height: 48px;
    width: auto;
    filter: brightness(0);
    transition: opacity 0.25s ease;
}

.logo-svg:hover {
    opacity: 0.85;
}

/* === Color utility classes === */
.bg-luth-primary { background-color: var(--luth-primary); }
.bg-luth-yellow { background-color: var(--luth-yellow); }
.bg-luth-primary-hover:hover { background-color: var(--luth-primary-hover); }
.text-luth-primary { color: var(--luth-primary); }
.text-luth-secondary { color: var(--luth-secondary); }
.text-luth-accent { color: var(--luth-accent); }
.text-luth-yellow { color: var(--luth-yellow); }
.border-luth-primary { border-color: var(--luth-primary); }
.border-luth-border { border-color: var(--luth-border); }

/* Legacy aliases */
.text-luth-blue { color: var(--luth-primary); }
.bg-luth-blue { background-color: var(--luth-primary); }
.border-luth-blue { border-color: var(--luth-primary); }

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

/* === Scroll Reveal Animations === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .stagger-children > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === Card Styles === */
.luth-card {
    background: var(--luth-surface);
    border: 1px solid var(--luth-border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.luth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(107, 58, 31, 0.12);
}

/* === Service Cards (replace emoji icons) === */
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--luth-accent), var(--luth-secondary));
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.luth-card:hover .service-icon {
    transform: scale(1.1);
}

/* === Button Styles === */
.luth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.luth-btn:focus-visible {
    outline: 2px solid var(--luth-secondary);
    outline-offset: 2px;
}

.luth-btn-primary {
    background-color: var(--luth-primary);
    color: white;
}

.luth-btn-primary:hover {
    background-color: var(--luth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 58, 31, 0.25);
}

.luth-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.luth-btn-secondary {
    background-color: var(--luth-yellow);
    color: var(--luth-text);
}

.luth-btn-secondary:hover {
    background-color: #EFC93B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 212, 72, 0.35);
}

.luth-btn-outline {
    background: transparent;
    border: 2px solid var(--luth-primary);
    color: var(--luth-primary);
}

.luth-btn-outline:hover {
    background-color: var(--luth-primary);
    color: white;
}

/* === Section Headings === */
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--luth-primary);
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--luth-yellow), var(--luth-secondary));
    margin-top: 12px;
    border-radius: 2px;
}

.section-heading-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* === Form Inputs === */
.luth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--luth-border);
    border-radius: 8px;
    background: var(--luth-surface);
    color: var(--luth-text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.luth-input:focus {
    outline: none;
    border-color: var(--luth-secondary);
    box-shadow: 0 0 0 3px rgba(196, 135, 59, 0.15);
}

.luth-input::placeholder {
    color: var(--luth-text-muted);
}

.luth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--luth-text);
    margin-bottom: 0.375rem;
}

/* === Sections === */
.section-warm {
    background-color: var(--luth-bg);
}

.section-alt {
    background: linear-gradient(180deg, #F5EFE6 0%, var(--luth-bg) 100%);
}

/* === Dark section (Custom Shop, Headless banner) === */
.section-dark {
    background: linear-gradient(135deg, #2A1810 0%, #3D2517 50%, #2A1810 100%);
    color: var(--luth-bg);
}

/* === Subtle grain texture overlay === */
.grain-overlay {
    position: relative;
}

.grain-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.grain-overlay > * {
    position: relative;
    z-index: 1;
}

/* === Swiper overrides === */
.mySwiper {
    padding: 0 3.5rem;
}

.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--luth-border);
    box-shadow: 0 2px 8px rgba(42, 24, 16, 0.12);
    color: var(--luth-primary) !important;
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--luth-secondary) !important;
    box-shadow: 0 4px 12px rgba(42, 24, 16, 0.18);
}

/* === Mobile nav menu animation === */
#nav-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

#nav-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* === Product slider nav arrows === */
#prevProduct,
#nextProduct {
    background: var(--luth-surface);
    border: 1px solid var(--luth-border);
    color: var(--luth-primary);
    font-size: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

#prevProduct:hover,
#nextProduct:hover {
    background: var(--luth-primary);
    color: white;
    border-color: var(--luth-primary);
}

/* === Custom Shop process steps === */
.process-step {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(222, 184, 135, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.25s ease, background 0.25s ease;
}

.process-step:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.process-step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--luth-yellow), var(--luth-secondary));
    color: var(--luth-text);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 0.75rem;
}

/* === Headless product cards === */
.headless-card {
    background: var(--luth-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--luth-border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 420px;
    margin: 0 auto;
}

.headless-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(107, 58, 31, 0.15);
}

.headless-card img {
    transition: transform 0.4s ease;
}

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

/* === Toast notification === */
.luth-toast {
    background: var(--luth-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(42, 24, 16, 0.25);
}

/* === Focus visible for accessibility === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--luth-secondary);
    outline-offset: 2px;
}

/* === Cursor pointer for interactive elements === */
a, button, [role="button"], .cursor-pointer {
    cursor: pointer;
}

/* === YouTube iframe responsive === */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(42, 24, 16, 0.12);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* === Divider === */
.luth-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--luth-border), transparent);
    border: none;
    margin: 0;
}

/* === Hero with photo background === */
.hero-bg {
    background-size: cover;
    background-position: center;
}

/* === FAQ accordion === */
.faq-item {
    background: #fff;
    border: 1px solid var(--luth-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    color: var(--luth-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s ease;
}

.faq-item summary:hover {
    background: var(--luth-bg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    line-height: 1;
    color: var(--luth-secondary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--luth-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Nav dropdown === */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #fff;
    border: 1px solid var(--luth-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(42, 24, 16, 0.15);
    padding: 0.5rem;
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--luth-text);
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background: var(--luth-bg);
    color: var(--luth-primary);
}

/* keep the dropdown open while moving the cursor from trigger to menu */
.nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}
