@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Jost', sans-serif;
    color: #2c2c2c;
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.logo img, img[src*="logo"], .logo-img { height: 40px !important; width: auto !important; object-fit: contain; }
button, input, textarea { -webkit-tap-highlight-color: transparent; }

/* ===== CSS VARS ===== */
:root {
    --gold: #c5a059;
    --gold-light: #e8d5a8;
    --gold-dark: #9a7a3e;
    --dark: #141414;
    --cream: #f9f6f1;
    --text: #2c2c2c;
    --text-muted: #888;
    --white: #fff;
    --border: rgba(197, 160, 89, 0.2);
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 2px;
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media(min-width: 768px) { .container { padding: 0 2rem; } }
.section-pad { padding: 5rem 0; }
@media(min-width: 768px) { .section-pad { padding: 7rem 0; } }
.bg-cream { background-color: var(--cream); }
.bg-dark { background-color: var(--dark); }
.hidden { display: none !important; }

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    transition: var(--transition);
}
@media(min-width: 768px) { #header { padding: 1.5rem 3rem; } }
#header.scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
@media(min-width: 768px) { #header.scrolled { padding: 1rem 3rem; } }

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 10px; z-index: 1100; position: relative; }
.logo-img { height: 30px; width: auto; }
@media(min-width: 768px) { .logo-img { height: 36px; } }
.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--dark);
    transition: 0.3s;
}
@media(min-width: 768px) { .logo-text { font-size: 1.4rem; } }
#header:not(.scrolled) .logo-text { color: var(--white); }

nav#desktop-nav { display: none; }
@media(min-width: 768px) {
    nav#desktop-nav { display: block; }
    nav#desktop-nav ul { display: flex; gap: 2.5rem; }
    nav#desktop-nav ul li a {
        font-size: 0.8rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--dark);
    }
    #header:not(.scrolled) nav#desktop-nav ul li a { color: var(--white); }
    nav#desktop-nav ul li a:hover { color: var(--gold); }
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    z-index: 1100; position: relative;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--dark); transition: var(--transition); transform-origin: center;
}
#header:not(.scrolled) .hamburger span { background: var(--white); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger.open span { background: var(--dark) !important; }
@media(min-width: 768px) { .hamburger { display: none; } }

.mobile-menu {
    display: none; position: fixed; inset: 0;
    background: var(--white); z-index: 1050;
    flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem; font-weight: 600; color: var(--dark); letter-spacing: 2px;
}
.mobile-menu a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
    position: relative; height: 100svh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; background: url('../img/hero.png') center/cover no-repeat;
    transform: scale(1.05); transition: transform 8s ease-out; will-change: transform;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.7));
}
.hero-content { position: relative; z-index: 2; padding: 0 1.5rem; max-width: 800px; }
.hero-tagline {
    display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 4px;
    text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.25rem;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.3s;
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 300; margin-bottom: 1.25rem;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem); font-weight: 300; margin-bottom: 2.5rem;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.9s;
}
.hero-cta {
    display: flex; flex-direction: column; gap: 1rem; align-items: center;
    opacity: 0; animation: fadeUp 0.8s ease forwards 1.2s;
}
@media(min-width: 480px) { .hero-cta { flex-direction: row; justify-content: center; } }

