/* ============================================================
   global.css — real-estate-seo.ae
   Reset · Tokens · Layout · Header · Footer · Utilities
   ============================================================ */

/* --- Design Tokens ----------------------------------------- */
:root {
  --color-primary:       #0891b2;
  --color-primary-dark:  #0e7490;
  --color-primary-light: #e0f2fe;
  --color-accent:        #d97706;
  --color-accent-light:  #fef3c7;
  --color-accent-dark:   #b45309;
  --color-text:          #0f172a;
  --color-muted:         #64748b;
  --color-bg:            #f8fafc;
  --color-surface:       #ffffff;
  --color-border:        #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-hero:          #0c2232;

  --max-width: 860px;
  --radius:    8px;
  --radius-sm: 4px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  --transition: 0.18s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-primary); }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* --- Layout ------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Site Header ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-hero);
  border-bottom: 1px solid rgba(8,145,178,.3);
  height: 64px;
}

.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.site-logo__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.site-logo__tagline {
  font-size: 0.625rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(8,145,178,.25);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
@media (max-width: 767px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-hero);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(8,145,178,.3);
    gap: 0.15rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
  }
}

/* --- Site Footer ------------------------------------------- */
.site-footer {
  background: var(--color-hero);
  color: rgba(255,255,255,.6);
  font-size: 0.8125rem;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.site-footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--transition);
}
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .site-logo { margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
  margin: 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p { margin: 0; font-size: 0.75rem; }

.footer-disclaimer {
  font-size: 0.6875rem;
  color: rgba(255,255,255,.35);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* --- Utility Components ------------------------------------ */

/* Callout block */
.callout {
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: #0c4a6e;
}

.callout--neutral {
  background: #f1f5f9;
  border-left-color: var(--color-border-strong);
  color: var(--color-muted);
}

/* Stat card */
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* Tag chip */
.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  text-decoration: none;
  white-space: nowrap;
}

.tag--accent {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

/* Section spacing */
.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section__heading {
  margin-bottom: 1.25rem;
}

.section__intro {
  color: var(--color-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 680px;
}
