/* ================================================
   APEX AERIAL SERVICES — Custom Stylesheet
   Color palette:
     Primary (navy):  #0b1f3a
     Accent (orange): #f97316
     Light:           #f8fafc
     Muted:           #64748b
================================================ */

:root {
  --primary: #0b1f3a;
  --primary-light: #1a3a5c;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --light: #f8fafc;
  --muted: #64748b;
  --dark-text: #1e293b;
  --border: #e2e8f0;
}

/* ---- Base ---- */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--primary); }
a:hover { color: var(--accent); }

.text-accent { color: var(--accent) !important; }

/* ---- Topbar ---- */
.topbar {
  background: var(--primary);
  padding: 8px 0;
  font-size: 0.82rem;
}
.topbar-text { color: rgba(255,255,255,0.6); }
.topbar-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.topbar-link:hover { color: var(--accent); }

/* ---- Navbar ---- */
.main-nav {
  background: var(--primary) !important;
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(11,31,58,0.4);
}

.navbar-brand { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.brand-apex { color: var(--accent); }
.brand-aerial { color: #fff; }
.brand-services { color: rgba(255,255,255,0.7); font-weight: 400; }

.main-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  transition: color 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--accent) !important; }

.dropdown-menu {
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px;
}
.dropdown-item {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.dropdown-item:hover { background: #f1f5f9; color: var(--primary); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero > .container { position: relative; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  line-height: 1.7;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.badge-accent {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.min-vh-75 { min-height: 75vh; }

/* ---- Page hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0 70px;
}
.page-hero-sm { padding: 50px 0 60px; }
.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.7;
}
.breadcrumb-light .breadcrumb-item a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb-light .breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-light .breadcrumb-item.active { color: rgba(255,255,255,0.5); }
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.service-icon-hero {
  width: 52px;
  height: 52px;
  background: rgba(249,115,22,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

/* ---- Sections ---- */
.section-py { padding: 80px 0; }
.section-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Service cards ---- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11,31,58,0.1);
  border-color: var(--accent);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fff3ed, #ffe8d6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-name { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.service-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.service-link { font-weight: 600; font-size: 0.9rem; color: var(--accent); text-decoration: none; }
.service-link:hover { color: var(--accent-dark); }

/* Full-width service card (services index) */
.service-card-full {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.service-card-full:hover { box-shadow: 0 8px 24px rgba(11,31,58,0.08); border-color: var(--accent); }
.service-icon-lg {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #fff3ed, #ffe8d6);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
}
.feature-list-sm { list-style: none; padding: 0; margin: 0; }
.feature-list-sm li { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }

/* Small service card (location page) */
.service-card-sm {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  transition: border-color 0.2s;
}
.service-card-sm:hover { border-color: var(--accent); }
.service-icon-sm {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #fff3ed, #ffe8d6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
}

/* ---- Feature list ---- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--dark-text);
  line-height: 1.5;
}
.feature-list li i { margin-top: 2px; flex-shrink: 0; font-size: 1rem; }

/* ---- Stats grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--primary);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ---- Location cards ---- */
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--dark-text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.location-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(249,115,22,0.12);
  transform: translateX(4px);
  color: var(--primary);
}
.location-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fff3ed, #ffe8d6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.location-name { font-weight: 700; font-size: 0.95rem; }
.location-sub { font-size: 0.8rem; color: var(--muted); }

.location-card-sm {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--dark-text);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.location-card-sm:hover { border-color: var(--accent); background: #fff3ed; color: var(--primary); }

/* ---- Highlight section ---- */
.highlight-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.text-white-75 { color: rgba(255,255,255,0.75); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
}
.cta-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-sub { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto; }

/* ---- Sidebar ---- */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  text-decoration: none;
  color: var(--dark-text);
  font-size: 0.9rem;
  padding: 6px 0;
  display: block;
  transition: color 0.2s;
}
.sidebar-links a:hover { color: var(--accent); }

/* ---- Contact info ---- */
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i { font-size: 1.1rem; margin-top: 2px; }
.contact-info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.contact-info-value { font-weight: 600; color: var(--primary); font-size: 0.95rem; text-decoration: none; }
.contact-info-value:hover { color: var(--accent); }

/* ---- Contact form card ---- */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  border-top: 4px solid var(--accent);
}
.form-card-header {
  background: var(--primary);
  padding: 28px 36px;
  color: #fff;
}
.form-card-header h2 { color: #fff; }
.form-card-header p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.form-card-header strong { color: var(--accent); }
.form-card-body { padding: 32px 36px 0; }
.form-submit-row {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  margin: 24px -36px 0;
  padding: 24px 36px;
}

/* ---- Callout box ---- */
.callout-box {
  background: #fff3ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 24px;
}
.callout-icon { font-size: 1.8rem; color: var(--accent); }
.callout-title { font-weight: 700; color: var(--primary); margin-bottom: 8px; font-size: 1rem; }

/* ---- Suburb chips ---- */
.suburb-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--dark-text);
}

/* ---- About stats card ---- */
.about-stats-card {
  background: var(--primary);
  border-radius: 16px;
  padding: 36px;
}
.equipment-list { list-style: none; padding: 0; margin: 0; }
.equipment-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.equipment-list li i { margin-top: 2px; flex-shrink: 0; }
.equipment-list strong { color: #fff; }

/* ---- Local content ---- */
.local-content { }
.service-description p { color: var(--muted); line-height: 1.8; }

/* ---- Footer ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
}
.footer-brand { font-size: 1.2rem; font-weight: 700; }
.footer-text { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 0; }
.footer-phone {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  margin-bottom: 4px;
}
.footer-phone:hover { color: #fb923c; }
.footer-link { color: rgba(255,255,255,0.65); font-size: 0.88rem; text-decoration: none; }
.footer-link:hover { color: var(--accent); }
.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-divider { border-color: rgba(255,255,255,0.1); }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ---- Forms ---- */
.form-control, .form-select {
  border-color: var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }

/* ---- Work gallery ---- */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.work-photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.work-photo:hover img { transform: scale(1.04); }
.work-photo img { cursor: zoom-in; }
#photoModal .modal-backdrop, .modal-backdrop { opacity: 0.92 !important; }
#photoModal .modal-dialog { max-width: min(90vw, 1200px); margin: auto; }
#photoModal .modal-content { background: #000; border: none; border-radius: 8px; }
#photoModal .modal-body { padding: 4px; }
#photoModal img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; display: block; border-radius: 6px; }
#photoModal .btn-close { position: absolute; top: -14px; right: -14px; z-index: 10; background-color: var(--accent); border-radius: 50%; opacity: 1; filter: invert(1); width: 28px; height: 28px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section-py { padding: 56px 0; }
  .hero { padding: 60px 0; background-position: 70% top !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-card-header { padding: 24px; }
  .form-card-body { padding: 24px 24px 0; }
  .form-submit-row { margin: 20px -24px 0; padding: 20px 24px; }
  .sidebar-card { padding: 20px; }
  .work-gallery { grid-template-columns: repeat(2, 1fr); }
}
