/* ============================================
   Grace Tomlin Boutique — Stylesheet
   Palette: Plum (#5C2E5E) + Amber (#C8961E)
   Fonts: Playfair Display (headlines) + Inter (body)
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --plum-50: #f5eff5;
    --plum-100: #e8d8e8;
    --plum-200: #d4b5d4;
    --plum-300: #b88fb8;
    --plum-400: #9c6a9c;
    --plum-500: #7d4e7d;
    --plum-600: #5C2E5E;
    --plum-700: #4a2549;
    --plum-800: #381c36;
    --plum-900: #251323;
    --amber-50: #fdf8ec;
    --amber-100: #faedcc;
    --amber-200: #f5d89a;
    --amber-300: #efc268;
    --amber-400: #C8961E;
    --amber-500: #b8850f;
    --amber-600: #966a0a;
    --amber-700: #745208;
    --amber-800: #523a06;
    --amber-900: #302204;
    --white: #ffffff;
    --off-white: #faf8f6;
    --cream: #f5f0eb;
    --charcoal: #1a1a1a;
    --gray-900: #212121;
    --gray-700: #4a4a4a;
    --gray-500: #6b6b6b;
    --gray-300: #b0b0b0;
    --gray-100: #f0f0f0;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background-color: var(--off-white);
    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;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

.section-title--dark {
    color: var(--plum-800);
}

.section-title--light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.section-subtitle--light {
    color: var(--plum-100);
    max-width: 560px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--plum {
    background: var(--plum-600);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(92, 46, 94, 0.3);
}

.btn--plum:hover {
    background: var(--plum-700);
    box-shadow: 0 8px 24px rgba(92, 46, 94, 0.4);
}

.btn--amber {
    background: var(--amber-400);
    color: var(--charcoal);
    box-shadow: 0 4px 16px rgba(200, 150, 30, 0.3);
}

.btn--amber:hover {
    background: var(--amber-500);
    box-shadow: 0 8px 24px rgba(200, 150, 30, 0.4);
}

.btn--light {
    background: var(--white);
    color: var(--plum-700);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--light:hover {
    background: var(--cream);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
    padding: var(--space-md) 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(92, 46, 94, 0.08);
    padding: var(--space-sm) 0;
}

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

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.site-header.scrolled .nav__logo {
    color: var(--plum-700);
}

.nav__logo-icon {
    color: var(--amber-400);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav__toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav__toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
    background: var(--plum-700);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav__menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

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

.nav__menu a:hover::after,
.nav__menu a:focus::after {
    width: 100%;
}

.nav__menu a:hover {
    color: var(--white);
}

.site-header.scrolled .nav__menu a {
    color: var(--gray-700);
}

.site-header.scrolled .nav__menu a:hover {
    color: var(--plum-700);
}

.nav__cta {
    background: var(--amber-400) !important;
    color: var(--charcoal) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta::after {
    display: none !important;
}

.nav__cta:hover {
    background: var(--amber-500) !important;
    transform: translateY(-1px);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100dvh;
        flex-direction: column;
        justify-content: center;
        gap: var(--space-md);
        background: var(--plum-800);
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav__menu.open {
        transform: translateX(0);
    }

    .nav__menu a {
        font-size: 1.125rem;
        color: var(--plum-100);
    }

    .nav__menu a:hover {
        color: var(--white);
    }

    .nav__cta {
        margin-top: var(--space-sm);
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(37, 19, 35, 0.55) 0%,
        rgba(92, 46, 94, 0.7) 50%,
        rgba(56, 28, 54, 0.85) 100%
    );
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    max-width: 780px;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: var(--space-md);
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero__title em {
    font-style: italic;
    color: var(--amber-200);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--plum-100);
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero__subtitle em {
    color: var(--white);
    font-style: italic;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    background: var(--off-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(92, 46, 94, 0.12);
}

.about__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7.5;
}

.about__content {
    padding: var(--space-md) 0;
}

.about__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.about__content p em {
    color: var(--plum-600);
    font-style: italic;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--plum-100);
}

.feature {
    text-align: center;
}

.feature__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--plum-50);
    color: var(--plum-600);
}

.feature span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__image-wrap {
        max-width: 500px;
        margin: 0 auto;
    }

    .about__features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .about__features {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ============================================
   COLLECTIONS
   ============================================ */
