/* ============================================================
   BALLARAT CARPET CLEANING — MAIN STYLESHEET
   Rank & Rent Template — Site 02
   Version: 1.0

   Colour Palette:
     Primary:    #0d5c63  (Deep Teal)
     Dark:       #094a50  (Teal Dark)
     Light:      #1a7a82  (Teal Light)
     White:      #ffffff
     Surface:    #f5f5f5  (Light Grey)
     Border:     #e0e0e0  (Mid Grey)
     Body text:  #333333
     Muted text: #666666
     Accent:     #e8a020  (Amber — CTAs, phone)

   Breakpoints:
     Mobile-first base styles
     Tablet/Desktop: @media (min-width: 768px)
     Wide desktop:   @media (min-width: 1024px)

   To reuse for a new site:
     1. Update --teal values to match new brand colour
     2. Do a find/replace on business name in HTML files
     3. Update placeholder values listed at bottom of each HTML file
   ============================================================ */


/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --teal:        #0d5c63;
  --teal-dark:   #094a50;
  --teal-light:  #1a7a82;
  --white:       #ffffff;
  --grey-light:  #f5f5f5;
  --grey-mid:    #e0e0e0;
  --text:        #333333;
  --text-muted:  #666666;
  --amber:       #e8a020;
  --amber-dark:  #c97a10;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --max-width:   1100px;
  --header-h:    108px; /* 64px top bar + 44px nav row */
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  padding-top: var(--header-h);
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}


/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem;  margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem;  margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

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


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
  text-decoration: none;
  line-height: 1.3;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — teal fill */
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

/* Amber — hero CTA, high-contrast call to action */
.btn-amber {
  background: var(--amber);
  color: #1a1a1a;
  border-color: var(--amber);
}

.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

/* Outline — secondary CTA */
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

/* Small — header call button */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}


/* ============================================================
   STICKY HEADER — two rows: top bar + nav bar
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* --- Top bar row (business name + phone + CTA) --- */
.header-top {
  height: 64px;
  background: var(--teal);
}

.header-top-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Business name */
.site-name {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.site-name:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Phone — hidden on mobile, shown on desktop */
.header-phone {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  display: none;
}

.header-phone:hover {
  color: #ffd166;
  text-decoration: none;
}

/* --- Navigation row --- */
.main-nav {
  height: 44px;
  background: var(--teal-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.main-nav-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow-x: auto;          /* scrollable on very narrow screens */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;     /* Firefox */
}

.main-nav-inner::-webkit-scrollbar {
  display: none;             /* Chrome/Safari */
}

.main-nav a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* Active page indicator */
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--amber);
  background: rgba(255, 255, 255, 0.06);
}


/* ============================================================
   PAGE HERO (coloured banner at top of inner pages)
   ============================================================ */
.page-hero {
  background: var(--teal);
  color: var(--white);
  padding: 40px 0 44px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}


/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  background: var(--teal);
  color: var(--white);
  padding: 52px 0 60px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Large phone number above the fold */
.hero-phone {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #ffd166;
  margin-bottom: 24px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.hero-phone:hover {
  color: #ffe599;
  text-decoration: none;
}

.hero-sub {
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-sub:last-child {
  margin-bottom: 0;
}


/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--grey-light);
  border-bottom: 2px solid var(--grey-mid);
  padding: 18px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
}

.trust-icon {
  width: 22px;
  height: 22px;
  fill: var(--teal);
  flex-shrink: 0;
}


/* ============================================================
   SECTIONS — BASE
   ============================================================ */
.section {
  padding: 48px 0;
}

.section--grey {
  background: var(--grey-light);
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0;
}


/* ============================================================
   SERVICE CARDS (home page overview grid)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  line-height: 1;
}

.card h3 {
  color: var(--teal);
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
}

.card-link::after {
  content: ' →';
}

.card-link:hover {
  text-decoration: underline;
}


/* ============================================================
   SERVICES PAGE — INDIVIDUAL SERVICE SECTIONS
   ============================================================ */
.service-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--grey-mid);
}

.service-section:last-of-type {
  border-bottom: none;
}

