/* ============================================
   Halil Öztürk — Umre Hizmetleri
   ============================================ */

:root {
  --color-emerald: #1a4d3e;
  --color-emerald-light: #2a6b58;
  --color-emerald-dark: #0f2e25;
  --color-gold: #c4a052;
  --color-gold-light: #d4b872;
  --color-cream: #faf7f2;
  --color-cream-dark: #f0ebe3;
  --color-text: #2a2a2a;
  --color-text-muted: #6b6560;
  --color-white: #ffffff;

  --font-display: 'Amiri', Georgia, serif;
  --font-logo: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(26, 77, 62, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 77, 62, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 77, 62, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ayat-content-h: 46px;
  --ayat-bar-h: 46px;
  --header-h: calc(var(--ayat-bar-h) + 64px);
  --hero-pad-top: calc(var(--header-h) + 1rem);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h, calc(72px + var(--ayat-bar-h)));
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
}

section[id],
.hero[id] {
  scroll-margin-top: var(--header-h, calc(72px + var(--ayat-bar-h)));
}

img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Pattern overlay */
.pattern-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a4d3e' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Ayat ticker — sitenin en üstü */
.ayat-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: calc(var(--ayat-content-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  background: linear-gradient(90deg, var(--color-emerald-dark), #123328, var(--color-emerald-dark));
  border-bottom: 1px solid rgba(196, 160, 82, 0.35);
  overflow: hidden;
}

.ayat-ticker-inner {
  height: var(--ayat-content-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ayat-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  flex-wrap: nowrap;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: ayatTickerScroll var(--ticker-duration, 120s) linear infinite;
}

.ayat-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

.ayat-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.ayat-ar {
  font-family: 'Scheherazade New', var(--font-display);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: var(--color-gold-light);
  line-height: 1.3;
  direction: rtl;
  unicode-bidi: plaintext;
}

.ayat-sep {
  color: rgba(196, 160, 82, 0.45);
  font-size: 0.75rem;
  font-weight: 300;
  user-select: none;
}

.ayat-meal {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.3vw, 0.82rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.ayat-ref {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1.1vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(196, 160, 82, 0.95);
  white-space: nowrap;
}

.ayat-item::after {
  content: '✦';
  margin-inline-start: 0.85rem;
  color: rgba(196, 160, 82, 0.5);
  font-size: 0.5rem;
  vertical-align: middle;
}

@keyframes ayatTickerScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--ticker-shift, -50%), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ayat-ticker-track {
    animation: none;
  }
}

/* Header */
.header {
  position: fixed;
  top: var(--ayat-bar-h);
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.header:not(.scrolled) .logo-text {
  color: var(--color-white);
}

.header:not(.scrolled) .nav-links a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.85);
}

.header:not(.scrolled) .nav-toggle span {
  background: var(--color-white);
}

.header:not(.scrolled) .nav-cta {
  background: var(--color-gold);
  color: var(--color-emerald-dark) !important;
}

.header.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-arabic {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.logo-text {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  letter-spacing: 0.03em;
  color: var(--color-emerald);
  line-height: 1.15;
}

.logo-hoca {
  font-style: italic;
  font-weight: 500;
  color: var(--color-gold);
}

.header:not(.scrolled) .logo-hoca {
  color: var(--color-gold-light);
}

.header:not(.scrolled) .logo-arabic {
  color: var(--color-gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--color-emerald);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-links a.active:not(.nav-cta)::after {
  width: 100%;
}

.header:not(.scrolled) .nav-links a.active:not(.nav-cta) {
  color: var(--color-white) !important;
  text-shadow:
    0 0 10px rgba(196, 160, 82, 0.95),
    0 0 22px rgba(196, 160, 82, 0.45);
}

.header:not(.scrolled) .nav-links a.active:not(.nav-cta)::after {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold-light),
    var(--color-gold),
    var(--color-gold-light),
    transparent
  );
  background-size: 200% 100%;
  animation: navShimmerLine 2.8s ease-in-out infinite;
}

.header.scrolled .nav-links a.active:not(.nav-cta) {
  color: var(--color-emerald) !important;
  background: linear-gradient(135deg, rgba(196, 160, 82, 0.14), rgba(196, 160, 82, 0.05));
  padding: 0.35rem 0.85rem;
  margin: -0.35rem -0.85rem;
  border-radius: 50px;
  box-shadow:
    0 0 18px rgba(196, 160, 82, 0.22),
    inset 0 0 10px rgba(196, 160, 82, 0.06);
}

.header.scrolled .nav-links a.active:not(.nav-cta)::after {
  display: none;
}

@keyframes navShimmerLine {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

.nav-cta {
  background: var(--color-emerald);
  color: var(--color-white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--color-emerald-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-emerald);
  transition: var(--transition);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 46, 37, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 99;
  backdrop-filter: blur(2px);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Music unlock overlay */
.music-unlock {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 46, 37, 0.88);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.music-unlock[hidden] {
  display: none;
}

.music-unlock.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.music-unlock-box {
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
  max-width: min(92vw, 680px);
  --write-speed: 0.088s;
  --hint-delay: 4.5s;
}

.music-unlock-box .unlock-euzu {
  direction: rtl;
  font-family: 'Scheherazade New', var(--font-display);
  font-size: clamp(1.65rem, 5.2vw, 2.45rem);
  font-weight: 600;
  line-height: 2.15;
  margin-bottom: 2rem;
  color: var(--color-gold-light);
  text-shadow: 0 2px 28px rgba(196, 160, 82, 0.4);
}

.unlock-euzu-line {
  display: block;
  direction: rtl;
  margin-bottom: 0.35rem;
}

.unlock-line-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  max-width: 0;
  animation: unlockLineWrite var(--line-duration, 3.5s) steps(var(--steps, 30), end) var(--line-delay, 0s) forwards;
  animation-play-state: paused;
  filter: drop-shadow(0 0 12px rgba(196, 160, 82, 0.15));
}

.unlock-line-text {
  display: inline-block;
  white-space: nowrap;
}

.unlock-euzu-besmele .unlock-line-text {
  color: var(--color-white);
}

.music-unlock.is-writing .unlock-line-mask {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .unlock-line-mask {
    animation: none;
    max-width: 100%;
  }
}

.music-unlock-box .unlock-hint {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0;
  opacity: 0.85;
  margin-top: 1.5rem;
}

@keyframes unlockLineWrite {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}

@keyframes unlockHintFade {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 0.85; transform: translateY(0); }
}

@keyframes unlockHintPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.55; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: var(--hero-pad-top) 0 4rem;
  overflow: hidden;
}

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

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(15, 46, 37, 0.93) 0%, rgba(15, 46, 37, 0.85) 45%, rgba(15, 46, 37, 0.6) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 20% 60%, rgba(196, 160, 82, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(196, 160, 82, 0.35);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
  transition: none;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.hero-photo.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  z-index: 2;
  pointer-events: auto;
  animation: heroKenBurns 7s ease-in-out infinite alternate;
}

