/* =============================================
   Emergen Caldervale Pty Ltd — Main Stylesheet
   Emergency Response & Energy Services
   ============================================= */

:root {
  --primary:     #C0392B; /* emergency red */
  --primary-dk:  #922B21;
  --accent:      #F39C12; /* high-vis amber */
  --accent-dk:   #D68910;
  --dark:        #1A1A2E;
  --dark-mid:    #16213E;
  --mid:         #0F3460;
  --light:       #E8EAF0;
  --white:       #FFFFFF;
  --text:        #2C3E50;
  --text-light:  #7F8C8D;
  --border:      #D5D8DC;
  --success:     #27AE60;
  --shadow:      0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 48px rgba(0,0,0,.18);
  --radius:      6px;
  --radius-lg:   12px;
  --transition:  .25s ease;
  --font-main:   'Segoe UI', Arial, sans-serif;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
ul { list-style: none; }

/* ── Utility ─────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }
.text-center { text-align: center; }
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  color: var(--dark);
  transform: translateY(-2px);
}
.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ── Section headings ────────────────────────── */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-dark .section-subtitle { color: #B2BABB; }
.divider {
  width: 56px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px auto 20px;
}
.section-dark .divider { background: var(--accent); }

/* ── Top bar ─────────────────────────────────── */
.top-bar {
  background: var(--dark);
  color: #B2BABB;
  font-size: .82rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: var(--accent); }
.top-bar a:hover { color: var(--white); }

/* ── Header / Nav ────────────────────────────── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.logo-text .company-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}
.logo-text .company-tagline {
  font-size: .72rem;
  color: var(--text-light);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(192,57,43,.07);
}
.nav-links .nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 9px 20px;
  margin-left: 8px;
}
.nav-links .nav-cta:hover {
  background: var(--primary-dk);
  color: var(--white);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 40%, var(--mid) 100%);
  color: var(--white);
  padding: 110px 0 90px;
  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-accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243,156,18,.15);
  border: 1px solid rgba(243,156,18,.4);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 .highlight { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: #B2BABB;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: .82rem;
  color: #B2BABB;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Trust bar ───────────────────────────────── */
.trust-bar {
  background: var(--dark-mid);
  color: #B2BABB;
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  font-size: .85rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item .icon { color: var(--accent); font-size: 1.1rem; }

/* ── Services grid ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  background: rgba(192,57,43,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-card p { font-size: .92rem; color: var(--text-light); }

/* ── Why choose us ───────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.feature-item h4 { font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.feature-item p { font-size: .9rem; color: var(--text-light); }

/* ── Testimonials ────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.testimonial-stars { color: var(--accent); font-size: 1rem; margin-bottom: 16px; }
.testimonial-text {
  font-size: .95rem;
  color: #D5D8DC;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; gap: 14px; align-items: center; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--white); font-size: .92rem; }
.author-role { font-size: .8rem; color: #85929E; }

/* ── CTA band ────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { font-size: 2.1rem; font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 1.05rem; opacity: .85; margin-bottom: 32px; }

/* ── Contact ─────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail .icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(192,57,43,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-detail .label { font-size: .8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.contact-detail .value { font-weight: 600; color: var(--dark); }
.contact-form { background: var(--light); border-radius: var(--radius-lg); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── About page extras ───────────────────────── */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-placeholder {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  border-radius: var(--radius-lg);
  height: 380px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: var(--accent);
}
.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.value-list li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
  font-size: .95rem;
}
.value-list li::before {
  content: '▶';
  color: var(--primary);
  font-size: .7rem;
  margin-top: 5px;
  flex-shrink: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px;
}
.team-card h4 { font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.team-card p { font-size: .85rem; color: var(--text-light); }

/* ── Page hero (inner pages) ─────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
}
.page-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; color: #B2BABB; }
.breadcrumb {
  font-size: .82rem;
  color: #85929E;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--white); }

/* ── Legal pages ─────────────────────────────── */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content p { color: var(--text-light); margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { list-style: disc; color: var(--text-light); margin-bottom: 8px; }
.legal-meta {
  background: var(--light);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #B2BABB;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo .company-name { color: var(--white); }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: #B2BABB;
  font-size: .95rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--primary); color: var(--white); }
.footer-col h5 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #B2BABB;
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: #85929E; }
.footer-legal a:hover { color: var(--accent); }
.abn-line { color: #85929E; font-size: .8rem; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-intro { grid-template-columns: 1fr; }
  .about-image-placeholder { height: 220px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 1.9rem; }
  .trust-inner { gap: 20px; }
}
