
/* ════════════════════════════════════════
    CSS VARIABLES
════════════════════════════════════════ */
:root {
    --gold:   #C9A84C;
    --gold-l: #E2C97E;
    --gold-p: #F0E0B0;
    --maroon:     #7A1E2E;
    --maroon-l:   #A0303F;
    --charcoal:   #1A1814;
    --easing:     cubic-bezier(0.16, 1, 0.3, 1);
    --easing-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html.dark {
    --bg:      #0D0B08;
    --bg2:     #141210;
    --txt:     #F0EBE0;
    --txt2:    #C8BBA8;
    --muted:   #8A7D6A;
    --card:    rgba(26,24,20,0.92);
    --glass:   rgba(10,8,5,0.88);
    --gb:      rgba(201,168,76,0.2);
    --nav:     rgba(8,6,3,0.0);
    --nav-sc:  rgba(8,6,3,0.88);
    --nb:      rgba(201,168,76,0.0);
    --nb-sc:   rgba(201,168,76,0.14);
    --shadow:  rgba(201,168,76,0.1);
    --intro-a: #1E1A10;
    --intro-b: #0D0B08;
    --intro-c: #221C12;
    --particle-opacity: 0.55;
}
html.light {
    --bg:      #FAF7F0;
    --bg2:     #F0EBE0;
    --txt:     #1A1814;
    --txt2:    #4A4640;
    --muted:   #7A7268;
    --card:    rgba(255,255,255,0.88);
    --glass:   rgba(250,247,240,0.88);
    --gb:      rgba(201,168,76,0.28);
    --nav:     rgba(250,247,240,0.0);
    --nav-sc:  rgba(250,247,240,0.92);
    --nb:      rgba(201,168,76,0.0);
    --nb-sc:   rgba(201,168,76,0.2);
    --shadow:  rgba(201,168,76,0.18);
    --intro-a: #E8D5A8;
    --intro-b: #FAF7F0;
    --intro-c: #F5E6C8;
    --particle-opacity: 0.38;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg); color: var(--txt);
    overflow-x: hidden;
    transition: background 0.85s var(--easing), color 0.85s var(--easing);
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ════════════════════════════════════════
    LANGUAGE VISIBILITY
════════════════════════════════════════ */
[data-lang] { display: none; }
[data-lang].active { display: inline; }
div[data-lang].active, p[data-lang].active { display: block; }

/* ════════════════════════════════════════
    THEME OVERLAY
════════════════════════════════════════ */
#theme-overlay {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none; opacity: 0;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.3) 0%, rgba(0,0,0,0.4) 100%);
}

/* ════════════════════════════════════════
    INTRO SCREEN
════════════════════════════════════════ */
#intro {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    overflow: hidden;
}
#intro-grad {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
    var(--intro-c) 0%, var(--intro-b) 30%,
    var(--intro-a) 60%, var(--intro-b) 100%
    );
    background-size: 400% 400%;
    animation: gFlow 7s ease infinite;
}
@keyframes gFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#intro-dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dust {
    position: absolute; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, var(--gold-l) 0%, var(--gold) 40%, transparent 100%);
    animation: dustFloat linear infinite;
}
@keyframes dustFloat {
    0%   { transform: translateY(110vh) scale(0.8); opacity: 0; }
    8%   { opacity: var(--particle-opacity); }
    90%  { opacity: calc(var(--particle-opacity) * 0.35); }
    100% { transform: translateY(-12vh) scale(1.1); opacity: 0; }
}

#intro-center {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
    opacity: 0; transform: translateY(32px) scale(0.9);
}
#intro-logo-img { width: 84px; filter: drop-shadow(0 0 28px rgba(201,168,76,0.5)); }
#intro-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 300;
    letter-spacing: 0.44em; text-transform: uppercase;
    color: var(--txt); text-align: center; line-height: 1;
}

@keyframes introSubReveal {
    0%   { opacity: 0; transform: translateY(18px); letter-spacing: 0.5em; filter: blur(6px); }
    60%  { opacity: 0.7; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 0.38em; filter: blur(0); }
}

#intro-sub {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300; font-style: italic; font-size: 1.5rem;
    color: var(--gold); text-align: center;
    margin-top: 1.8rem; opacity: 0; transform: translateY(18px);
    animation: introSubReveal 1.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 1.1s;
}

