/* KGC — Light Modern Aesthetic */

:root {
  /* Base — warm ivory paper */
  --bg: #FAF7F2;
  --bg-2: #F2EDE4;
  --bg-3: #E8E1D3;
  --surface: #FFFFFF;
  --line: rgba(28, 25, 23, 0.08);
  --line-strong: rgba(28, 25, 23, 0.14);

  /* Text — warm near-black */
  --text: #1C1917;
  --text-2: #44403C;
  --text-mute: #78716C;
  --text-soft: #A8A29E;

  /* Accent — terracotta primary, sage secondary */
  --accent: #C2410C;     /* terracotta */
  --accent-2: #EA580C;
  --accent-soft: #FED7AA;
  --accent-bg: #FFF7ED;

  --sage: #4D7C5C;
  --sage-2: #6B9B7A;
  --sage-bg: #F0F4EE;

  --gold: #B8861B;       /* keeps the brand link */
  --gold-bg: #FEF9E7;

  --font-display: "Fraunces", "Reem Kufi", "Tajawal", serif;
  --font-arabic: "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 12px rgba(28,25,23,0.06), 0 1px 3px rgba(28,25,23,0.04);
  --shadow-lg: 0 20px 40px -12px rgba(28,25,23,0.12), 0 4px 16px rgba(28,25,23,0.06);
  --shadow-xl: 0 30px 60px -20px rgba(28,25,23,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-arabic);
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body { font-size: 16px; line-height: 1.6; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.italic-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(194,65,12,0.5);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0% 0); }

/* Marquee */
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
  50% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
}

section { position: relative; }

/* Photo placeholder — light, branded */
.photo {
  position: relative;
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
}
.photo-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--text-soft); border-radius: 8px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }

/* Selection */
::selection { background: var(--accent); color: white; }
