/* ============================================================
   SAUDI EXPAT GUIDE — style.css
   Global Variables, Reset & Base Styles
   © 2026 Saudi Expats Guide
============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  /* Core Brand Colors */
  --navy          : #0A1A3C;
  --gold          : #C5A059;
  --teal          : #008080;
  --white         : #FFFFFF;
  --text          : #333333;
  --bg-off-white  : #F9F9F7;
  --success       : #27AE60;
  --cta-orange    : #D35400;

  /* Extended Shades */
  --navy-light    : #1A2D5A;
  --navy-dark     : #060F24;
  --gold-light    : #D4B07A;
  --gold-dark     : #A8823D;
  --teal-light    : #009999;
  --teal-dark     : #006666;
  --text-light    : #666666;
  --text-muted    : #999999;
  --border        : #E0E0E0;
  --shadow        : rgba(10, 26, 60, 0.10);
  --shadow-md     : rgba(10, 26, 60, 0.18);
  --overlay       : rgba(10, 26, 60, 0.75);

  /* Semantic Colors */
  --warning       : #F39C12;
  --danger        : #E74C3C;
  --info          : #2980B9;

  /* Font Families */
  --font-heading  : 'Poppins', sans-serif;
  --font-body     : 'Inter', sans-serif;
  --font-article  : 'Lora', serif;

  /* Font Sizes */
  --text-xs       : 11px;
  --text-sm       : 13px;
  --text-base     : 16px;
  --text-md       : 18px;
  --text-lg       : 20px;
  --text-xl       : 24px;
  --text-2xl      : 30px;
  --text-3xl      : 36px;
  --text-4xl      : 42px;
  --text-5xl      : 52px;

  /* Font Weights */
  --weight-light  : 300;
  --weight-regular: 400;
  --weight-medium : 500;
  --weight-semi   : 600;
  --weight-bold   : 700;
  --weight-black  : 800;

  /* Line Heights */
  --leading-tight : 1.2;
  --leading-normal: 1.6;
  --leading-loose : 1.8;

  /* Letter Spacing */
  --tracking-tight : -0.5px;
  --tracking-normal:  0px;
  --tracking-wide  :  1.5px;
  --tracking-wider :  2.5px;

  /* Layout */
  --container     : 1200px;
  --container-sm  : 900px;
  --radius        : 8px;
  --radius-lg     : 16px;
  --radius-xl     : 24px;

  /* Transitions */
  --transition    : all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* ── Global Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background-color: var(--bg-off-white);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography Base ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl);  }
h4 { font-size: var(--text-lg);  }
h5 { font-size: var(--text-base);}
h6 { font-size: var(--text-sm);  }

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  line-height: var(--leading-normal);
  margin-bottom: 1rem;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--teal-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Spacing ── */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

/* ── Section Heading ── */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: 12px;
}

.section-heading h2 span {
  color: var(--gold);
}

.section-heading p {
  font-size: var(--text-md);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 20px;
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--weight-semi);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: var(--cta-orange);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #b94600;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.35);
}

.btn-secondary {
  background-color: var(--teal);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 128, 128, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 2px 15px var(--shadow);
  transition: var(--transition);
  border-top: 3px solid var(--gold);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-md);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.badge-teal {
  background-color: rgba(0, 128, 128, 0.12);
  color: var(--teal);
}

.badge-gold {
  background-color: rgba(197, 160, 89, 0.15);
  color: var(--gold-dark);
}

.badge-navy {
  background-color: rgba(10, 26, 60, 0.10);
  color: var(--navy);
}

/* ── Utility Classes ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-navy    { color: var(--navy); }
.text-gold    { color: var(--gold); }
.text-teal    { color: var(--teal); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--text-muted); }
.text-light   { color: var(--text-light); }
.bg-navy      { background-color: var(--navy); }
.bg-white     { background-color: var(--white); }
.bg-off-white { background-color: var(--bg-off-white); }
.bg-teal      { background-color: var(--teal); }
.fw-bold      { font-weight: var(--weight-bold); }
.fw-semi      { font-weight: var(--weight-semi); }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(39, 174, 96, 0.5);
}

.whatsapp-float i {
  color: var(--white);
  font-size: 26px;
}

/* ── Back To Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 42px;
  height: 42px;
  background-color: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--shadow);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--teal);
  transform: translateY(-3px);
}

/* ── Alert Boxes ── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: var(--text-base);
  border-left: 4px solid;
}

.alert-info {
  background-color: rgba(41, 128, 185, 0.08);
  border-color: var(--info);
  color: #1a5276;
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.08);
  border-color: var(--warning);
  color: #7d6608;
}

.alert-success {
  background-color: rgba(39, 174, 96, 0.08);
  border-color: var(--success);
  color: #1e8449;
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.08);
  border-color: var(--danger);
  color: #922b21;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Selection Color ── */
::selection {
  background-color: var(--teal);
  color: var(--white);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}