/* ════════════════════════════════════════
    BUTTONS
════════════════════════════════════════ */
.btn {
    padding: 0.85rem 2.1rem; font-size: 0.61rem; letter-spacing: 0.22em;
    text-transform: uppercase; font-weight: 400; font-family: 'Inter', sans-serif;
    border: 1px solid rgba(201,168,76,0.38);
    background: rgba(201,168,76,0.06);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: var(--txt); cursor: pointer;
    transition: all 0.55s var(--easing);
    position: relative; overflow: hidden; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    white-space: nowrap; border-radius: 1px;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(201,168,76,0.14));
    opacity: 0; transition: opacity 0.45s;
}
.btn:hover::before { opacity: 1; }
.btn:hover {
    border-color: var(--gold-l);
    box-shadow: 0 0 30px rgba(201,168,76,0.2), inset 0 0 20px rgba(201,168,76,0.04);
    transform: translateY(-1px);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
    border-color: var(--gold-l); color: #1A1814;
}
.btn-gold:hover { box-shadow: 0 0 44px rgba(201,168,76,0.38); }

/* Hero buttons */
.hero-btn {
    padding: 0.82rem 1.9rem; font-size: 0.59rem; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 400; font-family: 'Inter', sans-serif;
    border: 1px solid rgba(201,168,76,0.35);
    background: rgba(5,4,2,0.35);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: rgba(250,247,240,0.9); cursor: pointer;
    transition: all 0.55s var(--easing); border-radius: 1px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
    position: relative; overflow: hidden; white-space: nowrap;
}
.hero-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.04), rgba(201,168,76,0.16));
    opacity: 0; transition: opacity 0.45s;
}
.hero-btn:hover::before { opacity: 1; }
.hero-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 28px rgba(201,168,76,0.2);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════
    NAVBAR
════════════════════════════════════════ */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    padding: 1.1rem 2.6rem;
    display: flex; align-items: center; justify-content: space-between;
    background: transparent;
    transform: translateY(-100%);
    transition:
    background    0.9s var(--easing),
    border-color  0.9s var(--easing),
    box-shadow    0.9s var(--easing),
    transform     0.55s var(--easing);
}
#navbar.visible  { transform: translateY(0); }
#navbar.scrolled {
    background: rgba(12, 10, 8, 0.26);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: rgba(255,255,255,0.06);
    box-shadow:
    0 8px 40px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
#navbar::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: min(82vw, 780px); height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.16), transparent);
    opacity: 0.55;
    transition: opacity 0.8s var(--easing), width 0.8s var(--easing), background 0.8s var(--easing);
}
html.light #navbar.scrolled {
    background: rgba(255, 250, 244, 0.42);
    border-bottom-color: rgba(120,100,60,0.08);
    box-shadow:
    0 8px 40px rgba(120,100,60,0.08),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

#nav-logo {
    display: flex; align-items: center; gap: 0.75rem;
    cursor: pointer; text-decoration: none;
}
#nav-logo img { width: 29px; filter: drop-shadow(0 0 8px rgba(201,168,76,0.3)); }
#nav-logo-txt {
    font-family: 'Cormorant Garamond', serif; font-size: 1.22rem;
    font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txt);
}

.nav-div {
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.28), transparent);
    max-width: 80px; opacity: 0;
    transition: opacity 0.9s var(--easing);
}
#navbar.scrolled .nav-div { opacity: 1; }

#nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-a {
    position: relative;
    font-size: 0.59rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(250,247,240,0.75); text-decoration: none; font-weight: 400;
    transition: color 0.4s var(--easing), transform 0.4s var(--easing), text-shadow 0.4s var(--easing);
    cursor: pointer; will-change: transform, color;
}
.nav-a::after {
    content: "";
    position: absolute; left: 50%; bottom: -0.45rem;
    transform: translateX(-50%) scaleX(0);
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transform-origin: center;
    transition: transform 0.45s var(--easing), opacity 0.45s var(--easing);
    opacity: 0;
}
html.light .nav-a { color: var(--txt2); }
.nav-a:hover {
    color: var(--gold) !important;
    transform: scale(1.08);
    text-shadow: 0 0 10px rgba(201,168,76,0.18);
}
#navbar.scrolled .nav-a:hover { color: var(--gold) !important; text-shadow: 0 0 12px rgba(201,168,76,0.22); }
.nav-a:hover::after { transform: translateX(-50%) scaleX(1); opacity: 1; }
#navbar.scrolled .nav-a { color: rgba(250,247,240,0.78); }

#nav-right { display: flex; align-items: center; gap: 0.9rem; }

