/* ============================================
   White Horse Antenna & Electrical
   Shared stylesheet — whitehorseantenna.com.au
   ============================================ */

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

:root {
  --navy: #1e3a5f;
  --navy-dark: #162d4a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --yellow: #facc15;
  --yellow-hover: #eab308;
  --white: #ffffff;
  --off-white: #f8fafc;
  --grey-50: #f9fafb;
  --grey-100: #f3f4f6;
  --grey-200: #e5e7eb;
  --grey-300: #d1d5db;
  --grey-500: #6b7280;
  --grey-600: #4b5563;
  --grey-700: #374151;
  --grey-800: #1f2937;
  --grey-900: #111827;
  --text: #1e293b;
  --text-light: #475569;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
  --max-width: 1100px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--grey-200);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Hero logo */
.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  margin: 0 auto 1.2rem;
  animation: fadeInScale 0.8s ease-out;
}

/* Hero layout with antenna */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 2rem;
}

.hero-text { text-align: left; }
.hero-text .hero-badge { display: inline-block; }
.hero-text .hero-ctas { justify-content: flex-start; }

/* Rotating antenna */
.hero-antenna-wrap {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-antenna {
  width: 340px;
  height: 340px;
  object-fit: contain;
  animation: antennaFloat 6s ease-in-out infinite, antennaSpin 20s linear infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@keyframes antennaSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes antennaFloat {
  0%, 100% { transform: translateY(0) rotateY(var(--spin, 0deg)); }
  50% { transform: translateY(-12px) rotateY(var(--spin, 0deg)); }
}

/* Combined float + spin via layered animation */
.hero-antenna {
  animation: antennaCombo 20s linear infinite;
}

@keyframes antennaCombo {
  0%    { transform: rotateY(0deg) translateY(0); }
  12.5% { transform: rotateY(45deg) translateY(-10px); }
  25%   { transform: rotateY(90deg) translateY(0); }
  37.5% { transform: rotateY(135deg) translateY(-10px); }
  50%   { transform: rotateY(180deg) translateY(0); }
  62.5% { transform: rotateY(225deg) translateY(-10px); }
  75%   { transform: rotateY(270deg) translateY(0); }
  87.5% { transform: rotateY(315deg) translateY(-10px); }
  100%  { transform: rotateY(360deg) translateY(0); }
}

/* ============================================
   PHOTO GALLERY
   ============================================ */

.gallery-section {
  padding: 0;
  overflow: hidden;
  background: var(--navy-dark);
  position: relative;
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: galleryScroll 30s linear infinite;
  padding: 0.5rem 0 1rem;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  flex: 0 0 220px;
  width: 220px;
  height: 320px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  margin: 0 0.5rem;
}

.gallery-item img {
  width: 220px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  bottom: 0.8rem;
  left: 1rem;
  right: 1rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-label {
  text-align: center;
  padding: 1rem 1.5rem 0.5rem;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--grey-700);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 24px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-phone:hover { background: var(--navy-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-yellow { background: var(--white); color: var(--navy); }
.btn-yellow:hover { background: var(--grey-100); }

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-200);
  padding: 1rem 1.5rem;
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey-600);
}

.trust-item .icon {
  color: var(--blue);
  font-size: 1.1rem;
}

.nav-phone-text {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ============================================
   SECTIONS
   ============================================ */

.section { padding: 4rem 1.5rem; }
.section-alt { background: var(--off-white); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.steps {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ============================================
   SUBURBS / SERVICE AREA
   ============================================ */

.suburb-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}

.suburb-link {
  display: block;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.suburb-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.review-stars {
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--grey-700);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.reviews-link {
  text-align: center;
  margin-top: 1.5rem;
}

.reviews-link a {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}

.reviews-link a:hover { text-decoration: underline; }

/* ============================================
   ABOUT SNIPPET
   ============================================ */

.about-row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-photo {
  width: 280px;
  height: 320px;
  background: var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  object-fit: cover;
}

.about-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.about-content p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.about-content .licence {
  display: inline-block;
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.5rem;
}

/* ============================================
   CTA BOX
   ============================================ */

.cta-section {
  padding: 4rem 1.5rem;
}

.cta-box {
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box h2 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn { position: relative; z-index: 1; }

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--grey-200);
  padding: 1.2rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.faq-a {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--blue-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0.6rem 1rem;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem;
  border-radius: 8px;
  width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Hero animations on load */
.hero-badge { animation: fadeIn 0.6s ease-out 0.2s both; }
.hero h1 { animation: fadeInUp 0.7s ease-out 0.3s both; }
.hero-sub { animation: fadeInUp 0.7s ease-out 0.5s both; }
.hero-ctas { animation: fadeInUp 0.7s ease-out 0.7s both; }

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Card hover lift */
.service-card, .review-card, .suburb-link {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover, .review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.suburb-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Step number pulse */
.step-number {
  transition: transform 0.3s ease;
}
.step:hover .step-number {
  transform: scale(1.1);
}

/* Smooth phone button pulse */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,58,95,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(30,58,95,0); }
}

.mobile-cta a {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem;
    gap: 0.8rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top: 1px solid var(--grey-200);
  }
  .nav-toggle { display: block; }
  .mobile-cta { display: block; }
  body { padding-bottom: 70px; }

  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { text-align: center; }
  .hero-text .hero-ctas { justify-content: center; }
  .hero-antenna { width: 220px; height: 220px; margin: 0 auto; }
  .gallery-item { width: 180px; height: 260px; }

  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .step { padding: 1rem; }

  .about-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo {
    width: 200px;
    height: 240px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section { padding: 3rem 1.5rem; }
  .section-header h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .trust-inner { gap: 0.8rem 1.5rem; }
  .trust-item { font-size: 0.8rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .suburb-grid { grid-template-columns: repeat(2, 1fr); }
}
