/* ===== DEMIR TRADING — site stylesheet ===== */
:root{
  --bg: #121315;
  --bg-alt: #1a1c1f;
  --surface: #212327;
  --surface-2: #292b30;
  --border: #34363b;
  --text: #f2f1ee;
  --text-muted: #a9acb3;
  --accent: #e8720c;
  --accent-dark: #b8590a;
  --gold: #c9a227;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --maxw: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html, body{ max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
.container{max-width:var(--maxw); margin:0 auto; padding:0 22px;}
section{padding:70px 0;}
h1,h2,h3,h4{font-family:'Segoe UI', Roboto, Arial, sans-serif; line-height:1.2; margin:0 0 14px;}
.eyebrow{
  display:inline-block;
  color: var(--accent);
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
  margin-bottom:10px;
}
h2.section-title{font-size:2rem; font-weight:800;}
p{color:var(--text-muted); margin:0 0 14px;}
.text-center{text-align:center;}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px;
  border-radius: var(--radius);
  font-weight:700;
  font-size:.95rem;
  border:2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-accent{ background: var(--accent); color:#141414; }
.btn-accent:hover{ background: var(--accent-dark); }
.btn-outline{ border-color: rgba(255,255,255,.35); color:var(--text); }
.btn-outline:hover{ border-color: var(--accent); color:var(--accent); }
.btn-whatsapp{ background:#25D366; color:#0b2b16; }
.btn-whatsapp:hover{ background:#1ebc59; }
.btn-block{width:100%; justify-content:center;}

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:100;
  background: rgba(18,19,21,.92);
  backdrop-filter: blur(6px);
  border-bottom:1px solid var(--border);
}
.site-header .inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px; min-width:0;}
.brand svg{width:42px; height:42px; flex:none;}
.logo-mark{width:44px; height:auto; flex:none; object-fit:contain;}
.brand .word{
  font-weight:900; letter-spacing:.04em; font-size:1.25rem; color:var(--text);
  line-height:1.05;
}
.brand .word small{
  display:block; font-size:.6rem; font-weight:600; color: var(--gold);
  letter-spacing:.14em; text-transform:uppercase; margin-top:2px;
}
nav.main-nav{display:flex; align-items:center; gap:6px;}
nav.main-nav a{
  padding:10px 14px; font-weight:600; font-size:.92rem; color:var(--text-muted);
  border-radius: var(--radius);
}
nav.main-nav a:hover, nav.main-nav a.active{ color:var(--text); background:var(--surface); }
.header-cta{display:flex; align-items:center; gap:10px;}
.header-phone{
  display:flex; align-items:center; gap:8px;
  font-weight:800; color:var(--text); font-size:.95rem;
}
.header-phone svg{width:18px; height:18px; color:var(--accent);}
.nav-toggle{ display:none; background:none; border:1px solid var(--border); color:var(--text); border-radius:var(--radius); padding:8px 10px; cursor:pointer; }

.lang-switch select{
  appearance:none; -webkit-appearance:none;
  background: var(--surface);
  border:1px solid var(--border);
  color: var(--text);
  font-weight:700; font-size:.82rem;
  padding:9px 30px 9px 14px;
  border-radius: var(--radius);
  cursor:pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9acb3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position: right 8px center;
  background-size:16px;
}
[dir="rtl"] .lang-switch select{
  padding:9px 14px 9px 30px;
  background-position: left 8px center;
}
.lang-switch select:hover{ border-color: var(--accent); }
.lang-switch select option{ background: var(--surface); color: var(--text); }

@media (max-width: 880px){
  nav.main-nav{
    position:fixed; top:70px; left:0; right:0; bottom:0;
    background: var(--bg-alt);
    flex-direction:column; align-items:stretch;
    padding:16px; gap:4px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y:auto;
  }
  nav.main-nav.open{ transform: translateX(0); }
  nav.main-nav a{ padding:14px 12px; font-size:1.05rem; border-bottom:1px solid var(--border); }
  .nav-toggle{ display:inline-flex; }
  .header-phone .label{display:none;}
  .header-cta{ gap:6px; }
  .header-cta .btn-whatsapp{ display:none; }
  .brand .word{ font-size:1rem; }
  .brand .word small{ font-size:.52rem; }
  .logo-mark{ width:36px; }
}

@media (max-width: 420px){
  .brand .word small{ display:none; }
}

/* ===== Hero ===== */
.hero{
  position:relative;
  min-height:78vh;
  display:flex; align-items:center;
  background-size:cover; background-position:center;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.75) 0%, rgba(10,10,10,.55) 40%, rgba(10,10,10,.92) 100%);
}
.hero .container{position:relative; z-index:2;}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(232,114,12,.14);
  border:1px solid rgba(232,114,12,.5);
  color: var(--accent);
  padding:7px 14px; border-radius:30px;
  font-weight:700; font-size:.8rem; letter-spacing:.06em; text-transform:uppercase;
  margin-bottom:22px;
}
.hero h1{
  font-size:3.2rem; font-weight:900; color:#fff; max-width:820px;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.hero h1 span{color:var(--accent);}
.hero p.lead{
  font-size:1.15rem; color:#e7e6e3; max-width:640px; margin-bottom:32px;
}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
.hero-stats{
  display:flex; gap:36px; margin-top:56px; flex-wrap:wrap;
}
.hero-stats .stat b{ display:block; font-size:1.9rem; color:#fff; font-weight:900; }
.hero-stats .stat span{ color:var(--text-muted); font-size:.85rem; }

@media (max-width:640px){
  .hero h1{font-size:2.1rem;}
  .hero{min-height:70vh;}
}

/* ===== Page header (inner pages) ===== */
.page-hero{
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom:1px solid var(--border);
  padding:60px 0 44px;
}
.page-hero h1{font-size:2.3rem; font-weight:900;}
.breadcrumb{color:var(--text-muted); font-size:.9rem; margin-bottom:10px;}
.breadcrumb a{color:var(--accent);}

/* ===== Cards / Services ===== */
.grid{display:grid; gap:24px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
@media (max-width:900px){ .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .grid-3,.grid-4,.grid-2{grid-template-columns:1fr;} }

.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); border-color: rgba(232,114,12,.5); }
.card .img{ aspect-ratio: 4/3; overflow:hidden; background:#000; position:relative; }
.card .img img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s ease;
  animation: kenburns 14s ease-in-out infinite alternate;
}
.card:nth-child(2) .img img{ animation-delay:-2s; }
.card:nth-child(3) .img img{ animation-delay:-4s; }
.card:nth-child(4) .img img{ animation-delay:-6s; }
.card:nth-child(5) .img img{ animation-delay:-8s; }
.card:nth-child(6) .img img{ animation-delay:-10s; }
.card:nth-child(7) .img img{ animation-delay:-12s; }
.card:nth-child(8) .img img{ animation-delay:-1s; }
.card:hover .img img{ transform: scale(1.14); animation-play-state:paused; }
.card .img::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%);
  background-size:250% 250%;
  background-position:120% 0;
  opacity:0; transition:opacity .3s ease;
  pointer-events:none;
}
.card:hover .img::after{ opacity:1; background-position:-20% 0; transition:background-position .8s ease, opacity .3s ease; }

