/* =============================================
   Two Rocks Electrical – Main Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #38bdf8;
  --dark: #0c1829;
  --dark-2: #0f2240;
  --dark-3: #1e3a5f;
  --muted: #64748b;
  --light: #f0f6ff;
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(37,99,235,.18);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.22);
  --transition: .2s ease;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Page Loader --- */
#page-loader {
  position: fixed; inset: 0; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .4s ease, visibility .4s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo { width: 96px; height: auto; object-fit: contain; margin: 0 auto 20px; opacity: .9; }
.loader-bar { width: 200px; height: 3px; background: var(--dark-3); border-radius: 99px; overflow: hidden; }
.loader-progress {
  height: 100%; width: 0; background: var(--primary);
  border-radius: 99px; animation: loadBar 1s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  border: 2px solid transparent; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--dark-2); }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .875rem; }

/* --- Section Styles --- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-light { background: var(--light); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.section-header p { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto; }
.section-header .label {
  display: inline-block; background: var(--primary-light); color: var(--primary-dark);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 99px; margin-bottom: 12px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12,24,41,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37,99,235,.2);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.header-logo { height: 48px; width: auto; object-fit: contain; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 16px; border-radius: 6px;
  color: rgba(255,255,255,.8); font-weight: 500; font-size: .95rem;
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--primary); }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 99px; transition: all .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background-color: #0c1829;
  background-image:
    linear-gradient(135deg, rgba(12,24,41,.95) 0%, rgba(15,34,64,.9) 50%, rgba(12,24,41,.95) 100%),
    url('/images/hero-bg.jpg');
  background-size: cover; background-position: center top;
  position: relative; overflow: hidden; padding-top: 70px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 45%, rgba(37,99,235,.18) 0%, rgba(56,189,248,.08) 40%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative; z-index: 1; max-width: 740px;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3);
  color: var(--primary); font-size: .875rem; font-weight: 600;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900;
  color: var(--white); line-height: 1.1; margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero-tagline { font-size: 1.2rem; color: rgba(255,255,255,.7); margin-bottom: 36px; max-width: 580px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.6); font-size: .9rem;
}
.hero-trust-item i { color: var(--primary); font-size: 1.1rem; }

/* =============================================
   SERVICES GRID
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white); border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg); padding: 32px;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px; flex-shrink: 0;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg); padding: 32px;
}
.testimonial-stars { color: var(--primary); margin-bottom: 16px; font-size: 1.1rem; }
.testimonial-text { color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 20px; font-size: .95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; color: var(--white); font-size: .9rem; }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: var(--primary); padding: 64px 0;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 2rem; font-weight: 800; color: var(--white); }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 6px; font-size: 1.05rem; }
.cta-band-actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

/* =============================================
   WHY US
   ============================================= */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px;
}
.why-item { text-align: center; }
.why-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--dark-2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 16px;
}
.why-item h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.why-item p { font-size: .875rem; color: rgba(255,255,255,.55); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, #0c1829 0%, #0f2240 100%);
  padding: 120px 0 60px; text-align: center; color: var(--white);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; font-size: .875rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.contact-info p { color: var(--muted); margin-bottom: 32px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px; padding: 20px; background: var(--light);
  border-radius: var(--radius); border-left: 4px solid var(--primary);
}
.contact-detail i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.contact-detail a:hover { color: var(--primary); }

/* Form */
.form-card { background: var(--white); border: 1px solid #e2e8f0; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--dark-3); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid #e2e8f0;
  border-radius: var(--radius); font-size: .95rem; transition: border-color var(--transition);
  background: var(--white); color: var(--dark);
}
.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(245,158,11,.15); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error { border-color: var(--danger) !important; }
.error-msg { color: var(--danger); font-size: .8rem; margin-top: 4px; }
.alert {
  padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 12px; font-size: .95rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* =============================================
   ABOUT
   ============================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius-lg); padding: 48px; text-align: center;
  aspect-ratio: 4/3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  position: relative; overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,158,11,.15) 0%, transparent 70%);
}
.about-visual i { font-size: 5rem; color: var(--primary); position: relative; z-index: 1; }
.about-visual .lic-badge {
  position: relative; z-index: 1;
  background: var(--primary); color: var(--dark);
  padding: 10px 24px; border-radius: 99px; font-weight: 700; font-size: .9rem;
}
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.about-checks { margin: 24px 0; }
.about-checks li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 500; }
.about-checks li i { color: var(--primary); }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar { background: var(--dark-2); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: .875rem; color: rgba(255,255,255,.55); margin-top: 6px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px;
  padding: 60px 0 40px;
}
.footer-logo { height: 56px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: 10px; }
.footer-brand .license { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: 16px; }
.footer-links h4, .footer-contact h4 {
  color: var(--white); font-size: .95rem; font-weight: 700;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em;
}
.footer-links ul li, .footer-contact ul li { margin-bottom: 10px; }
.footer-links a { font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact ul li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.footer-contact i { color: var(--primary); margin-top: 3px; font-size: .9rem; flex-shrink: 0; }
.footer-contact a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.35);
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--primary); }

