/* ============================================
   GRITS & GRACE CRAFT BOUTIQUE
   Bold Editorial — Navy + Warm Gold
   ============================================ */

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

:root {
    --navy: #0f1c3f;
    --navy-light: #1a2d5a;
    --navy-dark: #091228;
    --gold: #c8a45e;
    --gold-light: #d4b76e;
    --gold-dark: #b8933f;
    --cream: #faf8f4;
    --cream-dark: #f0ece4;
    --warm-white: #fffdf9;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 28, 63, 0.08);
    --shadow-md: 0 4px 20px rgba(15, 28, 63, 0.10);
    --shadow-lg: 0 12px 40px rgba(15, 28, 63, 0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.btn-light:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-full {
    width: 100%;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 28, 63, 0.06);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.logo-pre, .logo-post {
    font-style: italic;
    font-weight: 400;
}

.logo-amp {
    color: var(--gold);
    font-style: italic;
    font-weight: 600;
    margin: 0 4px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--navy);
}

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-dark);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200, 164, 94, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(26, 45, 90, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(26, 45, 90, 0.6) 0%, transparent 60%),
        linear-gradient(160deg, #091228 0%, #0f1c3f 40%, #1a2d5a 70%, #0f1c3f 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(200, 164, 94, 0.5) 50px, rgba(200, 164, 94, 0.5) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(200, 164, 94, 0.5) 50px, rgba(200, 164, 94, 0.5) 51px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--gold);
    font-weight: 600;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 44px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    margin: 8px auto 0;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.4; }
}

/* ---------- PILLARS ---------- */
.pillars {
    padding: 100px 0;
    background: var(--cream);
}

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

.pillar-card {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: 44px 36px;
    border: 1px solid rgba(15, 28, 63, 0.06);
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.pillar-icon {
    width: 52px;
    height: 52px;
    color: var(--gold-dark);
    margin-bottom: 24px;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy);
}

.pillar-card p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ---------- FEATURED COLLECTIONS ---------- */
.featured {
    padding: 100px 0;
    background: var(--cream-dark);
}

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

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.featured-item {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(15, 28, 63, 0.06);
    transition: var(--transition);
}

.featured-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.featured-img-wrap {
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-item:hover .featured-img-wrap img {
    transform: scale(1.05);
}

.featured-info {
    padding: 32px 28px;
}

.featured-info h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
}

.featured-info p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
}

.link-arrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.04em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-arrow:hover {
    color: var(--navy);
    gap: 10px;
}

.link-arrow span {
    transition: var(--transition);
}

/* ---------- STATEMENT ---------- */
.statement {
    padding: 100px 0;
    background: var(--navy);
}

.statement-inner blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.statement-inner p {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.statement-inner footer {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background: var(--cream);
}

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

.about-img-col {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -40px;
    right: -32px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.about-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-col .section-title {
    margin-bottom: 28px;
}

.about-text-col p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-signature {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--navy);
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 28, 63, 0.1);
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
    padding: 80px 0;
    background: var(--gold);
}

.cta-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: var(--navy-dark);
    opacity: 0.7;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    color: var(--navy);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-actions .btn-outline-light {
    border-color: rgba(15, 28, 63, 0.3);
    color: var(--navy-dark);
}

.cta-actions .btn-outline-light:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #fff;
}

/* ---------- VISIT ---------- */
.visit {
    padding: 100px 0;
    background: var(--cream-dark);
}

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

.visit-info {
    padding: 20px 0;
}

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

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

.visit-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visit-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.tel-link, .mail-link {
    color: var(--navy);
    font-weight: 500;
    border-bottom: 1px solid rgba(15, 28, 63, 0.15);
    transition: var(--transition);
}

.tel-link:hover, .mail-link:hover {
    color: var(--gold-dark);
    border-color: var(--gold-dark);
}

.visit-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
    background: var(--warm-white);
}

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

.contact-text .section-title {
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.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: 600;
    letter-spacing: 0.06em;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 12px 16px;
    border: 1.5px solid rgba(15, 28, 63, 0.14);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: rgba(200, 164, 94, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(200, 164, 94, 0.25);
    text-align: center;
}

.form-success svg {
    width: 40px;
    height: 40px;
    color: var(--gold-dark);
}

.form-success p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--navy-dark);
    padding: 64px 0 0;
}

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

.logo-footer {
    margin-bottom: 16px;
    display: inline-block;
}

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 6px;
}

.footer-contact .tel-link,
.footer-contact .mail-link {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-contact .tel-link:hover,
.footer-contact .mail-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.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);
    text-align: center;
}

/* ---------- REVEAL ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* ---------- MOBILE NAV ---------- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--warm-white);
        box-shadow: var(--shadow-lg);
        padding: 100px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .main-nav a {
        font-size: 1.0625rem;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(9, 18, 40, 0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .pillar-card {
        padding: 32px 24px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-item:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

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

    .hero-content {
        padding: 100px 20px 80px;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pillar-card {
        padding: 28px 24px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .featured-item:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

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

    .about-img-accent {
        position: relative;
        bottom: auto;
        right: auto;
        width: 60%;
        margin-top: -40px;
        margin-left: auto;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .visit-map {
        min-height: 300px;
    }

    .visit-map iframe {
        min-height: 300px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 0.9375rem;
    }

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

    .statement-inner p {
        font-size: 1.25rem;
    }
}
