/* ═══════════════════════════════════════════════════════════════
   Coastal Diesel & Marine — Stylesheet
   Fonts: Barlow Condensed (display) + Barlow (body)
   Palette: Orange #F5A000 | Dark #0f1114 | Light Blue #b8d8e8
═══════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --orange:      #F5A000;
  --orange-dk:   #c07d00;
  --dark:        #0f1114;
  --navy:        #1a2535;
  --light-blue:  #b8d8e8;
  --off-white:   #f2f2ee;
  --text-dark:   #1d232b;
  --text-mid:    #3d4a55;

  --font-d: 'Barlow Condensed', sans-serif;
  --font-b: 'Barlow', sans-serif;

  /* Hero background — aerial Sunshine Coast coastline */
  --hero-bg: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80');
  /* Reviews background — dark ocean aerial */
  --reviews-bg: url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?auto=format&fit=crop&w=1800&q=80');
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--dark);
  color: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ─── Section headers ────────────────────────────────────────── */
.section-header        { text-align: center; margin-bottom: 52px; }
.section-header h2     {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--text-dark);
}
.section-header-light h2 { color: #fff; }

.rule {
  width: 56px;
  height: 4px;
  background: var(--orange);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════ NAV ══ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5%;
}

.nav-logo img {
  height: 92px;
  width: auto;
  transform: scale(1.14);
  transform-origin: left center;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
  transition: opacity 0.2s, transform 0.2s;
}
.nav-logo:hover img { opacity: 0.85; transform: scale(1.11); }

.nav-links {
  display: flex;
  gap: 38px;
}
.nav-links a {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 2px;
  background: var(--orange);
  transition: right 0.25s ease;
}
.nav-links a:hover        { color: var(--orange); }
.nav-links a:hover::after { right: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════════════════════════════════════════ HERO ══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      160deg,
      rgba(8, 14, 20, 0.72) 0%,
      rgba(15, 30, 45, 0.58) 50%,
      rgba(5, 10, 15, 0.80) 100%
    ),
    var(--hero-bg) center / cover no-repeat;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 5%;
  margin-top: 60px;
  max-width: 960px;
}

.hero-eyebrow {
  font-family: var(--font-d);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}

.hero-content h1 {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--dark);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--orange-dk);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-line {
  width: 2px;
  height: 54px;
  background: linear-gradient(to bottom, transparent, var(--orange));
  margin: 0 auto;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.8); }
  50%       { opacity: 1;    transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════ ABOUT ══ */
.about {
  background: var(--light-blue);
  padding: 88px 0;
}
.about .section-header h2 { color: var(--text-dark); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  color: var(--text-dark);
  border-bottom: 4px solid transparent;
  transition: transform 0.28s ease, border-color 0.28s, box-shadow 0.28s;
}
.card:hover {
  transform: translateY(-7px);
  border-color: var(--orange);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.card-img-wrap {
  overflow: hidden;
  height: 205px;
  background: #ddd;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.05); }

/* Volvo Penta logo — black background, contain not cover */
.card-img-dark            { background: #000; }
.card-img-dark img        { object-fit: contain; padding: 24px; }

.card-body { padding: 24px 26px 30px; }
.card-body h3 {
  font-family: var(--font-d);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  color: var(--text-dark);
}
.card-body p {
  font-size: 0.91rem;
  line-height: 1.72;
  color: var(--text-mid);
}

/* ═══════════════════════════════════ SERVICE REQUEST ══ */
.service-request {
  background: var(--dark);
  padding: 80px 0;
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}
.service-request-inner { text-align: center; }

.service-request h2 {
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #fff;
  margin-bottom: 26px;
}

.service-link {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(245,160,0,0.35);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.service-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════ CONTACT ══ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.contact-info {
  background: var(--off-white);
  color: var(--text-dark);
  padding: 64px min(6vw, 80px);
}
.contact-info h2 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--orange);
  margin-bottom: 34px;
}

.contact-block         { margin-bottom: 24px; }
.contact-block strong  {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 5px;
}
.contact-block p       { font-size: 0.92rem; line-height: 1.72; color: var(--text-mid); }
.contact-block a       { color: var(--text-mid); transition: color 0.2s; }
.contact-block a:hover { color: var(--orange); }

/* Map */
.contact-map {
  display: flex;
  flex-direction: column;
}
.contact-map iframe {
  flex: 1;
  border: none;
  min-height: 360px;
}

.directions-btn {
  display: block;
  text-align: center;
  padding: 18px;
  background: var(--orange);
  color: var(--dark);
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.directions-btn:hover {
  background: var(--orange-dk);
  color: #fff;
}

/* ═══════════════════════════════════════════ REVIEWS ══ */
.reviews {
  background:
    linear-gradient(rgba(8,13,20,0.84), rgba(8,13,20,0.90)),
    var(--reviews-bg) center / cover no-repeat fixed;
  padding: 92px 0;
}

/* Google rating row */
.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.google-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  padding: 7px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.stars    { color: #f4c430; font-size: 1.5rem; letter-spacing: 3px; }
.rating-score {
  font-family: var(--font-d);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.rating-label { font-size: 0.88rem; opacity: 0.65; }

/* Review cards */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #fff;
  color: var(--text-dark);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--orange);
  transition: transform 0.26s ease, box-shadow 0.26s;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.stars-sm       { color: #f4c430; font-size: 0.95rem; letter-spacing: 2px; line-height: 1.2; }
.review-card blockquote {
  font-size: 0.91rem;
  line-height: 1.68;
  font-style: italic;
  color: var(--text-dark);
  flex: 1;
}
.review-card cite {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  font-style: normal;
}
.read-review {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  transition: opacity 0.2s;
}
.read-review:hover { opacity: 0.7; }

/* ═══════════════════════════════════════════════ FOOTER ══ */
.footer {
  background: #080a0d;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-logo {
  height: 48px;
  width: auto;
  opacity: 0.82;
}
.footer p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ═══════════════════════════════════════════ RESPONSIVE ══ */
@media (max-width: 960px) {
  .cards-grid,
  .reviews-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }

  .contact { grid-template-columns: 1fr; }
  .contact-map { min-height: 360px; }

  /* Mobile nav — fixed header */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    background: rgba(10, 14, 20, 0.97);
    padding: 14px 5%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .nav-logo img { height: 72px; transform: scale(1.12); }

  .nav-links {
    display: none;
    position: fixed;
    top: 80px; left: 0; right: 0;
    z-index: 499;
    background: rgba(10, 14, 20, 0.99);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links li   { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-links a    { display: block; padding: 15px 5%; font-size: 1.1rem; }

  .hero { min-height: 100vh; padding: 80px 0 60px; }
  .hero-content { margin-top: 20px; }
  .hero-scroll  { display: none; }

  .reviews { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-actions    { flex-direction: column; align-items: center; }
  .contact-info    { padding: 48px 6%; }
  .service-request { padding: 60px 0; }
}