/* =============================================
   ERROR PAGE
   ============================================= */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 1.75rem; font-weight: 700; margin: 16px 0 12px; }
.error-page p { color: var(--muted); margin-bottom: 32px; }

/* =============================================
   ADMIN STYLES
   ============================================= */
.admin-body { background: #f8fafc; min-height: 100vh; }

/* Admin Login */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 20px;
}
.admin-login-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.admin-login-logo { text-align: center; margin-bottom: 32px; }
.admin-login-logo img { height: 48px; margin: 0 auto 12px; }
.admin-login-logo h2 { font-size: 1.5rem; font-weight: 800; }
.admin-login-logo p { color: var(--muted); font-size: .875rem; }

/* Admin Layout */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--dark); color: var(--white);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar-brand img { height: 36px; filter: brightness(0) invert(1); }
.admin-sidebar-brand p { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: 4px; }
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; color: rgba(255,255,255,.65);
  font-size: .9rem; font-weight: 500; margin-bottom: 2px;
  transition: all var(--transition);
}
.admin-nav a:hover { background: rgba(255,255,255,.07); color: var(--white); }
.admin-nav a.active { background: rgba(245,158,11,.15); color: var(--primary); }
.admin-nav a i { width: 18px; text-align: center; font-size: .95rem; }
.admin-nav-section { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.25); padding: 16px 14px 6px; }
.admin-sidebar-footer {
  padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar-footer form { margin: 0; }
.admin-sidebar-footer button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px; border-radius: 8px; border: none;
  background: transparent; color: rgba(255,255,255,.5); font-size: .875rem;
  transition: all var(--transition);
}
.admin-sidebar-footer button:hover { background: rgba(239,68,68,.15); color: #ef4444; }

.admin-main { overflow: auto; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid #e2e8f0;
  padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-topbar h1 { font-size: 1.25rem; font-weight: 700; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.admin-user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--dark); font-size: .85rem;
}

.admin-content { padding: 32px; }

/* Admin Cards */
.admin-card {
  background: var(--white); border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.admin-card-header h2 { font-size: 1.1rem; font-weight: 700; }

/* Stats Cards */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.stat-card-num { font-size: 2.25rem; font-weight: 900; line-height: 1; }
.stat-card-label { font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-card-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.icon-yellow { background: var(--primary-light); color: var(--primary-dark); }
.icon-red { background: #fee2e2; color: var(--danger); }
.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-green { background: #d1fae5; color: #059669; }

/* Admin Table */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
  text-align: left; padding: 10px 14px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 2px solid #e2e8f0; white-space: nowrap;
}
.admin-table td { padding: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #f1f5f9; color: var(--muted); }
.badge-warning { background: #fef3c7; color: #92400e; }

/* Admin Form */
.admin-form .form-group label { color: var(--dark-3); }
.admin-form .form-group input,
.admin-form .form-group textarea,
.admin-form .form-group select { background: var(--white); }

/* Admin Action Buttons */
.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-icon {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid #e2e8f0; background: var(--white);
  color: var(--muted); font-size: .875rem; transition: all var(--transition);
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon.danger:hover { border-color: var(--danger); color: var(--danger); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-logo { height: 40px; }
  .main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 70px 0 0 0; background: var(--dark);
    padding: 24px 20px; z-index: 999; overflow-y: auto;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open a { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .main-nav.open ~ .nav-cta { display: none; }
  .hero-inner { padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 24px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 20px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.75rem; }
}

/* =============================================
   SUBURB / AREA TAGS
   ============================================= */
.suburb-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.suburb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1.5px solid #e2e8f0;
  color: var(--dark-3); font-size: .875rem; font-weight: 600;
  padding: 6px 16px; border-radius: 99px;
  transition: all var(--transition);
}
.suburb-tag i { color: var(--primary); font-size: .8rem; }
.suburb-tag:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }

/* =============================================
   WHERE WE WORK / AREA SECTION
   ============================================= */
.area-section { padding: 80px 0; background: var(--light); }
.area-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.area-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.area-text p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.map-wrap iframe { width: 100%; height: 380px; display: block; border: none; }

/* =============================================
   LOCAL AREA PHOTO CARDS
   ============================================= */
.area-photos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 64px;
}
.area-photo-card {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/2; position: relative;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 100%);
  background-size: cover; background-position: center;
}
.area-photo-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.88) 0%, rgba(15,23,42,.2) 60%, transparent 100%);
}
.area-photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; z-index: 1;
}
.area-photo-label strong {
  display: block; color: var(--white); font-size: 1.05rem; font-weight: 700;
}
.area-photo-label span {
  display: block; color: rgba(255,255,255,.65); font-size: .8rem; margin-top: 3px;
}
.area-photo-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -68%);
  font-size: 3rem; color: rgba(245,158,11,.25); z-index: 1;
  transition: color .3s;
}
.area-photo-card:hover .area-photo-icon { color: rgba(245,158,11,.5); }

