/* ==========================================================
   Boat Repairs Melbourne — style.css
   Colours: #3e3e3e (dark), #f0523d (accent red), #f6f6f6 (light bg), #fff (white)
   Fonts:   Acme (headings), Lato (body)
   ========================================================== */

/* ---- Skip-to-content (a11y) ---- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #f0523d;
  color: #fff;
  padding: .75rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-to-content:focus {
  left: 0;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  color: #3e3e3e;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Font display handled by &display=swap in Google Fonts URL */

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

a { color: #f0523d; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid #f0523d; outline-offset: 2px; }

ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Acme', sans-serif;
  color: #3e3e3e;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: #f0523d;
  color: #fff;
  border-color: #f0523d;
}
.btn-primary:hover {
  background: #d43e2a;
  border-color: #d43e2a;
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: #3e3e3e;
  border-color: #3e3e3e;
}
.btn-secondary:hover {
  background: #3e3e3e;
  color: #fff;
  text-decoration: none;
}
.btn-white {
  background: #fff;
  color: #3e3e3e;
  border-color: #fff;
}
.btn-white:hover {
  background: #f6f6f6;
  color: #3e3e3e;
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: #3e3e3e;
  text-decoration: none;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}
.logo img { height: 52px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3e3e3e;
  border-radius: 3px;
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a.active {
  color: #f0523d;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3e3e3e;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-image-container {
  position: absolute;
  inset: 0;
  min-height: 400px;
}
.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem 0;
}
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-content .section-label { color: #fff; }
.hero-content p  { font-size: 1.15rem; margin-bottom: 1.75rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Services Grid ---- */
.services-section { background: #f6f6f6; }
.services-section .section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card-body p { flex: 1; font-size: 0.95rem; color: #555; }
.service-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: #f0523d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.service-card-link:hover { text-decoration: underline; }

/* ---- About Strip ---- */
.about-strip { background: #fff; }
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-strip img { border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* ---- CTA Banner ---- */
.service-cta, .cta-banner {
  background: #3e3e3e;
  color: #fff;
  text-align: center;
}
.service-cta h2, .cta-banner h2 { color: #fff; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: #f6f6f6;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.875rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.breadcrumb li + li::before { content: "›"; margin-right: 0.25rem; color: #999; }
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: #f0523d; }
.breadcrumb [aria-current="page"] { color: #3e3e3e; font-weight: 700; }

/* ---- Page Hero (interior pages) ---- */
.page-hero {
  background: #3e3e3e;
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ---- Pricing Tables ---- */
.service-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.service-page-content thead {
  background: #3e3e3e;
  color: #fff;
}
.service-page-content th {
  font-family: 'Acme', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
}
.service-page-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}
.service-page-content tbody tr:nth-child(even) {
  background: #f6f6f6;
}
.service-page-content tbody tr:hover {
  background: #eee;
}
@media (max-width: 680px) {
  .service-page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---- Service Page Content ---- */
.service-page-content .container { max-width: 860px; }
.service-page-content h2 { margin-top: 2rem; }
.service-page-content ul, .service-page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}
.service-page-content ol { list-style: decimal; }
.service-page-content li { margin-bottom: 0.4rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-heading { margin: 0; font-size: inherit; font-weight: inherit; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Acme', sans-serif;
  font-size: 1.05rem;
  color: #3e3e3e;
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
}
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-top: 0.75rem;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---- Contact Form ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #3e3e3e;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233e3e3e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f0523d;
  box-shadow: 0 0 0 3px rgba(240,82,61,.15);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-submit { margin-top: 0.5rem; }
.form-message {
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.form-message.success { background: #e6f4ea; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-message.error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

.contact-details h3 { margin-bottom: 0.75rem; }
.contact-details p  { margin-bottom: 0.6rem; }
.contact-details a  { color: #3e3e3e; }
.contact-details a:hover { color: #f0523d; }

/* ---- Map ---- */
.map-wrapper {
  margin-top: 2rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}
.map-wrapper iframe { display: block; }

/* ---- About Page ---- */
.about-section { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid img { border-radius: 6px; width: 100%; height: 340px; object-fit: cover; }
.about-grid ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.about-grid li { margin-bottom: 0.4rem; }

/* ---- Service Area page ---- */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.suburb-card {
  background: #f6f6f6;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  border-left: 3px solid #f0523d;
}
.suburb-card strong { display: block; font-family: 'Acme', sans-serif; text-transform: uppercase; }

/* ---- Footer ---- */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
  padding: 3rem 1.25rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer a { color: #bbb; font-size: 0.95rem; }
.site-footer a:hover { color: #f0523d; text-decoration: none; }
.footer-tagline { font-size: 0.9rem; color: #999; margin: 0.6rem 0 1rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { color: #bbb; }
.footer-social a:hover { color: #f0523d; }
.footer-brand img { filter: brightness(0.9); }
.site-footer address { font-style: normal; }
.site-footer address p { margin-bottom: 0.5rem; font-size: 0.93rem; }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: #f0523d; }

/* ---- Homepage Quote Form ---- */
.quote-form-section { background: #f6f6f6; }
.quote-form-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.quote-form-text h2 { margin-bottom: 1rem; }
.quote-form-text p { color: #555; }
.quote-form-wrap {
  background: #fff;
  padding: 1.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.quote-form .form-submit { margin-top: 0.25rem; }
.quote-form textarea { min-height: 80px; }
.quote-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .quote-form-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .quote-form-row { grid-template-columns: 1fr; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0523d;
  margin-bottom: 0.6rem;
}
.lead { font-size: 1.1rem; color: #555; }
.highlight { color: #f0523d; }
.bg-light { background: #f6f6f6; }
.bg-dark  { background: #3e3e3e; color: #fff; }

/* ---- Suburb list (service area page) ---- */
.suburb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
}
.suburb-list li {
  padding: 0.25rem 0;
  color: #3e3e3e;
  font-size: 0.95rem;
}
.suburb-list li::before {
  content: '→ ';
  color: #f0523d;
  font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-strip-inner,
  .about-grid,
  .contact-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    padding: 1rem 0;
    z-index: 99;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 0.85rem 1.5rem; border-radius: 0; }
  .header-cta {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  .hero { min-height: 380px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 2.5rem 0; }
  .hero-content h1 { font-size: 1.6rem; }
}
