/* ============================================
   SAXONY LEATHER COMPANY — Custom Styles
   Clean minimalist · Forest green + off-white
   ============================================ */

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

:root {
    --green-900: #0f2518;
    --green-800: #1a3a2a;
    --green-700: #24523a;
    --green-600: #2d6b4a;
    --green-500: #3a8a5e;
    --cream-50: #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ede6d8;
    --cream-300: #e0d5c4;
    --tan-400: #c8b494;
    --tan-500: #b8a07a;
    --text-primary: #1a1a18;
    --text-secondary: #4a4a44;
    --text-muted: #7a7a72;
    --white: #ffffff;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --max-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--green-800);
    color: var(--white);
    z-index: 100;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: var(--space-sm);
}

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

/* ---------- Typography ---------- */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.section-heading {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--green-800);
    border: 1px solid var(--green-800);
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.logo-tagline {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- Nav ---------- */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-700);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--green-700);
}

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

/* ---------- Nav Toggle ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 60;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

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

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

.hero-content {
    padding-right: var(--space-md);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--green-700);
}

.hero-subhead {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 520px;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--green-800);
    color: var(--white);
    border: 1px solid var(--green-800);
}

.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 58, 42, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--cream-300);
}

.btn-ghost:hover {
    border-color: var(--green-700);
    color: var(--green-700);
}

.btn-full {
    width: 100%;
}

/* ---------- Hero Image ---------- */
.hero-image {
    position: relative;
    padding-left: var(--space-md);
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--green-600);
    border-radius: var(--radius-sm);
    z-index: -1;
    opacity: 0.4;
}

/* ---------- Divider ---------- */
.divider {
    padding: 0;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: var(--cream-200);
}

/* ---------- About ---------- */
.about {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

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

.about-image-col img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-col {
    padding-top: var(--space-md);
}

.about-text-col p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--cream-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--green-800);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-300);
}

/* ---------- Craft ---------- */
.craft {
    padding: var(--space-2xl) 0;
    background: var(--cream-50);
}

.craft .section-heading {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.craft .section-eyebrow {
    text-align: center;
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.craft-step {
    padding: var(--space-md);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.craft-step:hover {
    border-color: var(--green-600);
    box-shadow: 0 4px 24px rgba(26, 58, 42, 0.06);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--green-600);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-sm);
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---------- Collection ---------- */
.collection {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.collection-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.collection-header .section-eyebrow {
    text-align: center;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.product-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.product-image {
    overflow: hidden;
    aspect-ratio: 8 / 9;
}

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

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

.product-info {
    padding: var(--space-sm);
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.product-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.product-link {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-700);
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.product-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--green-700);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.product-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ---------- Testimonial ---------- */
.testimonial {
    padding: var(--space-2xl) 0;
    background: var(--green-800);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--cream-100);
    margin-bottom: var(--space-md);
}

.testimonial-attribution {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--tan-400);
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--cream-50);
}

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

.contact-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-detail {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--space-sm);
    align-items: baseline;
}

.contact-detail dt {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 0.25rem;
}

.contact-detail dd a {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    border-bottom: 1px solid var(--cream-200);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-detail dd a:hover {
    border-color: var(--green-700);
    color: var(--green-700);
}

/* ---------- Contact Form ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(58, 138, 94, 0.1);
}

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

.form-group 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='%237a7a72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-success {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--cream-100);
    border: 1px solid var(--green-600);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--green-800);
}

.form-success p {
    margin: 0;
}

/* ---------- Footer ---------- */
.footer {
    padding: var(--space-lg) 0;
    background: var(--green-900);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .logo-mark {
    color: var(--cream-200);
    border-color: var(--cream-200);
}

.footer-name {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--cream-200);
}

.footer-copy {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--cream-300);
    line-height: 1.7;
}

.footer-address {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* ---------- 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);
    }
}

/* ---------- Mobile Nav Overlay ---------- */
.nav-overlay {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

    .hero-image {
        padding-left: 0;
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image-col {
        max-width: 560px;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--cream-50);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 55;
    }

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

    .nav-list {
        flex-direction: column;
        gap: var(--space-md);
    }

    .nav-link {
        font-size: 1.125rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-lg);
    }

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

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

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

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

    .collection-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .stat-divider {
        display: none;
    }

    .contact-detail {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

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

    .hero-headline {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
    }

    .section-heading {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}
