/* =====================================================
   TechResolve Australia — Stylesheet v13
   Option A: Clean Sky Blue + Gold
   Single blue: #2563eb everywhere. No dark navy.
   techresolve.com.au | ABN 81 847 146 951
===================================================== */

:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-deep:  #1e40af;
  --blue-light: #eff6ff;
  --blue-pale:  #dbeafe;
  --blue-mid:   #bfdbfe;

  --gold:       #f59e0b;
  --gold-dark:  #d97706;
  --gold-pale:  #fffbeb;

  --white:      #ffffff;
  --off:        #f8fafc;
  --surface:    #f1f5f9;
  --border:     #e2e8f0;
  --border-mid: #cbd5e1;

  --text:       #0f172a;
  --text-sub:   #475569;
  --text-light: #94a3b8;

  --r:    5px;
  --r-lg: 10px;
  --r-xl: 16px;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(37,99,235,0.06);
  --shadow:    0 3px 12px rgba(37,99,235,0.10);
  --shadow-lg: 0 8px 28px rgba(37,99,235,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
p { line-height: 1.8; color: var(--text-sub); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }

/* ANNOUNCE BAR */
.announce {
  background: var(--blue-deep);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 8px 24px;
  text-align: center;
}
.announce p { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.90); margin: 0; }
.announce strong { color: var(--gold); font-weight: 700; }

/* NAV - single clean blue */
nav {
  background: var(--blue);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 9999;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .lm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-deep);
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; justify-content: center; }
.nav-item { position: relative; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-btn:hover, .nav-btn.active {
  background: rgba(255,255,255,0.18);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.chevron {
  font-size: 9px;
  color: rgba(255,255,255,0.65) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.65) !important;
  transition: transform 0.2s;
  pointer-events: none;
}
.nav-item.open .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--blue-deep);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: 0 20px 48px rgba(30,64,175,0.35);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.dropdown.dd-right { left: auto; right: 0; }
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.dd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none;
  transition: background 0.12s;
}
.dd-link:hover { background: rgba(255,255,255,0.15); }
.dd-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.dd-sep { height: 1px; background: rgba(255,255,255,0.12); margin: 4px 0; }

.nav-cta {
  background: var(--gold);
  color: var(--blue-deep) !important;
  -webkit-text-fill-color: var(--blue-deep) !important;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

.mobile-menu { display: none; position: fixed; top: 66px; left: 0; right: 0; bottom: 0; background: var(--blue-deep); z-index: 9990; padding: 24px 20px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-section { margin-bottom: 28px; }
.mobile-section h4 { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.mobile-link { display: block; padding: 11px 12px; border-radius: var(--r); font-size: 15px; font-weight: 500; color: var(--white); text-decoration: none; margin-bottom: 2px; }
.mobile-cta { display: block; background: var(--gold); color: var(--blue-deep); text-align: center; padding: 14px; border-radius: var(--r); font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-top: 12px; text-decoration: none; }

/* LAYOUT */
.wrap    { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 860px;  margin: 0 auto; padding: 0 32px; }
.wrap-md { max-width: 1060px; margin: 0 auto; padding: 0 32px; }
.sec     { padding: 80px 0; }
.sec-sm  { padding: 56px 0; }
.sec-blue  { background: var(--blue); }
.sec-deep  { background: var(--blue-deep); }
.sec-alt   { background: var(--off); }
.sec-light { background: var(--blue-light); }

/* TYPOGRAPHY */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--blue); border-radius: 2px; flex-shrink: 0; }
.eyebrow-gold { color: var(--gold); }
.eyebrow-gold::before { background: var(--gold); }
.eyebrow-light { color: rgba(255,255,255,0.85); }
.eyebrow-light::before { background: rgba(255,255,255,0.85); }

.h2 { font-size: clamp(26px, 3.2vw, 42px); font-weight: 700; letter-spacing: -0.03em; }
.h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.lead    { font-size: 18px; line-height: 1.8; color: var(--text-sub); }
.lead-sm { font-size: 16px; line-height: 1.8; color: var(--text-sub); }
.text-c  { text-align: center; }
.text-white { color: var(--white) !important; }
em.hl { font-style: normal; color: var(--gold); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: all 0.16s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(37,99,235,0.30);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(37,99,235,0.40); }
.btn-gold {
  background: var(--gold);
  color: var(--blue-deep);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245,158,11,0.30);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(245,158,11,0.40); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.40);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.80); background: rgba(255,255,255,0.10); }
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover { background: var(--blue-light); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.20);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-lg  { padding: 14px 32px; font-size: 15px; }

/* PAGE HERO */
.page-hero {
  background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 100%);
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.10);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.68); font-size: 15px; max-width: 580px; line-height: 1.75; }
.breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 12px; color: rgba(255,255,255,0.45); }
.breadcrumb a { color: rgba(255,255,255,0.50); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); font-weight: 600; }

/* COMPONENTS */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-list li { font-size: 14px; color: var(--text-sub); display: flex; align-items: flex-start; gap: 9px; line-height: 1.6; }
.check-list li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 11px; border-radius: 20px; }
.pill-blue  { background: var(--blue-light); color: var(--blue);      border: 1px solid var(--blue-pale); }
.pill-gold  { background: var(--gold-pale);  color: var(--gold-dark); border: 1px solid rgba(245,158,11,0.25); }

