/*
Theme Name: Medo Company
Theme URI:
Author: Medo
Description: A luxury dark portfolio theme for Medo Company
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medo-company
*/

:root {
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --matte-black: #131313;
    --charcoal: #1c1b1b;
    --surface-bright: #3a3939;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--matte-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════════════ */

:root {
    --header-height: 76px;
    --header-height-mobile: 66px;
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0.85rem 2rem;
    background: rgba(19, 19, 19, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    transition: padding .3s ease, border-color .3s ease;
}

.site-header.scrolled {
    padding: 0.6rem 2rem;
    border-bottom-color: rgba(212, 175, 55, 0.35);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 0;
}

.site-logo-img,
.site-logo .site-logo-fallback {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    opacity: 0.92;
    filter: brightness(0.9);
    transition: opacity .25s ease, transform .25s ease, height .25s ease;
}

.site-logo:hover .site-logo-img,
.site-logo:hover .site-logo-fallback {
    opacity: 1;
    transform: scale(1.04);
}

.site-header.scrolled .site-logo-img,
.site-header.scrolled .site-logo-fallback {
    height: 44px;
}

/* Primary nav (wp_nav_menu output) */
.main-nav .main-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.main-nav .main-nav-list li { margin: 0; padding: 0; }

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color .3s ease;
    display: inline-block;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-parent > a {
    color: var(--gold);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after,
.main-nav .current-menu-parent > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language switcher (single Polylang-style pill) */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 3px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
    white-space: nowrap;
}

.lang-switch:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.lang-switch .flag {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    line-height: 0;
}

.lang-switch .flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 3px;
    transition: background .25s ease, border-color .25s ease;
    align-items: center;
    justify-content: center;
}

.mobile-toggle:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--charcoal);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    padding: 5rem 2rem 2rem;
    z-index: 99;
    transition: right .4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
}

.mobile-drawer.open { right: 0; }

.drawer-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold);
    cursor: pointer;
    padding: 0.45rem;
    border-radius: 3px;
    transition: background .25s ease, border-color .25s ease;
    line-height: 0;
}

.drawer-close:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.mobile-drawer .drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-drawer .drawer-menu li { margin: 0; padding: 0; }

.mobile-drawer .drawer-menu a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color .25s ease, padding-left .25s ease;
}

.mobile-drawer .drawer-menu a:hover,
.mobile-drawer .drawer-menu .current-menu-item > a,
.mobile-drawer .drawer-menu .current_page_item > a {
    color: var(--gold);
    padding-left: 0.5rem;
}

