/* ==========================================================================
   S. ZACHOS & CO. — Static PHP Site Stylesheet
   Design tokens extracted from Woodmart theme
   ========================================================================== */

/* ── Variables ── */
:root {
    --color-primary: #1e73be;
    --color-primary-dark: #155a96;
    --color-secondary: #fbbc34;
    --color-accent: #ed303c;
    --color-link: #222222;
    --color-link-hover: #c29958;
    --color-text: #0c0c0c;
    --color-text-light: #3e3e3e;
    --color-text-muted: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-bg-dark: #0a0a0a;
    --color-border: #eaeaea;
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #cccccc;

    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Satisfy', cursive;

    --container-max: 1222px;
    --container-padding: 20px;
    --header-height: 80px;
    --border-radius: 4px;
    --transition: 0.3s ease;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

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

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

@media (hover: hover) {
    a:hover {
        color: var(--color-link-hover);
    }
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

/* ── Layout ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    min-height: 44px;
    line-height: 1.4;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

@media (hover: hover) {
    .btn-primary:hover {
        background: var(--color-primary-dark);
        border-color: var(--color-primary-dark);
        color: #fff;
    }
}

.btn-lg {
    padding: 16px 36px;
    font-size: 15px;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

.logo img {
    height: 55px;
    width: auto;
}

.main-nav > ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.main-nav li.active a::after {
    width: 100%;
}

@media (hover: hover) {
    .main-nav a:hover::after {
        width: 100%;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media (hover: hover) {
    .lang-switch a:hover {
        background: var(--color-bg-light);
    }
}

.header-cta {
    font-size: 12px;
    padding: 8px 20px;
}

/* Nav toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
    position: relative;
    height: 70vh;
    height: 70svh;
    min-height: 400px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-wrap .hero-video {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 52px);
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 300;
    margin-bottom: 28px;
    opacity: 0.9;
}

/* ── Promo Section ── */
.promo-section {
    padding: 60px 0;
}

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

.promo-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 4/3;
}

.promo-card picture,
.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    transition: background var(--transition);
}

.promo-label h2 {
    color: #fff;
    font-size: clamp(18px, 2vw, 24px);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
    .promo-card:hover .promo-label {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* ── Company Section ── */
.company-section {
    padding: 80px 0;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 0 auto 40px;
}

.section-title {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 16px;
}

.company-intro .section-title {
    position: relative;
    display: inline-block;
}

.company-intro .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin-top: 12px;
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.company-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.company-text strong {
    color: var(--color-text);
}

/* ── Brands Section ── */
.brands-section {
    padding: 60px 0;
    background: var(--color-bg-light);
}

.brands-section .section-title {
    margin-bottom: 40px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: center;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    min-height: 80px;
}

.brand-logo {
    max-height: 50px;
    width: auto;
    filter: grayscale(30%);
    transition: filter var(--transition);
}

@media (hover: hover) {
    .brand-item:hover .brand-logo {
        filter: grayscale(0);
    }
}

/* ── CTA Section ── */
.cta-section {
    padding: 60px 0;
    background: var(--color-primary);
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

@media (hover: hover) {
    .cta-section .btn-primary:hover {
        background: transparent;
        color: #fff;
    }
}

/* ── Page Title Section ── */
.page-title-section {
    padding: 40px 0;
    background: var(--color-bg-dark);
    color: #fff;
}

.page-title-section h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 12px;
    text-align: center;
}

.breadcrumbs ol {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs li + li::before {
    content: '/';
    margin-right: 8px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

@media (hover: hover) {
    .breadcrumbs a:hover {
        color: #fff;
    }
}

/* ── About Page ── */
.about-section {
    padding: 80px 0;
}

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

.about-grid-reverse {
    direction: rtl;
}

.about-grid-reverse > * {
    direction: ltr;
}

.about-images {
    display: grid;
    gap: 16px;
}

.about-img {
    width: 100%;
    border-radius: var(--border-radius);
}

.about-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.about-title {
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 12px;
}

.accent-title {
    color: var(--color-primary);
}

.about-tagline {
    font-size: 20px;
    color: #212121;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.about-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ── Contact Page ── */
.contact-intro {
    text-align: center;
    padding: 40px 0 20px;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0 40px;
}

.contact-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-align: left;
    transition: box-shadow var(--transition);
}

@media (hover: hover) {
    .contact-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
}

.contact-card h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-text-muted);
}

.contact-card p {
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
}

.contact-card a {
    color: var(--color-text);
    font-weight: 500;
}

@media (hover: hover) {
    .contact-card a:hover {
        color: var(--color-primary);
    }
}

/* Map */
.map-section {
    margin-bottom: 60px;
}

.map-section iframe {
    display: block;
}

/* Contact Form */
.contact-form-section {
    padding: 0 0 60px;
}

.contact-form-section .section-title {
    text-align: center;
    margin-bottom: 32px;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.required {
    color: var(--color-accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-bg);
    transition: border-color var(--transition);
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.15);
}

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

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── Content Pages (Privacy, Terms) ── */
.content-section {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 22px;
    margin: 32px 0 12px;
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    font-size: 18px;
    margin: 24px 0 8px;
}

.content-wrapper p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-wrapper ul,
.content-wrapper ol {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-wrapper li {
    margin-bottom: 8px;
}

.content-wrapper a {
    color: var(--color-primary);
}

@media (hover: hover) {
    .content-wrapper a:hover {
        color: var(--color-primary-dark);
    }
}

/* ── 404 ── */
.error-section {
    padding: 100px 0;
    text-align: center;
}

.error-content h1 {
    font-size: 120px;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: 16px;
}

.error-message {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ── Footer ── */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 40px 0 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    height: 50px;
    width: auto;
    opacity: 0.8;
}

.footer-nav ul {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-footer-text);
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media (hover: hover) {
    .footer-nav a:hover {
        color: #fff;
    }
}

.footer-contact {
    font-size: 14px;
}

.footer-contact a {
    color: var(--color-footer-text);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

@media (hover: hover) {
    .footer-contact a:hover {
        color: #fff;
    }
}

.footer-sep {
    margin: 0 8px;
    opacity: 0.4;
}

.footer-bottom {
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* ── ESPA Banner (inside footer) ── */
.footer-espa {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.footer-espa img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition);
}

@media (hover: hover) {
    .footer-espa a:hover img {
        opacity: 1;
    }
}

/* ── Cookie Notice ── */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(26, 26, 26, 0.95);
    color: #fff;
    padding: 16px 0;
    backdrop-filter: blur(8px);
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.cookie-accept {
    flex-shrink: 0;
    padding: 8px 24px;
    font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 99;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav > ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .main-nav a {
        padding: 12px 0;
        min-height: 48px;
    }

    .header-cta {
        display: none;
    }

    .about-grid,
    .about-grid-reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-grid-reverse {
        direction: ltr;
    }

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

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

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promo-section {
        padding: 32px 0;
    }

    .promo-card {
        aspect-ratio: 16/9;
        border-radius: 6px;
    }

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

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

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

    .company-section,
    .about-section {
        padding: 48px 0;
    }

    .hero {
        height: 50vh;
        height: 50svh;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .footer-sep {
        display: none;
    }

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

    .cookie-content p {
        font-size: 12px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-item {
        padding: 12px;
    }

    .footer-contact {
        gap: 8px;
    }
}

/* ── Safe area insets for notched devices ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-header .header-inner {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }

    .cookie-notice .cookie-content {
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }

    .site-footer .footer-bottom {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}
