@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cairo:wght@300;400;600;700&display=swap');

/* kdrcore.com — Kahraman Al Durwaza identity (same palette as kdrkw.com): ink, gold, cream. */
:root {
  --ink: #0c0a08;
  --ink2: #161210;
  --ink3: #1f1a15;
  --line: rgba(244,236,224,0.10);
  --line-strong: rgba(212,165,55,0.45);
  --cream: #f4ece0;
  --cream-2: #e6dcc8;
  --muted: #b8a98f;
  --gold: #d4a537;
  --gold-2: #e9c766;
  --gold-ink: #1a1206;
  --max: 1160px;
  --serif: 'Cinzel', Georgia, serif;
  --sans: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { color: var(--gold-2); font-weight: 600; }
::selection { background: var(--gold); color: var(--gold-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,6,5,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav .logo, footer .logo { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); }
.nav .logo img { height: 48px; width: auto; }
.nav .logo .wordmark, footer .logo .wordmark { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nav .logo .wordmark em, footer .logo .wordmark em { font-style: normal; font-weight: 400; color: var(--cream-2); }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav a.navlink {
  font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream-2); padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.nav a.navlink:hover, .nav a.navlink.active { color: var(--gold); border-color: var(--gold); }
.nav a.navlink.lang-switch { color: var(--muted); text-transform: none; letter-spacing: 0; }
.nav .cta {
  background: var(--gold); color: var(--gold-ink);
  padding: 11px 24px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .15s ease;
}
.nav .cta:hover { opacity: .88; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav ul { display: none; }
  .nav .cta { display: none; }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; }
  .nav.open ul {
    display: flex; flex-direction: column; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--ink2); border-bottom: 1px solid var(--line); padding: 24px 32px 32px; gap: 18px;
  }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--cream); font-weight: 500; letter-spacing: .02em; }
.kicker, .hero .eyebrow, footer h4, .field label, .info-card .row .label, .pitch-band .slogan {
  font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(212,165,55,0.14), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(212,165,55,0.08), transparent 60%),
    var(--ink);
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.eyebrow .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.eyebrow .bars span { width: 22px; height: 1px; background: var(--gold); }
.eyebrow .bars span:nth-child(2) { width: 14px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); line-height: 1.1; margin: 0 0 28px; max-width: 900px; }
.hero h1 .thin { font-weight: 400; color: var(--gold); }
.hero p.lead { font-size: 19px; color: var(--cream-2); max-width: 640px; margin: 0 0 40px; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 32px;
  font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--gold); transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.btn-solid { background: var(--gold); color: var(--gold-ink); }
.btn-solid:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--gold-ink); }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
section.block.tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; margin: 0 0 18px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head a { color: var(--gold); }

/* Grid of cards */
.step-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.step-card { background: var(--ink2); padding: 40px 32px; transition: background .2s ease; }
.step-card:hover { background: var(--ink3); }
.step-card .num { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--gold); margin-bottom: 20px; }
.step-card h3 { font-size: 19px; margin: 0 0 12px; }
.step-card p { font-size: 15px; color: var(--muted); margin: 0; }

/* Two column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split h3 { font-size: 23px; margin: 0 0 14px; }
.split p { color: var(--muted); font-size: 16px; margin: 0; }

/* Stat row */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px;
  border-top: 1px solid var(--line); padding-top: 48px; margin-top: 56px;
}
.stat-row .stat b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 500; color: var(--gold); }
.stat-row .stat span { color: var(--muted); font-size: 14px; }

/* Quote band */
.pitch-band { background: var(--ink2); color: var(--cream); padding: 100px 0; border-bottom: 1px solid var(--line); position: relative; }
.pitch-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.pitch-band .kicker { color: var(--gold); }
.pitch-band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); font-weight: 400; line-height: 1.45; max-width: 920px; color: var(--cream); }
.pitch-band .slogan { margin-top: 36px; color: var(--muted); }

/* Info cards (products, contact) */
.info-card { border: 1px solid var(--line-strong); background: var(--ink2); padding: 40px; }
.info-card .kicker { display: block; margin-bottom: 10px; }
.info-card h3 { font-size: 20px; margin: 0 0 12px; }
.info-card p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.info-card .row { margin-bottom: 22px; }
.info-card .row .label { display: block; margin-bottom: 4px; font-size: 11px; }
.info-card .row a, .info-card .row span.value { font-weight: 600; font-size: 16px; color: var(--cream); }
.info-card .row a:hover { color: var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
form.contact-form { display: flex; flex-direction: column; gap: 20px; background: var(--ink2); border: 1px solid var(--line); padding: 36px; }
.field label { display: block; margin-bottom: 8px; font-size: 11px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); padding: 14px 16px; font-family: inherit; font-size: 15px;
  background: var(--ink); color: var(--cream); transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 500px) { .row-2 { grid-template-columns: 1fr; } }
.form-msg { font-size: 14px; font-weight: 600; margin-top: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--gold-2); }
.form-msg.err { color: #e07b6a; }

/* ---------- Footer ---------- */
footer { background: #080605; color: var(--cream); padding: 64px 0 32px; border-top: 1px solid var(--line); }
footer .logo { margin-bottom: 20px; }
footer .logo img { height: 44px; margin: 0; }
footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { footer .foot-grid { grid-template-columns: 1fr; } }
footer p.tag { color: var(--muted); font-size: 15px; max-width: 340px; }
footer h4 { margin: 0 0 18px; font-size: 11px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
footer ul a, footer ul li { font-size: 15px; color: var(--cream-2); }
footer ul a:hover { color: var(--gold); }
footer .bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* Page hero (inner pages) */
.page-hero {
  padding: 84px 0 64px; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 400px at 90% -20%, rgba(212,165,55,0.14), transparent 60%), var(--ink);
}
.page-hero .kicker { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.15; margin: 0 0 20px; max-width: 820px; }
.page-hero p.lead { font-size: 18px; color: var(--cream-2); max-width: 660px; margin: 0; }

/* ---------- Arabic (RTL) ---------- */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] .btn, html[dir="rtl"] .kicker, html[dir="rtl"] .hero .eyebrow, html[dir="rtl"] footer h4, html[dir="rtl"] .field label, html[dir="rtl"] .info-card .row .label, html[dir="rtl"] .pitch-band .slogan, html[dir="rtl"] .pitch-band blockquote, html[dir="rtl"] .stat-row .stat b { font-family: var(--sans); letter-spacing: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 700; line-height: 1.3; }
html[dir="rtl"] .nav .logo .wordmark, html[dir="rtl"] footer .logo .wordmark { direction: ltr; font-family: var(--serif); letter-spacing: .14em; }
html[dir="rtl"] .stat-row .stat b { direction: ltr; unicode-bidi: isolate; font-family: var(--serif); }
html[dir="rtl"] .bottom span:last-child { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .nav a.navlink { letter-spacing: 0; text-transform: none; font-size: 15px; }
