/* Import Google Fonts (Figtree & Fraunces) */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&display=swap');

/* Exact color variables from the ngrok build */
:root {
    --color-paper: #f4efe6;
    --color-paper-2: #ebe4d6;
    --color-linen: #fbf8f1;
    --color-forest: #1e3328;
    --color-sage: #5c6f55;
    --color-ink: #1c1916;
    --color-muted: #6a635a;
    --color-border: #d9d0c1;
    --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Fraunces", ui-serif, Georgia, serif;
    --shadow-card: 0 0 0 1px rgb(28 25 22 / 0.06), 0 1px 2px -1px rgb(28 25 22 / 0.06), 0 2px 4px rgb(28 25 22 / 0.04);
    --shadow-card-hover: 0 0 0 1px rgb(28 25 22 / 0.08), 0 1px 2px -1px rgb(28 25 22 / 0.08), 0 8px 20px -8px rgb(28 25 22 / 0.12);
}

/* Base Resets */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--color-paper); color: var(--color-ink); font-family: var(--font-sans); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.2s; }
img { display: block; max-width: 100%; height: auto; }

/* Typography Utilities */
.font-display { font-family: var(--font-display); }
.text-forest { color: var(--color-forest); }
.text-linen { color: var(--color-linen); }
.text-muted { color: var(--color-muted); }
.text-sage { color: var(--color-sage); }
.eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; color: var(--color-sage); display: block; margin-bottom: 0.5rem; }

/* Layout Utilities */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.grid-3 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 4rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mobile-First Header Layout */
.site-header { 
    display: flex; 
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; 
    padding: 1rem 1.5rem; 
    background-color: rgba(244, 239, 230, 0.95); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    position: sticky; 
    top: 0; 
    z-index: 50; 
    border-bottom: 1px solid rgba(217, 208, 193, 0.5); 
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 40px; width: auto; }
.header-nav { 
    width: 100%;
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem; 
    margin-top: 1.25rem;
    font-size: 0.875rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted); 
    order: 3;
}
.header-nav a { padding: 0.5rem; }
.header-nav a:hover { color: var(--color-forest); }
.header-action { display: flex; align-items: center; gap: 1rem; }
.btn-header { background-color: var(--color-forest); color: var(--color-linen); padding: 0.6rem 1.2rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; text-align: center; }
.btn-header:hover { background-color: var(--color-sage); }

@media (min-width: 900px) {
    .site-header { 
        display: grid; 
        grid-template-columns: 1fr auto 1fr; 
        padding: 1rem 2rem; 
    }
    .header-logo { justify-self: start; }
    .header-nav { justify-self: center; width: auto; margin-top: 0; order: unset; gap: 2.5rem; }
    .header-action { justify-self: end; }
}