.collections {
    padding: var(--space-3xl) 0;
    background: var(--plum-800);
    position: relative;
}

.collections .container {
    text-align: center;
}

.collections__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.collection-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--plum-900);
    transition: transform var(--transition), box-shadow var(--transition);
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.collection-card__img {
    overflow: hidden;
    aspect-ratio: 5/6.2;
}

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

.collection-card:hover .collection-card__img img {
    transform: scale(1.05);
}

.collection-card__body {
    padding: var(--space-lg);
    text-align: left;
}

.collection-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.collection-card__body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--plum-200);
}

@media (max-width: 900px) {
    .collections__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .collections__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   EDITORIAL BANNER
   ============================================ */
.editorial {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.editorial__bg {
    position: absolute;
    inset: 0;
}

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

.editorial__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(92, 46, 94, 0.88) 0%, rgba(56, 28, 54, 0.92) 100%);
}

.editorial__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.editorial__quote {
    position: relative;
    margin-bottom: var(--space-md);
}

.editorial__quote svg {
    color: var(--amber-400);
    margin: 0 auto var(--space-sm);
    opacity: 0.8;
}

.editorial__quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--white);
}

.editorial__quote p em {
    color: var(--amber-200);
    font-style: italic;
}

.editorial__cite {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber-300);
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: var(--space-3xl) 0;
    background: var(--off-white);
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit__info {
    padding-right: var(--space-lg);
}

.visit__description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
}

.visit__details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.visit__detail {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--space-md);
}

.visit__detail dt {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}

.visit__detail dt svg {
    color: var(--plum-500);
}

.visit__detail dt span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-600);
    margin-bottom: 4px;
}

.visit__detail dd {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.visit__detail dd a {
    color: var(--plum-600);
    font-weight: 500;
    transition: color var(--transition);
}

.visit__detail dd a:hover {
    color: var(--amber-500);
}

.visit__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(92, 46, 94, 0.1);
    min-height: 420px;
}

@media (max-width: 900px) {
    .visit__grid {
        grid-template-columns: 1fr;
    }

    .visit__info {
        padding-right: 0;
    }

    .visit__map {
        min-height: 300px;
    }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact__text {
    padding-top: var(--space-sm);
}

.contact__text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
}

.contact__direct {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact__email,
.contact__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--plum-600);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(92, 46, 94, 0.06);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact__email:hover,
.contact__phone:hover {
    background: var(--plum-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 46, 94, 0.12);
    color: var(--plum-700);
}

.contact__email svg,
.contact__phone svg {
    color: var(--amber-400);
    flex-shrink: 0;
}

.contact__form {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(92, 46, 94, 0.08);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--plum-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--off-white);
    border: 1.5px solid var(--plum-100);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum-400);
    box-shadow: 0 0 0 3px rgba(92, 46, 94, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--plum-50);
    border: 1px solid var(--plum-100);
    border-radius: var(--radius-md);
    color: var(--plum-700);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-success svg {
    color: var(--amber-500);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .contact__inner {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--plum-900);
    color: var(--plum-200);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--plum-300);
    max-width: 280px;
}

.footer__nav {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    flex-wrap: wrap;
}

.footer__nav a {
    font-size: 0.875rem;
    color: var(--plum-300);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--amber-300);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    font-size: 0.8rem;
    color: var(--plum-400);
}

.footer__bottom a {
    color: var(--plum-300);
    transition: color var(--transition);
}

.footer__bottom a:hover {
    color: var(--amber-300);
}

@media (max-width: 600px) {
    .footer__top {
        flex-direction: column;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .hero__scroll {
        animation: none;
    }
}
