/* ══════════════════════════════════════
   XSC — Xtreme Solution Curaçao
   Main Stylesheet
══════════════════════════════════════ */

/* Use system fonts until webfonts load */
:root {
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #1E6FFF;
  --primary-10: rgba(30,111,255,0.10);
  --primary-20: rgba(30,111,255,0.20);
  --primary-30: rgba(30,111,255,0.30);
  --bg:         #050B14;
  --card:       #0D1B2A;
  --border:     rgba(30,111,255,0.18);
  --fg:         #E2E8F0;
  --muted:      #888;
  --white:      #F0EDE8;
  --red:        #e74c3c;
  --green:      #2ecc71;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
  --radius:     12px;
  --shadow:     0 20px 60px rgba(0,0,0,0.5);
  --transition: 0.3s cubic-bezier(0.25,1,0.5,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background:  var(--bg);
  color:       var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
a { color: var(--primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
main { flex: 1; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar { /* blue theme */
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 100;
}
.announcement-bar a { color: #ffffff; font-weight: 700; text-decoration: underline; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-10); opacity: 1; }
.nav .btn-nav {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 50px;
}
.nav .btn-nav:hover { opacity: 0.9; background: var(--primary); color: #fff; }

/* Mobile menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.mobile-nav { display: none; background: var(--card); border-top: 1px solid var(--border); padding: 16px 24px; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--white); font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 10px 30px var(--primary-30); color: #ffffff; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #ffffff; opacity: 1; }
.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }
.section-dark { background: var(--bg); }
.section-card { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--white); margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; font-weight: 300; }
.section-divider { width: 60px; height: 1px; background: var(--primary); margin: 20px auto 0; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  opacity: 0.03;
  pointer-events: none;
}
.hero-title { font-size: clamp(2.5rem, 6vw, 5.5rem); color: var(--white); margin-bottom: 24px; max-width: 900px; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.4rem); color: var(--primary); font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.hero-desc { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 650px; margin: 0 auto 40px; font-weight: 300; line-height: 1.8; }
.hero-divider { width: 80px; height: 1px; background: var(--primary); margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FULL-WIDTH HERO IMAGE ── */
.hero-image {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.55), #111111);
}
.hero-image-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.hero-image-content h1 { font-size: clamp(2.5rem, 5vw, 5rem); color: #fff; margin-bottom: 16px; }
.hero-image-content p { font-size: 20px; color: rgba(255,255,255,0.75); font-weight: 300; max-width: 600px; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--primary-30); transform: translateY(-4px); box-shadow: 0 10px 40px var(--primary-10); }
.card-icon {
  width: 56px; height: 56px;
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

/* ── GRID ── */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }

/* ── ALTERNATING FEATURE ROWS ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-image { order: 2; }
.feature-row.reverse .feature-text { order: 1; }
.feature-image { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.feature-image:hover img { transform: scale(1.05); }
.feature-num { font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--primary); text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.feature-num::after { content: ''; flex: 0 0 30px; height: 1px; background: var(--primary); }
.feature-title { font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--white); margin-bottom: 20px; }
.feature-desc { color: var(--muted); font-size: 17px; line-height: 1.8; font-weight: 300; }
.feature-desc p + p { margin-top: 16px; }

/* ── STATS BAR ── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 48px 24px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 600; color: var(--primary); display: block; }
.stat-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ── FAQ ACCORDION ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); background: var(--card); }
.faq-item.open { border-color: var(--primary-30); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}
.faq-item.open .faq-question { color: var(--primary); }
.faq-chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--muted); font-size: 15px; line-height: 1.8; border-top: 1px solid var(--border); padding-top: 16px; }

/* ── BLOG CARDS ── */
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--primary-30); transform: translateY(-4px); box-shadow: 0 10px 40px var(--primary-10); }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: #222; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-category { position: absolute; top: 16px; left: 16px; background: var(--primary); color: #ffffff; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.blog-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 12px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.blog-title { font-size: 22px; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.blog-excerpt { color: var(--muted); font-size: 14px; line-height: 1.7; flex: 1; margin-bottom: 20px; }
.blog-link { color: var(--primary); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: auto; }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--white);
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: #555; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-error { font-size: 12px; color: var(--red); margin-top: 6px; }

/* ── CONTACT INFO ── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.contact-info-item:hover { background: var(--card); }
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 18px;
}
.contact-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 15px; color: var(--white); font-weight: 500; }

/* ── SERVICE ROWS ── */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 96px; }
.service-row:last-child { margin-bottom: 0; }
.service-row.reverse .service-img { order: 2; }
.service-row.reverse .service-content { order: 1; }
.service-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.service-img:hover img { transform: scale(1.05); }
.service-tag { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.service-title { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--white); margin-bottom: 16px; }
.service-desc { color: var(--muted); font-size: 17px; line-height: 1.8; margin-bottom: 28px; }

/* ── WHY CHOOSE US ── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.why-item { text-align: center; }
.why-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  transition: all var(--transition);
}
.why-item:hover .why-icon { background: var(--primary); }
.why-title { font-size: 22px; color: var(--white); margin-bottom: 12px; }
.why-desc { color: var(--muted); font-size: 15px; line-height: 1.8; }

/* ── CTA SECTION ── */
.cta-box {
  background: var(--card);
  border: 1px solid var(--primary-20);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--primary-10) 0%, transparent 70%);
  pointer-events: none;
}
.cta-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.cta-title { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--white); margin-bottom: 16px; }
.cta-desc { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 auto 40px; font-weight: 300; }