@keyframes kenburns{
  0%{ transform: scale(1.02) translate(0,0); }
  100%{ transform: scale(1.16) translate(-1.5%, -1.5%); }
}
@media (prefers-reduced-motion: reduce){
  .card .img img{ animation:none; }
}
.card .body{ padding:20px; }
.card .body h3{ font-size:1.08rem; font-weight:800; margin-bottom:8px; }
.card .body p{ font-size:.92rem; margin-bottom:0; }

.service-icon{
  width:52px; height:52px; border-radius:10px;
  background: rgba(232,114,12,.12);
  border:1px solid rgba(232,114,12,.4);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
  flex:none;
}
.service-icon svg{width:26px; height:26px; color:var(--accent);}

.service-row{
  display:flex; flex-wrap:wrap; gap:18px; align-items:center;
  padding:22px 0; border-bottom:1px solid var(--border);
}
.service-row:last-child{border-bottom:none;}
.service-row h3{font-size:1.15rem; font-weight:800; margin-bottom:6px;}
.service-row p{margin-bottom:0;}
.service-row > div{ flex:1 1 320px; min-width:0; }
@media (max-width:700px){
  .service-row{ flex-direction:column; }
  .service-row > div{ width:100%; flex-basis:auto; }
}

/* ===== About ===== */
.about-split{display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center;}
@media (max-width:880px){ .about-split{grid-template-columns:1fr;} }
.about-photo-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.about-photo-grid img{border-radius:var(--radius); aspect-ratio:1/1; object-fit:cover;}
.about-photo-grid .tall{aspect-ratio:1/2; grid-row: span 2;}