/* Globe lang btn */
.globe-btn {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0; border: none; background: transparent; cursor: pointer;
    color: rgba(250,247,240,0.68);
    font-size: 0.59rem; letter-spacing: 0.15em; text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    transition: color 0.45s var(--easing), transform 0.45s var(--easing), text-shadow 0.45s var(--easing);
}
html.light .globe-btn { color: var(--muted); }
#navbar.scrolled .globe-btn { color: var(--txt2); }
.globe-btn:hover { color: var(--gold); transform: scale(1.06); text-shadow: 0 0 10px rgba(201,168,76,0.18); }
.globe-btn svg { width: 13px; height: 13px; transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), filter 0.45s ease; }
.globe-btn:hover svg { transform: rotate(180deg) scale(1.08); filter: drop-shadow(0 0 8px rgba(201,168,76,0.35)); }
#lang-code { font-size: 0.59rem; letter-spacing: 0.14em; }

/* Theme icon btn */
.theme-btn {
    width: 36px; height: 36px; border: none; background: transparent; cursor: pointer;
    position: relative; display: flex; align-items: center; justify-content: center;
    transition: transform 0.45s var(--easing), filter 0.45s var(--easing), color 0.45s var(--easing);
    overflow: visible;
}
.theme-btn:hover { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(201,168,76,0.25)); }
.theme-btn svg { width: 16px; height: 16px; position: absolute; }
#icon-sun  { color: var(--gold); }
#icon-moon { color: rgba(250,247,240,0.75); }
html.light #icon-moon { color: var(--txt2); }

/* Hamburger */
.hamburger {
    display: none; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.15); cursor: pointer;
    background: transparent; color: rgba(250,247,240,0.65);
    align-items: center; justify-content: center; transition: all 0.4s;
}
html.light .hamburger { color: var(--txt2); }
.hamburger:hover { border-color: var(--gold); color: var(--gold); }
.hamburger svg { width: 13px; height: 13px; }
@media (max-width: 900px) { #nav-links { display: none; } .hamburger { display: flex; } }

/* Mobile menu */
#mobile-menu {
    position: fixed; inset: 0; z-index: 490;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2.4rem; background: var(--glass);
    backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
    opacity: 0; pointer-events: none; transition: opacity 0.5s var(--easing);
}
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu .nav-a { font-size: 0.95rem; letter-spacing: 0.24em; color: var(--txt2); }

/* ════════════════════════════════════════
    HERO
════════════════════════════════════════ */
#hero {
    position: relative; width: 100%; min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding-bottom: 10vh; overflow: hidden;
}
#hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #2C2214 0%, #1A150C 30%, #0D0B08 60%, #1E1A10 100%);
    background-size: 300% 300%;
    animation: hBg 16s ease infinite;
}
@keyframes hBg {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
#hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom,
    rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.65) 100%);
}
#hero-glow {
    position: absolute; z-index: 2; top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    width: clamp(300px,55vw,680px); height: 420px;
    background: radial-gradient(ellipse, rgba(201,168,76,0.09) 0%, transparent 70%);
    pointer-events: none; animation: gPulse 5s ease-in-out infinite;
}
@keyframes gPulse {
    0%,100% { opacity: 0.55; transform: translate(-50%,-60%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%,-60%) scale(1.08); }
}

#hero-dust { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
#hero-dust .dust { filter: blur(1px); mix-blend-mode: screen; }

#hero-content {
    position: relative; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
    opacity: 0;
}
#hero-logo-img { width: 70px; filter: drop-shadow(0 0 20px rgba(201,168,76,0.45)); }
#hero-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.85rem, 4vw, 2.9rem); font-weight: 300;
    letter-spacing: 0.46em; text-transform: uppercase;
    color: #F8F4EC; text-align: center; line-height: 1;
}
#hero-sub { font-size: 0.57rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); text-align: center; }
#hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }

#scroll-hint {
    position: absolute; bottom: 2.8rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    opacity: 0; animation: sBounce 2.6s ease-in-out infinite;
}
#scroll-hint span { font-size: 0.5rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.scroll-ln { width: 1px; height: 34px; background: linear-gradient(to bottom, var(--gold), transparent); }
@keyframes sBounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(5px); } }

/* ════════════════════════════════════════
    SECTION SHARED
════════════════════════════════════════ */
.slabel {
    font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase;
    color: var(--gold); display: flex; align-items: center; gap: 1rem;
}
.slabel::before { content: ''; display: block; width: 34px; height: 1px; background: var(--gold); opacity: 0.55; flex-shrink: 0; }
html[dir="rtl"] .slabel { flex-direction: row-reverse; }
html[dir="rtl"] .slabel::before { display: none; }
html[dir="rtl"] .slabel::after { content: ''; display: block; width: 34px; height: 1px; background: var(--gold); opacity: 0.55; flex-shrink: 0; }

.stitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.3rem, 5.5vw, 4.6rem); font-weight: 300;
    line-height: 1.1; color: var(--txt); letter-spacing: -0.01em;
}
.stitle em { font-style: italic; color: var(--gold); }