/* Photo card individual bg colours (fallback when no image) */
.area-photo-card.card-beach { background: linear-gradient(135deg, #0c3547 0%, #0f5073 100%); }
.area-photo-card.card-park  { background: linear-gradient(135deg, #0f2710 0%, #1a4220 100%); }
.area-photo-card.card-suburb { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }

/* bg image layers so real photos can be added by the client */
.area-photo-card.card-beach { background-image: linear-gradient(to top, rgba(15,23,42,.75) 0%, transparent 60%), url('/images/two-rocks-beach.jpg'); }
.area-photo-card.card-park  { background-image: linear-gradient(to top, rgba(15,23,42,.75) 0%, transparent 60%), url('/images/yanchep-national-park.jpg'); }
.area-photo-card.card-suburb { background-image: linear-gradient(to top, rgba(15,23,42,.75) 0%, transparent 60%), url('/images/northern-suburbs.jpg'); }

/* =============================================
   SERVICE AREA STRIP (services page)
   ============================================= */
.service-area-strip {
  background: var(--dark-2); padding: 20px 0;
}
.service-area-strip-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.service-area-strip-inner > span {
  color: rgba(255,255,255,.5); font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; flex-shrink: 0;
}
.service-area-strip .suburb-tag {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75); font-size: .8rem;
}
.service-area-strip .suburb-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(245,158,11,.1); }

/* =============================================
   AREA SECTION RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .area-grid { grid-template-columns: 1fr; gap: 40px; }
  .area-photos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .area-photos { grid-template-columns: 1fr; }
  .service-area-strip-inner { justify-content: center; }
}

/* =============================================
   STICKY MOBILE CALL BUTTON
   ============================================= */
.mobile-call-fab {
  display: none;
  position: fixed; bottom: 20px; right: 20px; z-index: 900;
  background: var(--primary); color: var(--white);
  padding: 14px 22px; border-radius: 50px; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 20px rgba(37,99,235,.5);
  align-items: center; gap: 10px; text-decoration: none;
  animation: fabPulse 2.5s ease-in-out infinite;
}
.mobile-call-fab i { font-size: 1.1rem; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,99,235,.5); }
  50% { box-shadow: 0 6px 36px rgba(37,99,235,.8); }
}
@media (max-width: 768px) { .mobile-call-fab { display: flex; } }

/* =============================================
   GOOGLE REVIEWS / TRUST BAND
   ============================================= */
