/* ═══════════════════════════════════════════════
   S&T Storen — Design System
   Swiss Editorial · DM Serif Display + DM Sans
   ═══════════════════════════════════════════════ */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300..700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── Variables ─── */
:root {
    --bg-dark:    #211F1E;
    --accent:     #C2704D;
    --accent-lt:  #D48A6A;
    --white:      #FFFFFF;
    --text-light: #D4D4D4;
    --text-dark:  #2A2826;
    --text-muted: #8A8682;
    --bg-light:   #F8F7F5;
    --bg-cream:   #F5F3EF;
    --border:     rgba(0,0,0,0.07);
    --border-dark: rgba(255,255,255,0.12);

    --font-sans:  'DM Sans', -apple-system, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;

    --section-pad: 5rem;
    --section-pad-mobile: 3rem;
    --gutter: 3rem;
    --gutter-mobile: 1.25rem;
    --max-width: 1280px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.text-center { text-align: center; }

/* ─── Section Labels & Titles ─── */
.section-label {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem; font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.1;
}
.section-title.light { color: var(--white); }
.section-sub {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 0.95rem;
    line-height: 1.7;
}
.text-center .section-sub { margin: 0 auto 2rem; }
section { padding: var(--section-pad) 0; }

/* ─── Navigation ─── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: var(--bg-dark);
    padding: 0 var(--gutter);
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border-dark);
}
nav .logo {
    font-family: var(--font-serif);
    font-size: 1.15rem; font-weight: 400;
    color: var(--white);
    letter-spacing: -0.2px;
    text-decoration: none;
}
nav .logo span { color: var(--accent); }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav ul a {
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.5px;
    transition: color .2s;
    padding: 0.25rem 0;
    position: relative;
}
nav ul a:hover { color: var(--white); }
nav ul a.active {
    color: var(--accent);
}
nav ul a.active::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
}
body { padding-top: 72px; }

/* ─── Mobile Menu (hidden on desktop) ─── */
.hamburger { display: none; }
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 150;
    padding: 2rem var(--gutter-mobile);
    flex-direction: column;
    gap: 1.5rem;
}

/* ─── Hero ─── */
.hero {
    height: 75vh; min-height: 550px;
    background: var(--bg-dark);
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.55;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(33,31,30,0.85) 0%, rgba(33,31,30,0.4) 60%, transparent 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--gutter);
}
.hero-badge {
    display: inline-block;
    font-size: 0.65rem; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(194,112,77,0.3);
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
    max-width: 700px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 480px;
    margin: 1.5rem 0 2rem;
}
.hero .cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: opacity .2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero .cta:hover { opacity: 0.8; }
.hero .cta .arrow { display: inline-block; transition: transform .2s; }
.hero .cta:hover .arrow { transform: translateX(4px); }

/* ─── Breadcrumb ─── */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-dark); font-weight: 500; }

/* ─── Alternating Image/Text Block ─── */
.alt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.alt-grid.flip { direction: rtl; }
.alt-grid.flip > * { direction: ltr; }
.alt-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 3px;
}
.alt-text .section-label { margin-top: 0; }
.alt-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    opacity: 0.85;
    margin-bottom: 1rem;
}
.alt-text .signature {
    font-family: var(--font-serif); font-style: italic;
    color: var(--accent); margin-top: 1.5rem; font-size: 1rem;
}
.alt-text .cta {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.85rem; font-weight: 600;
    color: var(--accent); text-decoration: none;
    margin-top: 0.5rem;
    transition: opacity .2s;
}
.alt-text .cta:hover { opacity: 0.7; }
.alt-text .cta .arrow { display: inline-block; transition: transform .2s; }
.alt-text .cta:hover .arrow { transform: translateX(4px); }

/* ─── Page Header ─── */
.page-header {
    background: var(--bg-dark);
    padding: 4rem 0 3rem;
}
.page-header .section-label { color: var(--accent-lt); }
.page-header .section-title { color: var(--white); margin-bottom: 0.5rem; }
.page-header .section-sub { color: rgba(255,255,255,0.6); }