.hero-photo.leaving {
  z-index: 1;
  pointer-events: none;
  animation: none;
}

.hero-photo.entering.effect-slide-left {
  animation: heroEnterSlideLeft 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.leaving.effect-slide-left {
  animation: heroLeaveSlideLeft 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.entering.effect-slide-right {
  animation: heroEnterSlideRight 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.leaving.effect-slide-right {
  animation: heroLeaveSlideRight 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.entering.effect-zoom {
  animation: heroEnterZoom 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.leaving.effect-zoom {
  animation: heroLeaveZoom 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.entering.effect-rise {
  animation: heroEnterRise 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.leaving.effect-rise {
  animation: heroLeaveRise 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.entering.effect-blur {
  animation: heroEnterBlur 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-photo.leaving.effect-blur {
  animation: heroLeaveBlur 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes heroEnterSlideLeft {
  from { opacity: 0; transform: translateX(12%) scale(1.06); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes heroLeaveSlideLeft {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(-12%) scale(0.94); filter: blur(4px); }
}

@keyframes heroEnterSlideRight {
  from { opacity: 0; transform: translateX(-12%) scale(1.06); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes heroLeaveSlideRight {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(12%) scale(0.94); filter: blur(4px); }
}

@keyframes heroEnterZoom {
  from { opacity: 0; transform: scale(1.18); filter: blur(3px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes heroLeaveZoom {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to { opacity: 0; transform: scale(0.88); filter: blur(5px); }
}

@keyframes heroEnterRise {
  from { opacity: 0; transform: translateY(8%) scale(1.04); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes heroLeaveRise {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateY(-8%) scale(0.96); filter: blur(4px); }
}

@keyframes heroEnterBlur {
  from { opacity: 0; transform: scale(1.05); filter: blur(12px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes heroLeaveBlur {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to { opacity: 0; transform: scale(1.02); filter: blur(12px); }
}

.hero-photo-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 46, 37, 0.5) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-dot.active {
  background: var(--color-gold);
  transform: scale(1.15);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-mini-card {
  position: absolute;
  bottom: -1rem;
  left: -2rem;
  width: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(196, 160, 82, 0.5);
  background: var(--color-white);
}

.hero-mini-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center top;
}

.hero-mini-card span {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-emerald);
  text-align: center;
  letter-spacing: 0.04em;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  border: 1px solid rgba(196, 160, 82, 0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

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

.hero-desc {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 540px;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-emerald-dark);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 160, 82, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-emerald);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.section-lead.centered {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* About */
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-images {
  position: relative;
  min-height: 460px;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image.main {
  width: 72%;
  aspect-ratio: 3/4;
  border: 3px solid rgba(196, 160, 82, 0.3);
}

.about-image.main img {
  object-position: center top;
}

.about-image.secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  aspect-ratio: 3/4;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.about-image.secondary img {
  object-position: center 30%;
}

.about-image.placeholder img {
  display: none;
}

.image-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--color-cream-dark), var(--color-cream));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.image-placeholder small {
  font-size: 0.75rem;
  opacity: 0.6;
}

.about-image.placeholder .image-placeholder,
.anilar-photo.placeholder .image-placeholder,
.gallery-item.placeholder .image-placeholder {
  display: flex;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-emerald);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold-light);
  line-height: 1;
}

.about-badge-text {
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.9;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--color-emerald);
}

.about-features svg {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Journey */
.journey {
  background: var(--color-cream);
}

.journey-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.journey-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.journey-card-image {
  height: 200px;
  overflow: hidden;
}

.journey-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-focus-top {
  object-position: center 30%;
}

.journey-card:hover .journey-card-image img {
  transform: scale(1.06);
}

.journey-card-body {
  padding: 2rem 1.75rem 2.25rem;
}

.journey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-gold));
  transform: scaleX(0);
  transition: transform var(--transition);
  z-index: 1;
}

.journey-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.journey-card:hover::before {
  transform: scaleX(1);
}

.journey-icon {
  width: 48px;
  height: 48px;
  color: var(--color-emerald);
  margin-bottom: 1rem;
}

.journey-icon svg {
  width: 100%;
  height: 100%;
}

.journey-step {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 700;
}

.journey-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-emerald);
  margin: 0.5rem 0 1rem;
}

.journey-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Anılarımız */
.anilar {
  background: var(--color-emerald-dark);
  color: var(--color-white);
}

.anilar .section-tag {
  color: var(--color-gold-light);
}

.anilar .section-title {
  color: var(--color-white);
}

.anilar .section-lead,
.anilar p {
  color: rgba(255, 255, 255, 0.75);
}

.anilar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.anilar-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--color-gold-light);
}

.highlight span {
  font-size: 0.85rem;
  opacity: 0.7;
}

.anilar-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 420px;
}

.anilar-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.anilar-photo.main {
  grid-row: 1 / 3;
}

.anilar-photo.placeholder img {
  display: none;
}

.anilar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery */
.gallery {
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 220px);
  grid-auto-flow: dense;
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(15, 46, 37, 0.85), transparent);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

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

/* Quote */
.quote {
  background: var(--color-cream);
  padding: 5rem 0;
}

.islamic-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.quote-arabic {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-emerald);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  direction: rtl;
}

.quote-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.islamic-quote cite {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-style: normal;
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

a.contact-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--color-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-white);
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-emerald);
  margin-bottom: 0.15rem;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-actions {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-cream-dark);
  text-align: center;
}

.contact-actions-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--color-emerald);
  margin-bottom: 0.85rem;
}

.contact-actions-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.contact-actions-btns {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-btn-whatsapp svg,
.contact-btn-call svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.45rem;
  vertical-align: -0.15rem;
}

/* Footer */
.footer {
  background: var(--color-emerald-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.footer-brand .logo-arabic {
  font-size: 1rem;
}

.footer-brand span:last-child {
  font-weight: 500;
  color: var(--color-white);
}

.footer-dua {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-gold-light);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Floating buttons */
.music-toggle {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: max(1.5rem, env(safe-area-inset-left));
  right: auto;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: var(--color-emerald);
  color: var(--color-white);
  border: 2px solid rgba(196, 160, 82, 0.45);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
}

.whatsapp-float {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  background: #25d366;
  color: var(--color-white);
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-float:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.music-toggle:hover {
  background: var(--color-emerald-light);
  transform: translateY(-2px);
}

.music-toggle.playing {
  background: var(--color-gold);
  color: var(--color-emerald-dark);
  border-color: var(--color-gold-light);
}

.music-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-icon svg {
  width: 100%;
  height: 100%;
}

.music-icon-pause {
  display: none;
}

.music-toggle.playing .music-icon-play {
  display: none;
}

.music-toggle.playing .music-icon-pause {
  display: flex;
}

.music-toggle:not(.playing) {
  animation: musicPulse 2.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(26, 77, 62, 0.1); }
  50% { box-shadow: 0 8px 30px rgba(196, 160, 82, 0.35); }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item,
  .gallery-item.large,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
    height: 220px;
  }

  .gallery-item.large {
    grid-column: 1 / 3;
    height: 280px;
  }
}

@media (max-width: 968px) {
  .hero {
    padding: calc(var(--header-h) + 0.75rem) 0 2.5rem;
    min-height: auto;
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-visual {
    order: 1;
  }

  .hero-content {
    order: 0;
  }

  .hero-photo-wrap {
    width: min(260px, 72vw);
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .hero-stats {
    display: none !important;
  }

  .stat-divider {
    display: none;
  }

  .about-grid,
  .anilar-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-images {
    min-height: 340px;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-content {
    text-align: center;
  }

  .about-features {
    align-items: center;
  }

  .journey-cards {
    grid-template-columns: 1fr;
  }

  .anilar-gallery {
    height: 280px;
    max-width: 520px;
    margin: 0 auto;
  }

  .contact-actions {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --hero-pad-top: calc(var(--header-h) + 0.65rem);
  }

  .container {
    width: min(1140px, 94vw);
  }

  .section {
    padding: 4rem 0;
  }

  .nav {
    padding: 0.7rem 0;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
    flex-shrink: 0;
    margin-left: auto;
  }

  .ayat-item {
    gap: 0.4rem;
    padding: 0.35rem 1.25rem;
  }

  .ayat-ar {
    font-size: 0.82rem;
  }

  .ayat-meal {
    font-size: 0.68rem;
  }

  .ayat-ref {
    font-size: 0.62rem;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 3rem);
  }

  .logo-text {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    right: -100%;
    width: min(300px, 85vw);
    height: calc(100dvh - var(--header-h));
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 105;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    right: 0;
  }

  .header:not(.scrolled) .logo-text {
    color: var(--color-white) !important;
  }

  .header:not(.scrolled) .logo-hoca {
    color: var(--color-gold-light) !important;
  }

  .header:not(.scrolled) .logo-arabic {
    color: var(--color-gold-light) !important;
  }

  .header:not(.scrolled) .nav-links a:not(.nav-cta) {
    color: inherit;
  }

  .header:not(.scrolled) .nav-toggle span {
    background: var(--color-white);
  }

  .header:not(.scrolled) .nav-toggle.active span {
    background: var(--color-emerald);
  }

  .nav-links a {
    font-size: 1.05rem;
    width: 100%;
  }

  .nav-links a:not(.nav-cta) {
    color: var(--color-text) !important;
    text-shadow: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.5rem 0;
  }

  .nav-links a:not(.nav-cta)::after {
    display: none !important;
  }

  .nav-links a.active:not(.nav-cta) {
    color: var(--color-emerald) !important;
    font-weight: 600;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .anilar-highlights {
    grid-template-columns: 1fr;
  }

  .hero-scroll {
    display: none;
  }

  .music-toggle {
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: max(1rem, env(safe-area-inset-left));
    padding: 0.65rem 0.95rem;
    font-size: 0.8rem;
  }

  .whatsapp-float {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item,
  .gallery-item.large,
  .gallery-item.wide {
    height: 240px;
  }

  .quote-arabic {
    font-size: 1.35rem;
  }

  .islamic-quote {
    padding: 0 0.5rem;
  }
}

@media (max-width: 380px) {
  .ayat-meal {
    display: none;
  }

  .ayat-item {
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 0.5rem);
  }

  .hero-grid {
    gap: 1.35rem;
  }

  .hero-photo-wrap {
    width: min(220px, 68vw);
  }

  .hero-title {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }



  .about-images {
    min-height: 300px;
    padding-bottom: 1.5rem;
  }

  .about-image.main {
    width: 82%;
  }

  .about-image.secondary {
    width: 65%;
  }

  .about-badge {
    right: 0.5rem;
    bottom: 0;
    padding: 1.1rem;
  }

  .about-badge-number {
    font-size: 2rem;
  }

  .journey-card-body {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .journey-card-image {
    height: 180px;
  }

  .anilar-gallery {
    height: 240px;
  }

  .contact-actions {
    padding: 1.5rem 1.15rem;
  }

  .contact-item {
    padding: 1rem;
  }

  .gallery-item,
  .gallery-item.large,
  .gallery-item.wide {
    height: 210px;
  }

  .music-unlock-box {
    padding: 1.25rem;
  }

  .music-unlock-box .unlock-euzu {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.9;
    margin-bottom: 1.5rem;
  }

  .footer-dua {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo.active {
    animation: none;
  }

  .hero-photo.entering,
  .hero-photo.leaving {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Section CTA (index) */
.section-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-cream-dark);
}

.section-cta p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Places page */
.places-page {
  scroll-snap-type: none;
  scroll-padding-top: var(--header-h);
}

.places-page main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

/* Places Page Header Overrides */
.places-page .header {
  background: rgba(26, 77, 62, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: var(--shadow-sm) !important;
  border-bottom: 1px solid rgba(196, 160, 82, 0.15) !important;
}

.places-page .header .logo-text {
  color: var(--color-white) !important;
}

.places-page .header .logo-hoca {
  color: var(--color-gold) !important;
}

.places-page .header .logo-arabic {
  color: var(--color-gold) !important;
}

.places-page .header .nav-links a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.85) !important;
}

.places-page .header .nav-links a:not(.nav-cta):hover,
.places-page .header .nav-links a.active:not(.nav-cta) {
  color: var(--color-gold) !important;
}

.places-page .header .nav-toggle span {
  background: var(--color-white) !important;
}

.places-hero {
  position: relative;
  padding: calc(var(--header-h) + 1.25rem) 0 3rem;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.places-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.places-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 46, 37, 0.9), rgba(15, 46, 37, 0.72)),
    url('../images/medine-unsplash.webp') center/cover no-repeat;
  z-index: 0;
}

.places-hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  text-align: left;
}

.places-hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 320px;
}

.places-hero-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(196, 160, 82, 0.35);
}

.places-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.places-hero-photo.main {
  grid-row: span 2;
  min-height: 280px;
}

.places-hero-photo.secondary {
  min-height: 130px;
}

.places-hero .section-tag {
  color: var(--color-gold-light);
}

.places-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
}

.places-hero-desc {
  font-size: 1.1rem;
  opacity: 0.92;
  line-height: 1.85;
}

.places-hero-stats {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.places-stat {
  text-align: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(196, 160, 82, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  min-width: 100px;
}

.places-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-gold-light);
  line-height: 1.2;
}

.places-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.places-nav-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-cream-dark);
  box-shadow: 0 4px 20px rgba(15, 46, 37, 0.06);
  padding-block: 0.85rem;
}