.hero-scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 2; display: none; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.6;
}
@media(min-width: 768px) { .hero-scroll-hint { display: flex; } }
.scroll-line { width: 1px; height: 50px; background: var(--white); animation: scrollLine 2s ease infinite; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2rem; font-family: 'Jost', sans-serif; font-size: 0.78rem;
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    border: none; transition: var(--transition); min-height: 50px; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(197,160,89,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-full { width: 100%; margin-top: 0.5rem; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 3.5rem; }
@media(min-width: 768px) { .section-header { margin-bottom: 5rem; } }
.section-label { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.section-header h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; margin-bottom: 1.25rem; }
.gold-line { width: 50px; height: 2px; background: var(--gold); margin: 0 auto 1.5rem; }
.section-desc { font-size: 0.95rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-header.light h2, .section-header.light .section-label, .section-header.light .section-desc { color: var(--white); }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.product-card { background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
@media(hover: hover) { .product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); } }
.product-img-wrap { position: relative; overflow: hidden; }
.product-img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.6s ease; }
@media(min-width: 768px) { .product-img { height: 320px; } }
@media(hover: hover) { .product-card:hover .product-img { transform: scale(1.05); } }
.product-badge { position: absolute; top: 1rem; right: 1rem; background: var(--gold); color: var(--white); font-size: 0.65rem; font-weight: 600; letter-spacing: 1px; padding: 0.3rem 0.8rem; text-transform: uppercase; }
.product-body { padding: 1.5rem; }
@media(min-width: 768px) { .product-body { padding: 2rem; } }
.product-body h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.75rem; }
.product-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.product-price { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.product-price small { font-size: 0.8rem; font-weight: 400; }
.btn-link { font-size: 0.78rem; font-weight: 600; color: var(--dark); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.btn-link:hover { color: var(--gold); }

/* ===== QUOTE SECTION ===== */
.quote-wrapper { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width: 900px) { .quote-wrapper { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.config-title { font-size: 1.5rem; font-weight: 600; color: var(--white); margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(197,160,89,0.3); }
.config-item { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); gap: 1rem; }
.config-info { flex: 1; min-width: 0; }
.config-name { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 0.25rem; word-break: break-word; }
.config-price-tag { color: var(--gold); font-size: 0.82rem; }
.qty-control { display: flex; align-items: center; flex-shrink: 0; }
.qty-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(197,160,89,0.15); border: 1px solid rgba(197,160,89,0.35); color: var(--gold); font-size: 1.3rem; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.qty-btn:hover { background: var(--gold); color: var(--white); }
.qty-input { width: 52px; height: 44px; background: transparent; border: 1px solid rgba(197,160,89,0.35); border-left: none; border-right: none; color: var(--white); text-align: center; font-size: 1rem; font-family: 'Jost', sans-serif; pointer-events: none; -webkit-appearance: none; appearance: none; }

/* Toggle */
.toggle-switch { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.1); border: 1px solid rgba(197,160,89,0.35); transition: 0.3s; border-radius: 28px; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: var(--text-muted); transition: 0.3s; border-radius: 50%; }
.toggle-switch input:checked + .toggle-slider { background: rgba(197,160,89,0.2); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); background: var(--gold); }

/* Summary */
.live-summary { margin-top: 2rem; padding: 1.5rem; background: rgba(197,160,89,0.07); border: 1px solid rgba(197,160,89,0.2); }
.summary-empty { color: rgba(255,255,255,0.35); font-size: 0.88rem; font-style: italic; }
.summary-line { display: flex; justify-content: space-between; color: rgba(255,255,255,0.75); font-size: 0.88rem; padding: 0.35rem 0; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid rgba(197,160,89,0.3); font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.summary-total span:first-child { font-size: 0.75rem; font-family: 'Jost', sans-serif; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 2px; text-transform: uppercase; }

/* Quote Form */
.form-notice { color: rgba(255,255,255,0.4); font-size: 0.82rem; margin-bottom: 1.75rem; margin-top: -1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media(min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.form-group input, .form-group textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--white); padding: 0.9rem 1.1rem; font-family: 'Jost', sans-serif; font-size: 1rem; transition: var(--transition); outline: none; width: 100%; border-radius: 0; -webkit-appearance: none; appearance: none; min-height: 50px; }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); background: rgba(197,160,89,0.08); }
.form-group input.error { border-color: #e05252; }
.field-error { color: #f47878; font-size: 0.78rem; min-height: 1.1em; display: block; margin-top: 0.2rem; }
.form-feedback { padding: 1.25rem 1.5rem; font-size: 0.95rem; text-align: left; margin-bottom: 2rem; }
.form-feedback.success { background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.35); color: #4cd080; }
.form-feedback.error-msg { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.35); color: #f47878; }

/* ===== CONTACTS ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin: 0 auto; } }
@media(min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; } }
.contact-card { background: var(--white); padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
@media(hover: hover) { .contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); } }
.contact-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.contact-card h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.contact-card a, .contact-card p { color: var(--text-muted); font-size: 0.95rem; }
.contact-card a:hover { color: var(--gold); }

/* ===== FOOTER ===== */
.site-footer { background: #0c0c0c; color: rgba(255,255,255,0.5); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; text-align: center; }
.footer-logo .logo-text { color: var(--white); font-size: 1.2rem; }
.footer-logo p { font-size: 0.72rem; letter-spacing: 2px; color: var(--gold); margin-top: 0.3rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-links a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.72rem; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== KEYFRAMES ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media(prefers-reduced-motion: reduce) { .reveal, .hero-tagline, .hero-title, .hero-subtitle, .hero-cta { animation: none !important; opacity: 1 !important; transform: none !important; } }