/* ── FOOTER ── */
.site-footer { background: #050B14; border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-serif); font-size: 22px; color: var(--primary); margin-bottom: 12px; }
.footer-tagline { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.footer-heading { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ── FLASH MESSAGES ── */
.flash { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.flash-success { background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.3); color: var(--green); }
.flash-error   { background: rgba(231,76,60,0.1);  border: 1px solid rgba(231,76,60,0.3);  color: var(--red); }
.flash-info    { background: var(--primary-10);     border: 1px solid var(--primary-20);    color: var(--primary); }

/* ── CATEGORY FILTER ── */
.category-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.filter-btn { padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: all var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #ffffff; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); opacity: 1; }
.breadcrumb span { color: var(--primary); }

/* ── PAGE HERO (text only) ── */
.page-hero { padding: 140px 0 80px; text-align: center; border-top: 2px solid var(--primary); }
.page-hero-title { font-size: clamp(3rem, 5vw, 5rem); color: var(--white); margin-bottom: 20px; }
.page-hero-subtitle { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; font-weight: 300; }

/* ── SERVICES OVERVIEW CARDS ── */
.services-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition); }
.services-card:hover { border-color: var(--primary-30); transform: translateY(-4px); }
.services-card-img { aspect-ratio: 16/9; overflow: hidden; background: #222; }
.services-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.services-card:hover .services-card-img img { transform: scale(1.05); }
.services-card-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.services-card-title { font-size: 28px; color: var(--white); margin-bottom: 12px; }
.services-card-desc { color: var(--muted); font-size: 15px; line-height: 1.8; flex: 1; margin-bottom: 24px; }
.services-card-footer { border-top: 1px solid var(--border); padding-top: 20px; }

/* ── STAFF PORTAL ── */
.staff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  transition: all var(--transition);
}
.staff-card:hover { border-color: var(--primary-30); transform: translateY(-4px); }
.staff-card-icon { font-size: 48px; margin-bottom: 20px; }
.staff-card-title { font-size: 26px; color: var(--white); margin-bottom: 12px; }
.staff-card-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }

/* ── LINKTREE PAGE ── */
.linktree-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 60px 24px; }
.linktree-logo { width: 100px; height: 100px; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: var(--font-serif); font-size: 28px; color: var(--primary); font-weight: 700; }
.linktree-name { font-family: var(--font-serif); font-size: 28px; color: var(--white); text-align: center; margin-bottom: 8px; }
.linktree-tagline { color: var(--muted); text-align: center; font-size: 15px; margin-bottom: 40px; }
.linktree-links { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.linktree-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
}
.linktree-link:hover { background: var(--primary); border-color: var(--primary); color: #ffffff; opacity: 1; transform: translateY(-2px); }
.linktree-link img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .feature-row, .service-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-image,
  .service-row.reverse .service-img { order: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-image { height: 50vh; }
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { padding: 14px 32px; }
}

/* ── Global SVG size fix ── */
.portals-dropdown a svg,
.portals-dropdown svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
.mobile-portals-toggle svg,
.mobile-portals-sub a svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
}
.mobile-portals-sub a svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}