.places-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.places-nav a {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-emerald);
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.places-nav a:hover {
  background: var(--color-emerald-light);
  color: var(--color-white);
  border-color: var(--color-emerald-light);
}

.places-nav a.active {
  background: var(--color-emerald);
  color: var(--color-white);
  border-color: var(--color-emerald);
  box-shadow: 0 2px 10px rgba(26, 77, 62, 0.22);
}

.places-section {
  padding: 0;
  scroll-margin-top: calc(var(--header-h) + 3.75rem);
}

.places-section.alt {
  background: var(--color-cream);
}

.places-section-banner {
  position: relative;
  padding: 3.5rem 0;
  background: center/cover no-repeat;
  color: var(--color-white);
  overflow: hidden;
}

.places-section-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 46, 37, 0.88), rgba(15, 46, 37, 0.65));
}

.places-banner-medine {
  background-image: url('../images/medine-2.webp');
}

.places-banner-medine-alt {
  background-image: url('../images/medine-unsplash.webp');
}

.places-banner-mekke {
  background-image: url('../images/kabe-unsplash.webp');
}

.places-banner-mekke-alt {
  background-image: url('../images/kabe-2.webp');
}

.places-section-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.places-section-banner .section-title {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.places-section-banner .section-lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto;
}

.places-section-body {
  padding: 3rem 0 4.5rem;
}