.reviews-trust-section { padding: 56px 0; background: var(--white); border-bottom: 1px solid #e2e8f0; }
.reviews-trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.google-badge {
  display: flex; align-items: center; gap: 18px;
  background: var(--light); border-radius: var(--radius-lg);
  padding: 20px 28px; text-decoration: none;
  border: 1.5px solid #e2e8f0; transition: all var(--transition);
}
.google-badge:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.google-badge-icon { font-size: 2.2rem; }
.google-badge-stars { color: #fbbc04; font-size: 1.1rem; margin-bottom: 2px; }
.google-badge-rating { font-size: 1.5rem; font-weight: 900; color: var(--dark); line-height: 1; }
.google-badge-label { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.trust-divider { width: 1px; height: 56px; background: #e2e8f0; }
.trust-items { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item i { color: var(--primary); font-size: 1.2rem; }
.trust-item span { font-size: .9rem; font-weight: 600; color: var(--dark-3); }

/* =============================================
   PROJECT GALLERY
   ============================================= */
.gallery-section { padding: 80px 0; background: var(--dark); }
.gallery-section .section-header p { color: rgba(255,255,255,.55); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 48px;
}
.gallery-card {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  background: var(--dark-2); background-size: cover; background-position: center;
}
.gallery-card.large { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.85) 0%, transparent 55%);
  transition: opacity .3s;
}
.gallery-card:hover::after { opacity: .65; }
.gallery-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px; z-index: 1;
  transform: translateY(6px); opacity: 0; transition: all .3s;
}
.gallery-card:hover .gallery-card-label { transform: translateY(0); opacity: 1; }
.gallery-card-label strong { display: block; color: var(--white); font-size: .95rem; font-weight: 700; }
.gallery-card-label span { color: rgba(255,255,255,.6); font-size: .8rem; }
.gallery-placeholder-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 2.5rem; color: rgba(255,255,255,.1); z-index: 1;
}
/* fallback gradients per card */
.gallery-card:nth-child(1) { background: linear-gradient(135deg,#0c2340 0%,#1a3a5c 100%); background-image: url('/images/gallery/job-1.jpg'); }
.gallery-card:nth-child(2) { background: linear-gradient(135deg,#1a290c 0%,#2d4514 100%); background-image: url('/images/gallery/job-2.jpg'); }
.gallery-card:nth-child(3) { background: linear-gradient(135deg,#1e293b 0%,#334155 100%); background-image: url('/images/gallery/job-3.jpg'); }
.gallery-card:nth-child(4) { background: linear-gradient(135deg,#2d1a0c 0%,#4a2e14 100%); background-image: url('/images/gallery/job-4.jpg'); }
.gallery-card:nth-child(5) { background: linear-gradient(135deg,#0c2340 0%,#0f3550 100%); background-image: url('/images/gallery/job-5.jpg'); }
.gallery-card:nth-child(6) { background: linear-gradient(135deg,#1a1a2e 0%,#2a2a4e 100%); background-image: url('/images/gallery/job-6.jpg'); }

/* =============================================
   HOME QUICK QUOTE FORM
   ============================================= */
.home-quote-section { padding: 80px 0; background: var(--dark-2); }
.home-quote-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.home-quote-text h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.home-quote-text p { color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 28px; }
.home-quote-perks { list-style: none; }
.home-quote-perks li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 12px; }
.home-quote-perks li i { color: var(--primary); flex-shrink: 0; }
.home-quote-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.home-quote-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }
#quote-success { display: none; }

/* =============================================
   INDIVIDUAL SERVICE PAGE
   ============================================= */
.service-detail-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); padding: 120px 0 60px; color: var(--white); }
.service-detail-hero-inner { display: flex; align-items: center; gap: 24px; }
.service-detail-hero-icon {
  width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.service-detail-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 10px; }
.service-detail-hero p { color: rgba(255,255,255,.65); font-size: 1.05rem; }
.service-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.service-detail-text p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.service-includes h4 { font-size: 1rem; font-weight: 700; margin: 28px 0 14px; }
.service-includes li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--dark-3); font-size: .95rem; }
.service-includes li i { color: var(--primary); font-size: .85rem; flex-shrink: 0; }
.service-cta-card {
  background: var(--light); border-radius: var(--radius-lg); padding: 32px;
  border-left: 4px solid var(--primary); position: sticky; top: 90px;
}
.service-cta-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.service-cta-card p { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.service-cta-contact { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.service-cta-contact a { display: flex; align-items: center; gap: 10px; color: var(--dark); font-weight: 600; padding: 10px 0; }
.service-cta-contact a:hover { color: var(--primary); }
.service-cta-contact i { color: var(--primary); width: 18px; }
.related-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* =============================================
   NEW RESPONSIVE RULES
   ============================================= */
@media (max-width: 1024px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-cta-card { position: static; }
  .home-quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .related-services-grid { grid-template-columns: 1fr 1fr; }
  .trust-divider { display: none; }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-card.large { grid-column: span 2; }
  .trust-items { justify-content: center; }
  .reviews-trust-inner { flex-direction: column; gap: 24px; }
  .related-services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card.large { grid-column: span 1; aspect-ratio: 4/3; }
}
