/* ============================================================
   Sunshine Motor Repairs & Tyres — Template A (Auto/Industrial)
   ============================================================ */

:root {
  --accent: #ac3434;
  --accent-hover: #b85252;
  --accent-glow: rgba(172, 52, 52, 0.25);
  --bg: #0a0a0a;
  --surface: #373737;
  --card: #1a1a1a;
  --text: #ffffff;
  --text-muted: #999999;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max-width: 1280px;
  --section-pad: clamp(4rem, 8vw, 8rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p { color: var(--text); }

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

.eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

section {
  padding: var(--section-pad) 0;
}

/* ============================================================
   DEMO WATERMARK
   ============================================================ */

@keyframes demo-pulse {
  0%, 100% {
    opacity: 0.28;
    text-shadow: 0 0 20px var(--accent), 0 0 60px var(--accent), 0 0 120px var(--accent), 0 0 200px var(--accent-glow);
  }
  50% {
    opacity: 0.45;
    text-shadow: 0 0 30px var(--accent), 0 0 80px var(--accent), 0 0 160px var(--accent), 0 0 280px var(--accent-glow);
  }
}

.demo-watermark {
  position: fixed;
  right: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 120px;
  font-weight: 900;
  color: var(--accent);
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.15em;
  -webkit-text-stroke: 2px var(--accent);
  font-family: 'Oswald', sans-serif;
  animation: demo-pulse 3s ease-in-out infinite;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 10000;
  width: 0;
  transition: width 0.1s ease;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo img {
  height: 112px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  position: relative;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay a {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.mobile-overlay a:hover { color: var(--accent); }

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
              url('images/Hero.png') center/cover no-repeat;
  padding: 8rem 0 4rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-tagline {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block { width: 100%; }

.trust-strip {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-item i {
  font-size: 1.75rem;
  color: var(--accent);
}

.trust-item span {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */

.why {
  background: var(--surface);
  text-align: center;
}

.why h2 { margin-bottom: 3rem; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 2rem 1rem;
}

.why-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
  font-size: 2rem;
}

.why-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.services {
  background: var(--bg);
  text-align: center;
}

.services h2 { margin-bottom: 3rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.service-image {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-glow), rgba(172, 52, 52, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image i {
  font-size: 3.5rem;
  color: var(--accent);
}

.service-body {
  padding: 1.75rem;
}

.service-body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   STATS
   ============================================================ */

.stats {
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

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

.gallery {
  background: var(--bg);
  text-align: center;
}

.gallery h2 { margin-bottom: 3rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  grid-auto-rows: 220px;
  text-align: left;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
  padding: 1rem 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

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

.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text);
  font-family: 'Roboto', sans-serif;
}

.feature-list li i {
  color: var(--accent);
  font-size: 1rem;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  background: var(--bg);
  text-align: center;
}

.testimonials h2 { margin-bottom: 3rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.testimonial-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: var(--border);
  font-size: 1.1rem;
}

.star.filled { color: var(--accent); }

.testimonial-card blockquote {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-rows {
  margin: 2rem 0;
}

.contact-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  line-height: 1.5;
}

.contact-value a:hover { color: var(--accent); }

.contact-map iframe {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.contact-form-wrap {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-form .form-row { margin-bottom: 1rem; }

.contact-form label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.contact-form button { margin-top: 0.5rem; }

.form-thanks {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.form-thanks h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-thanks p { color: var(--text-muted); }

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

.footer {
  background: #050505;
  padding: 4rem 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 128px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-icons a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-col ul li a:hover { color: var(--accent); }

.contact-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.contact-list li i {
  color: var(--accent);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 100;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

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

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: 90vh; padding: 6rem 0 3rem; }

  .trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .gallery-item:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image-wrap img { height: 360px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .demo-watermark { font-size: 80px; right: -25px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
