/* ============================================================
   SMS PROS — UI Polish  v1.4.0
   Global nav + footer styles  +  homepage bug fixes #2–#9
   ============================================================ */

/* ── CSS Variables (global, all pages) ────────────────────── */
:root {
  --navy:   #0A1128;
  --blue:   #1558D6;
  --orange: #FF6B2B;
  --white:  #FFFFFF;
  --text-dark: #111118;
  --light-gray: #EFEFED;
  --border-light: rgba(255,255,255,0.08);
  --diag-h: 40px;
}
@media (min-width: 768px)  { :root { --diag-h: 64px; } }
@media (min-width: 1280px) { :root { --diag-h: 96px; } }

/* ── Global body base (non-homepage pages) ─────────────────── */
body.page {
  font-family: 'Raleway', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

/* Inner pages: nav always dark (no dark hero behind it) */
body.page nav {
  background: rgba(10,17,40,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21,88,214,0.2);
  padding: 16px 60px;
}
@media (max-width: 1100px) { body.page nav { padding: 14px 36px; } }
@media (max-width: 767px)  { body.page nav { padding: 12px 20px; } }
@media (max-width: 480px)  { body.page nav { padding: 12px 16px; } }

/* ── Global nav ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 60px;
  transition: background 0.5s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
nav.scrolled {
  background: rgba(10,17,40,0.94);
  backdrop-filter: blur(14px);
  padding: 16px 60px;
  border-bottom: 1px solid rgba(21,88,214,0.2);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; cursor: pointer; transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.85; }
.logo-img  { height: 38px; width: auto; display: block; }
.logo-blue { display: none; }
nav.scrolled .logo-white { display: block !important; }
nav.scrolled .logo-blue  { display: none  !important; }
.nav-links {
  display: flex; align-items: center; gap: 38px; list-style: none;
}
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.3s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-ctas { display: flex; align-items: center; gap: 10px; }
.btn-nav {
  font-family: 'Raleway', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 10px 20px; border-radius: 50px;
  cursor: pointer; text-decoration: none; transition: all 0.3s; white-space: nowrap;
  display: inline-block;
}
.btn-join {
  background: var(--orange); border: 1.5px solid var(--orange); color: #fff;
}
.btn-join:hover {
  background: #ff8044; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,107,43,0.4);
}
.btn-quote {
  background: var(--blue); border: 1.5px solid var(--blue); color: #fff;
}
.btn-quote:hover {
  background: #1a6aff; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(21,88,214,0.4);
}

/* ── Global footer ────────────────────────────────────────── */
footer {
  background: var(--blue);
  padding: 80px 60px 40px;
  margin-top: 0;
  position: relative;
}
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.14); margin-bottom: 32px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-logo-wordmark { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; color: #fff; }
.footer-logo-wordmark .pros { font-weight: 300; }
.footer-logo-sub { font-size: 7px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-top: 3px; }
.footer-tagline { font-size: 13px; font-weight: 400; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 255px; margin-top: 6px; }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.footer-contact-item svg { width: 13px; height: 13px; stroke: rgba(255,255,255,0.45); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.72); line-height: 1.5; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.62); text-decoration: none; transition: color 0.25s; }
.footer-nav a:hover { color: #fff; }
.social-links { display: flex; flex-direction: column; gap: 11px; }
.social-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: rgba(255,255,255,0.62); font-size: 13px; font-weight: 500; transition: color 0.25s; }
.social-link:hover { color: #fff; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; transition: background 0.25s, border-color 0.25s; }
.social-link:hover .social-icon { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }
.social-icon svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 11px; font-weight: 500; letter-spacing: 0.2px; color: rgba(255,255,255,0.32); }
.footer-copy span { color: rgba(255,255,255,0.52); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.32); text-decoration: none; transition: color 0.25s; }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ── Page content area (non-homepage) ────────────────────── */
.sms-page-main {
  padding-top: 88px;
  min-height: 60vh;
  background: #fff;
}
.sms-page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px clamp(16px, 4vw, 60px) 80px;
}
.sms-page-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.sms-page-content {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}
.sms-page-content p  { margin-bottom: 1.2em; }
.sms-page-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 2em 0 0.6em; }
.sms-page-content a  { color: var(--blue); }

/* ── Responsive nav + footer (global) ───────────────────── */
@media (max-width: 1100px) {
  nav         { padding: 20px 36px; }
  nav.scrolled { padding: 14px 36px; }
  footer       { padding: 80px 36px 36px; }
  .footer-top  { gap: 40px; }
}
@media (max-width: 767px) {
  nav          { padding: 14px 20px; }
  nav.scrolled  { padding: 12px 20px; }
  .nav-links   { display: none; }
  footer       { padding: 80px 20px 30px; }
  .footer-top  { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal  { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
}
@media (max-width: 480px) {
  nav      { padding: 12px 16px; }
  footer   { padding: 80px 16px 24px; }
  .footer-logo-sub { display: none; }
}

/* ============================================================
   HOMEPAGE: flat section transitions (no diagonals)
   ============================================================ */
#about::before,
#services-list::before,
#stats::before,
#request-quote::before,
footer::before {
  display: none !important;
}
#about, #services-list, #stats, #request-quote, footer {
  margin-top: 0 !important;
}
#home::after, #about::after, #services-list::after,
#stats::after, #request-quote::after {
  display: none !important;
}
#home { overflow: hidden; }
#services-list { padding-top: 80px; }
#request-quote { padding: 60px 0 !important; }

/* ============================================================
   BUG #2 — About: 3 images always visible
   ============================================================ */
.img-box-3 { display: block !important; }
.image-grid { grid-template-columns: 1fr; gap: 12px; }
.img-box-1, .img-box-2, .img-box-3 { height: auto !important; aspect-ratio: 4 / 3; }

