/* ============================================================
   THE CANYON CORNER — Main Stylesheet
   Color palette pulled from hero photo:
     Green  #1E4D2B (shop awning)
     Gold   #C4952A (sign lettering)
     Cream  #FAF6F0 (warm background)
   ============================================================ */

/* ===== RESET & CUSTOM PROPERTIES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
    --green:        #1E4D2B;
    --green-mid:    #2A6638;
    --green-light:  #3A7D4A;
    --gold:         #C4952A;
    --gold-light:   #D4A84A;
    --cream:        #FAF6F0;
    --cream-dark:   #EFE6D5;
    --tan:          #C4A882;
    --charcoal:     #252520;
    --text:         #3A3830;
    --text-mid:     #5A5650;
    --text-light:   #8A847A;
    --white:        #FFFFFF;

    --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:    'Lato', 'Helvetica Neue', Arial, sans-serif;
    --font-script:  'Dancing Script', cursive;

    --max-width:    1100px;
    --pad-x:        2rem;
    --section-pad:  6rem;
    --radius-sm:    4px;
    --radius:       8px;
    --radius-lg:    16px;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --transition:   0.28s var(--ease);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
    --shadow:       0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== UTILITIES ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ===== SHARED TYPOGRAPHY ===== */
.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}
.section-title em {
    font-style: italic;
    color: var(--green);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
    white-space: nowrap;
}
.btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-mid);
    border-color: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,77,43,0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.9);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196,149,42,0.35);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.72rem;
    margin-top: 1.25rem;
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 1.1rem 0;
    transition: background var(--transition), box-shadow var(--transition),
                padding var(--transition);
}
.site-header.scrolled {
    background: rgba(26, 60, 34, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    padding: 0.7rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0.08rem;
    flex-shrink: 0;
}
.logo-the {
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--gold-light);
    line-height: 1;
}
.logo-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.01em;
}
.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--gold-light);
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh; /* shrinks to exclude browser chrome on mobile */
    min-height: 560px;
    max-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(18, 38, 22, 0.82) 0%,
        rgba(18, 38, 22, 0.60) 45%,
        rgba(18, 38, 22, 0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 var(--pad-x);
    padding-top: 5rem;
    max-width: min(580px, 55%);
    margin-left: calc((100vw - var(--max-width)) / 2 + var(--pad-x));
}
@media (max-width: 1140px) {
    .hero-content { margin-left: var(--pad-x); max-width: 540px; }
}

.hero-eyebrow {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.35s forwards;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 380px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.5s forwards;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.65s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,0.6);
    animation: bounce 2s ease-in-out infinite;
    transition: color var(--transition);
}
.hero-scroll:hover { color: var(--white); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===== ABOUT ===== */
.about {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 5rem;
    align-items: start;
}

.about-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 1.2rem;
}
.about-body p:last-child { margin-bottom: 0; }

.about-sig {
    font-family: var(--font-script) !important;
    font-size: 1.6rem !important;
    color: var(--green) !important;
    margin-top: 1.75rem !important;
    margin-bottom: 0 !important;
}

/* Badges */
.badge-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.badge:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.badge-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.badge-text strong {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
}
.badge-text span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    line-height: 0;
    overflow: hidden;
    background: var(--cream);
    margin-bottom: -1px;
}
.section-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* ===== SHOP / COMING SOON ===== */
.shop {
    padding: var(--section-pad) 0 calc(var(--section-pad) * 1.2);
    background: var(--green);
}

.shop .section-label { color: var(--gold-light); }
.shop .section-title { color: var(--white); }
.shop .section-title em { color: var(--gold-light); font-style: italic; }

.shop-intro {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 580px;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.product-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.product-card.featured {
    background: rgba(255,255,255,0.11);
    border-color: rgba(196,149,42,0.4);
}

.product-card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.product-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.product-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
}

/* Notify form */
.notify-wrap {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.5rem 2rem;
    max-width: 560px;
}

