/* ═══════════════════════════════════════════════════════
   David Gilroy Technology Services – Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:     #0b1f3a;
  --blue:     #1755a8;
  --blue-mid: #2470d4;
  --blue-lt:  #4a90e2;
  --accent:   #00aaff;
  --surface:  #f4f7fc;
  --surface2: #eaf0fb;
  --border:   #dde6f5;
  --text:     #1a2438;
  --muted:    #5a6b84;
  --white:    #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 48px; height: 72px;
  gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 56px; object-fit: contain; }
.nav-logo-fallback {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); background: var(--surface); }

.btn-portal {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}
.btn-portal:hover { background: var(--blue-mid) !important; transform: translateY(-1px); }

/* ── PAGE HERO BANNER (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162d5e 60%, #1755a8 100%);
  padding: 80px 48px 90px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 120% at 110% 50%, rgba(0,170,255,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at -10% 80%, rgba(36,112,212,0.18) 0%, transparent 65%);
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.page-hero-content { flex: 1; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.breadcrumb a, .breadcrumb span {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color .2s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800; color: #fff;
  letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 520px; font-weight: 300;
  margin-bottom: 36px;
}
.page-hero-graphic {
  flex-shrink: 0; width: 220px; opacity: .18;
}
.page-hero-graphic svg { width: 100%; }

/* ── SHARED SECTION STYLES ── */
section { padding: 88px 48px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--blue); }

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700; letter-spacing: -1.2px;
  color: var(--navy); line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px; line-height: 1.7;
  color: var(--muted); max-width: 560px; font-weight: 300;
}

/* ── CONTENT LAYOUTS ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px; align-items: start;
}

/* service list */
.service-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.service-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.sl-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, #e8f0fb, #d0e3ff);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-top: 2px;
}
.sl-icon svg { width: 20px; height: 20px; }
.sl-text strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px;
}
.sl-text p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.sidebar-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--navy);
  margin-bottom: 16px;
}
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-list li {
  font-size: 14px; color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}
.sidebar-list li::before {
  content: '✓'; color: var(--blue);
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 16px; padding: 32px 28px; text-align: center;
}
.sidebar-cta h3 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13.5px; color: rgba(255,255,255,0.68); line-height: 1.6; margin-bottom: 20px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(23,85,168,0.28);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(23,85,168,0.38); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--border); color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 11px 24px; border-radius: 10px;
  text-decoration: none; background: transparent;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-secondary:hover { border-color: var(--blue); background: var(--surface); transform: translateY(-2px); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  padding: 13px 26px; border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  transition: transform .2s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.20); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.4); color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 11px 24px; border-radius: 10px;
  text-decoration: none; background: transparent;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }

/* full-width white button for sidebar */
.btn-primary-full {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  padding: 12px 20px; border-radius: 8px;
  text-decoration: none; width: 100%;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary-full:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* ── VALUES / STAT CARDS ── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.value-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px; padding: 28px 24px;
  transition: transform .22s, box-shadow .22s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(23,85,168,0.10); }
.value-card-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #e8f0fb, #d0e3ff);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 18px;
}
.value-card-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.value-card p { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ── EXPERTISE TAGS ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--blue); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
}

/* ── DEVICE GRID ── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-top: 32px;
}
.device-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px; padding: 22px 18px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.device-card:hover { border-color: #b8d0f5; transform: translateY(-3px); }
.device-card svg { width: 32px; height: 32px; color: var(--blue); margin-bottom: 10px; }
.device-card span { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, #0b1f3a 0%, #1040a0 50%, #2470d4 100%);
  position: relative; overflow: hidden;
  padding: 88px 48px;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,170,255,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(36,112,212,0.20) 0%, transparent 65%);
}
.cta-band-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto; text-align: center;
}
.cta-band-inner h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800; color: #fff;
  letter-spacing: -1.5px; margin-bottom: 18px; line-height: 1.1;
}
.cta-band-inner p { color: rgba(255,255,255,0.70); font-size: 17px; margin-bottom: 38px; font-weight: 300; line-height: 1.65; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 48px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 32px;
}
.footer-brand img { height: 40px; margin-bottom: 14px; opacity: .9; }
.footer-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 800; color: #fff;
  letter-spacing: -.4px; margin-bottom: 10px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; }
.footer-abn { margin-top: 8px; font-size: 12px; opacity: .55; }

footer h4 {
  font-family: 'Sora', sans-serif;
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: 18px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a {
  color: rgba(255,255,255,0.58); text-decoration: none;
  font-size: 14px; transition: color .2s;
}
footer ul a:hover { color: var(--accent); }
.footer-contact li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--blue-lt); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ── ABOUT PAGE SPECIFIC ── */
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-intro-graphic {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 20px; padding: 48px;
  display: flex; flex-direction: column; gap: 18px;
}
.about-badge {
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 18px 22px; color: #fff;
}
.about-badge-title { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.about-badge-text { font-size: 13px; color: rgba(255,255,255,0.70); line-height: 1.55; }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--navy); margin-bottom: 7px;
}
.form-group label span { color: #e05252; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23,85,168,0.10);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px; padding: 32px;
  margin-bottom: 20px;
}
.contact-info-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin-bottom: 20px;
}
.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, #e8f0fb, #d0e3ff);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.ci-value { font-size: 14.5px; color: var(--navy); font-weight: 500; }
.ci-value a { color: var(--blue); text-decoration: none; }
.ci-value a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .65s ease both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .28s; }
.d4 { animation-delay: .38s; }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--surface); }

.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, width .3s ease;
  transform-origin: center;
}

/* Animate to ✕ when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DROPDOWN MENU ── */
.nav-mobile {
  position: fixed;
  pointer-events: none;
  top: 72px; left: 0; right: 0;
  background: rgba(255,255,255,0.99);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(11,31,58,.12);
  z-index: 98;
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.nav-mobile.open {
  max-height: 520px;
  pointer-events: auto;
}

.nav-mobile ul {
  list-style: none;
  padding: 12px 0 16px;
}
.nav-mobile ul li a {
  display: block;
  padding: 12px 28px;
  font-size: 15px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
  border-left: 3px solid transparent;
}
.nav-mobile ul li a:hover,
.nav-mobile ul li a.active {
  color: var(--blue);
  background: var(--surface);
  border-left-color: var(--blue);
}
.nav-mobile ul li.nav-mobile-portal {
  padding: 8px 24px 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.nav-mobile ul li.nav-mobile-portal a {
  display: inline-flex;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  border-left: none;
  width: 100%;
  justify-content: center;
}
.nav-mobile ul li.nav-mobile-portal a:hover {
  background: var(--blue-mid);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
  section { padding: 56px 24px; }
  .page-hero { padding: 60px 24px 70px; }
  .page-hero-graphic { display: none; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { padding: 64px 24px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
}