/* ════════════════════════════════════════
    PROJECTS
════════════════════════════════════════ */
#projects { padding: 8rem 0; background: var(--bg2); overflow: hidden; }
.proj-header { padding: 0 clamp(2rem,8vw,8rem); margin-bottom: 4rem; }

.proj-panel {
    position: relative; overflow: hidden; cursor: pointer;
    border-top: 1px solid rgba(201,168,76,0.12);
    transition: all 0.75s var(--easing);
}
.proj-panel:last-child { border-bottom: 1px solid rgba(201,168,76,0.12); }
.proj-panel-inner {
    display: grid; grid-template-columns: 0.35fr 2fr 1fr;
    align-items: center; padding: 2.6rem clamp(2rem,8vw,8rem);
    transition: all 0.75s var(--easing); gap: 2rem; position: relative; z-index: 2;
}
.proj-panel:hover .proj-panel-inner { padding-top: 4rem; padding-bottom: 4rem; }

.proj-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.85s var(--easing); z-index: 0; }
.p-heights-bg { background: linear-gradient(135deg, rgba(48,8,16,0.97), rgba(68,14,26,0.94)); }
.p-gardens-bg { background: linear-gradient(135deg, rgba(6,20,12,0.97), rgba(10,30,16,0.93)); }
.p-soon-bg    { background: linear-gradient(135deg, rgba(12,8,24,0.97), rgba(22,15,42,0.93)); }
.proj-panel:hover .proj-bg { opacity: 1; }

.proj-link { text-decoration: none; color: inherit; display: block; }
.proj-link:hover { text-decoration: none; }
.proj-link * { color: inherit; }

.pnum {
    font-family: 'Cormorant Garamond', serif; font-size: 3.4rem;
    font-weight: 300; color: var(--gold); opacity: 0.25; line-height: 1;
    transition: opacity 0.45s, color 0.45s;
}
.proj-panel:hover .pnum { opacity: 0.9; }
.proj-heights:hover .pnum { color: var(--maroon-l); }

.pname {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.65rem, 2.6vw, 2.4rem); font-weight: 300;
    color: var(--txt); letter-spacing: 0.04em; transition: color 0.55s;
}
.proj-panel:hover .pname { color: #F8F4EC; }

.ptag { font-size: 0.67rem; letter-spacing: 0.14em; color: var(--muted); margin-top: 0.3rem; transition: color 0.55s; }
.proj-panel:hover .ptag { color: rgba(224,192,120,0.7); }
.proj-heights:hover .ptag { color: rgba(180,100,110,0.65); }

.pmeta { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.85rem; }
.pmeta-item {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.59rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); transition: color 0.4s;
}
.proj-panel:hover .pmeta-item { color: rgba(201,168,76,0.7); }
.proj-heights:hover .pmeta-item { color: rgba(160,80,90,0.7); }
.pdot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.proj-heights:hover .pdot { background: var(--maroon-l); }

.pcta { text-align: right; }
html[dir="rtl"] .pcta { text-align: left; }
.pexplore {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--gold); cursor: pointer; transition: all 0.4s;
    background: none; border: none; font-family: 'Inter', sans-serif;
}
.proj-heights:hover .pexplore { color: var(--maroon-l); }
.pexplore:hover { gap: 1.2rem; }
.parrow { width: 26px; height: 1px; background: var(--gold); position: relative; transition: width 0.4s; }
.proj-heights:hover .parrow { background: var(--maroon-l); }
.parrow::after {
    content: ''; position: absolute; right: 0; top: -3px;
    width: 6px; height: 6px;
    border-top: 1px solid var(--gold); border-right: 1px solid var(--gold);
    transform: rotate(45deg);
}
.proj-heights:hover .parrow::after { border-color: var(--maroon-l); }
.pexplore:hover .parrow { width: 44px; }
html[dir="rtl"] .parrow::after { right: auto; left: 0; transform: rotate(-135deg); }

/* Coming soon shimmer */
.proj-soon .pname {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-l) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
.soon-orb {
    position: absolute; right: 12%; top: 50%; transform: translateY(-50%);
    width: 90px; height: 90px; border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.26); opacity: 0; transition: opacity 0.6s; z-index: 2;
}
.soon-orb::before {
    content: ''; position: absolute; inset: 10px; border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.16); animation: orbP 2s ease-in-out infinite;
}
.proj-panel:hover .soon-orb { opacity: 1; }
@keyframes orbP { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); opacity: 0.5; } }

@media (max-width: 768px) {
    .proj-panel-inner { grid-template-columns: 1fr; gap: 0.9rem; }
    .pnum { font-size: 2.2rem; }
    .pcta { text-align: left; }
}