.places-section.alt .places-section-body {
  background:
    linear-gradient(180deg, rgba(250, 247, 242, 0.6), transparent 120px),
    var(--color-cream);
}

.places-city {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(196, 160, 82, 0.45);
  border-radius: 50px;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  counter-reset: place-counter;
}

.place-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: placeCardIn 0.55s ease backwards;
  display: flex;
  flex-direction: column;
}

.place-card.has-image {
  padding: 0;
}

.place-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-cream-dark);
}

.place-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 46, 37, 0.55));
  pointer-events: none;
}

.place-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.place-card.has-image:hover .place-card-image img {
  transform: scale(1.06);
}

.place-card.has-image h3,
.place-card.has-image p {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.place-card.has-image h3 {
  padding-top: 1.15rem;
  margin-bottom: 0.55rem;
}

.place-card.has-image p {
  padding-bottom: 1.35rem;
  flex: 1;
}

.places-section.alt .place-card {
  background: var(--color-white);
}

.place-card::before {
  content: counter(place-counter, decimal-leading-zero);
  counter-increment: place-counter;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(196, 160, 82, 0.18);
  line-height: 1;
  z-index: 2;
}

.place-card.has-image::before {
  top: 0.75rem;
  right: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.place-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-emerald));
  border-radius: 4px 0 0 4px;
  opacity: 0.85;
}