.stat-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--border); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  margin:36px 0;
}
.stat-strip .cell{ background:var(--surface); padding:26px 16px; text-align:center; }
.stat-strip .cell b{display:block; font-size:1.9rem; color:var(--accent); font-weight:900;}
.stat-strip .cell span{color:var(--text-muted); font-size:.82rem;}
@media (max-width:700px){ .stat-strip{grid-template-columns:repeat(2,1fr);} }

.value-list{list-style:none; padding:0; margin:0; display:grid; gap:14px;}
.value-list li{ display:flex; gap:12px; align-items:flex-start; color:var(--text-muted); }
.value-list li svg{width:20px; height:20px; color:var(--accent); flex:none; margin-top:2px;}

/* ===== Gallery ===== */
.filter-bar{
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:30px;
}
.filter-bar button{
  padding:8px 16px; border-radius:30px; border:1px solid var(--border);
  background:var(--surface); color:var(--text-muted); font-weight:600; font-size:.85rem; cursor:pointer;
}
.filter-bar button.active, .filter-bar button:hover{ border-color:var(--accent); color:var(--accent); }

.gallery-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
}
@media (max-width:900px){ .gallery-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:600px){ .gallery-grid{grid-template-columns:repeat(2,1fr);} }
.gallery-grid figure{
  margin:0; aspect-ratio:1/1; overflow:hidden; border-radius:var(--radius);
  border:1px solid var(--border); cursor:pointer; position:relative; background:#000;
}
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease, opacity .2s ease; }
.gallery-grid figure:hover img{ transform:scale(1.08); }

.lightbox{
  position:fixed; inset:0; background:rgba(8,8,9,.94); z-index:1000;
  display:none; align-items:center; justify-content:center; padding:30px;
}
.lightbox.open{display:flex;}
.lightbox img{ max-width:min(1100px,92vw); max-height:86vh; border-radius:6px; box-shadow:var(--shadow); }
.lightbox .close, .lightbox .nav-btn{
  position:absolute; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.25);
  color:#fff; width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:1.3rem;
}
.lightbox .close{ top:22px; right:22px; }
.lightbox .prev{ left:22px; top:50%; transform:translateY(-50%); }
.lightbox .next{ right:22px; top:50%; transform:translateY(-50%); }
.lightbox .counter{position:absolute; bottom:20px; left:50%; transform:translateX(-50%); color:var(--text-muted); font-size:.85rem;}

/* ===== CTA band ===== */
.cta-band{
  background: linear-gradient(120deg, #201509, #171718);
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.cta-band .inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  padding:44px 0;
}
.cta-band h3{font-size:1.5rem; margin:0;}
.cta-band p{margin:6px 0 0;}

/* ===== Contact ===== */
.contact-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:40px;}
@media (max-width:880px){ .contact-grid{grid-template-columns:1fr;} }
.contact-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:26px;
  display:flex; gap:16px; align-items:flex-start; margin-bottom:14px;
}
.contact-card svg{width:26px; height:26px; color:var(--accent); flex:none;}
.contact-card h4{margin:0 0 4px; font-size:1rem;}
.contact-card p{margin:0;}
.map-box{
  border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); min-height:320px;
}
.map-box iframe{width:100%; height:100%; min-height:320px; border:0; display:block; filter:grayscale(.3) invert(.92) contrast(.9);}

