/* ============================================================
   ATLAS IMMIGRATION AND SERVICES INC.: MODERN STYLESHEET
   ============================================================ */

/* --- Variables --- */
:root {
  --crimson:       #8B1520;
  --crimson-dark:  #6B0F18;
  --crimson-light: #A52030;
  --navy:          #0F1E3D;
  --navy-light:    #1A3060;
  --gold:          #C9A84C;
  --gold-light:    #E8C96A;
  --gold-pale:     #F8F0D8;
  --white:         #FFFFFF;
  --off-white:     #F8F6F0;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F2EF;
  --gray-200:      #E5E4DF;
  --gray-300:      #D1D0C8;
  --gray-400:      #9C9B93;
  --gray-500:      #6B6A62;
  --gray-600:      #4B4A44;
  --gray-700:      #3A3935;
  --gray-900:      #1A1918;
  --text:          #1A1A2E;
  --text-muted:    #5A5A6E;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow:        0 4px 14px rgba(0,0,0,0.09);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.11);
  --shadow-lg:     0 16px 40px rgba(0,0,0,0.14);
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --transition:    all 0.28s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

/* --- Container --- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 28px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.navbar-logo {
  width: 42px;
  height: 42px;
  background: var(--crimson);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.navbar-title {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}
.navbar-title span {
  color: var(--gold);
  display: block;
  font-size: 0.68rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.13);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* ============================================================
   HERO: HOME
   ============================================================ */
.hero {
  position: relative;
  min-height: 500px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--crimson-dark) 55%, #3a0d10 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.60;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,30,61,0.72) 0%, rgba(107,15,24,0.45) 55%, rgba(15,30,61,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 28px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.18);
  border: 1px solid rgba(201,168,76,0.45);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-content h1 {
  font-size: 3.2rem;
  color: white;
  margin-bottom: 10px;
  max-width: 720px;
}
.hero-content h1 em { color: var(--gold); font-style: normal; }
.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO: INTERIOR PAGES
   ============================================================ */
.page-hero {
  position: relative;
  height: 230px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--crimson-dark) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.50;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,30,61,0.78) 0%, rgba(107,15,24,0.55) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 28px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-content h1 {
  color: white;
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { opacity: 0.4; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section    { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-alt { background: var(--off-white); }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
}
.section-title {
  font-size: 2.1rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 44px;
}
.title-line {
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ============================================================
   GRID
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-body { padding: 28px; }
.card-icon {
  width: 54px;
  height: 54px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.btn-primary   { background: var(--crimson); color: white; }
.btn-primary:hover { background: var(--crimson-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(139,21,32,0.38); }
.btn-secondary { background: var(--gold); color: var(--navy); }
.btn-secondary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline   { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn-navy      { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,30,61,0.38); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--navy);
  padding: 48px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  margin: auto;
  height: 60px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   SERVICE LIST (HOME)
   ============================================================ */
.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-item:hover {
  border-left-color: var(--crimson);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.service-num {
  width: 26px;
  height: 26px;
  background: var(--crimson);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-text { font-size: 0.91rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   SERVICE BLOCKS (SERVICES PAGE)
   ============================================================ */
.service-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-100);
}
.service-block:last-child { border-bottom: none; }
.service-block-img {
  width: 260px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.service-block-img img { width: 100%; height: 100%; object-fit: cover; }
.service-block-content h3 {
  font-size: 1.5rem;
  color: var(--crimson);
  margin-bottom: 6px;
}
.service-block-content .service-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.service-block-content p {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--crimson);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
  transition: var(--transition);
}
.back-link:hover { color: var(--crimson-dark); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.form-label .req { color: var(--crimson); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(139,21,32,0.09);
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6A62' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.78rem; color: var(--gray-400); margin-top: 5px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  cursor: pointer;
}
.form-check:hover { background: var(--gray-50); }
.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--crimson);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-check-label { font-size: 0.9rem; color: var(--gray-600); cursor: pointer; line-height: 1.6; }

/* ============================================================
   POINT CALCULATOR
   ============================================================ */
.calc-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.calc-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--crimson-dark) 100%);
  padding: 36px 44px;
}
.calc-header h2 { color: white; font-size: 1.9rem; margin-bottom: 8px; }
.calc-header p { color: rgba(255,255,255,0.72); font-size: 0.93rem; line-height: 1.6; }
.calc-body { padding: 40px 44px; }

.calc-section { margin-bottom: 36px; }
.calc-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.points-badge {
  display: inline-flex;
  align-items: center;
  background: var(--gold-pale);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.35);
  letter-spacing: 0.04em;
}

.calc-result {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  text-align: center;
  color: white;
  margin-top: 8px;
  display: none;
}
.calc-result.show { display: block; }
.result-score {
  font-size: 5.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.result-label { font-size: 1.1rem; opacity: 0.9; margin-bottom: 6px; }
.result-verdict {
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 100px;
  display: inline-block;
  margin: 12px 0 20px;
  font-weight: 600;
}
.verdict-pass { background: rgba(22,163,74,0.25); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.verdict-fail { background: rgba(239,68,68,0.2); color: #fca5a5; border: 1px solid rgba(252,165,165,0.3); }
.result-note { font-size: 0.82rem; opacity: 0.65; max-width: 480px; margin: 0 auto; line-height: 1.6; }

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 24px;
}
.breakdown-item {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: left;
}
.breakdown-item .b-label { font-size: 0.75rem; opacity: 0.65; margin-bottom: 4px; }
.breakdown-item .b-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
}

/* ============================================================
   INFO BOXES
   ============================================================ */
.info-box {
  background: var(--gold-pale);
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid rgba(201,168,76,0.28);
  margin-bottom: 24px;
}
.info-box h4 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.info-box p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.7; }

.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.alert-warning { background: #FFFBEB; border-left: 4px solid var(--gold); color: #92400E; }
.alert-success { background: #F0FDF4; border-left: 4px solid #16A34A; color: #15803D; }
.alert-info    { background: #EFF6FF; border-left: 4px solid #3B82F6; color: #1D4ED8; }
.alert-danger  { background: #FEF2F2; border-left: 4px solid var(--crimson); color: var(--crimson-dark); }

/* ============================================================
   USEFUL LINKS
   ============================================================ */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  color: inherit;
}
.link-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  transform: translateX(6px);
}
.link-icon {
  width: 46px;
  height: 46px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.link-info { flex: 1; }
.link-title { font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 3px; }
.link-desc  { font-size: 0.81rem; color: var(--text-muted); }
.link-arrow { color: var(--gray-300); font-size: 1.1rem; transition: var(--transition); }
.link-card:hover .link-arrow { color: var(--crimson); transform: translateX(4px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: white;
}
.contact-card h3 { color: var(--gold); margin-bottom: 24px; font-size: 1.15rem; }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.cd-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,168,76,0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.cd-text strong { display: block; color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 600; margin-bottom: 2px; letter-spacing: 0.04em; text-transform: uppercase; }
.cd-text span { color: rgba(255,255,255,0.65); }
.contact-divider { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 24px 0; }

.map-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-400);
  font-size: 0.9rem;
  border: 2px dashed var(--gray-200);
  margin-top: 20px;
}

/* ============================================================
   CANADA PAGE
   ============================================================ */
.canada-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.canada-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 10px;
  font-style: italic;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy), var(--crimson-dark));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 4rem;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.08);
  transition: filter 0.5s ease;
}
.about-photo img:hover { filter: grayscale(60%) contrast(1.05); }
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  margin-right: 8px;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.prose h2 { font-size: 1.55rem; color: var(--navy); margin: 36px 0 12px; }
.prose h3 { font-size: 1.15rem; color: var(--navy); margin: 24px 0 8px; }
.prose p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.85; margin-bottom: 16px; }
.prose ul { margin-left: 20px; margin-bottom: 16px; }
.prose ul li { color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; margin-bottom: 6px; list-style: disc; }
.prose a  { color: var(--crimson); text-decoration: underline; }
.prose .last-updated { font-size: 0.82rem; color: var(--gray-400); margin-top: -8px; margin-bottom: 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: white;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 4px;
}
.footer-brand-sub { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.06em; margin-bottom: 14px; text-transform: uppercase; }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.86rem; line-height: 1.75; margin-bottom: 20px; }
.footer-cicc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius);
}
.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.86rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}
.footer-contact-row strong { color: rgba(255,255,255,0.85); display: block; font-size: 0.75rem; margin-bottom: 1px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom a:hover { color: white; }
.footer-bottom-links { display: flex; gap: 20px; }

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--crimson); transform: translateY(-2px); }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  z-index: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
  color: white;
}
.whatsapp-btn:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
.whatsapp-btn svg { flex-shrink: 0; }

