/* ========================================
   Arrowhead Mercantile — Styles
   Palette: Plum (#5D4037, #7B5A5E) + Amber (#C8960C, #F5C518)
   Fonts: Playfair Display (headings) + Inter (body)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --plum-dark: #3E2723;
    --plum: #5D4037;
    --plum-mid: #7B5A5E;
    --plum-light: #A1887F;
    --plum-pale: #EFEBE9;
    --plum-bg: #FAF7F5;
    --amber: #C8960C;
    --amber-light: #F5C518;
    --amber-pale: #FFF8E1;
    --white: #FFFFFF;
    --off-white: #FEFCFB;
    --text-dark: #2C1E1A;
    --text-mid: #5D4037;
    --text-light: #8D6E63;
    --line: rgba(93, 64, 55, 0.12);
    --line-strong: rgba(93, 64, 55, 0.25);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --max-width: 1200px;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--plum-dark);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 520px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--amber {
    background: var(--amber);
    color: var(--plum-dark);
    border-color: var(--amber);
}

.btn--amber:hover {
    background: var(--amber-light);
    border-color: var(--amber-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 150, 12, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--plum);
    border-color: var(--plum-light);
}

.btn--outline:hover {
    background: var(--plum);
    color: var(--white);
    border-color: var(--plum);
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.8125rem;
}

.btn--full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(254, 252, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(62, 39, 35, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--plum-dark);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-mid);
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--plum-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--plum);
    transition: all 0.3s ease;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--plum);
    padding: 8px;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--plum-dark);
    padding: 12px 24px;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--amber);
}

/* --- Hero --- */
.hero {
    padding-top: var(--nav-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--off-white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-content {
    padding-right: 20px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--plum-dark);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: var(--plum-mid);
}

.hero-desc {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-detail svg {
    color: var(--amber);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--amber);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.5;
}

/* --- Thin Line Divider --- */
.thin-line {
    padding: 0 24px;
}

.thin-line-inner {
    height: 1px;
    background: var(--line);
    width: 100%;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.85;
}

.about-text p:first-of-type {
    font-size: 1.0625rem;
    color: var(--text-dark);
}

.about-image {
    border-radius: 2px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* --- Products --- */
.products {
    padding: 120px 0;
    background: var(--plum-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-lead {
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(62, 39, 35, 0.1);
    border-color: transparent;
}

.product-card-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.375rem;
    padding: 24px 28px 0;
    color: var(--plum-dark);
}

.product-card p {
    padding: 12px 28px 28px;
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: var(--off-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.visit-info .section-title {
    margin-bottom: 48px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit-detail svg {
    color: var(--amber);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--plum-dark);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.visit-detail span {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.visit-detail a {
    color: var(--amber);
    transition: color 0.3s ease;
}

.visit-detail a:hover {
    color: var(--plum);
}

.visit-image {
    border-radius: 2px;
    overflow: hidden;
}

.visit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.visit-image:hover img {
    transform: scale(1.02);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--plum-dark);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact .section-eyebrow {
    color: var(--amber-light);
}

.contact .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.contact .section-lead {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    padding: 14px 16px;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--amber);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-submit {
    align-self: flex-start;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.form-success.active {
    display: flex;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin: 16px 0 8px;
}

.form-success p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

/* --- Footer --- */
.footer {
    background: var(--plum-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 72px 0 0;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact li {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .visit-grid,
    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 40px 0 60px;
    }

    .hero-content {
        padding-right: 0;
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-image-wrapper {
        aspect-ratio: 4/3;
        max-height: 400px;
    }

    .hero-image-accent {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .about-grid,
    .visit-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about {
        padding: 80px 0;
    }

    .products {
        padding: 80px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .visit {
        padding: 80px 0;
    }

    .contact {
        padding: 80px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.125rem;
    }

    .section-title {
        font-size: 1.625rem;
    }
}