.place-card:nth-child(1) { animation-delay: 0.05s; }
.place-card:nth-child(2) { animation-delay: 0.1s; }
.place-card:nth-child(3) { animation-delay: 0.15s; }
.place-card:nth-child(4) { animation-delay: 0.2s; }
.place-card:nth-child(5) { animation-delay: 0.25s; }
.place-card:nth-child(6) { animation-delay: 0.3s; }
.place-card:nth-child(7) { animation-delay: 0.35s; }
.place-card:nth-child(8) { animation-delay: 0.4s; }
.place-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes placeCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 160, 82, 0.4);
}

.place-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-emerald);
  margin-bottom: 0.65rem;
  line-height: 1.35;
  padding-right: 2.5rem;
}

.place-card p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.places-cta {
  position: relative;
  background:
    linear-gradient(135deg, rgba(15, 46, 37, 0.93), rgba(15, 46, 37, 0.82)),
    url('../images/kafile-grup.webp') center/cover no-repeat;
  color: var(--color-white);
  text-align: center;
  padding: 5.5rem 0;
  overflow: hidden;
}

.places-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196, 160, 82, 0.12), transparent 65%);
  pointer-events: none;
}

.places-cta .container {
  position: relative;
  z-index: 1;
}

.places-cta .section-title {
  color: var(--color-white);
}