.mobile-drawer .drawer-lang {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.mobile-drawer .lang-switch-block {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 98;
}

.drawer-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* RTL adjustments (Polylang switches body dir on AR) */
[dir="rtl"] .mobile-drawer {
    right: auto;
    left: -100%;
    border-left: 0;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}
[dir="rtl"] .mobile-drawer.open { left: 0; right: auto; }
[dir="rtl"] .drawer-close { right: auto; left: 1.1rem; }
[dir="rtl"] .main-nav a:hover::after,
[dir="rtl"] .main-nav .current-menu-item > a::after { transform-origin: right; }

/* ── RTL adjustments for inner sections ── */
[dir="rtl"] body {
    font-family: 'Inter', 'Tahoma', 'Segoe UI', sans-serif;
}
[dir="rtl"] .gold-divider { margin-right: 0; }
[dir="rtl"] .card-icon { margin-right: 0; margin-left: 0; }
[dir="rtl"] .gold-link { margin-left: 0; margin-right: auto; }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }
[dir="rtl"] .products-mobile-cta .btn-outline-gold::after {
    content: " ←";
    margin-left: 0;
    margin-right: 0.4rem;
}
[dir="rtl"] .products-mobile-cta .btn-outline-gold:hover::after {
    transform: translateX(-4px);
}
[dir="rtl"] .product-info {
    text-align: right;
}
[dir="rtl"] .slider-arrow-prev { left: auto; right: 2rem; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .slider-arrow-next { right: auto; left: 2rem; transform: translateY(-50%) scaleX(-1); }

@media (max-width: 768px) {
    [dir="rtl"] .slider-arrow-prev { left: auto; right: 1rem; }
    [dir="rtl"] .slider-arrow-next { right: auto; left: 1rem; }
    [dir="rtl"] .product-info {
        flex-direction: row-reverse;
        text-align: right;
    }
}

/* Push page content down so it isn't hidden behind the fixed header */
body {
    padding-top: var(--header-height);
}

/* Anchor-link offset: when jumping to #section, stop below the fixed header */
section[id],
.container[id] {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (max-width: 900px) {
    section[id],
    .container[id] {
        scroll-margin-top: calc(var(--header-height-mobile) + 0.5rem);
    }
}

/* Lock scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   SITE INTRO (animated logo reveal — once per session)
═══════════════════════════════════════════════════ */

.medo-intro {
    position: fixed;
    inset: 0;
    background: var(--matte-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .8s cubic-bezier(0.22, 1, 0.36, 1),
                transform .8s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear .8s;
}
.medo-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(212, 175, 55, 0.07) 0%,
        rgba(19, 19, 19, 0) 70%);
    pointer-events: none;
}
.medo-intro.is-hidden {
    opacity: 0;
    transform: scale(1.06);
    visibility: hidden;
}

/* Skip the intro entirely when it's already been shown, JS is off,
   or the user prefers reduced motion */
html.no-js .medo-intro,
html.intro-shown .medo-intro {
    display: none;
}

/* Lock page scroll while intro is showing */
body.intro-active {
    overflow: hidden;
}

.intro-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.intro-logo-wrap {
    position: relative;
    width: 220px;
    overflow: hidden;
    line-height: 0;
}

.intro-logo,
.intro-logo-wrap .site-logo-fallback {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.85);
    animation: introLogoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

@keyframes introLogoIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
        filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)) brightness(0.4);
    }
    60% {
        opacity: 1;
        transform: scale(1.03);
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)) brightness(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.35)) brightness(1);
    }
}

/* Shine sweep across the logo */
.intro-shine {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(255, 235, 200, 0) 30%,
        rgba(255, 235, 200, 0.35) 50%,
        rgba(255, 235, 200, 0) 70%,
        transparent 100%);
    transform: skewX(-15deg);
    animation: introShine 1.1s ease-out 0.7s forwards;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0;
}