/* Responsive Hero Section */
.hero { 
    position: relative; 
    min-height: 75vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: 6rem 1rem 4rem 1rem; 
    text-align: center; 
    overflow: hidden; 
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 51, 40, 0.8) 0%, rgba(30, 51, 40, 0.3) 50%, transparent 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; width: 100%; }
.hero-box {
    background: rgba(20, 35, 25, 0.7); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    padding: 3.5rem 2rem; 
    border-radius: 1.5rem; 
    border: 1px solid rgba(251, 248, 241, 0.15); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.hero-title {
    font-family: var(--font-display); 
    font-size: 4.5rem; 
    font-style: italic; 
    color: var(--color-linen); 
    line-height: 1.05; 
    margin-bottom: 1.5rem; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-subtitle {
    color: rgba(251, 248, 241, 0.95); 
    font-size: 1.15rem; 
    margin-bottom: 2.5rem; 
    max-width: 40rem; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.6;
}

/* Mobile Adjustments for Hero Typography */
@media (max-width: 767px) {
    .hero { min-height: 85vh; padding-top: 2rem; }
    .hero-title { font-size: 2.5rem !important; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 1rem !important; margin-bottom: 1.5rem; }
    .hero-box { padding: 2rem 1.25rem !important; }
}

/* Hero Buttons */
.btn-hero-solid { background-color: var(--color-linen); color: var(--color-forest); padding: 0.75rem 1.5rem; border-radius: 9999px; font-weight: 500; display: inline-flex; justify-content: center; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-hero-solid:hover { background-color: #ffffff; transform: translateY(-1px); }
.btn-hero-ghost { color: var(--color-linen); padding: 0.75rem 1.5rem; border-radius: 9999px; font-weight: 500; display: inline-flex; justify-content: center; align-items: center; }
.btn-hero-ghost:hover { background-color: rgba(255,255,255,0.1); }

/* Animated CSS Slideshow (7 Images) */
.hero-slideshow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; background-color: var(--color-forest); }
.hero-slideshow img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
    animation: crossfade 42s infinite; 
}
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 6s; }
.hero-slideshow img:nth-child(3) { animation-delay: 12s; }
.hero-slideshow img:nth-child(4) { animation-delay: 18s; }
.hero-slideshow img:nth-child(5) { animation-delay: 24s; }
.hero-slideshow img:nth-child(6) { animation-delay: 30s; }
.hero-slideshow img:nth-child(7) { animation-delay: 36s; }

@keyframes crossfade {
    0% { opacity: 0; }
    4% { opacity: 1; }      
    14.28% { opacity: 1; }  
    18.28% { opacity: 0; }  
    100% { opacity: 0; }
}

/* Fact Bar */
.fact-bar { 
    background-color: var(--color-paper-2); 
    border-top: 1px solid var(--color-border); 
    border-bottom: 1px solid var(--color-border); 
    padding: 1.5rem 2rem; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 1rem 2rem; 
    text-align: center; 
}
.fact-bar .eyebrow { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--color-forest); text-shadow: 0px 1px 2px rgba(0,0,0,0.1); }
@media (max-width: 767px) {
    .fact-bar .eyebrow { font-size: 0.85rem; }
}

/* Standard Cards */
.card { background-color: var(--color-linen); border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-card); }
.card-img { background-color: var(--color-linen); border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.card-img img { height: 15rem; width: 100%; object-fit: cover; }
.come-by-box { background-color: var(--color-paper-2); border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-card); }

/* 3D Spin Flip Cards (For Shop Page) */
.shop-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.flip-card { 
    background-color: transparent; perspective: 1000px; display: block; text-decoration: none; color: inherit; 
    height: 300px; width: 100%; min-width: 280px; max-width: 380px; 
}
@media (min-width: 768px) { .flip-card { width: calc(50% - 1rem); } }
@media (min-width: 1024px) { .flip-card { width: calc(33.333% - 1rem); } }

.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: left; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 1.5rem; box-shadow: var(--shadow-card); }
.flip-card-front { background-color: var(--color-linen); padding: 2.5rem 2rem; display: flex; flex-direction: column; }
.flip-card-back { background-color: var(--color-forest); transform: rotateY(180deg); overflow: hidden; }
.flip-card-back img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.flip-card:hover { box-shadow: var(--shadow-card-hover); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--color-sage); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; }
.form-input { width: 100%; padding: 1rem; border-radius: 0.75rem; border: 1px solid var(--color-border); background-color: var(--color-linen); color: var(--color-ink); font-family: inherit; font-size: 1rem; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--color-forest); box-shadow: 0 0 0 1px var(--color-forest); }

/* Footer */
.site-footer { background-color: var(--color-forest); color: var(--color-linen); padding: 5rem 2rem 2rem 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 80rem; margin: 0 auto 4rem auto; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(251, 248, 241, 0.1); padding-top: 2rem; max-width: 80rem; margin: 0 auto; display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(251, 248, 241, 0.5); flex-wrap: wrap; gap: 1rem; text-align: center; }
@media (max-width: 767px) { .footer-bottom { justify-content: center; } }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { color: rgba(251, 248, 241, 0.7); transition: color 0.2s; }
.social-links a:hover { color: var(--color-linen); }

/* Animations */
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.stagger-in { animation: fade-up 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }