/* ============================================================
   Sadeem Al-Fulk · سديم الفُلك
   Single stylesheet for the marketing site.
   ============================================================ */

:root {
  /* Brand palette */
  --bg: #0a0807;
  --card: #15110d;
  --rule: #2a2520;
  --rule-2: #3a3530;
  --paper: #faf6ec;
  --gold: #d4a24c;
  --gold-2: #e7c27a;
  --muted: #a8a39b;

  /* Layout */
  --maxw: 1100px;
  --pad: clamp(1rem, 4vw, 2rem);

  /* Type stacks */
  --f-ar: "Tajawal", "Segoe UI", sans-serif;
  --f-en: "Inter", system-ui, sans-serif;
  --f-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--paper);
  font-family: var(--f-ar); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--f-en); line-height: 1.55; }
::selection { background: var(--gold); color: var(--bg); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: var(--f-ar); font-weight: 900;
}
html[lang="en"] h1, html[lang="en"] h2 {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
}
html[lang="en"] h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; }
html[lang="en"] h4 { font-weight: 600; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; top: -40px; inset-inline-start: 0; padding: 0.5rem 1rem;
  background: var(--gold); color: var(--bg); font-weight: 700; z-index: 1000;
  border-radius: 0 0 8px 0; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
/* Gold-backed elements need a contrasting focus ring (gold-on-gold is invisible) */
.nav-cta:focus-visible,
.skip-link:focus-visible,
.btn-primary:focus-visible {
  outline-color: var(--paper); outline-offset: 3px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 8, 7, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem; gap: 0.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  font-family: var(--f-ar); font-weight: 900; font-size: 1.05rem;
  color: var(--paper); white-space: nowrap; line-height: 1;
}
html[lang="en"] .brand-name {
  font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em;
}
@media (max-width: 480px) { .brand-name { display: none; } }

.nav-right { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.nav-links { display: none; gap: 1.4rem; font-size: 13px; margin-inline-end: 0.6rem; }
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-links a { color: var(--muted); transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 2px;
}
.lang-toggle button {
  padding: 0.32rem 0.6rem; font-size: 11px; font-weight: 700;
  color: var(--muted); border-radius: 999px; line-height: 1; transition: all 0.2s;
  font-family: var(--f-ar);
}
.lang-toggle button.active { background: var(--gold); color: var(--bg); }
.lang-toggle button:hover:not(.active) { color: var(--paper); }

.nav-cta {
  display: inline-flex; align-items: center; padding: 0.5rem 0.9rem;
  background: var(--gold); color: var(--bg); font-size: 12px; font-weight: 700;
  border-radius: 999px; transition: background 0.2s, transform 0.15s; white-space: nowrap;
  font-family: var(--f-ar);
}
html[lang="en"] .nav-cta { font-family: var(--f-en); font-size: 11px; font-weight: 600; }
.nav-cta:hover { background: var(--gold-2); transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(212, 162, 76, 0.12), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
}
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; background: rgba(212, 162, 76, 0.1);
  border: 1px solid rgba(212, 162, 76, 0.3); border-radius: 999px;
  color: var(--gold-2); font-weight: 700; font-size: 12px; margin-bottom: 1.5rem;
}
html[lang="en"] .hero-eyebrow {
  font-family: var(--f-en); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 162, 76, 0.6); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem); line-height: 1.15;
  margin: 0 0 1.2rem; max-width: 18ch;
}
.hero h1 .accent { color: var(--gold); display: block; }
html[lang="en"] .hero h1 { line-height: 1; max-width: 16ch; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted);
  max-width: 56ch; margin: 0 0 2rem;
}
html[lang="en"] .hero-sub { font-family: var(--f-en); }
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.hero-image-wrap {
  position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #1a3344, #0a1a26);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s;
}
.hero-image-wrap img.loaded { opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.95rem 1.5rem; font-size: 14px; font-weight: 700;
  border-radius: 999px; border: 1px solid transparent; transition: all 0.2s;
  font-family: var(--f-ar);
}
html[lang="en"] .btn { font-family: var(--f-en); font-size: 13px; font-weight: 600; }
.btn-primary { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa { background: #25D366; color: white; border-color: #25D366; }
.btn-wa:hover { background: #1da851; border-color: #1da851; transform: translateY(-2px); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding-block: clamp(3rem, 6vw, 5rem); }
.sec-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.sec-eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700; font-size: 13px;
  margin-bottom: 0.5rem;
}
html[lang="en"] .sec-eyebrow {
  font-family: var(--f-en); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.sec-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.sec-hint { color: var(--muted); margin-top: 0.6rem; font-size: 0.95rem; }
html[lang="en"] .sec-hint { font-family: var(--f-en); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service {
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  cursor: pointer; text-align: start; padding: 0;
  transition: transform 0.25s, border-color 0.25s;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.service:hover { transform: translateY(-4px); border-color: var(--gold); }

.service-photo {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a3344, #0a1a26);
  border-bottom: 1px solid var(--rule);
}
.service-photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.4s, transform 0.6s;
}
.service-photo img.loaded { opacity: 1; }
.service:hover .service-photo img { transform: scale(1.04); }
.service-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 8, 7, 0.85));
  pointer-events: none;
}
.service-icon {
  position: absolute; bottom: 0.85rem; inset-inline-start: 0.85rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(212, 162, 76, 0.95); color: var(--bg);
  display: grid; place-items: center; font-size: 22px;
}
.service-body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.service-title { font-size: 1.4rem; color: var(--paper); }
.service-desc { color: var(--muted); font-size: 0.98rem; margin: 0; flex: 1; }
html[lang="en"] .service-desc { font-family: var(--f-en); font-size: 0.93rem; line-height: 1.55; }
.service-more {
  margin-top: 0.8rem; color: var(--gold); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
html[lang="en"] .service-more { font-family: var(--f-en); font-size: 12px; }

/* ============================================================
   PHOTO BAND (full-width image strip with text overlay)
   ============================================================ */
.photo-band {
  position: relative; min-height: 320px;
  background-size: cover; background-position: center;
  border-block: 1px solid var(--rule);
  display: flex; align-items: center;
}
.photo-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,7,0.92) 0%, rgba(10,8,7,0.5) 60%, rgba(10,8,7,0.3) 100%);
}
html[dir="ltr"] .photo-band::before {
  background: linear-gradient(270deg, rgba(10,8,7,0.92) 0%, rgba(10,8,7,0.5) 60%, rgba(10,8,7,0.3) 100%);
}
.photo-band-inner { position: relative; z-index: 1; max-width: 36ch; }
.photo-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.3; margin-bottom: 0.8rem; }
.photo-band h2 .accent { color: var(--gold); }
.photo-band p { color: var(--muted); font-size: 1rem; margin: 0; }
html[lang="en"] .photo-band p { font-family: var(--f-en); }

/* ============================================================
   WHY US
   ============================================================ */
.why-layout {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start;
  margin-top: 1.5rem;
}
@media (min-width: 880px) { .why-layout { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.why-image-wrap {
  position: relative; aspect-ratio: 5/4; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--rule);
  background: linear-gradient(135deg, #2a2010, #150e08);
}
.why-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s;
}
.why-image-wrap img.loaded { opacity: 1; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }

.why-card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 10px; padding: 1.4rem;
}
.why-num {
  color: var(--gold); font-family: var(--f-display); font-style: italic;
  font-size: 1.6rem; font-weight: 400; margin-bottom: 0.4rem;
}
.why-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--paper); }
.why-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
html[lang="en"] .why-card p { font-family: var(--f-en); font-size: 0.9rem; line-height: 1.55; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: linear-gradient(180deg, var(--bg), #100c0a);
  border-top: 1px solid var(--rule);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start;
}
@media (min-width: 880px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; } }
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info > p { color: var(--muted); margin: 0; max-width: 36ch; }
html[lang="en"] .contact-info > p { font-family: var(--f-en); font-size: 0.95rem; line-height: 1.6; }

.cinfo-block { padding-top: 0.8rem; border-top: 1px solid var(--rule); }
.cinfo-label { color: var(--gold); font-size: 12px; font-weight: 700; margin-bottom: 0.25rem; }
html[lang="en"] .cinfo-label {
  font-family: var(--f-en); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.cinfo-val { color: var(--paper); font-weight: 700; font-size: 1.15rem; }
html[lang="en"] .cinfo-val { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.cinfo-val a:hover { color: var(--gold); }

/* Contact channels (WhatsApp + email side-by-side above form) */
.contact-channels { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

/* Form */
.quote {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 12px; padding: clamp(1.4rem, 3vw, 2rem);
}
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 12px; font-weight: 700; }
html[lang="en"] .field label {
  font-family: var(--f-en); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.field input, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--rule-2);
  padding: 0.55rem 0; color: var(--paper); font-family: inherit;
  font-size: 1rem; transition: border-color 0.2s; width: 100%;
}
html[lang="en"] .field input, html[lang="en"] .field textarea { font-family: var(--f-en); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; min-height: 70px; }
.field ::placeholder { color: #555049; }

.form-foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem;
}
.form-note { color: var(--muted); font-size: 12px; margin: 0; }
html[lang="en"] .form-note { font-family: var(--f-en); }

.form-success {
  display: none; grid-column: 1 / -1; padding: 0.85rem 1.1rem;
  background: rgba(212, 162, 76, 0.1); border: 1px solid var(--gold);
  border-radius: 6px; color: var(--gold-2); font-size: 0.98rem;
}
html[lang="en"] .form-success { font-family: var(--f-en); font-size: 0.95rem; }
.form-success.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding-block: 2.5rem 1.5rem; border-top: 1px solid var(--rule); }
.foot-top {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
}
.foot-brand { display: flex; align-items: center; gap: 0.7rem; }
.foot-brand .brand-logo { width: 44px; height: 44px; }
.foot-tag { color: var(--muted); margin: 0.3rem 0 0; max-width: 36ch; font-size: 0.95rem; }
html[lang="en"] .foot-tag { font-family: var(--f-en); font-size: 0.92rem; line-height: 1.55; }