@keyframes introShine {
    0% { left: -40%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.intro-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.28em;
    color: #f5ead0;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    animation: introFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}
.intro-brand-dot { color: var(--gold); }

.intro-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    opacity: 0;
    animation: introFadeIn 0.6s ease-out 1.05s forwards;
}

@keyframes introFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes introFadeIn {
    to { opacity: 0.9; }
}

.intro-bar {
    width: 180px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-top: 0.25rem;
}
.intro-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    animation: introBarFill 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

@keyframes introBarFill {
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .medo-intro { display: none; }
}

@media (max-width: 600px) {
    .intro-logo-wrap { width: 170px; }
    .intro-brand { font-size: 1.05rem; letter-spacing: 0.22em; }
    .intro-tagline { font-size: 0.55rem; letter-spacing: 0.35em; }
    .intro-bar { width: 140px; }
}

/* ═══════════════════════════════════════════════════
   HERO REVEAL — fires after intro fades, or immediately on
   subsequent page loads in the same session.
═══════════════════════════════════════════════════ */

/* Initial hidden state — overrides .fade-in-visible so hero waits */
.hero-content .hero-logo,
.hero-content .hero-brand,
.hero-content .hero-tagline,
.hero-content .hero-est {
    opacity: 0;
    transform: translateY(28px);
}

.hero-scroll-hint {
    opacity: 0;
}

/* When body.hero-ready (JS adds it as intro starts fading) OR
   html.intro-shown (this load skipped the intro), kick off the cascade. */
body.hero-ready .hero-content .hero-logo,
html.intro-shown .hero-content .hero-logo {
    animation: heroLogoIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

body.hero-ready .hero-content .hero-brand,
html.intro-shown .hero-content .hero-brand {
    animation: heroFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

body.hero-ready .hero-content .hero-tagline,
html.intro-shown .hero-content .hero-tagline {
    animation: heroFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

body.hero-ready .hero-content .hero-est,
html.intro-shown .hero-content .hero-est {
    animation: heroFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

body.hero-ready .hero-scroll-hint,
html.intro-shown .hero-scroll-hint {
    animation: heroScrollHintIn 0.9s ease 1.4s forwards;
}

@keyframes heroLogoIn {
    0%   { opacity: 0; transform: translateY(28px) scale(0.95); filter: brightness(0.5) contrast(0.95) drop-shadow(0 8px 40px rgba(0, 0, 0, 0.55)); }
    60%  { opacity: 0.95; transform: translateY(-4px) scale(1.02); filter: brightness(0.95) contrast(0.95) drop-shadow(0 8px 50px rgba(212, 175, 55, 0.25)); }
    100% { opacity: 0.88; transform: translateY(0) scale(1); filter: brightness(0.82) contrast(0.95) drop-shadow(0 8px 40px rgba(0, 0, 0, 0.55)); }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroScrollHintIn {
    from { opacity: 0; }
    to   { opacity: 0.85; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-content .hero-logo,
    .hero-content .hero-brand,
    .hero-content .hero-tagline,
    .hero-content .hero-est,
    .hero-scroll-hint {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .hero-content .hero-logo { opacity: 0.88; }
    .hero-scroll-hint { opacity: 0.85; }
}

/* ═══════════════════════════════════════════════════
   SCROLL-TO-TOP BUTTON
═══════════════════════════════════════════════════ */

.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--matte-black);
    border: 1px solid var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease,
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
    z-index: 90;
    padding: 0;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--matte-black);
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: transform .25s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 1.5rem;
}

@media (max-width: 600px) {
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
    }
    [dir="rtl"] .scroll-to-top { right: auto; left: 1rem; }
}

/* ACCESSIBILITY: skip link (visible only on keyboard focus) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 0.75rem 1.25rem;
    background: var(--gold);
    color: var(--matte-black);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.text-gold { color: var(--gold); }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.2em; }
.text-center { text-align: center; }

/* UTILS */
.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin-top: 1rem;
}

.gold-divider-center {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem auto;
}

.subtle-hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4rem 0;
}

.tagline {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
}

/* FADE-IN ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* No-JS fallback: reveal fade-in content if JavaScript is disabled,
   blocked, or fails to load (the .no-js class is removed in <head>
   the instant JS runs, so normal visitors still get the animation). */
.no-js .fade-in {
    opacity: 1;
    transform: none;
}

/* BUTTONS */
.btn-gold {
    padding: 1rem 2.5rem;
    background: var(--gold);
    color: var(--matte-black);
    border: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold:hover {
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-gold-fill {
    width: 100%;
    padding: 1.2rem;
    background: var(--gold);
    color: var(--matte-black);
    border: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-gold-fill:hover {
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-outline-gold {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--matte-black);
}

/* HERO */
.hero {
    height: calc(100vh - var(--header-height));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active { opacity: 1; }

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

.hero-no-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--charcoal);
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

/* HERO — O&M STRATEGIC branding */
.hero-content .hero-logo {
    display: block;
    margin: 0 auto 0.5rem;
    max-width: 420px;
    width: 75%;
    height: auto;
    opacity: 0.88;
    filter: brightness(0.82) contrast(0.95) drop-shadow(0 8px 40px rgba(0, 0, 0, 0.55));
}

.hero-content .hero-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3.4rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    color: #f5ead0;
    text-transform: uppercase;
    line-height: 1;
}

.hero-content .hero-brand-dot {
    color: var(--gold);
}

.hero-content .hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--gold);
    margin: 0 auto 1.2rem;
    max-width: 40ch;
    line-height: 1.3;
}

.hero-content .hero-est {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #e8e3d3;
    margin-bottom: 0;
    font-weight: 500;
}

.hero-content .hero-est-sep {
    display: inline-block;
    margin: 0 0.55rem;
    color: var(--gold);
    opacity: 0.85;
}

/* HERO — scroll-down chevrons */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    opacity: 0.85;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.hero-scroll-hint:hover { opacity: 1; }

.hero-scroll-hint .scroll-chevron {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 0;
    animation: scrollHintBounce 2s ease-in-out infinite;
}

.hero-scroll-hint .scroll-chevron svg:last-child {
    margin-top: -12px;
    opacity: 0.6;
}

@keyframes scrollHintBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(8px); opacity: 0.5; }
}

