/* ============================================
   Mercedes & Mink — Artisan Bakery & Grocer
   Stylesheet
   ============================================ */

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

:root {
    /* Palette — Teal + Slate Grey */
    --teal-900: #0a3d3d;
    --teal-800: #0d4f4f;
    --teal-700: #116363;
    --teal-600: #157a7a;
    --teal-500: #1a9696;
    --teal-100: #d1e8e8;
    --teal-50:  #eaf5f5;

    --slate-950: #0b1215;
    --slate-900: #0f1c24;
    --slate-800: #162a36;
    --slate-700: #1e3a4a;
    --slate-600: #2d5566;
    --slate-500: #4a7c8f;
    --slate-400: #7fa3b0;
    --slate-300: #b0c4cc;
    --slate-200: #d4e2e8;
    --slate-100: #eaf2f5;
    --slate-50:  #f4f8f9;

    --cream: #faf8f5;
    --warm-white: #fefcf9;
    --gold: #c8a87c;
    --gold-light: #e0c9a0;
    --gold-dark: #a07d52;

    --text-dark: #0f1c24;
    --text-medium: #2d5566;
    --text-light: #7fa3b0;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', 'Segoe UI', system-ui, sans-serif;

    --max-width: 1240px;
    --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-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--teal-500);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

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

.btn-primary {
    background-color: var(--teal-800);
    color: #ffffff;
    border-color: var(--teal-800);
}

.btn-primary:hover {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 79, 79, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--teal-800);
    border-color: var(--teal-800);
}

.btn-outline:hover {
    background-color: var(--teal-800);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 24px;
}

.section-title--centered {
    text-align: center;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 56px;
    text-align: center;
    line-height: 1.7;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(254, 252, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(15, 28, 36, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--teal-800);
    border: 2px solid var(--teal-800);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    letter-spacing: 0.02em;
}

.logo-mark--light {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.logo-amp {
    font-style: italic;
    color: var(--gold-dark);
    font-weight: 400;
}

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

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

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

.nav-menu a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-medium);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
}

.nav-menu a:hover {
    color: var(--teal-800);
    background-color: var(--teal-50);
}

.nav-cta {
    background-color: var(--teal-800);
    color: #ffffff !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background-color: var(--teal-700);
    color: #ffffff !important;
}

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

    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--warm-white);
        padding: 24px;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }

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

    .nav-menu a {
        padding: 16px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--slate-200);
        border-radius: 0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        text-align: center;
        border-bottom: none;
    }

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

    .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: translateY(-7px) rotate(-45deg);
    }
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 76px;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--cream);
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

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

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

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--teal-900);
    margin-bottom: 28px;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 480px;
}

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

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(15, 28, 36, 0.15);
}

.hero-img-primary {
    aspect-ratio: 640/820;
}

.hero-img-accent {
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 55%;
    aspect-ratio: 400/500;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(15, 28, 36, 0.18);
    border: 6px solid var(--warm-white);
}

.hero-accent-box {
    position: absolute;
    bottom: 40px;
    right: -24px;
    background-color: var(--teal-800);
    color: #ffffff;
    padding: 20px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 12px 32px rgba(13, 79, 79, 0.3);
}

.accent-box-year {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.accent-box-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 0;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .hero-accent-box {
        right: 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Heritage Section ---------- */
.heritage {
    padding: 120px 0;
    background-color: var(--warm-white);
}

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

.heritage-text .section-eyebrow {
    margin-bottom: 16px;
}

.heritage-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.heritage-credentials {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-200);
}

.credential {
    text-align: left;
}

.credential-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-800);
    line-height: 1;
    margin-bottom: 8px;
}

.credential-label {
    font-size: 0.875rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.heritage-image {
    position: relative;
}

.heritage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(15, 28, 36, 0.12);
    aspect-ratio: 600/780;
}

.heritage-image::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--teal-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

@media (max-width: 960px) {
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .heritage-image {
        order: -1;
    }

    .heritage-image::before {
        display: none;
    }

    .heritage-img {
        aspect-ratio: 4/5;
    }

    .heritage-credentials {
        gap: 24px;
    }
}

/* ---------- Offerings Section ---------- */
.offerings {
    padding: 120px 0;
    background-color: var(--slate-50);
}

.offerings-header {
    margin-bottom: 64px;
}

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

.offering-card {
    background-color: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 28, 36, 0.06);
    transition: all var(--transition);
}

.offering-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(15, 28, 36, 0.12);
}

.offering-card-image {
    overflow: hidden;
    aspect-ratio: 480/360;
}

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

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

.offering-card-content {
    padding: 28px 28px 32px;
}

.offering-card-title {
    font-size: 1.375rem;
    margin-bottom: 10px;
    color: var(--teal-900);
}

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

@media (max-width: 960px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ---------- Craft Section ---------- */
.craft {
    padding: 120px 0;
    background-color: var(--teal-900);
    color: #ffffff;
}

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

.craft .section-eyebrow {
    color: var(--gold-light);
}

.craft .section-title {
    color: #ffffff;
}

.craft-steps {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 48px;
}

.craft-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
}

.craft-step-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    padding-top: 4px;
}

.craft-step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.craft-step-desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--slate-300);
}

.craft-image {
    position: relative;
}

.craft-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 620/900;
}

.craft-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(200, 168, 124, 0.3);
    border-radius: var(--radius-lg);
    z-index: -1;
}

@media (max-width: 960px) {
    .craft-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .craft-image {
        order: -1;
    }

    .craft-image::after {
        display: none;
    }

    .craft-img {
        aspect-ratio: 4/5;
    }
}

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

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

.visit-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.visit-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--teal-800);
    margin-top: 2px;
}

.visit-detail h4 {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}

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

.visit-detail a {
    color: var(--teal-700);
}

.visit-detail a:hover {
    color: var(--teal-500);
    text-decoration: underline;
}

.btn-directions {
    margin-top: 16px;
}

.visit-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(15, 28, 36, 0.12);
    aspect-ratio: 700/560;
}

@media (max-width: 960px) {
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .visit-map-img {
        aspect-ratio: 16/9;
    }
}

/* ---------- Contact Section ---------- */
.contact {
    padding: 120px 0;
    background-color: var(--slate-50);
}

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

.contact-text .section-eyebrow {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-top: 20px;
}

.contact-form-wrapper {
    background-color: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(15, 28, 36, 0.08);
}

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

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

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

.form-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-medium);
}

.form-input {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--teal-600);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 150, 150, 0.1);
}

.form-input::placeholder {
    color: var(--slate-400);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237fa3b0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

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

.form-success {
    font-size: 0.9375rem;
    color: var(--teal-800);
    background-color: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-align: center;
}

@media (max-width: 760px) {
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .contact-form-wrapper {
        padding: 28px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--slate-900);
    color: var(--slate-300);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand {
    max-width: 320px;
}

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

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--slate-400);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 20px;
}

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

.footer-nav a {
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--slate-400);
}

.footer-contact a {
    color: var(--slate-400);
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.footer-bottom a {
    color: var(--slate-500);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@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);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}