/* ════════════════════════════════════════
    ABOUT
════════════════════════════════════════ */
#about { padding: 9rem clamp(2rem,8vw,8rem); background: var(--bg); overflow: hidden; position: relative; }

.about-logo-bg {
    position: absolute; left: -4%; top: 50%; transform: translateY(-50%);
    width: clamp(240px,38vw,460px); opacity: 0; pointer-events: none; z-index: 0;
    transition: opacity 1.4s ease, transform 0.8s ease;
}
.about-logo-bg img { width: 100%; filter: sepia(1) hue-rotate(-10deg) brightness(0.3) saturate(0.4) opacity(0.12); }
html.light .about-logo-bg img { filter: sepia(1) hue-rotate(-10deg) brightness(0.45) saturate(0.45) opacity(0.14); }
.about-logo-bg.on { opacity: 1; }
html[dir="rtl"] .about-logo-bg { left: auto; right: -4%; }

.about-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 3rem; } .about-logo-bg { display: none; } }

.about-body { font-size: 0.93rem; line-height: 1.95; color: var(--txt2); font-weight: 300; margin-top: 1.4rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.7rem; margin-top: 3rem; }
.stat { border-left: 1px solid rgba(201,168,76,0.22); padding-left: 1.3rem; }
html[dir="rtl"] .stat { border-left: none; border-right: 1px solid rgba(201,168,76,0.22); padding-left: 0; padding-right: 1.3rem; }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-l { font-size: 0.59rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.28rem; }

.pillars { display: flex; flex-direction: column; gap: 1.3rem; }
.pillar {
    padding: 1.65rem; border: 1px solid rgba(201,168,76,0.16);
    background: var(--card); backdrop-filter: blur(10px);
    transition: all 0.55s var(--easing); position: relative; overflow: hidden;
}
.pillar::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity 0.4s;
}
html[dir="rtl"] .pillar::before { left: auto; right: 0; }
.pillar:hover { transform: translateX(4px); border-color: rgba(201,168,76,0.32); }
.pillar:hover::before { opacity: 1; }
html[dir="rtl"] .pillar:hover { transform: translateX(-4px); }
.pillar-t { font-family: 'Cormorant Garamond', serif; font-size: 1.22rem; font-weight: 400; color: var(--txt); margin-bottom: 0.4rem; }
.pillar-b { font-size: 0.82rem; color: var(--muted); line-height: 1.75; font-weight: 300; }

/* ════════════════════════════════════════
    LOCATION
════════════════════════════════════════ */
#location { padding: 8rem clamp(2rem,8vw,8rem); background: var(--bg2); overflow: hidden; }
.loc-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4.5rem; align-items: start; margin-top: 4rem; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.addr { padding: 1.75rem; border: 1px solid rgba(201,168,76,0.16); background: var(--card); margin-bottom: 1.1rem; }
.addr-l { font-size: 0.54rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.55rem; }
.addr-t { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; font-weight: 300; color: var(--txt); line-height: 1.65; }
.loc-btns { display: flex; flex-direction: column; gap: 0.72rem; margin-top: 1.4rem; }

.map-box {
    position: relative; height: 480px;
    background: var(--card); border: 1px solid rgba(201,168,76,0.16); overflow: hidden;
}
.map-bg-img {
    position: absolute; inset: 0; z-index: 0;
    background-image: url("loc.png");
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0.35;
    filter: saturate(0.9) contrast(1.05) brightness(0.85);
    transform: scale(1.05);
}

html.light .map-bg-img {
    background-image: url("loc\ w.png");

    opacity: 0.5;

    filter:
      saturate(1)
      contrast(1.15)
      brightness(1.02);
}

.map-grid-lines,
.map-svg,
.map-lbl,
.map-rings,
.map-pin,
.map-fade-b,
.map-fade-s { position: relative; z-index: 2; }

.map-box::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}