/* ══ PORTALS SVG FIX — force small chevron ══ */
.portals-btn svg,
.portals-btn > svg,
button.portals-btn svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  min-height: 12px !important;
  max-height: 12px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}
.mob-portals-btn svg,
.mobile-portals-toggle svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}
.portals-dropdown a svg {
  width: 12px !important;
  height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  flex-shrink: 0 !important;
}

/* ══════════════════════════════════════
   MOBILE OPTIMIZATIONS
══════════════════════════════════════ */

/* Base mobile fixes */
@media (max-width: 768px) {
  html { font-size: 15px; }
  
  /* Header */
  .header-inner { height: 64px; padding: 0 16px; }
  .site-header { top: 0 !important; }
  
  /* Typography scaling */
  h1, .hero-title, .svc-hero-title, .about-hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.15 !important;
  }
  h2, .svc-rows-title, .svc-cta-title, .about-story-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
  }

  /* Sections padding */
  .svc-hero { padding: 96px 16px 64px !important; }
  .svc-overview { padding: 48px 0 !important; }
  .svc-overview-inner { padding: 0 16px !important; }
  .svc-overview-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .svc-rows { padding: 48px 0 64px !important; }
  .svc-rows-inner { padding: 0 16px !important; }
  .svc-row { grid-template-columns: 1fr !important; gap: 24px !important; margin-bottom: 64px !important; }
  .svc-why { padding: 48px 0 !important; }
  .svc-why-inner { padding: 0 16px !important; }
  .svc-why-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .svc-cta { padding: 64px 0 !important; }
  .svc-cta-inner { padding: 0 16px !important; }
  .svc-cta-btn { padding: 14px 32px !important; font-size: 16px !important; }

  /* About page */
  .about-story-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .about-stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .about-mvv-grid { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Services page */
  .svc-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .svc-hero { padding: 96px 16px 48px !important; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* FAQ */
  .faq-accordion-wrap { padding: 0 16px !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Footer */
  .footer-grid, .ftr-grid { 
    grid-template-columns: 1fr !important; 
    gap: 28px !important;
    padding: 40px 16px !important;
  }

  /* General padding fix */
  .feat-wrap, .svc-wrap, .faq-wrap, .blog-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Home features */
  .feat-row, .feat-row.rev { 
    flex-direction: column !important; 
    gap: 28px !important;
    margin-bottom: 64px !important;
  }
  .feat-img, .feat-text { width: 100% !important; }
  .features-sec { padding: 48px 0 !important; }

  /* Admin */
  .stat-cards { grid-template-columns: 1fr 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* Small phones */
@media (max-width: 400px) {
  .svc-cta-btn { padding: 12px 24px !important; width: 100%; justify-content: center; }
  .about-stats-grid { grid-template-columns: 1fr !important; }
  .hero-btn { padding: 12px 28px !important; font-size: 16px !important; }
}

/* Mobile performance: reduce animations but keep heroes visible */
@media (max-width: 768px) {
  .anim:not(#heroAnim):not(#faqHeroAnim):not(#blogHeroAnim):not(.portal-hero-inner):not(.svc-hero-inner) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Force hero elements visible on mobile */
  #heroAnim, #faqHeroAnim, #blogHeroAnim, .portal-hero-inner, .svc-hero-inner {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Also fix inline opacity:0 on services/cards */
  #svcHero {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero text always white + dark overlay when bg image set */
.faq-hero, .blog-hero, .staff-hero, .contact-hero, .svc-hero, .about-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.faq-hero-title, .faq-hero-subtitle,
.blog-hero-title, .blog-hero-subtitle,
.staff-hero-title, .staff-hero-subtitle,
.contact-hero-title, .contact-hero-subtitle, .contact-hero-eyebrow,
.svc-hero-title, .svc-hero-sub, .svc-hero-intro,
.about-hero-title, .about-hero-subtitle {
  color: var(--white) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}