/* ─── Product Grid ─── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}
.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.product-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 3px;
}
.product-card .separator {
    width: 40px;
    height: 3px;
    background: var(--accent);
}
.product-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}
.product-card p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.7;
    opacity: 0.8;
}
.product-card .cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity .2s;
}
.product-card .cta:hover { opacity: 0.7; }
.product-card .cta .arrow { display: inline-block; transition: transform .2s; }
.product-card .cta:hover .arrow { transform: translateX(4px); }

/* ─── Reference Grid ─── */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0,0,0,0.06);
    margin-top: 3rem;
}
.ref-card {
    aspect-ratio: 5/4;
    background-size: cover; background-position: center;
    display: flex; align-items: flex-end;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.ref-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.ref-card .ref-label {
    position: relative; z-index: 1;
    font-size: 0.75rem; font-weight: 500; color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    line-height: 1.4;
    letter-spacing: 0.3px;
}
.ref-card .ref-label small {
    display: block;
    font-weight: 400; opacity: 0.8;
    margin-top: 0.2rem;
}

/* ─── Service Grid ─── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.service-card img {
    width: 100%;
    aspect-ratio: 16/12;
    object-fit: cover;
    border-radius: 3px;
}
.service-card .num {
    font-family: var(--font-serif);
    font-size: 2.5rem; color: var(--accent);
    line-height: 1;
}
.service-card h3 {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-dark);
}
.service-card p {
    font-size: 0.85rem; color: var(--text-dark);
    line-height: 1.7; opacity: 0.8;
}

/* ─── Contact ─── */
.contact-section { background: var(--bg-dark); color: var(--white); }
.contact-section .section-label { color: var(--accent-lt); }
.contact-section .section-title { color: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}
.contact-info { font-size: 0.9rem; line-height: 1.8; }
.contact-info.light { color: var(--text-dark); }
.contact-info.light p { color: var(--text-dark); opacity: 0.85; }
.contact-info.light .label { color: var(--text-dark); }
.contact-info.light .phone { color: var(--text-dark); }
.contact-info .label { font-weight: 600; color: var(--white); }
.contact-info p { color: rgba(255,255,255,0.7); margin-bottom: 0.4rem; }
.contact-info .phone {
    font-size: 1.1rem;
    color: var(--white);
    margin-top: 1rem;
}
.contact-info .quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-lt);
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: transparent;
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: border .2s;
    outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form button {
    border: none; cursor: pointer;
    background: var(--accent);
    color: var(--white);
    border-radius: 2px;
    padding: 0.8rem 2rem;
    font-family: var(--font-sans);
    font-weight: 500; font-size: 0.8rem; letter-spacing: 1px;
    text-transform: uppercase;
    transition: background .2s;
}
.contact-form button:hover { background: var(--accent-lt); }

/* ─── Footer ─── */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: 3rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
footer .logo {
    font-family: var(--font-serif);
    color: rgba(255,255,255,0.7);
    font-size: 1rem; margin-bottom: 0.75rem;
}
footer .logo span { color: var(--accent); }
footer .brand p {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    line-height: 1.6;
    max-width: 260px;
}
footer .col h4 {
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
footer .col a {
    display: block;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
    transition: color .2s;
}
footer .col a:hover { color: var(--accent); }
footer .bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer .bottom p { color: rgba(255,255,255,0.2); font-size: 0.7rem; }
footer .bottom .legal { display: flex; gap: 1.5rem; }
footer .bottom .legal a {
    color: rgba(255,255,255,0.2);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color .2s;
}
footer .bottom .legal a:hover { color: var(--accent); }

/* ─── Stat Row ─── */
.stat-row {
    display: flex; gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.stat-row .stat-num {
    font-family: var(--font-serif);
    font-size: 2rem; color: var(--text-dark);
}
.stat-row .stat-label {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
    :root { --section-pad: 3.5rem; --gutter: 1.5rem; }
    .hero { height: auto; padding: 4rem 0; min-height: 0; }
    .hero h1 { font-size: 2.8rem; }
    .alt-grid { grid-template-columns: 1fr; gap: 2rem; }
    .alt-grid.flip { direction: ltr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ref-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .stat-row { gap: 1.5rem; flex-wrap: wrap; }
    nav ul { gap: 1rem; }
    nav ul a { font-size: 0.7rem; }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    nav ul { display: none; }
    nav { justify-content: space-between; }
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer .bottom { flex-direction: column; gap: 1rem; }

    /* Hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 4px 0;
        background: none;
        border: none;
        z-index: 200;
    }
    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        transition: transform .3s, opacity .3s;
        border-radius: 1px;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile Menu */
    .mobile-menu.open {
        display: flex;
    }
    .mobile-menu a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-dark);
        transition: color .2s;
    }
    .mobile-menu a:hover { color: var(--white); }
    .mobile-menu a.active { color: var(--accent); }
}