.map-grid-lines {
    position: absolute; inset: 0; opacity: 0.08;
    background-image:
    linear-gradient(rgba(201,168,76,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,1) 1px, transparent 1px);
    background-size: 40px 40px;
}
.map-svg { position: absolute; inset: 0; opacity: 0.6; transition: transform 0.28s ease; }
.map-pin { position: absolute; top: 44%; left: 47%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; z-index: 10; }
.pin-dot {
    width: 13px; height: 13px; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.2), 0 0 28px rgba(201,168,76,0.4);
    animation: pinP 2.2s ease-in-out infinite; position: relative; z-index: 2;
}
@keyframes pinP {
    0%,100% { box-shadow: 0 0 0 4px rgba(201,168,76,0.2), 0 0 28px rgba(201,168,76,0.35); }
    50%      { box-shadow: 0 0 0 10px rgba(201,168,76,0.07), 0 0 44px rgba(201,168,76,0.25); }
}
.pin-stem { width: 1px; height: 52px; background: linear-gradient(to bottom, var(--gold), transparent); margin-top: -1px; }
.pin-card {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-10px);
    background: var(--glass); backdrop-filter: blur(20px); border: 1px solid rgba(201,168,76,0.22);
    padding: 0.68rem 1.1rem; white-space: nowrap;
}
.pin-card-t { font-family: 'Cormorant Garamond', serif; font-size: 0.87rem; font-weight: 400; color: var(--txt); }
.pin-card-s { font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 0.1rem; }
.map-rings { position: absolute; top: 44%; left: 47%; transform: translate(-50%,-50%); pointer-events: none; }
.mring {
    position: absolute; top: 50%; left: 50%; border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.28); transform: translate(-50%,-50%) scale(0);
    animation: rExp 3.2s ease-out infinite;
}
.mring:nth-child(1) { width: 66px; height: 66px; }
.mring:nth-child(2) { width: 120px; height: 120px; animation-delay: 0.85s; }
.mring:nth-child(3) { width: 190px; height: 190px; animation-delay: 1.7s; }
@keyframes rExp { 0% { transform:translate(-50%,-50%) scale(0); opacity:0.6; } 100% { transform:translate(-50%,-50%) scale(1); opacity:0; } }
.map-lbl { position: absolute; font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.map-fade-b { position: absolute; bottom: 0; left: 0; right: 0; height: 65px; background: linear-gradient(to top, var(--bg2), transparent); pointer-events: none; }
.map-fade-s { position: absolute; top: 0; bottom: 0; width: 32px; background: linear-gradient(to right, var(--card), transparent); pointer-events: none; left: 0; }
.map-fade-s + .map-fade-s { left: auto; right: 0; background: linear-gradient(to left, var(--card), transparent); }
@media (max-width: 900px) { .map-box { height: 340px; } }

/* ════════════════════════════════════════
    CONTACT
════════════════════════════════════════ */
#contact { padding: 8rem clamp(2rem,8vw,8rem); background: var(--bg); overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; margin-top: 4rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.ctitle { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.85rem,3.4vw,2.7rem); font-weight: 300; color: var(--txt); line-height: 1.2; margin-top: 1rem; }
.ctitle em { font-style: italic; color: var(--gold); }
.cbody { font-size: 0.87rem; line-height: 1.9; color: var(--muted); margin-top: 1.3rem; font-weight: 300; }
.cquick { display: flex; flex-direction: column; gap: 0.72rem; margin-top: 2.3rem; }
.cql {
    display: flex; align-items: center; gap: 0.72rem; font-size: 0.64rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt2);
    text-decoration: none; cursor: pointer; transition: color 0.3s, gap 0.4s;
}
.cql:hover { color: var(--gold); gap: 1.1rem; }
.cqi {
    width: 34px; height: 34px; border: 1px solid rgba(201,168,76,0.18); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: all 0.4s;
}
.cql:hover .cqi { border-color: var(--gold); background: rgba(201,168,76,0.08); }

/* Form */
.form-wrap { padding: 2.3rem; background: var(--card); border: 1px solid rgba(201,168,76,0.16); backdrop-filter: blur(20px); }
.flabel { font-size: 0.57rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.cform { display: flex; flex-direction: column; gap: 1.35rem; }
.ff { position: relative; }
.ff input, .ff textarea, .ff select {
    width: 100%; padding: 1.1rem 1rem 0.62rem;
    background: var(--bg); border: 1px solid rgba(201,168,76,0.16);
    color: var(--txt); font-family: 'Inter', sans-serif; font-size: 0.87rem; font-weight: 300;
    outline: none; transition: all 0.4s var(--easing);
    -webkit-appearance: none; appearance: none; border-radius: 0;
}
.ff textarea { height: 108px; resize: none; padding-top: 1.45rem; }
.ff label {
    position: absolute; top: 0.88rem; left: 1rem;
    font-size: 0.61rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); pointer-events: none; transition: all 0.35s var(--easing);
}
html[dir="rtl"] .ff label { left: auto; right: 1rem; }
.ff input:focus, .ff textarea:focus, .ff select:focus {
    border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,168,76,0.16), 0 4px 18px rgba(201,168,76,0.06);
}
.ff input:focus + label, .ff input:not(:placeholder-shown) + label,
.ff textarea:focus + label, .ff textarea:not(:placeholder-shown) + label,
.ff select:focus + label, .ff.has-val label { top: 0.3rem; font-size: 0.5rem; color: var(--gold); }
.ff input::placeholder, .ff textarea::placeholder { color: transparent; }
.ff select option { background: var(--bg); color: var(--txt); }