.foot-bottom {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.7rem;
  justify-content: space-between; color: var(--muted); font-size: 12px;
}
html[lang="en"] .foot-bottom { font-family: var(--f-en); font-size: 11px; }
.foot-legal { display: flex; gap: 1.3rem; }
.foot-legal a { cursor: pointer; transition: color 0.2s; }
.foot-legal a:hover { color: var(--gold); }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
  align-items: flex-start; justify-content: center;
  padding: 2rem 1rem; overflow-y: auto;
}
.modal.show { display: flex; }
.modal-inner {
  position: relative; max-width: 640px; width: 100%;
  background: var(--paper); color: #1a1612;
  border-radius: 12px; padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal-close {
  position: absolute; top: 0.8rem; inset-inline-end: 0.8rem;
  width: 36px; height: 36px; border: 1px solid #d0c8b3;
  border-radius: 50%; color: inherit; font-size: 18px;
  display: grid; place-items: center; transition: all 0.2s;
}
.modal-close:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.modal h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; padding-inline-end: 2rem; }
.modal h4 { margin: 1.4rem 0 0.5rem; font-size: 0.85rem; color: #a87a2e; font-weight: 700; }
html[lang="en"] .modal h4 {
  font-family: var(--f-en); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.modal p { margin: 0 0 0.7rem; line-height: 1.75; }
html[lang="en"] .modal p { font-family: var(--f-en); line-height: 1.6; }
.modal ul { padding-inline-start: 1.3rem; margin: 0 0 0.7rem; }
.modal li { margin-bottom: 0.4rem; line-height: 1.7; }
html[lang="en"] .modal li { font-family: var(--f-en); line-height: 1.55; }
.modal a { color: #a87a2e; text-decoration: underline; }

.modal-cta {
  margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid #e0d8c5;
  display: flex; gap: 0.7rem; flex-wrap: wrap;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.wa-float {
  position: fixed; bottom: 1.5rem; inset-inline-start: 1.5rem; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: white; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; opacity: 0.5;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