/* LEGAL */
.legal-body { max-width: 820px; margin: 0 auto; padding: 64px 32px; }
.legal-body h2 { font-size: 21px; font-weight: 700; color: var(--text); margin: 40px 0 13px; padding-top: 40px; border-top: 1px solid var(--border); }
.legal-body h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.legal-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 18px 0 8px; }
.legal-body p { font-size: 15px; color: var(--text-sub); line-height: 1.85; margin-bottom: 14px; }
.legal-body ul { list-style: none; margin: 10px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.legal-body ul li { font-size: 14px; color: var(--text-sub); display: flex; gap: 10px; align-items: flex-start; line-height: 1.65; }
.legal-body ul li::before { content: '—'; color: var(--blue); flex-shrink: 0; font-weight: 700; }
.legal-warn { background: var(--gold-pale); border: 1px solid #fcd34d; border-radius: var(--r); padding: 16px 20px; font-size: 14px; color: #78350f; margin: 20px 0; line-height: 1.65; }
.legal-act { background: var(--blue-light); border-left: 3px solid var(--blue); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; font-size: 13px; color: var(--text-sub); margin: 14px 0; font-style: italic; line-height: 1.7; }
.acl-eg { background: var(--off); border-left: 3px solid var(--blue); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; font-size: 14px; color: var(--text-sub); margin: 14px 0; line-height: 1.75; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.15s; }
.faq-q:hover { color: var(--blue); }
.faq-icon { font-size: 20px; color: var(--blue); transition: transform 0.2s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a.open { max-height: 800px; }
.faq-a-inner { padding: 0 0 18px; font-size: 15px; color: var(--text-sub); line-height: 1.8; }
.faq-a-inner a { color: var(--blue); font-weight: 600; }

/* FOOTER */
footer { background: var(--blue-deep); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer-logo .lm { width: 34px; height: 34px; border-radius: 7px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--blue-deep); }
.footer-logo .lt { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--white); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.50); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.52); transition: color 0.15s; text-decoration: none; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding-top: 28px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.32); line-height: 1.75; }

/* SPACING */
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }

/* RESPONSIVE */
@media (max-width: 1024px) { .wrap, .wrap-sm, .wrap-md { padding: 0 24px; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .wrap, .wrap-sm, .wrap-md { padding: 0 18px; }
  .nav-menu, .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .sec   { padding: 56px 0; }
  .sec-sm { padding: 44px 0; }
  .legal-body { padding: 40px 18px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile responsive additions */
@media (max-width: 900px) {
  #nav-menu { display: none !important; }
  #nav-cta-main { display: none !important; }
  #hamburger { display: flex !important; }
  .nav-inner { padding: 0 16px !important; }
  .wrap, .wrap-sm, .wrap-md { padding: 0 16px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .page-hero { padding: 40px 0 32px !important; }
  .page-hero h1 { font-size: 26px !important; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .page-hero h1 { font-size: 22px !important; }
  .sec { padding: 40px 0 !important; }
  footer { padding: 40px 0 24px !important; }
}

/* =====================================================
   MOBILE RESPONSIVE — Critical fixes for phone screens
===================================================== */

/* Prevent horizontal scroll on all pages */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* { box-sizing: border-box; }

/* Page content wrapping */
@media (max-width: 900px) {
  .wrap, .wrap-sm, .wrap-md {
    padding: 0 18px !important;
    max-width: 100% !important;
  }
  
  .sec, .sec-sm { padding: 44px 0 !important; }
  
  .page-hero {
    padding: 36px 0 28px !important;
  }
  
  .page-hero h1 {
    font-size: 26px !important;
  }
  
  /* 2-column grids become 1 column */
  .payload-steps,
  .services-grid,
  .how-grid,
  .s2,
  .p3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  
  /* Form layout */
  .fr {
    grid-template-columns: 1fr !important;
  }
  
  .ct-row {
    grid-template-columns: 1fr !important;
  }
  
  .form-steps {
    font-size: 10px !important;
  }
  
  /* Checkout sidebar goes below on mobile */
  .form-wrap > div {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .wrap, .wrap-sm, .wrap-md {
    padding: 0 16px !important;
  }
  
  .hero { padding: 36px 16px 32px !important; }
  
  .hst-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .hst strong { font-size: 16px !important; }
  
  .h2 { font-size: 22px !important; }
  
  .btn { 
    padding: 11px 18px !important;
    font-size: 13px !important;
  }
  
  /* Reviews single column */
  .rv-page.on {
    grid-template-columns: 1fr !important;
  }
  
  /* Exp grid on team page */
  .exp-grid {
    grid-template-columns: 1fr !important;
  }
  
  .val-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Contact page */
  .cw2 {
    grid-template-columns: 1fr !important;
  }
  
  /* Footer completely single column */
  .tr-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  footer { padding: 40px 0 24px !important; }
  
  /* How-it-works page steps */
  .how3 {
    grid-template-columns: 1fr !important;
  }
  
  /* Excuses grid on homepage */
  .excuses {
    grid-template-columns: 1fr !important;
  }
  
  /* Why it works section */
  .sec > .wrap > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 800px) {
  .why-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Form sidebar to single column */
  div[style*="grid-template-columns:1fr 260px"],
  div[style*="grid-template-columns:1fr 220px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Why-it-works two column section - stack on mobile */
@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  /* Also fix any other inline 2-col grids that might overflow */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Excuses grid inside the blue box */
  .excuses-grid {
    grid-template-columns: 1fr !important;
  }
}