/* Error state */
.form-error-msg { display: none; color: #E05068; font-size: 0.7rem; letter-spacing: 0.06em; margin-top: 0.5rem; align-items: center; gap: 0.4rem; }
.form-error-msg.show { display: flex; }

.fsub {
    padding: 1.05rem 2.8rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
    border: none; color: #1A1814; font-family: 'Inter', sans-serif;
    font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
    cursor: pointer; transition: all 0.55s var(--easing);
    position: relative; overflow: hidden; font-weight: 500;
    align-self: flex-start; border-radius: 1px;
}
.fsub:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }
.fsub:not(:disabled):hover { box-shadow: 0 0 40px rgba(201,168,76,0.3); transform: translateY(-1px); }

#form-success { display: none; text-align: center; padding: 2.5rem 2rem; flex-direction: column; align-items: center; gap: 1rem; }
#form-success.show { display: flex; }

/* ════════════════════════════════════════
    FINAL CTA
════════════════════════════════════════ */
#final-cta {
    position: relative; min-height: 78vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.fcta-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #1C1810 0%, #0D0B08 50%, #181410 100%); }
.fcta-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, rgba(201,168,76,0.062) 0%, transparent 70%);
    pointer-events: none; animation: gPulse 5.5s ease-in-out infinite;
}
.fcta-c { position: relative; z-index: 2; text-align: center; padding: 0 2rem; }
.fcta-eye {
    font-size: 0.57rem; letter-spacing: 0.48em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 2rem; display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.fcta-eye::before,.fcta-eye::after { content:''; display:block; width:44px; height:1px; background:var(--gold); opacity:0.42; }
.fcta-t { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.3rem,6.2vw,5.2rem); font-weight: 300; color: #F8F4EC; line-height: 1.06; }
.fcta-s { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.35rem,2.9vw,2.4rem); font-weight: 300; color: var(--gold); font-style: italic; margin-top: 0.4rem; }
.fcta-b { font-size: 0.84rem; color: rgba(250,247,240,0.4); margin: 1.4rem auto 0; font-weight: 300; letter-spacing: 0.03em; max-width: 440px; }
.fcta-btns { display: flex; gap: 1rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }

/* ════════════════════════════════════════
    FOOTER
════════════════════════════════════════ */
footer { background: var(--bg2); border-top: 1px solid rgba(201,168,76,0.12); padding: 5rem clamp(2rem,8vw,8rem) 2.8rem; position: relative; z-index: 10; }
.foot-top { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; margin-bottom: 3.4rem; }
.foot-logo { width: 44px; filter: drop-shadow(0 0 12px rgba(201,168,76,0.28)); }
.foot-name { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 300; letter-spacing: 0.35em; text-transform: uppercase; color: var(--txt); }
.foot-sub { font-size: 0.57rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.foot-div { width: 100%; height: 1px; background: linear-gradient(to right, transparent, rgba(201,168,76,0.38), transparent); margin: 2.4rem 0; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; align-items: start; }
.foot-grid > div { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-ct { font-size: 0.57rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.3rem; }
.foot-links { display: flex; flex-direction: column; gap: 0.72rem; }
.foot-a { font-size: 0.79rem; color: var(--muted); text-decoration: none; cursor: pointer; transition: color 0.3s; font-weight: 300; }
.foot-a:hover { color: var(--gold); }
.foot-social { display: flex; gap: 0.72rem; margin-top: 0.8rem; position: relative; z-index: 2; }
.soc {
    width: 35px; height: 35px; border: 1px solid rgba(201,168,76,0.16); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.4s; color: var(--muted); text-decoration: none; background: transparent;
    position: relative; z-index: 3;
}
.soc:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(201,168,76,0.16); }
.soc svg { width: 13px; height: 13px; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(201,168,76,0.08); flex-wrap: wrap; gap: 0.8rem; }
.foot-copy { font-size: 0.63rem; color: var(--muted); }
.foot-legal { display: flex; gap: 1.7rem; }
.foot-legal a { font-size: 0.61rem; color: var(--muted); text-decoration: none; transition: color 0.3s; cursor: pointer; }
.foot-legal a:hover { color: var(--gold); }

/* ════════════════════════════════════════
    MISC
════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }


/* ════════════════════════════════════════
    LIGHT MODE OVERRIDES
    — Only targets html.light —
    — Dark mode is untouched —
════════════════════════════════════════ */

/* HERO — warm ivory animated gradient replaces the dark one */
html.light #hero-bg {
    background: linear-gradient(160deg,
        #F2E8D2 0%,
        #EDE2C8 25%,
        #E6D8BE 55%,
        #EEE5CF 80%,
        #F4EBD8 100%
    );
    background-size: 300% 300%;
    animation: hBgLight 18s ease infinite;
}
@keyframes hBgLight {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Hero overlay — very gentle warm vignette at bottom only */
html.light #hero-overlay {
    background: linear-gradient(to bottom,
        rgba(242,232,210,0.0) 0%,
        rgba(242,232,210,0.0) 40%,
        rgba(225,212,188,0.5) 100%
    );
}

