/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --color-bg: #f5f5f0;
    --color-bg-dark: #e8e8e3;
    --color-text: #1c1c1c;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-grey: #666666;
    --font-primary: 'DM Sans', sans-serif;
    --font-title: 'DM Sans', sans-serif;
    --site-max-width: 1500px;
    --site-gutter: 4vw;
    --section-padding: 3.3vmax;
    --grid-gap: 11px;
    --radius-pill: 0;
    --radius-sm: 8px;
    --transition-fast: 0.14s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

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

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

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0 clamp(24px, 4vw, 60px);
    padding: 24px var(--site-gutter);
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.header-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-nav a {
    display: inline-block;
    padding: 5px 10px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.header-nav a:hover {
    opacity: 0.6;
}

.header-logo {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.header-logo a {
    transition: opacity var(--transition-fast);
}

.header-logo a:hover {
    opacity: 0.6;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-instagram {
    display: inline-block;
    padding: 5px 10px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity var(--transition-fast);
}

.header-instagram:hover {
    opacity: 0.6;
}

/* Mobile menu button */
.header-burger {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 300;
}

.header-burger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 22px;
    background: var(--color-text);
    left: 5px;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.header-burger span:nth-child(1) { top: 4px; }
.header-burger span:nth-child(2) { top: 11px; }
.header-burger span:nth-child(3) { top: 18px; }

.header-burger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.header-burger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.header-burger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--section-padding) var(--site-gutter);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.footer-brand {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
}

.footer-right {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.footer-address {
    font-size: 16px;
    line-height: 1.8;
}

.footer-contact {
    text-align: right;
}

.footer-contact h4 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.footer-contact a {
    font-size: 16px;
    font-weight: 700;
    transition: opacity var(--transition-fast);
}

.footer-contact a:hover {
    opacity: 0.6;
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    display: block;
    width: 180px;
    text-align: center;
    padding: 8px 20px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity var(--transition-fast);
}

.mobile-menu a:hover {
    opacity: 0.6;
}

/* ============================================
   SHARED RESPONSIVE — HEADER + FOOTER
   ============================================ */

/* Mobile — bump menu button font size to avoid iOS zoom */
@media (max-width: 1000px) {
    .mobile-menu a {
        font-size: 16px;
        padding: 10px 24px;
        width: 200px;
    }
}

/* Narrower desktop — shrink logo so nav+Instagram always fits */
@media (max-width: 1200px) {
    .header-logo {
        font-size: 24px;
        letter-spacing: 0.3em;
    }
}

/* Tablet — switch to hamburger menu (nav + Instagram collapse together) */
@media (max-width: 1000px) {
    .header-nav,
    .header-left .header-instagram {
        display: none;
    }

    .header-burger {
        display: flex;
    }

    .header-logo {
        font-size: 20px;
        letter-spacing: 0.25em;
    }
}

/* Tablet — stack footer */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-right {
        flex-direction: column;
        gap: 24px;
    }

    .footer-contact {
        text-align: left;
    }
}

/* Mobile — smaller logo */
@media (max-width: 640px) {
    .header-logo {
        font-size: 16px;
        letter-spacing: 0.2em;
    }
}