.places-cta .section-lead {
  color: rgba(255, 255, 255, 0.82);
}

.places-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

@media (max-width: 768px) {
  .places-hero {
    padding: calc(var(--header-h) + 0.75rem) 0 2.25rem;
  }

  .places-hero-content {
    text-align: center;
  }

  .places-hero-title {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    margin-bottom: 0.75rem;
  }

  .places-hero-desc {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .places-hero-stats {
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.75rem;
  }

  .places-stat {
    min-width: 72px;
    padding: 0.55rem 0.75rem;
  }

  .places-stat-num {
    font-size: 1.35rem;
  }

  .places-nav-wrap {
    padding-block: 0.75rem;
  }

  .places-nav {
    gap: 0.45rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .places-nav::-webkit-scrollbar {
    display: none;
  }

  .places-nav a {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
  }

  .places-section-banner {
    padding: 2.5rem 0;
  }

  .places-section-body {
    padding: 2rem 0 3rem;
  }

  .places-grid {
    grid-template-columns: 1fr;
  }

  .places-cta {
    padding: 3.5rem 0;
  }

  .places-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .places-cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* SEO pages & footer links */
.seo-page {
  scroll-snap-type: none;
}

.seo-main {
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 3rem;
  background: var(--color-cream);
}

.seo-article {
  max-width: 820px;
  padding-bottom: 2rem;
}

.seo-breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.seo-breadcrumb a {
  color: var(--color-emerald);
}

.seo-breadcrumb span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.seo-article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-cream-dark);
}

.seo-article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--color-emerald-dark);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.seo-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.seo-meta-line {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.seo-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-emerald);
  margin: 2.25rem 0 1rem;
}