/* ============================================================
   GLOBAL: TOUCH & ACCESSIBILITY BASELINE
   ============================================================ */

/* Prevent iOS double-tap zoom on buttons/links */
a, button, [role="button"] { touch-action: manipulation; }

/* Prevent iOS font size adjustment */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Form inputs: 16px prevents iOS auto-zoom */
.form-control {
  font-size: 16px;       /* overrides 0.93rem; intentional for mobile */
  min-height: 44px;      /* WCAG minimum touch target */
}
textarea.form-control { min-height: 110px; }

/* Minimum touch target on all interactive elements */
.btn { min-height: 44px; }
.nav-links a { min-height: 44px; display: flex; align-items: center; }
.form-check { min-height: 44px; align-items: center; }
.form-check-input { width: 20px; height: 20px; flex-shrink: 0; }
.link-card { min-height: 64px; }

/* Smooth scrolling with reduced-motion respect */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   RESPONSIVE: TABLET LARGE  (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .navbar-inner { padding: 0 20px; }
  .nav-links a  { font-size: 0.78rem; padding: 7px 9px; }
  .navbar-title { font-size: 0.98rem; }
}

/* ============================================================
   RESPONSIVE: TABLET  (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .container, .container-sm { padding: 0 20px; }
  .grid-3   { grid-template-columns: repeat(2,1fr); }
  .grid-4   { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-block { grid-template-columns: 1fr; }
  .service-block-img { width: 100%; max-width: 380px; }
  .breakdown-grid { grid-template-columns: repeat(2,1fr); }
  .hero-content h1 { font-size: 2.6rem; }
  .calc-header { padding: 28px 32px; }
  .calc-body   { padding: 32px; }
  .about-photo { max-height: 440px; }
}

/* ============================================================
   RESPONSIVE: MOBILE LANDSCAPE / SMALL TABLET  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* --- Navbar --- */
  .navbar { position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0; z-index: 999;
    background: var(--navy);
    padding: 8px 12px 16px;
    gap: 2px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    justify-content: flex-start;
  }
  .navbar-title { font-size: 0.95rem; }

  /* --- Hero --- */
  .hero { min-height: 340px; }
  .hero-content { padding: 60px 20px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p  { font-size: 0.93rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-cta   { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* --- Page hero --- */
  .page-hero { height: 180px; }
  .page-hero-content { padding: 0 20px; }
  .page-hero-content h1 { font-size: 1.7rem; }

  /* --- Sections --- */
  .section    { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .container, .container-sm { padding: 0 16px; }

  /* --- Grids --- */
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }

  /* --- Stats strip --- */
  .stats-strip { padding: 36px 0; }
  .stat-num  { font-size: 2rem; }
  .stat-label { font-size: 0.8rem; }

  /* --- Cards --- */
  .card-body { padding: 22px; }

  /* --- Calculator --- */
  .calc-header { padding: 24px 20px; }
  .calc-header h2 { font-size: 1.5rem; }
  .calc-body   { padding: 20px; }
  .breakdown-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .breakdown-item { padding: 10px 12px; }
  .result-score { font-size: 4rem; }

  /* --- Forms --- */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 16px; }

  /* --- Service blocks --- */
  .service-block { padding: 36px 0; gap: 24px; }
  .service-block-img { font-size: 2rem; }

  /* --- About photo --- */
  .about-photo { max-height: 320px; }

  /* --- Contact cards --- */
  .contact-card { padding: 24px; }

  /* --- Footer --- */
  .footer { padding-top: 48px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 16px 0;
  }
  .footer-bottom-links { justify-content: center; }

  /* --- Table (calculator reference) --- */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
  table { min-width: 420px; }
}

/* ============================================================
   RESPONSIVE: MOBILE PORTRAIT  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .page-hero-content h1 { font-size: 1.45rem; }
  .section-title { font-size: 1.65rem; }

  /* Stats: 2 per row */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-num   { font-size: 1.7rem; }

  /* Calculator breakdown: 1 col */
  .breakdown-grid { grid-template-columns: 1fr; }
  .result-score   { font-size: 3.5rem; }

  /* Buttons full-width in CTAs where inside flex col */
  .hero-cta .btn { font-size: 0.95rem; }

  /* Reduce card-body padding */
  .card-body { padding: 18px; }
  .calc-header { padding: 20px 16px; }
  .calc-body   { padding: 16px; }

  /* Reduce section padding */
  .section { padding: 36px 0; }
  .container, .container-sm { padding: 0 14px; }

  /* Footer brand */
  .footer-brand-name { font-size: 1.05rem; }
  .footer-desc { font-size: 0.83rem; }

  /* Navbar title trimming */
  .navbar-title { font-size: 0.88rem; }
  .navbar-logo  { width: 36px; height: 36px; font-size: 1.1rem; }
  .navbar-inner { gap: 8px; }
}

/* ============================================================
   RESPONSIVE: VERY SMALL  (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  .hero-content h1 { font-size: 1.4rem; }
  .stat-num { font-size: 1.5rem; }
  .btn { padding: 11px 18px; font-size: 0.88rem; }
  .btn-lg { padding: 14px 22px; font-size: 0.93rem; }
}

/* ============================================================
   LANGUAGE TOGGLE (Farsi / English via Google Translate)
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-left: 10px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.6);
}

/* Google Translate: hide ONLY the top banner bar (legacy class +
   current obfuscated class). Never hide other skiptranslate
   iframes and never remove them from the DOM — the engine needs
   them to apply the (lazy, viewport-first) translation. */
.goog-te-banner-frame,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
  visibility: hidden !important;
}
/* Google offsets <body> to make room for the bar; cancel it */
body { top: 0 !important; }
/* Move widget off-screen; display:none stops it initialising its <select> */
#google_translate_element {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* Hide "translated by Google" popup */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc { display: none !important; }

@media (max-width: 480px) {
  .lang-toggle { font-size: 0.75rem; padding: 4px 10px; margin-left: 6px; }
}
