/* ═══════════════════════════════════════════════════════════
   layout.css — Section layouts and grid systems
═══════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--space-20)) var(--space-24);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  background: #080604;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg,
      rgba(8, 6, 4, .95) 0%,
      rgba(8, 6, 4, .82) 40%,
      rgba(8, 6, 4, .62) 100%);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(125deg,
      rgba(8, 6, 4, .92) 0%,
      rgba(8, 6, 4, .78) 45%,
      rgba(8, 6, 4, .58) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Ambient gold glow bottom */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(75, 191, 204, .10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 780px;
}

[data-lang="ar"] .hero-content {
  align-items: flex-start;
  text-align: right;
}

.hero-title {
  font-family: var(--font-display-en);
  font-size: var(--text-hero);
  font-weight: 300;
  color: #F0EBE3;
  line-height: 1.03;
  margin-bottom: var(--space-8);
  letter-spacing: -0.025em;
}

[data-lang="ar"] .hero-title {
  font-family: var(--font-display-ar);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.28;
}

.hero-title em {
  font-style: italic;
  color: var(--clr-gold-light);
  font-weight: 400;
}

.hero-sub {
  font-size: var(--text-md);
  color: rgba(240, 235, 227, .68);
  max-width: 54ch;
  line-height: 1.78;
  margin-bottom: var(--space-10);
}

[data-lang="ar"] .hero-sub {
  font-family: var(--font-body-ar);
  font-size: var(--text-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.hero-actions .btn-ghost {
  border-color: rgba(240, 235, 227, .28);
  color: rgba(240, 235, 227, .8);
}

.hero-actions .btn-ghost:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(75, 191, 204, .08);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-10);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 1;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(75, 191, 204, .9), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  border-radius: var(--radius-full);
}

.scroll-label {
  font-size: 0.65rem;
  color: rgba(240, 235, 227, .38);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body-en);
}

/* ─── ABOUT GRID ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 7vw, var(--space-24));
  align-items: center;
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ─── DOCTORS GRID ─── */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ─── GALLERY GRID ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: var(--space-4);
}

.gallery-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}

.gallery-item:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.gallery-item.large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* ─── CONTACT GRID ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}