.notify-heading {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 1rem;
}

.notify-form {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.notify-field { flex: 1; }
.notify-form input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}
.notify-form input::placeholder { color: rgba(255,255,255,0.45); }
.notify-form input:focus {
    border-color: var(--gold-light);
    background: rgba(255,255,255,0.14);
}

.notify-fine {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.notify-success {
    font-size: 0.95rem;
    color: var(--gold-light);
    font-family: var(--font-serif);
    font-style: italic;
    padding: 0.5rem 0;
}

.notify-error {
    font-size: 0.85rem;
    color: #f4a4a4;
    margin-top: 0.5rem;
}

/* Honeypot — visually hidden and removed from tab order */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ===== CONTACT ===== */
.contact {
    padding: var(--section-pad) 0;
    background: var(--cream-dark);
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    gap: 1.25rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow var(--transition), transform var(--transition);
    color: var(--text);
}
.contact-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    color: var(--green);
}

.contact-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green);
    transition: background var(--transition);
}
.contact-card:hover .contact-card-icon {
    background: rgba(30,77,43,0.1);
}

.contact-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.contact-card-body strong {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
}
.contact-card-body span {
    font-size: 0.88rem;
    color: var(--text-mid);
    word-break: break-word;
}

.contact-card-arrow {
    font-size: 1.1rem;
    color: var(--tan);
    transition: transform var(--transition), color var(--transition);
}
.contact-card:hover .contact-card-arrow {
    transform: translateX(4px);
    color: var(--green);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--charcoal);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 1.25rem;
}
.footer-logo .logo-the {
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--gold-light);
}
.footer-logo .logo-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
}
.footer-logo .logo-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-nav a {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.25rem;
}
.footer-heart {
    font-size: 0.78rem;
    font-style: italic;
    color: rgba(255,255,255,0.25);
}

/* ===== RESPONSIVE ===== */

/* --- Tablet: ≤900px --- */
@media (max-width: 900px) {
    :root { --section-pad: 4.5rem; }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .badge-stack {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .badge { flex: 1 1 calc(50% - 0.5rem); }

    .product-grid { grid-template-columns: 1fr 1fr; }
    .product-card.featured { grid-column: 1 / -1; }
}

/* --- Large phone / small tablet: ≤680px --- */
@media (max-width: 680px) {
    :root { --section-pad: 3.5rem; --pad-x: 1.25rem; }

    /* Mobile nav — full-width dropdown */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--green);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem var(--pad-x) 1.5rem;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 48px; /* touch target */
        padding: 0 0;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.85);
    }
    .nav-links a::after { display: none; }
    .nav-toggle { display: flex; }

    /* Hero */
    .hero-content { max-width: 100%; padding-top: 6rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    /* Center the image so the wreath stays visible (desktop offset biases right) */
    .hero-img { object-position: center top; }
    /* More uniform overlay on narrow screens so text is readable anywhere */
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(18, 38, 22, 0.78) 0%,
            rgba(18, 38, 22, 0.65) 60%,
            rgba(18, 38, 22, 0.45) 100%
        );
    }

    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .badge-stack { flex-direction: column; }
    .badge { flex: none; }

    .product-grid { grid-template-columns: 1fr; }
    .product-card.featured { grid-column: auto; }

    .notify-wrap { padding: 1.75rem 1.25rem 1.5rem; }
    .notify-form { flex-direction: column; }

    .contact-cards { grid-template-columns: 1fr; }

    .footer-nav { gap: 1.25rem; }
}

/* --- Small phones: ≤380px --- */
@media (max-width: 380px) {
    :root { --pad-x: 1rem; }
    .hero-title { font-size: 1.9rem; }
    .btn { padding: 0.8rem 1.4rem; }
}

/* --- Landscape mobile: short viewport --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 320px;
        max-height: none;
        height: auto;
        padding: 5rem 0 3rem;
        align-items: flex-start;
    }
    .hero-content { padding-top: 0; }
    .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
