/* ============================================================================
   UAE LIVING TIPS — DESIGN SYSTEM
   Identity: "Lagoon & Gold" — deep teal lagoon, sand paper, falcon gold,
   clay-terracotta accent. Serif display (editorial), sans body, mono data
   (rents/prices read like a ledger, not a brochure).
   ============================================================================ */

:root {
  /* Color */
  --sand: #FBF7F1;
  --sand-dim: #F2EBDF;
  --ink: #1B2421;
  --ink-soft: #4A5550;
  --lagoon: #0B3B3C;
  --lagoon-deep: #062626;
  --gold: #C8932B;
  --gold-light: #E3B65A;
  --clay: #A6502A;
  --line: rgba(27, 36, 33, 0.12);
  --line-on-dark: rgba(251, 247, 241, 0.16);
  --white: #ffffff;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Scale */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(11,59,60,0.06), 0 8px 24px rgba(11,59,60,0.08);
  --shadow-card-hover: 0 4px 10px rgba(11,59,60,0.10), 0 18px 40px rgba(11,59,60,0.16);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Eyebrow / signature divider ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-divider {
  height: 14px;
  background-image: repeating-linear-gradient(
    135deg, var(--gold) 0 6px, transparent 6px 14px
  );
  opacity: 0.55;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--lagoon);
  color: var(--sand);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 0 var(--line-on-dark);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.18); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.25s ease;
}
.site-header.is-scrolled .header-inner { padding: 11px 24px; }

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--sand);
  white-space: nowrap;
}
.logo span { color: var(--gold); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(251,247,241,0.82);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--sand); padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--lagoon-deep);
  color: var(--sand);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  padding: 22px 24px;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a {
  font-family: var(--font-display); font-size: 26px;
  padding: 12px 0; border-bottom: 1px solid var(--line-on-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(6,38,38,0.35) 0%, rgba(6,38,38,0.55) 55%, rgba(6,38,38,0.92) 100%), var(--lagoon-deep);
  background-size: cover;
  background-position: center;
  color: var(--sand);
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px;
  opacity: 0; animation: rise 0.7s ease forwards 0.1s;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  max-width: 16ch;
  color: var(--white);
  margin-bottom: 22px;
  opacity: 0; animation: rise 0.7s ease forwards 0.25s;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: translateY(0);} }

.search-pill {
  background: var(--sand);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  display: flex; align-items: center; gap: 10px;
  max-width: 640px;
  box-shadow: var(--shadow-card-hover);
  opacity: 0; animation: rise 0.7s ease forwards 0.4s;
}
.search-pill input {
  flex: 1; border: none; outline: none; background: none;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 10px 0;
}
.search-pill button {
  background: var(--clay); color: var(--white); border: none;
  border-radius: 999px; padding: 12px 22px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background 0.15s ease;
}
.search-pill button:hover { background: var(--lagoon); }

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px;
  opacity: 0; animation: rise 0.7s ease forwards 0.55s;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-on-dark);
  background: rgba(251,247,241,0.08);
  color: var(--sand);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: rgba(251,247,241,0.18); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--lagoon-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
.block-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.block-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.block-head .view-all { font-family: var(--font-mono); font-size: 13px; color: var(--clay); border-bottom: 1px solid var(--clay); padding-bottom: 2px; }

/* Trending cards */
.trend-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.trend-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px 18px; box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.trend-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.trend-card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.trend-card h3 { font-size: 17px; margin: 10px 0 8px; }
.trend-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* City cards */
.city-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.city-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; background: var(--lagoon-deep);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.city-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.78; transition: opacity 0.25s ease, transform 0.4s ease; }
.city-card:hover img { opacity: 0.92; transform: scale(1.04); }
.city-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,38,38,0.92) 100%); }
.city-card .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: var(--sand); z-index: 2; }
.city-card .content .status { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 4px; }
.city-card h3 { font-size: 21px; margin: 0; color: var(--white); }

/* Generic content cards (categories, things to do, etc.) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.content-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.content-card .thumb { aspect-ratio: 16/10; background: var(--sand-dim); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-soft); font-family: var(--font-mono); }
.content-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card .body { padding: 18px 20px 22px; }
.content-card h3 { font-size: 18px; margin: 0 0 8px; }
.content-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Category nav strip (used on category hub pages) */
.cat-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-chip {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cat-chip:hover, .cat-chip.is-active { background: var(--lagoon); color: var(--sand); border-color: var(--lagoon); }

/* ---------- City template ---------- */
.city-hero {
  position: relative; min-height: 56vh; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(6,38,38,0.25) 0%, rgba(6,38,38,0.88) 100%), var(--lagoon-deep) center/cover;
  color: var(--white);
}
.city-hero-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px 44px; width: 100%; }
.city-hero .breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold-light); margin-bottom: 14px; }
.city-hero .breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.city-hero h1 { font-size: clamp(32px, 5.5vw, 56px); margin-bottom: 10px; }
.city-hero .tagline { font-size: 17px; color: rgba(251,247,241,0.85); max-width: 60ch; }

.stat-strip { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: -34px auto 0; max-width: var(--container); position: relative; z-index: 3; background: var(--white); box-shadow: var(--shadow-card); }
.stat-strip .stat { flex: 1; padding: 18px 22px; border-right: 1px solid var(--line); }
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .stat .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.stat-strip .stat .value { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--lagoon); }

.prose { max-width: 78ch; font-size: 16px; color: var(--ink-soft); }
.prose p { margin: 0 0 1.1em; }

/* Area cards */
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.area-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); }
.area-card h3 { font-size: 20px; margin-bottom: 6px; }
.area-card .good-for { font-family: var(--font-mono); font-size: 12px; color: var(--clay); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.area-card p.desc { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }
.rent-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; margin-bottom: 16px; }
.rent-table th, .rent-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.rent-table th { color: var(--ink-soft); font-weight: 500; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; }
.rent-table td { font-weight: 600; color: var(--lagoon); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13.5px; }
.pros-cons .pros { color: #1d6b3f; }
.pros-cons .cons { color: var(--clay); }
.pros-cons strong { display: block; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.area-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.area-meta strong { color: var(--ink); }

.empty-note {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--ink-soft); font-size: 14px;
}

/* ---------- Coming soon ---------- */
.coming-soon { padding: 120px 0; text-align: center; }
.coming-soon h1 { font-size: clamp(32px, 5vw, 52px); }
.coming-soon p { color: var(--ink-soft); max-width: 50ch; margin: 14px auto 28px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lagoon-deep); color: rgba(251,247,241,0.78); padding: 56px 0 28px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-on-dark); }
.footer-grid h4 { color: var(--gold-light); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 14px; padding: 5px 0; color: rgba(251,247,241,0.78); }
.footer-grid a:hover { color: var(--gold-light); }
.footer-logo { font-family: var(--font-display); font-size: 22px; color: var(--white); margin-bottom: 10px; }
.footer-logo span { color: var(--gold); }
.footer-about { font-size: 13.5px; max-width: 32ch; color: rgba(251,247,241,0.6); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 12.5px; color: rgba(251,247,241,0.5); flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .trend-grid { grid-template-columns: repeat(3, 1fr); }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .trend-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .stat-strip { flex-wrap: wrap; margin-top: 0; }
  .stat-strip .stat { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .hero { min-height: 86vh; }
  .search-pill { flex-direction: column; align-items: stretch; padding: 14px; border-radius: 20px; }
  .search-pill button { width: 100%; }
}