/* ===== Footer ===== */
footer.site-footer{
  background: var(--bg-alt); border-top:1px solid var(--border); padding:56px 0 26px;
}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px;}
@media (max-width:800px){ .footer-grid{grid-template-columns:1fr; gap:30px;} }
.footer-grid h4{font-size:.95rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text); margin-bottom:16px;}
.footer-grid ul{list-style:none; margin:0; padding:0; display:grid; gap:10px;}
.footer-grid ul a{color:var(--text-muted); font-size:.92rem;}
.footer-grid ul a:hover{color:var(--accent);}
.footer-bottom{
  margin-top:40px; padding-top:22px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  color:var(--text-muted); font-size:.82rem;
}
.social-row{display:flex; gap:10px; margin-top:14px;}
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color:var(--text-muted);
}
.social-row a:hover{ color:var(--accent); border-color:var(--accent); }

/* Floating WhatsApp */
.float-whatsapp{
  position:fixed; right:20px; bottom:20px; z-index:200;
  width:58px; height:58px; border-radius:50%; background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.float-whatsapp svg{width:28px; height:28px; color:#fff;}

.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}
.reveal.visible{opacity:1; transform:none;}

/* ===== RTL adjustments (Hebrew / Persian) ===== */
[dir="rtl"] .intro-skip{ right:auto; left:22px; }
[dir="rtl"] .lightbox .close{ right:auto; left:22px; }
[dir="rtl"] .lightbox .prev{ left:auto; right:22px; }
[dir="rtl"] .lightbox .next{ right:auto; left:22px; }
[dir="rtl"] .float-whatsapp{ right:auto; left:20px; }
[dir="rtl"] .breadcrumb a{ margin-left:4px; }
[dir="rtl"] body{ font-family: 'Segoe UI', Tahoma, Arial, sans-serif; }

/* ===== Intro Splash ===== */
.intro-splash{
  position:fixed; inset:0; z-index:5000;
  background: radial-gradient(120% 120% at 50% 100%, #241608 0%, #0c0c0d 55%, #08090a 100%);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  transition: opacity .9s ease, visibility .9s ease;
}
.intro-splash canvas{ position:absolute; inset:0; width:100%; height:100%; }
.intro-splash.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.intro-content{
  position:relative; z-index:2; text-align:center; padding:0 24px; max-width:760px;
  opacity:0; transform:translateY(10px);
  animation: introFadeIn 1.1s ease .25s forwards;
}
.intro-content .anvil{ width:120px; height:auto; margin:0 auto 22px; opacity:.95; object-fit:contain; }
.intro-content .since{
  font-size:.78rem; letter-spacing:.24em; text-transform:uppercase; color:var(--gold);
  margin-bottom:18px; font-weight:700;
}
.intro-content .acrostic{
  display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-bottom:22px;
}
.intro-content .acrostic span{
  font-size:.95rem; letter-spacing:.05em; color:#f2f1ee; font-weight:700;
  padding:6px 14px; border:1px solid rgba(232,114,12,.4); border-radius:30px;
  background:rgba(232,114,12,.08);
}
.intro-content .acrostic span b{ color:var(--accent); }
.intro-content p.memorial{
  color:#cfcdc8; font-size:1rem; line-height:1.7; margin:0 auto;
}
.intro-content p.memorial b{ color:#fff; }
.intro-progress{
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
  width:180px; height:2px; background:rgba(255,255,255,.14); border-radius:2px; overflow:hidden; z-index:2;
}
.intro-progress i{
  display:block; height:100%; width:0%; background:var(--accent);
  animation: introProgress 4.2s linear forwards;
}
.intro-skip{
  position:absolute; top:22px; right:22px; z-index:3;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.2); color:#cfcdc8;
  padding:8px 16px; border-radius:30px; font-size:.78rem; cursor:pointer;
}

@keyframes introFadeIn{ to{ opacity:1; transform:none; } }
@keyframes introProgress{ from{width:0%;} to{width:100%;} }
body.intro-lock{ overflow:hidden; }