/* ABOUT */
.about {
    padding: 6rem 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-title h2 { font-size: 3rem; line-height: 1.1; }

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* CONTRACTS CTA */
.contracts-cta {
    padding-bottom: 6rem;
}

.luxury-card {
    display: flex;
    align-items: center;
    padding: 3rem;
    gap: 1.25rem;
    flex-wrap: nowrap;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.glass-card {
    background: rgba(28, 27, 27, 0.4);
    backdrop-filter: blur(10px);
}

.luxury-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
    transform: translateY(-5px);
}

.card-icon { flex-shrink: 0; }

.card-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}
.card-info p { color: var(--text-muted); }

.gold-link {
    margin-left: auto;
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    white-space: nowrap;
    border: 1px solid var(--gold);
    padding: 0.8rem 1.6rem;
    transition: var(--transition);
}

.luxury-card:hover .gold-link {
    background: var(--gold);
    color: var(--matte-black);
}

/* PRODUCTS */
.products { padding-bottom: 0rem; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; color: var(--gold); }

.slider-wrapper {
    overflow-x: auto;
    padding-bottom: 6rem;
    scrollbar-width: none;
}

.slider-wrapper::-webkit-scrollbar { display: none; }
.slider-wrapper { cursor: grab; user-select: none; -webkit-user-select: none; }
.slider-wrapper:active { cursor: grabbing; }

.product-slider {
    display: flex;
    gap: 2rem;
}

.product-card {
    min-width: 280px;
    max-width: 280px;
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    flex-shrink: 0;
}

.product-card .product-img-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.8s ease;
}

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

.product-info {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--gold);
}

.product-info .product-title {
    margin: 0 0 1.2rem;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.product-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
}

/* CONTACT */
.contact {
    padding-bottom: 6rem;
    max-width: 800px;
}

.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.contact-header p { color: var(--text-muted); }

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* SOCIAL */
.social {
    padding-bottom: 4rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    color: var(--gold);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--gold));
}