/* Hero glow — stronger, warm amber-gold visible on ivory */
html.light #hero-glow {
    background: radial-gradient(ellipse,
        rgba(201,168,76,0.26) 0%,
        rgba(201,168,76,0.08) 45%,
        transparent 70%
    );
    animation: gPulseLight 5s ease-in-out infinite;
}
@keyframes gPulseLight {
    0%,100% { opacity: 0.75; transform: translate(-50%,-60%) scale(1); }
    50%      { opacity: 1;    transform: translate(-50%,-60%) scale(1.1); }
}

/* Hero dust — screen blendmode is invisible on light; multiply darkens correctly */
html.light #hero-dust .dust {
    mix-blend-mode: multiply;
    opacity: 0.18;
}

/* Hero brand/sub — hardcoded #F8F4EC goes invisible on ivory; override to dark */
html.light #hero-brand { color: #1C1810; }
html.light #hero-sub   { color: var(--gold); }

/* Hero buttons — dark semi-transparent bg needs light treatment */
html.light .hero-btn {
    background: rgba(255, 253, 247, 0.60);
    color: #1C1810;
    border-color: rgba(180, 148, 60, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
html.light .hero-btn:hover {
    background: rgba(255, 253, 247, 0.88);
    border-color: var(--gold);
    color: #1C1810;
    box-shadow: 0 0 28px rgba(201,168,76,0.22);
}
html.light .hero-btn::before {
    background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(201,168,76,0.18));
}

/* Scroll hint in light */
html.light #scroll-hint span { color: var(--gold); }

/* Navbar — scrolled state nav links are hardcoded light, need dark override */
html.light #navbar.scrolled .nav-a { color: var(--txt2); }
html.light #navbar.scrolled .nav-a:hover { color: var(--gold) !important; }

/* MAP SECTION — fix the washed-out light mode appearance */
html.light .map-box::after {
    background: radial-gradient(
        ellipse at center,
        rgba(230,218,195,0.04) 0%,
        rgba(210,198,172,0.22) 100%
    );
}
html.light .map-bg-img {
    opacity: 0.55;
    filter: saturate(0.88) contrast(1.15) brightness(1.06);
}
html.light .map-grid-lines {
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(100,78,30,1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100,78,30,1) 1px, transparent 1px);
}
html.light .map-svg { opacity: 1.0; }
html.light .map-lbl {
    color: var(--txt2);
    font-weight: 500;
    opacity: 1;
}
html.light .pin-card {
    background: rgba(252, 249, 242, 0.95);
    border: 1px solid rgba(180,148,60,0.38);
    box-shadow: 0 4px 20px rgba(100,78,30,0.12);
}
html.light .pin-card-t { color: #1A1814; }
html.light .map-fade-b {
    background: linear-gradient(to top, var(--bg2), transparent);
}
html.light .map-fade-s {
    background: linear-gradient(to right, var(--card), transparent);
}
html.light .map-fade-s + .map-fade-s {
    background: linear-gradient(to left, var(--card), transparent);
}

/* FINAL CTA — hardcoded dark bg section needs warm ivory treatment */
html.light .fcta-bg {
    background: linear-gradient(160deg,
        #EDE3C8 0%,
        #F4EBD8 50%,
        #E8DEC8 100%
    );
}
html.light .fcta-glow {
    background: radial-gradient(ellipse,
        rgba(201,168,76,0.22) 0%,
        transparent 65%
    );
}
html.light .fcta-t {
    color: #1C1810;
}
html.light .fcta-s {
    color: var(--gold);
}
html.light .fcta-b {
    color: rgba(28, 24, 16, 0.52);
}
html.light .fcta-eye { color: var(--gold); }

/* Final CTA hero-btn override for light */
html.light #final-cta .hero-btn {
    background: rgba(255, 252, 244, 0.58);
    color: #1C1810;
    border-color: rgba(180,148,60,0.42);
}
html.light #final-cta .hero-btn:hover {
    background: rgba(255, 252, 244, 0.88);
    border-color: var(--gold);
    color: #1C1810;
}