.seo-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-emerald-dark);
  margin: 1.5rem 0 0.75rem;
}

.seo-content p {
  margin-bottom: 1.15rem;
}

.seo-content a {
  color: var(--color-emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-steps {
  margin: 1rem 0 1.5rem 1.25rem;
}

.seo-steps li {
  margin-bottom: 0.85rem;
  padding-left: 0.25rem;
}

.seo-list {
  margin: 1rem 0 1.5rem 1.25rem;
  list-style: disc;
}

.seo-list li {
  margin-bottom: 0.5rem;
}

.seo-faq {
  margin: 1.5rem 0;
}

.seo-faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.seo-faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--color-emerald);
  cursor: pointer;
  list-style: none;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item p {
  padding: 0 1.15rem 1rem;
  margin: 0;
  color: var(--color-text-muted);
}

.seo-related {
  margin: 1rem 0 1.5rem;
  list-style: none;
}

.seo-related li {
  margin-bottom: 0.45rem;
}

.seo-related a {
  font-weight: 500;
}

.seo-cta-box {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-emerald-dark), var(--color-emerald));
  border-radius: var(--radius-md);
  color: var(--color-white);
  text-align: center;
}

.seo-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.seo-cta-box p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.seo-cta-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.seo-cta-btns .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.seo-hub-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.seo-hub-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-emerald-dark);
  margin: 0.5rem 0 1rem;
}

.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.seo-hub-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-emerald);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
}

.seo-hub-list {
  list-style: none;
}

.seo-hub-list li {
  margin-bottom: 0.4rem;
}

.seo-hub-list a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.seo-hub-list a:hover {
  color: var(--color-emerald);
}

.footer-seo {
  width: 100%;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.footer-seo-head {
  margin-bottom: 1.75rem;
}

.footer-seo-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.footer-seo-head p {
  font-size: 0.88rem;
  opacity: 0.65;
  max-width: 560px;
  line-height: 1.6;
}

.footer-seo-all {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-seo-all:hover {
  color: var(--color-white);
}

.footer-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
}

.footer-seo-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.65rem;
}

.footer-seo-col ul {
  list-style: none;
}

.footer-seo-col li {
  margin-bottom: 0.35rem;
}

.footer-seo-col a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-seo-col a:hover {
  color: var(--color-gold-light);
}

@media (max-width: 768px) {
  .seo-main {
    padding-top: calc(var(--header-h) + 0.65rem);
  }

  .seo-article-header h1 {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }

  .seo-lead {
    font-size: 0.95rem;
  }

  .seo-cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-seo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