/* CONTRACTS PAGE */
.subpage-nav { padding-top: 3rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.back-link:hover { color: var(--gold); }

.page-header {
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.page-header h1 { font-size: 4rem; margin: 1rem 0; }

.page-header .subtitle {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* CONTRACTS IMAGE GRID */
.contracts-gallery { padding-bottom: 3rem; }

.contracts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contract-image-item {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contract-image-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.contract-image-item:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

.contract-image-item:hover img {
    transform: scale(1.05);
}

.gallery-footer {
    text-align: center;
    padding-top: 6rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

/* PRODUCT DETAIL PAGE */
.product-gallery {
    padding: 4rem 2rem;
    max-width: 1000px;
}

.main-image-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    background: var(--charcoal);
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.thumbnail-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
}

.thumbnail-track {
    display: flex;
    gap: 1.5rem;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.thumbnail-track::-webkit-scrollbar { display: none; }
.thumbnail-track:active { cursor: grabbing; }

.thumb {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 1px solid transparent;
}

/* Thumbnail slider arrows — shown only when the strip overflows */
.thumb-arrow {
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.thumbnail-slider.has-overflow .thumb-arrow {
    display: flex;
}

.thumb-arrow:hover {
    filter: drop-shadow(0 0 8px var(--gold));
    transform: scale(1.15);
}

.thumb-arrow svg { pointer-events: none; }

.thumb.active {
    opacity: 1;
    border-color: var(--gold);
}

.thumb:hover {
    opacity: 0.85;
}

.product-description {
    padding: 0rem 2rem;
    padding-bottom:3rem;
}

.product-subtitle {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.description-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.product-story {
    padding: 2rem 2rem 8rem;
}

.story-quote {
    max-width: 800px;
    margin: 2rem auto;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* HERO SLIDER ARROWS */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    padding: 0.5rem;
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.slider-arrow svg {
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
}

.hero:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    filter: drop-shadow(0 0 12px var(--gold));
    transform: translateY(-50%) scale(1.2);
}

.slider-arrow-prev { left: 2rem; }
.slider-arrow-next { right: 2rem; }

/* Show arrows permanently on touch screens */
@media (hover: none) {
    .slider-arrow { opacity: 1; }
}

/* PRODUCTS SECTION HEADER (title + view all button on same row) */
.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.products-header .section-title {
    margin-bottom: 0;
    flex-shrink: 0;
}

.products-header .btn-outline-gold {
    white-space: nowrap;
    flex-shrink: 0;
}

.products-mobile-cta {
    display: none;
}

/* FLUENT FORMS DARK THEME OVERRIDE
   Using body + .fluentform prefix for high specificity to beat FF's own styles */

body .fluentform,
body .ff-form-wrap {
    background: transparent !important;
}

body .fluentform .ff-el-form-control,
body .fluentform input[type="text"],
body .fluentform input[type="email"],
body .fluentform input[type="tel"],
body .fluentform input[type="number"],
body .fluentform input[type="url"],
body .fluentform textarea,
body .fluentform select {
    background-color: rgba(255, 255, 255, 0.03) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    padding: 1.2rem !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.4s ease, background 0.4s ease !important;
}

body .fluentform .ff-el-form-control::placeholder,
body .fluentform input::placeholder,
body .fluentform textarea::placeholder {
    color: #a0a0a0 !important;
    opacity: 1 !important;
}

body .fluentform .ff-el-form-control:focus,
body .fluentform input:focus,
body .fluentform textarea:focus {
    background-color: rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: #d4af37 !important;
    box-shadow: none !important;
    outline: none !important;
    color: #ffffff !important;
}

body .fluentform .ff-el-form-label,
body .fluentform .ff-el-form-label label,
body .fluentform label {
    color: #a0a0a0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

body .fluentform .ff-el-group {
    margin-bottom: 1.5rem !important;
}

/* Submit button */
body .fluentform .ff_btn_submit,
body .fluentform button[type="submit"],
body .fluentform .ff-btn {
    background-color: #d4af37 !important;
    background: #d4af37 !important;
    color: #131313 !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    padding: 1.2rem 2rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: box-shadow 0.4s ease, transform 0.4s ease !important;
    display: block !important;
}

body .fluentform .ff_btn_submit:hover,
body .fluentform button[type="submit"]:hover {
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.4) !important;
    transform: translateY(-2px) !important;
    background-color: #d4af37 !important;
    background: #d4af37 !important;
    color: #131313 !important;
}

/* Error messages */
body .fluentform .error,
body .fluentform .ff-field-error-message,
body .fluentform .ff-el-is-error .error {
    color: #e74c3c !important;
    font-size: 0.8rem !important;
    margin-top: 0.3rem !important;
    font-family: 'Inter', sans-serif !important;
}

/* Success message */
body .fluentform .ff-message-success,
body .fluentform .ff-success-page,
body .fluentform .ff_submit_success_response {
    color: #d4af37 !important;
    text-align: center !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.3rem !important;
    padding: 1.5rem 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Remove any default white card/panel Fluent Forms wraps around the form */
body .fluentform .ff-form-wrap,
body .fluentform .ff-message-info,
body .ff-form-wrap .ff-el-group {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove spinner arrows from number inputs — Chrome/Safari */
body .fluentform input[type="number"]::-webkit-outer-spin-button,
body .fluentform input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Remove spinner arrows from number inputs — Firefox */
body .fluentform input[type="number"] {
    -moz-appearance: textfield !important;
}

/* PRODUCTS ARCHIVE PAGE */
.products-archive { padding-bottom: 3rem; }

.products-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.products-archive-grid .product-card {
    min-width: unset;
    max-width: unset;
    width: 100%;
}

.products-archive-grid .product-card .product-img-wrap {
    height: 260px;
}

/* LIGHTBOX */
.medo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.medo-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.medo-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.medo-lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 92vh;
}

.medo-lightbox-content img {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.92);
    transition: transform 0.35s ease;
}

.medo-lightbox.active .medo-lightbox-content img {
    transform: scale(1);
}

.medo-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.medo-lightbox-close:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--gold));
}

.lightbox-trigger {
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contracts-grid { grid-template-columns: repeat(2, 1fr); }
    .products-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .luxury-card { padding: 2rem; gap: 1rem; }
    .card-info h3 { font-size: 1.4rem; }
    .gold-link { padding: 0.65rem 1.1rem; font-size: 0.7rem; }
}

/* Header collapses to mobile drawer below 900px */
@media (max-width: 900px) {
    .mobile-toggle { display: inline-flex; }
    .main-nav { display: none; }
    .header-right > .lang-switch { display: none; }
    .site-header { padding: 0.65rem 1.2rem; }
    .site-header.scrolled { padding: 0.5rem 1.2rem; }
    .site-logo-img,
    .site-logo .site-logo-fallback { height: 42px; }
    .site-header.scrolled .site-logo-img,
    .site-header.scrolled .site-logo-fallback { height: 38px; }
    body { padding-top: var(--header-height-mobile); }
    .hero {
        height: calc(100vh - var(--header-height-mobile));
        height: calc(100dvh - var(--header-height-mobile));
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .hero-content .hero-logo { max-width: 320px; width: 80%; margin-bottom: 0.4rem; }
    .hero-content .hero-brand { font-size: 2rem; letter-spacing: 0.03em; }
    .hero-content .hero-tagline { font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.9rem; }
    .hero-content .hero-est { font-size: 0.68rem; letter-spacing: 0.26em; }
    .hero-content .hero-est-sep { margin: 0 0.45rem; }
    .page-header h1 { font-size: 2.5rem; }
    .contracts-grid { grid-template-columns: 1fr; }
    .products-archive-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .product-card { min-width: 75vw; max-width: 75vw; }
    .products-archive-grid .product-card { min-width: unset; max-width: unset; }
    .main-image-wrapper img { max-height: 380px; }
    .thumb { width: 80px; height: 60px; }
    /* On true mobile (< 600px) the card stacks vertically */
    .about { padding: 5rem 2rem; }
    .about-title h2 { font-size: 2.2rem; }
    .product-subtitle { font-size: 1.8rem; }
    .slider-arrow { width: 42px; height: 42px; }
    .slider-arrow-prev { left: 1rem; }
    .slider-arrow-next { right: 1rem; }
    .products-header .section-title { font-size: 1.6rem; }
    .products-header .btn-outline-gold { padding: 0.6rem 1rem; font-size: 0.75rem; }

    .hide-on-mobile { display: none; }

    .products .slider-wrapper { padding-bottom: 1.5rem; }

    .products-mobile-cta {
        display: flex;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 4rem;
    }

    .products-mobile-cta .btn-outline-gold {
        padding: 0.9rem 2.5rem;
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        position: relative;
    }

    .products-mobile-cta .btn-outline-gold::after {
        content: " →";
        display: inline-block;
        margin-left: 0.4rem;
        transition: transform 0.3s ease;
    }

    .products-mobile-cta .btn-outline-gold:hover::after {
        transform: translateX(4px);
    }
}

/* Contracts CTA stacks vertically only on real phones */
@media (max-width: 600px) {
    .luxury-card {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.75rem;
    }
    .luxury-card .gold-link { margin-left: 0; }
    .card-info h3 { font-size: 1.35rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content .hero-logo { max-width: 260px; width: 75%; }
    .hero-content .hero-brand { font-size: 1.55rem; letter-spacing: 0.02em; }
    .hero-content .hero-tagline { font-size: 0.9rem; line-height: 1.35; }
    .hero-content .hero-est { font-size: 0.62rem; letter-spacing: 0.24em; }
    .hero-scroll-hint { bottom: 1.5rem; }
    .page-header h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .contract-image-item img { height: 250px; }
    .products-archive-grid .product-card .product-img-wrap { height: 220px; }
    .main-image-wrapper img { max-height: 260px; }
    .social-icons { gap: 1.5rem; }

    /* Make the products slider visibly a slider on small phones */
    .product-card { min-width: 70vw; max-width: 70vw; }
    .product-slider { gap: 0.8rem; }
    .products { position: relative; }
    .products::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 44px;
        pointer-events: none;
        background: linear-gradient(to left, var(--matte-black) 0%, rgba(19, 19, 19, 0) 100%);
        z-index: 1;
    }
}
