/* Mornington Peninsula Roofing Company - Updated Stylesheet */

/* CSS Custom Properties (Color Tokens) */
:root {
    --ink: #0f172a;
    --muted: #475569;
    --border: #e5e7eb;
    --accent: #6b8e79;
    --background: #ffffff;
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;
    --letter-spacing-wide: 0.1em;
    --letter-spacing-wider: 0.15em;
    
    /* Container */
    --container-max-width: 1200px;
    --spacing-xs: 24px;
    --spacing-sm: 32px;
    --spacing-md: 48px;
    --spacing-lg: 60px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-system);
    line-height: var(--line-height-base);
    color: var(--muted);
    background-color: var(--background);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.wrap {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Old Header Styles - Overridden by site.css */
.nav-container{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-weight:700;text-decoration:none;color:var(--ink)}
.site-menu{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.nav-link,.nav-link-button{background:none;border:0;cursor:pointer;font:inherit;text-transform:uppercase;letter-spacing:.2em;font-size:.85rem;text-decoration:none;color:var(--ink);padding:0}
.nav-link:hover,.nav-link:focus-visible,.nav-link-button:hover,.nav-link-button:focus-visible{text-decoration:underline}
.btn{display:inline-block;padding:10px 14px;border-radius:10px;background:var(--accent);color:#fff;text-decoration:none;font-weight:500;font-size:.85rem;text-transform:uppercase;letter-spacing:.1em}
.btn-ghost{background:transparent;border:1px solid var(--border);color:var(--ink)}
/* .nav-toggle styles moved to mobile nav section below */
.hide-md{display:inline-block}
/* Fit on medium screens */
@media (max-width:1024px){
  .site-menu{gap:16px}
  .nav-link,.nav-link-button{letter-spacing:.16em;font-size:.82rem}
  .hide-md{display:none}
}
/* Old mobile menu styles removed - using drawer navigation */

/* Dropdown */
.nav-dropdown{position:relative}
.dropdown-panel{position:absolute;top:100%;left:0;display:none;min-width:220px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 20px rgba(0,0,0,.06);padding:8px}
.nav-dropdown[aria-expanded="true"] .dropdown-panel{display:block}
.dropdown-link{display:block;padding:10px 12px;color:var(--ink);text-decoration:none}
.dropdown-link:hover,.dropdown-link:focus-visible{background:#f7f7f7}
/* Active state */
.nav-link[aria-current="page"], .nav-link-button[aria-current="page"]{text-decoration:underline}

/* CTA Navigation Buttons */
.nav-cta{display:flex;gap:12px;align-items:center;margin-left:16px}
.cta-phone{color:var(--accent);font-weight:600;text-decoration:none;font-size:.9rem}
.cta-phone:hover{text-decoration:underline}
.cta-quote{background:var(--accent);color:#fff;padding:8px 16px;border-radius:6px;text-decoration:none;font-weight:500;font-size:.85rem;text-transform:uppercase;letter-spacing:.1em}
.cta-quote:hover{background:#5a7a68;transform:translateY(-1px)}
@media (max-width:820px){
  .nav-cta{margin-left:0;margin-top:8px;justify-content:center}
}

/* Active link underline */
.nav-link[aria-current="page"], .nav-link-button[aria-current="page"]{text-decoration:underline}

/* Focus Styles for Accessibility */
.nav-link:focus-visible,
.nav-link-button:focus-visible,
.dropdown-link:focus-visible,
.cta-phone:focus-visible,
.cta-quote:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Old nav-toggle focus styles removed - using drawer navigation */

/* Smooth scroll + sticky offset for in-page anchors */
[id]{scroll-margin-top:80px}
html{scroll-behavior:smooth}

/* Roofing Specialists Header Bar */
.roofing-specialists-bar {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.roofing-specialists-bar h2 {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--ink);
    margin: 0;
}

/* Hero Section - Full Width */
.hero-fullwidth {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('../img/Mornington_Peninsula_Roofing_Hero.png') center center/cover no-repeat;
}

.hero-background picture {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-logo {
    text-align: center;
    color: white;
}

.logo-icon {
    margin: 0 0 16px 0;
    display: flex;
    justify-content: center;
}

.company-name {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 0.9;
    margin: 16px 0 0 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-fullwidth {
        height: 50vh;
        min-height: 350px;
    }
    
    .company-name {
        font-size: clamp(24px, 8vw, 36px);
    }
}

/* USP/Trust Bar */
.usp {
    padding: 14px 0;
    border-top: 1px solid #e7ecef;
    border-bottom: 1px solid #e7ecef;
    margin-bottom: 10px;
}

.usp-list {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media(min-width:768px) {
    .usp-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Card Grid for Services */
.card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media(min-width:900px) {
    .card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.card {
    display: block;
    padding: 16px;
    border: 1px solid #e7ecef;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* New About Section */
.about{padding:64px 20px;border:1px solid var(--border);background:#fff}
.about-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:220px 1fr;gap:48px;align-items:start}
.about-label{letter-spacing:.35em;font-weight:700;color:var(--ink)}
.about-content{max-width:65ch;color:var(--muted)}
.about-content *{word-break:normal;overflow-wrap:break-word;hyphens:auto}
.about-title{font-size:clamp(28px,4vw,44px);line-height:1.1;color:var(--ink);margin-bottom:16px}
.btn{display:inline-block;padding:10px 16px;background:var(--accent);color:#fff;border-radius:8px;text-decoration:none}
.btn:hover,.btn:focus-visible{filter:brightness(.95)}
.btn-ghost{background:transparent;border:1px solid var(--border);color:var(--ink);padding:10px 16px;border-radius:8px;text-decoration:none}
.btn-ghost:hover,.btn-ghost:focus-visible{background:var(--accent);color:#fff}
@media (max-width:900px){.about-inner{grid-template-columns:1fr}.about-label{order:-1;margin-bottom:8px}}

/* Services Section */
.services-section {
    padding: var(--spacing-lg) 0;
    background-color: #fafafa;
}

.services-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-overline {
    display: block;
    font-size: 14px;
    letter-spacing: var(--letter-spacing-wider);
    color: var(--muted);
    margin-bottom: 8px;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--ink);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    line-height: 1.1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: var(--spacing-md);
}

.service-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.service-card p {
    font-size: 15px;
    line-height: var(--line-height-relaxed);
    color: var(--muted);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-lg) 0;
}

.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: var(--letter-spacing-wide);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-system);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(107, 142, 121, 0.1);
}

/* Field Error Styling */
.field-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.error .field-error {
    display: block;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.submit-button {
    background-color: var(--accent);
    color: var(--background);
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    margin: 0 auto;
    min-width: 120px;
}

.submit-button:hover,
.submit-button:focus {
    background-color: #5a7a6a;
    transform: translateY(-1px);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-success {
    background-color: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 4px;
    text-align: center;
    margin-top: 16px;
    border: 1px solid #bbf7d0;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.footer-section h4 {
    font-size: 14px;
    font-weight: bold;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--accent);
}

.footer-section p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

/* Two-column layout for locations list in footer */
.footer-links.loc-columns {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links.loc-columns li {
    margin-bottom: 8px;
    break-inside: avoid;
}

@media (min-width: 768px) {
    .footer-links.loc-columns {
        columns: 2;
        column-gap: 24px;
    }
}

@media (max-width: 767px) {
    .footer-links.loc-columns {
        columns: 1;
    }
}

/* Optional progressive enhancement script can be added to ensure the class is present */

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 16px;
        --spacing-sm: 24px;
        --spacing-md: 32px;
        --spacing-lg: 40px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .company-title h1 {
        font-size: 20px;
        letter-spacing: 0.1em;
    }
    
    
    .section-title {
        font-size: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 40vh;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Location Page Styles */
.section{padding:64px 20px}
.two-col{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.media img{width:100%;height:auto;border-radius:12px;display:block}
.content{max-width:65ch;color:var(--muted)}
.btn-row .btn{margin-right:10px}
@media (max-width:900px){.two-col{grid-template-columns:1fr;gap:24px}}

/* === Header: always white & fixed (sticky) === */
:root{
  --mpr-header-height: 74px; /* adjust if the header is taller/shorter */
}

.site-header,
.navigation,
.site-header.scrolled,
.navigation.scrolled {
  position: sticky !important;          /* keep header fixed without layout jump */
  top: 0;
  z-index: 9999;
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
  backdrop-filter: none;
}

/* Ensure menu text remains readable on white */
.navigation .nav-menu a,
.navigation .nav-menu button,
.navigation .logo,
.navigation .phone-number,
.site-header .nav-link,
.site-header .nav-link-button,
.site-header .brand {
  color: #0F172A !important; /* near-black for legibility */
}

/* Hover/active states */
.navigation .nav-menu a:hover,
.navigation .nav-menu a:focus,
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link-button:hover,
.site-header .nav-link-button:focus-visible {
  color: #1E3A8A !important; /* subtle brand-friendly blue */
}

/* Mobile menu panel white */
.mobile-menu,
.site-menu[aria-expanded="true"] {
  background: #ffffff !important;
}

/* Prevent anchor links from hiding under fixed header */
html { scroll-padding-top: var(--mpr-header-height); }

/* Remove/neutralize the dark strap bar under header */
.top-strap,
.nav-strip,
.site-strap,
.roofing-specialists-bar {
  display: none !important;           /* OR: background:#fff; color:#0F172A; */
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================
   Emergency CTA Banner
   ========================= */
:root{
  /* Emergency CTA color variables */
  --cta-dark: #222;              /* deep charcoal */
  --cta-dark-2: #3d3d3d;         /* secondary gray for angled area */
  --cta-red: #c41207;            /* button red */
  --cta-red-hover: #a50f06;      /* darker on hover */
  --cta-text: #ffffff;           /* white text */
  --cta-radius: 12px;
}

.emergency-cta{
  position: relative;
  isolation: isolate; /* keep pseudo below contents */
  margin: 56px auto 40px;
  border-radius: var(--cta-radius);
  overflow: hidden;
  background: var(--cta-dark);
  color: var(--cta-text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* angled wedge on the right */
.emergency-cta::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 58%, var(--cta-dark-2) 58%);
  z-index: 0;
}

.emergency-cta__inner{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 28px) clamp(16px, 3vw, 28px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
}

.emergency-cta__left{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.emergency-cta__icon{
  flex: 0 0 auto;
  color: #ff4a3d; /* subtle accent for icon */
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2));
}

.emergency-cta__title{
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.emergency-cta__right{
  display: flex;
  justify-content: flex-end;
}

.emergency-cta__btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta-red);
  color: var(--cta-text);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 18px rgba(196,18,7,0.35);
  transform: translateZ(0); /* better rendering */
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.emergency-cta__btn:hover,
.emergency-cta__btn:focus-visible{
  background: var(--cta-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(196,18,7,0.42);
  outline: none;
}

.emergency-cta__btn:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(196,18,7,0.28);
}

.emergency-cta__btn-icon{
  flex: 0 0 auto;
}

/* Responsive: stack on small screens */
@media (max-width: 720px){
  .emergency-cta__inner{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .emergency-cta__right{
    justify-content: flex-start;
  }
  .emergency-cta::after{
    background: linear-gradient(120deg, transparent 80%, var(--cta-dark-2) 80%);
  }
}

/* =============== Before/After (Home) =============== */

/* Match the FAQ heading look (centered, sentence-case, similar size/weight) */
.home-heading.h-like-faq {
  margin: 0 auto 1.25rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #102230;               /* same navy tone used for FAQ title */
  text-transform: none;         /* ensure not ALL CAPS */
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem);
}
.home-heading .muted {
  color: #6b7a86;
  font-weight: 600;
}

/* Overall section spacing to match other home sections */
.ba-section {
  padding: clamp(1.75rem, 3vw, 2.25rem) 0;
}

/* Width constraint so it never overflows the viewport */
.ba-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Slider frame */
.ba-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 34, 48, 0.08);
  background: #0a0f14;
  /* Give the slider a respectful height that fits comfortably on most screens */
  height: clamp(260px, 45vw, 520px);
}

/* Images fill, are always covered, and responsive */
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

/* Clipped "before" layer controlled by the handle (via CSS var --split) */
.ba-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, var(--split,50%) 0, var(--split,50%) 100%, 0 100%);
  transition: clip-path 80ms linear;
}

/* Drag handle */
.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--split, 50%);
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(16, 34, 48, 0.85);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  cursor: ew-resize;
}
.ba-handle::before,
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #fff;
  opacity: 0.9;
}
.ba-handle::before { left: 8px; transform: translateY(-50%); }
.ba-handle::after  { right: 8px; transform: translateY(-50%); }

/* Badges */
.ba-badge {
  position: absolute;
  top: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(16,34,48,0.80);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.ba-badge--before { left: 10px; }
.ba-badge--after  { right: 10px; }

/* Tweak spacing on very small screens */
@media (max-width: 560px) {
  .home-heading.h-like-faq {
    margin-bottom: 0.75rem;
  }
  .ba-badge {
    font-size: 11px;
    padding: 5px 8px;
  }
  .ba-handle {
    width: 30px;
    height: 30px;
  }
}

/* BEFORE/AFTER — make clip-path read the CSS var across browsers */
#before-after .ba-frame {
  position: relative;
  overflow: hidden;
  /* Default split if JS hasn't run yet */
  --split: 50%;
}

#before-after .ba-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, var(--split,50%) 0, var(--split,50%) 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, var(--split,50%) 0, var(--split,50%) 100%, 0 100%);
  will-change: clip-path;
  transition: clip-path 80ms linear;
}

/* Basic handle positioning; keep or adjust to your design */
#before-after .ba-handle {
  position: absolute;
  top: 50%;
  left: var(--split, 50%);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  z-index: 5;
  /* your visual styles already in place */
}

/* Make sure images fill the frame */
#before-after .ba-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* Ribbon component (Experience) */
.ribbon {
  position: relative;
  color: #fff;
  background: #222; /* dark band */
  overflow: hidden;
}

.ribbon--experience {
  /* diagonal darker wedge on the right side */
  --ribbon-accent: #3b3b3b;
}

.ribbon--experience::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 30%;
  width: 120px;
  background: var(--ribbon-accent);
  transform: skewX(-24deg);
  pointer-events: none;
}

/* Content container */
.ribbon__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Left group */
.ribbon__left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ribbon__icon {
  color: #ff6a4d; /* subtle warm accent to match prior banner icon */
  display: inline-flex;
}

.ribbon__title {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.3px;
  font-weight: 700;
}

/* CTA button */
.ribbon__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #d61207;       /* brand red from emergency CTA */
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(214,18,7,0.2);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  white-space: nowrap;
  position: relative;
  z-index: 10;
  margin-right: 8px;
}

.ribbon__cta:hover,
.ribbon__cta:focus-visible {
  background: #bf1107;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(214,18,7,0.28);
  outline: none;
}

.ribbon__cta-icon {
  display: inline-block;
}

/* Responsive */
@media (max-width: 840px) {
  .ribbon__inner {
    flex-direction: column;
    text-align: center;
  }

  .ribbon--experience::after {
    right: -80px; /* push accent out so it doesn't crowd */
    opacity: 0.4;
  }
}

/* HERO – Mornington Peninsula Roofing */

.hero--mpr {
  position: relative;
  isolation: isolate;
  min-height: clamp(60vh, 80vh, 90vh);
  display: grid;
  align-items: center;
}

/* Removed old media/img styles - now using background-image */

.hero--mpr .hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(32px, 8vh, 80px);
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero--mpr .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* Left content */
.hero--mpr .hero__content {
  color: #fff;
  max-width: 720px;
}

.hero--mpr .hero__eyebrow {
  font: 600 12px/1.4 Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .9;
  margin: 0 0 10px;
}

.hero--mpr .hero__title {
  margin: 0 0 18px;
  line-height: 1.05;
  font-size: clamp(34px, 5.6vw, 64px);
  font-family: "Peace Sans", "Impact", "Arial Black", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hero--mpr .hero__cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Badge removed */

/* Quote form card */
.hero-form {
  background: #ffffff;
  border-radius: 14px;
  padding: clamp(16px, 2.6vw, 24px);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.20);
  width: 100%;
  max-width: 520px;
}

.hero-form .form-row {
  display: grid; gap: 6px;
  margin-bottom: 12px;
}

.hero-form label {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: #0b1a26;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100%;
  font: 500 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  outline: none;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
  border-color: #94c6ff;
  box-shadow: 0 0 0 3px rgba(112, 161, 255, .25);
}

.hero-form .form-note {
  margin-top: 8px;
  font-size: 12px;
  color: #66768a;
}

/* Hero-specific Buttons */
.hero--mpr .btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700; letter-spacing: .02em;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.hero--mpr .btn--primary {
  background: #0ea5e9; color: #fff; border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(14,165,233,.25);
}
.hero--mpr .btn--primary:hover { transform: translateY(-1px); }

.hero--mpr .btn--ghost {
  color: #fff; border: 1px solid rgba(255,255,255,.7); background: transparent;
}
.hero--mpr .btn--ghost:hover { background: rgba(255,255,255,.08); }

.hero--mpr .btn--block { width: 100%; }

/* === Brand fonts === */
@font-face {
  font-family: "Peace Sans";
  src: url("/assets/fonts/Peace Sans Webfont.ttf") format("truetype"),
       url("/assets/fonts/Peace Sans.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* Use system Roboto if present; otherwise pull from Google in <head> below */
:root {
  --brand-headline-font: "Peace Sans", Arial, sans-serif;
  --brand-support-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* === Hero — image + typography === */
.hero--mpr {
  /* force the correct image */
  background-image: url("/img/hero-main-image-new.png?v=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--mpr::before {
  /* subtle dark overlay for legibility */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.35));
  pointer-events: none;
  z-index: 1;
}

.hero__pretitle {
  font-family: var(--brand-support-font);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #cfe3f0;
  opacity: .92;
}

.hero__title {
  font-family: var(--brand-headline-font);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}

/* responsive clamps so it doesn't blow out on mobile */
.hero__title {
  font-size: clamp(34px, 5.6vw, 84px);
}
.hero__pretitle {
  font-size: clamp(12px, 1.6vw, 16px);
}

/* Kill any hero quote bubble variants */
.hero .cta-bubble,
.hero .quote-bubble,
.hero .hero-quote-bubble,
.hero .get-quote-bubble,
.hero .cta-fab,
.hero__badge,
.get-a-fast-quote-bubble {
  display: none !important;
}

/* Header base */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100; /* above hero/form */
  background: rgba(255,255,255,0.98); /* desktop stays visually similar */
  backdrop-filter: saturate(180%) blur(6px);
}
.site-header .nav-wrap {
  display:flex; align-items:center; justify-content:space-between;
  min-height:64px;
}

/* Desktop nav */
.primary-nav { display:block; }
.primary-nav .nav-list { display:flex; gap:24px; align-items:center; list-style: none; margin: 0; padding: 0; }
.primary-nav .has-submenu { position:relative; }
.primary-nav .submenu {
  position:absolute; left:0; top:calc(100% + 8px);
  background:#fff; color:#0b1a27; border-radius:10px; padding:10px 0;
  min-width:220px; box-shadow:0 8px 32px rgba(0,0,0,.12);
  opacity:0; transform:translateY(-6px); pointer-events:none; transition:all .18s ease;
  z-index:1200; list-style: none; margin: 0;
}
.primary-nav .has-submenu:hover .submenu,
.primary-nav .has-submenu:focus-within .submenu {
  opacity:1; transform:translateY(0); pointer-events:auto;
}
.submenu li a { display:block; padding:10px 14px; text-decoration: none; }
.submenu li a:hover { background: #f8fafc; }

.primary-nav a, .primary-nav button { 
  text-decoration: none; 
  color: #0b1a27; 
  background: none; 
  border: 0; 
  cursor: pointer; 
  font: inherit; 
  padding: 8px 12px;
}

.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* CTAs */
.nav-cta { display:flex; gap:12px; align-items:center; }
.phone-link { 
  white-space:nowrap; 
  text-decoration: none;
  color: #0b1a27;
  padding: 8px 12px;
}
.btn-outline {
  background: transparent;
  border: 1px solid #0b1a27;
  color: #0b1a27;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}
.btn-outline:hover {
  background: #0b1a27;
  color: #fff;
}

/* Hamburger */
.hamburger { display:none; background:none; border:0; width:36px; height:30px; position:relative; cursor: pointer; }
.hamburger span {
  position:absolute; left:0; right:0; height:3px; background:#0b1a27; border-radius:3px; transition:transform .2s, opacity .2s;
}
.hamburger span:nth-child(1){ top:4px; }
.hamburger span:nth-child(2){ top:13.5px; }
.hamburger span:nth-child(3){ bottom:4px; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform:translateY(9.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-9.5px) rotate(-45deg); }

/* Mobile panel - Full Screen */
.mobile-menu {
  position:fixed; inset:0; 
  transform:translateY(-100%); transition:transform .3s ease-out;
  background:#fff; color:#0b1a27; z-index:9999; overflow:auto; padding:80px 24px 36px;
  display:flex; flex-direction:column;
}
.mobile-backdrop {
  position:fixed; inset:0; background:rgba(0,0,0,.6);
  z-index:9998; opacity:0; transition:opacity .3s ease; pointer-events:none;
}

/* Mobile list */
.mobile-list { display:flex; flex-direction:column; gap:6px; list-style: none; margin: 0; padding: 0; }
.mobile-list > li > a { display:block; padding:12px 6px; font-size:16px; text-decoration: none; color: #0b1a27; }
.mobile-list > li > a:hover { background: #f8fafc; border-radius: 6px; }

/* Accordions */
.mobile-accordion {
  width:100%; text-align:left; background:#f6f8fb; border:0; padding:12px 10px;
  border-radius:10px; font-size:16px; display:flex; justify-content:space-between; align-items:center;
  cursor: pointer;
}
.mobile-accordion:hover {
  background: #e2e8f0;
}
.mobile-sub {
  max-height:0; overflow:hidden; transition:max-height .22s ease; margin:4px 0 8px 0; padding-left:8px;
  list-style: none;
}
.mobile-accordion[aria-expanded="true"] + .mobile-sub { max-height:600px; }
.mobile-sub li a { 
  display:block; padding:10px 8px; border-radius:8px; 
  text-decoration: none; 
  color: #0b1a27;
}
.mobile-sub li a:hover { background: #f1f5f9; }

.mobile-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.btn-primary {
  background: #0b1a27;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  display: block;
}
.btn-primary:hover {
  background: #1e293b;
}
.w-full { width: 100%; }

/* When menu open - using html.mobile-open class */
html.mobile-open { overflow:hidden; }
html.mobile-open .mobile-menu { transform:translateY(0); }
html.mobile-open .mobile-backdrop { opacity:1; pointer-events:auto; }

/* Responsive switches */
@media (max-width: 992px){
  .primary-nav, .nav-cta { display:none !important; }
  .hamburger { display:inline-block; }
  /* Hard disable desktop dropdowns on mobile */
  .nav-dropdown, .dropdown-panel { display:none !important; }
  /* ensure hero isn't covered by sticky header on small screens */
  .hero, .hero-wrap { scroll-margin-top:72px; }
}