.service-section h2 {
  color: var(--teal);
  margin-bottom: 12px;
}

.service-section p {
  max-width: 740px;
}

.service-cta {
  margin-top: 22px;
}


/* ============================================================
   SERVICE AREAS PAGE
   ============================================================ */
/* Pill tags for suburb list on home page */
.suburbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.suburb-tag {
  background: var(--teal);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Individual suburb sections on service-areas.html */
.suburb-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--grey-mid);
}

.suburb-section:last-of-type {
  border-bottom: none;
}

.suburb-section h2 {
  color: var(--teal);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* Highlight for main suburb */
.suburb-section--primary {
  background: var(--grey-light);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: none;
  margin-bottom: 8px;
}

.suburb-section--primary h2 {
  font-size: 1.35rem;
}


/* ============================================================
   FAQ — Pure CSS accordion using <details>/<summary>
   ============================================================ */
.faq-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  padding-right: 48px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  color: var(--text);
  position: relative;
  user-select: none;
}

/* Remove default arrow in webkit */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Custom +/- indicator */
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
}

.faq-item[open] > summary {
  background: var(--teal);
  color: var(--white);
}

.faq-item[open] > summary::after {
  content: '−';
  color: var(--white);
}

.faq-answer {
  padding: 16px 20px;
  background: var(--grey-light);
  border-top: 1px solid var(--grey-mid);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}


/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Custom dropdown arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  max-width: 760px;
}

.trust-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 24px 0 32px;
}

.trust-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  padding: 12px 16px;
  background: var(--grey-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}

.trust-check {
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.guarantee-box {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-top: 8px;
}

.guarantee-box h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.guarantee-box p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

/* Stock photo placeholder */
.placeholder-img {
  background: var(--grey-light);
  border: 2px dashed var(--grey-mid);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 24px;
  gap: 8px;
  margin: 24px 0;
}

.placeholder-img span {
  font-size: 2.5rem;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-phone-banner {
  background: var(--teal);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}

.contact-phone-banner h2 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-phone-link {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffd166;
  text-decoration: none;
  margin: 8px 0 16px;
  letter-spacing: 0.5px;
}

.contact-phone-link:hover {
  color: #ffe599;
  text-decoration: none;
}

.contact-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
}

/* Google Maps embed */
.map-wrap {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-mid);
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 36px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nap {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-nap strong {
  color: var(--white);
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer-nap a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-nap a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 12px 0 0;
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-centre { text-align: center; }
.text-muted   { color: var(--text-muted); }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }


/* ============================================================
   TABLET & DESKTOP BREAKPOINT — 768px+
   ============================================================ */
@media (min-width: 768px) {

  /* Typography */
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.65rem; }

  /* Header */
  .site-name        { font-size: 1.1rem; }
  .header-phone     { display: block; }   /* show phone on desktop */

  .main-nav a       { font-size: 0.875rem; padding: 0 18px; }

  /* Hero */
  .hero { padding: 72px 0 80px; }
  .hero h1     { font-size: 2.5rem; }
  .hero-phone  { font-size: 2.75rem; }
  .hero-sub    { font-size: 1.1rem; }

  /* Trust bar — single row, evenly spaced */
  .trust-bar-inner { flex-wrap: nowrap; }
  .trust-item      { flex: 1; justify-content: center; }

  /* Sections */
  .section { padding: 68px 0; }

  /* Cards — 2 columns */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  /* About trust points — 2 columns */
  .trust-points { grid-template-columns: repeat(2, 1fr); }

  /* Form row — side by side */
  .form-row { grid-template-columns: repeat(2, 1fr); }

  /* Map height */
  .map-wrap iframe { height: 420px; }

  /* Contact phone */
  .contact-phone-link { font-size: 3rem; }

  /* Page hero */
  .page-hero h1 { font-size: 2.25rem; }

  /* Footer — horizontal layout */
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-nap { flex: 1; min-width: 200px; }
}


/* ============================================================
   WIDE DESKTOP BREAKPOINT — 1024px+
   ============================================================ */
@media (min-width: 1024px) {

  /* Cards — 3 columns */
  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  /* About trust points — 2 columns still looks best for content length */
}