@media (min-width: 768px) {
  .image-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .img-box-1, .img-box-2, .img-box-3 { aspect-ratio: 3 / 4; }
}
@media (min-width: 1024px) {
  .image-grid { gap: 20px; }
  .img-box-1 { aspect-ratio: 4 / 5; }
  .img-box-2 { aspect-ratio: 3 / 4; }
  .img-box-3 { aspect-ratio: 4 / 5; }
}

/* ============================================================
   BUG #3 — Hero: reduce empty space on desktop
   ============================================================ */
@media (min-width: 1280px) {
  #home { min-height: 72vh; }
  .hero-inner { padding-top: 120px; padding-bottom: 60px; }
}

/* ============================================================
   BUG #5 — Header mobile: hamburger + slide drawer
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
  transition: background 0.2s; flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.1); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(320px, 88vw);
  background: #0A1128;
  border-left: 1px solid rgba(21,88,214,0.25);
  z-index: 300;
  display: flex; flex-direction: column;
  padding: 76px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform: translateX(0); }
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 290; opacity: 0; pointer-events: none;
  transition: opacity 0.36s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-links { list-style: none; display: flex; flex-direction: column; flex: 1; }
.drawer-links a {
  display: block; font-family: 'Raleway', sans-serif;
  font-size: 17px; font-weight: 600;
  color: rgba(255,255,255,0.72);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.drawer-links a:hover { color: #fff; }
.drawer-ctas { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.drawer-ctas .btn-nav { display: block; text-align: center; }
.drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.16); color: #fff; }
.drawer-close svg { display: block; }

@media (max-width: 767px) {
  .nav-hamburger { display: flex; }
  .nav-ctas { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .nav-hamburger { display: flex; }
  .btn-join { display: none !important; }
}
@media (min-width: 1280px) {
  .nav-hamburger { display: none !important; }
  .nav-drawer, .nav-overlay { display: none !important; }
}

/* ============================================================
   BUG #6 — Stats alignment
   ============================================================ */
.stats-inner { align-items: center !important; }

@media (min-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(4, 1fr) auto; }
  .stat-item:last-child {
    grid-column: auto; padding-left: 40px;
    border-left: 1px solid rgba(0,0,0,0.08);
  }
  .stat-item:nth-child(2)::after,
  .stat-item:nth-child(4)::after { display: block; }
}
@media (max-width: 767px) {
  .stat-item:last-child {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
}

/* ============================================================
   BUG #7 — Services panel: lighter gradient, readable label
   ============================================================ */
.panel-service-label { font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
#img-0 { background-image: linear-gradient(180deg,rgba(10,17,40,.12) 0%,rgba(10,17,40,.32) 52%,rgba(10,17,40,.90) 100%), url('https://images.pexels.com/photos/10558184/pexels-photo-10558184.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&fit=crop'); }
#img-1 { background-image: linear-gradient(180deg,rgba(10,17,40,.12) 0%,rgba(10,17,40,.32) 52%,rgba(10,17,40,.90) 100%), url('https://images.pexels.com/photos/4985335/pexels-photo-4985335.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&fit=crop'); }
#img-2 { background-image: linear-gradient(180deg,rgba(10,17,40,.12) 0%,rgba(10,17,40,.32) 52%,rgba(10,17,40,.90) 100%), url('https://images.pexels.com/photos/14688876/pexels-photo-14688876.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&fit=crop'); }
#img-3 { background-image: linear-gradient(180deg,rgba(10,17,40,.12) 0%,rgba(10,17,40,.32) 52%,rgba(10,17,40,.90) 100%), url('https://images.pexels.com/photos/9462148/pexels-photo-9462148.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&fit=crop'); }
#img-4 { background-image: linear-gradient(180deg,rgba(10,17,40,.12) 0%,rgba(10,17,40,.32) 52%,rgba(10,17,40,.90) 100%), url('https://images.pexels.com/photos/10092356/pexels-photo-10092356.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&fit=crop'); }
#img-5 { background-image: linear-gradient(180deg,rgba(10,17,40,.12) 0%,rgba(10,17,40,.32) 52%,rgba(10,17,40,.90) 100%), url('https://images.pexels.com/photos/9462638/pexels-photo-9462638.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&fit=crop'); }
#img-6 { background-image: linear-gradient(180deg,rgba(10,17,40,.12) 0%,rgba(10,17,40,.32) 52%,rgba(10,17,40,.90) 100%), url('https://images.pexels.com/photos/3125905/pexels-photo-3125905.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&fit=crop'); }

/* ============================================================
   BUG #8 — Typography: fluid clamp()
   ============================================================ */
.hero-headline    { font-size: clamp(2.25rem, 2rem + 4.5vw, 6rem);   letter-spacing: -0.03em; line-height: 1.02; }
.about-headline   { font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.625rem); letter-spacing: -0.01em; }
.services-headline{ font-size: clamp(2rem, 1.5rem + 3.5vw, 4.25rem); letter-spacing: -0.025em; }
.stat-number      { font-size: clamp(2.25rem, 1.8rem + 2.5vw, 4.75rem); letter-spacing: -0.03em; }
.stat-gta         { font-size: clamp(1.75rem, 1.4rem + 2vw, 3.625rem) !important; letter-spacing: -0.02em !important; }

/* ============================================================
   BUG #9 — Section spacing
   ============================================================ */
#about { padding: 60px 0 !important; }
#stats { padding-top: clamp(72px, 8vw, 100px); padding-bottom: clamp(72px, 8vw, 100px); }
.services-header { padding-top: clamp(48px, 5vw, 80px); margin-bottom: clamp(32px, 4vw, 60px); }
