:root{
  --bg:#ffffff;
  --card:#ffffff;
  /* Navy accent */
  --accent:#0b3d91;
  /* near-black muted text */
  --muted:#111827;
  --glass: rgba(255,255,255,0.6);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  /* Use Montserrat (loaded from Google Fonts) with sensible fallbacks */
  font-family: 'Montserrat', Arial, "Helvetica Neue", Helvetica, sans-serif;
  background:linear-gradient(180deg,var(--bg),#eef2f6);
  color:#111827;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container{max-width:1200px;margin:0 auto;padding:1rem}

.site-header{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid #e6edf2;background:var(--card)}
.brand{display:flex;gap:0.75rem;align-items:center}
.logo{width:140px;height:140px}
.site-header h1{margin:0;font-size:1.125rem}
.site-header .tagline{margin:0;color:var(--muted);font-size:.85rem}
.season{background:var(--accent);color:#fff;padding:.45rem .75rem;border-radius:999px;font-weight:700;font-size:.95rem;text-decoration:none;display:inline-block}

/* Hide the textual brand (name + tagline) on small screens to prioritize the CTA */
@media(max-width:719px){
  .brand > div{display:none}
  .site-header h1{position:relative;clip:rect(0 0 0 0);height:1px;overflow:hidden}
  .site-header .tagline{position:relative;clip:rect(0 0 0 0);height:1px;overflow:hidden}
  /* Increase header logo on small screens so branding remains legible */
  .logo{width:96px;height:96px}
}

/* Make the season link appear as a prominent button and accessible */
.season:focus{outline:3px solid rgba(255,255,255,0.14);outline-offset:3px}
.season:hover{filter:brightness(.98);transform:translateY(-1px)}

/* Smooth scroll for in-page CTA */
html{scroll-behavior:smooth}

.card{background:var(--card);border-radius:12px;padding:1rem;margin:1rem 0;box-shadow:0 6px 18px rgba(20,30,40,0.06);}
h2{margin:.4rem 0 0.6rem}
h3{margin:.6rem 0}

.services-list{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;list-style:none;padding:0;margin:0}
.services-list li{display:flex;gap:.6rem;align-items:center;color:var(--muted)}
.services-list i{color:var(--accent);min-width:20px}

.values{list-style:disc;padding-left:1rem;color:var(--muted)}

/* Values cards */
.values-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:.75rem;margin-top:.5rem}
.value-card{display:flex;gap:.75rem;align-items:flex-start;padding:.75rem;border-radius:10px;background:linear-gradient(180deg,#ffffff,#fbfdff);border:1px solid #eef2fb;box-shadow:0 6px 14px rgba(20,30,40,0.03);transition:transform .18s ease,box-shadow .18s ease}
.value-card i{font-size:1.45rem;color:var(--accent);min-width:36px}
.value-card h4{margin:0;font-size:1rem}
.value-card p{margin:.2rem 0 0;color:var(--muted);font-size:.92rem}
.value-card:hover,.value-card:focus-within{transform:translateY(-4px);box-shadow:0 12px 30px rgba(11,61,145,0.08)}


.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:.5rem .5rem;text-align:left;border-bottom:1px solid #eef2f6}

.estimator label, .booking label{display:block;font-size:.9rem;margin-top:.6rem;color:var(--muted)}
/* Apply full-width styles only to textual controls, not checkboxes */
.estimator select,
.estimator input:not([type=checkbox]),
.booking input:not([type=checkbox]),
.booking textarea{width:100%;padding:.6rem;border-radius:8px;border:1px solid #e6eef5;margin-top:.25rem}

.addons{margin-top:.75rem;display:grid;gap:.35rem}
.addons label{display:inline-flex;align-items:center;gap:.6rem;font-size:.95rem;white-space:normal}
.addons label input[type=checkbox]{flex:0 0 auto;margin:0}
.promo{color:var(--accent);font-weight:600}

.est-result{display:flex;gap:.75rem;align-items:center;margin-top:.75rem}
.btn{background:transparent;border:1px solid var(--accent);color:var(--accent);padding:.6rem .9rem;border-radius:8px;cursor:pointer;text-decoration:none}
.btn.primary{background:var(--accent);color:#fff;border:0}

#estimateOutput{padding:.5rem .75rem;border-radius:8px;background:linear-gradient(180deg,#fbfffc,#f5fffa);min-width:160px}

.est-summary{font-size:1rem;margin-bottom:.5rem}
.est-summary{font-size:0.95rem;margin-bottom:.6rem}
.est-summary .est-total{display:block;font-size:1.35rem;font-weight:700;color:#0b3d91;margin-top:.35rem}
.est-summary{padding:.6rem;border-radius:10px;background:linear-gradient(180deg,#f2f6ff,#ffffff);box-shadow:0 8px 20px rgba(11,61,145,0.06);border:1px solid rgba(11,61,145,0.08)}
.est-breakdown{background:#ffffff;padding:.6rem;border-radius:10px;border:1px solid #eef2fb;margin-top:.6rem}
.est-breakdown .row{display:flex;justify-content:space-between;align-items:center;padding:.45rem 0;border-bottom:1px dashed #eef6f0}
.est-breakdown .row:last-child{border-bottom:0}
.est-breakdown .label{display:flex;align-items:center;gap:.6rem;color:var(--muted)}
.est-breakdown .label i{color:var(--accent);background:#f3fff8;padding:.25rem;border-radius:6px}
.est-breakdown .price{color:var(--accent);font-weight:700}

.est-actions{display:flex;gap:.6rem;margin-top:.6rem}
.est-actions .btn.primary{padding:.6rem 1rem}
.est-actions .btn{padding:.5rem .85rem}

/* small pop animation for the total when it updates */
.est-summary.pop{animation:pop .42s cubic-bezier(.2,.9,.25,1)}
@keyframes pop{0%{transform:scale(.98);opacity:.8}50%{transform:scale(1.04)}100%{transform:none;opacity:1}}

/* Booking playful heading and kangaroo animation */
.booking-head{display:flex;align-items:center;gap:.6rem}
.icon-wrap{display:inline-flex;align-items:center}
.kangaroo{transform-origin:center bottom;animation:hop 1.6s ease-in-out infinite}
@keyframes hop{0%{transform:translateY(0)}40%{transform:translateY(-6px)}60%{transform:translateY(-4px)}100%{transform:translateY(0)}}

.contact-line{margin-top:.8rem;padding:.6rem;border-radius:8px;background:linear-gradient(180deg,#fffefc,#fbfffb);border:1px solid #f0f6f1}
.contact-line p{margin:.2rem 0}
.contact-line .micro{color:var(--muted);font-size:.9rem}

/* Make contact links use the brand accent instead of default browser blue */
.contact-line a,
.contact-line a:link,
.contact-line a:visited{
  color:var(--accent);
  text-decoration:underline;
  font-weight:600;
}
.contact-line a:hover,
.contact-line a:focus{
  color:var(--accent);
  text-decoration:none;
  outline:3px solid rgba(11,61,145,0.12);
  outline-offset:3px;
}

/* Improve readability of compact contact lines on small screens */
@media(max-width:719px){
  .contact-line p{line-height:1.6;margin-bottom:0.4rem}

  /* Extra spacing for booking area (hint + ServiceM8 button) on small screens */
  .booking .hint{line-height:1.6;margin-bottom:0.6rem}
  .booking .servicem8-wrap{margin-top:1rem;margin-bottom:0.9rem}
}

.include-estimate{display:block;margin-top:.6rem;color:var(--muted);font-size:.95rem}
.booking-cta{display:flex;gap:.5rem;flex-wrap:wrap}

.test-grid{display:grid;gap:.75rem}
.test-grid blockquote{margin:0;padding:.75rem;border-left:4px solid var(--accent);background:#fcfffc;border-radius:8px}
.test-grid cite{display:block;margin-top:.4rem;color:var(--muted);font-size:.85rem}

.booking-actions{display:flex;flex-direction:column;gap:.5rem;margin-top:.6rem}
.hint{color:var(--muted);font-size:.8rem}

/* Ensure there's comfortable spacing between the hint text and the ServiceM8 button */
.booking .servicem8-wrap{margin-top:1.25rem}

.site-footer{text-align:center;color:var(--muted);padding:1rem 0}

/* Footer: navy background with white text and social links */
.site-footer{background:var(--accent);color:#fff;padding:1.5rem 0;margin-top:1.25rem;border-radius:10px}
.site-footer .footer-inner{display:flex;flex-direction:column;gap:.9rem;align-items:center;justify-content:space-between}
.site-footer .footer-col{max-width:680px}
.site-footer .brand-sm{margin:0;font-size:1.05rem}
.site-footer .footer-meta{margin:.25rem 0;color:rgba(255,255,255,0.9)}
.site-footer .footer-contact{margin:.2rem 0}
.site-footer a{color:#ffffff;text-decoration:underline;font-weight:600}
.site-footer a:hover,.site-footer a:focus{color:#e6f0ff;text-decoration:none;outline:3px solid rgba(255,255,255,0.06);outline-offset:3px}

.social-list{list-style:none;padding:0;margin:0;display:flex;gap:.6rem;align-items:center}
.social-list li{display:inline-flex}
.social-list a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;background:rgba(255,255,255,0.06);color:#fff;text-decoration:none}
.social-list a i{font-size:1rem}
.social-list a:hover{background:rgba(255,255,255,0.12);transform:translateY(-3px)}

/* Footer logo used instead of textual brand */
.footer-logo{max-height:200px;display:block;margin:0 auto}
@media(max-width:719px){ .footer-logo{max-height:140px} }

/* Accessibility helper for screen-reader-only text */
.sr-only{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(min-width:720px){
  .site-footer .footer-inner{flex-direction:row;align-items:center}
  .site-footer .footer-col{flex:1}
  .site-footer .socials{text-align:center}
  /* center social icons inside the socials column on desktop */
  .site-footer .socials .social-list{justify-content:center;margin:0}
}

  .site-footer .follow{margin:0 0 .4rem;font-weight:700;color:rgba(255,255,255,0.95)}

/* Footer bottom row: copyright below columns */
.footer-bottom{border-top:1px solid rgba(255,255,255,0.06);padding-top:.65rem;margin-top:.75rem;text-align:center}
.footer-bottom .footer-meta{margin:0;color:rgba(255,255,255,0.85)}

/* Mobile-first responsive tweaks */
@media(min-width:720px){
  .container{padding:1.5rem}
  .services-list{grid-template-columns:repeat(3,1fr)}
  .test-grid{grid-template-columns:repeat(3,1fr)}
  .values-grid{grid-template-columns:repeat(2,1fr)}
}

/* On small screens, show estimator before booking: make the left column's children participate
   in the top-grid flow and reorder them. This keeps the DOM unchanged but adjusts visual order. */
@media(max-width:899px){
  .top-grid{display:flex;flex-direction:column}
  /* allow intro and booking to be treated as siblings of .estimator */
  .left-col{display:contents}
  .intro{order:0}
  .estimator{order:1}
  .booking{order:2}
  /* small vertical spacing between sections */
  .intro,.estimator,.booking{margin:1.25rem 0}
}

/* Add horizontal breathing room for the hero on small screens so it doesn't touch the edges */
@media(max-width:899px){
  .hero{margin:1rem 1rem}
}

/* Timeline: mobile-first vertical narrative */
.timeline{list-style:none;padding:0;margin:0;margin-top:.6rem;display:grid;gap:.6rem}
.timeline-item{display:flex;gap:.75rem;align-items:flex-start}
.tl-marker{flex:0 0 44px;height:44px;border-radius:10px;background:linear-gradient(180deg,#f4f7ff,#ffffff);display:flex;align-items:center;justify-content:center;border:1px solid #eef2fb;box-shadow:0 6px 14px rgba(20,30,40,0.03);color:var(--accent);font-size:1.15rem}
.tl-body h4{margin:0;font-size:1rem}
.tl-body p{margin:.25rem 0 0;color:var(--muted);font-size:.95rem}

/* Horizontal step view on wider screens */
@media(min-width:900px){
  .timeline{display:grid;grid-template-columns:repeat(4,1fr);align-items:start}
  .timeline-item{flex-direction:column;align-items:center;text-align:center;padding:.6rem;border-radius:10px;background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid #eef2fb}
  .tl-marker{margin-bottom:.5rem}
  .tl-body p{font-size:.92rem}
}

/* Desktop: make intro + estimator sit side-by-side and increase spacing */
.top-grid{display:block}
@media(min-width:900px){
  /* Keep a single vertical column on wider screens so tiles stack one-after-another.
     This intentionally removes the previous two-column layout where the booking tile
     floated on the right. */
  .top-grid{display:block;gap:1.5rem}

  /* Make cards breathe more on desktop */
  .card{padding:1.25rem}
  .intro h2{font-size:1.35rem}
  .intro p{font-size:1.03rem;line-height:1.6}

  /* Services grid wider */
  .services-list{grid-template-columns:repeat(2,1fr);gap:1rem}

  /* Ensure estimator/booking sections are not sticky or positioned in a side column */
  .estimator, .booking{position:static;top:auto}
}

@media(min-width:1200px){
  .container{grid-template-columns:1fr 480px}
  .intro h2{font-size:1.5rem}
  .intro p{font-size:1.05rem}
  .card{padding:1.5rem}
  .services-list{grid-template-columns:repeat(3,1fr)}
}

/* Simple entrance animation */
.card{transform:translateY(6px);opacity:0;animation:enter .5s ease forwards}
@keyframes enter{to{transform:none;opacity:1}}

/* Hero / photographic cover (centered card using local image) */
.hero{position:relative;color:#fff;padding:1.25rem 1rem;background-color:var(--accent);overflow:hidden;max-width:1200px;margin:1rem auto;border-radius:12px}
/* Use local cover image from assets/cover.jpg */
.hero{background-image:url('assets/cover.webp');background-size:cover;background-position:center}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(11,61,145,0.6),rgba(0,0,0,0.28));mix-blend-mode:multiply;z-index:0;border-radius:12px}
.hero-inner{max-width:1100px;margin:0 auto;padding:1rem;display:flex;gap:1rem;align-items:center;justify-content:center;position:relative;z-index:1;min-height:260px}
.hero-copy{flex:1;display:flex;flex-direction:column;gap:.6rem;align-items:center;justify-content:center;text-align:center}
.hero-title{font-size:1.35rem;margin:0 0 .4rem;font-weight:700}
.hero-sub{margin:0 0 .8rem;opacity:.95}
.hero-cta{display:flex;gap:.6rem;flex-wrap:wrap}
.hero-logo{width:auto;max-height:220px;opacity:0.95;filter:drop-shadow(0 8px 20px rgba(10,30,20,0.18));display:block;margin:0 auto}
.hero-art{flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.hero {position:relative;color:#fff;padding:1.25rem 1rem;background-color:var(--accent);overflow:hidden;max-width:1200px;margin:1rem auto;border-radius:12px}
.hero-inner{max-width:1100px;margin:0 auto;padding:1rem;display:flex;gap:1rem;align-items:center;justify-content:center;position:relative;z-index:1;min-height:260px}
.hero-copy{flex:1;display:flex;flex-direction:column;gap:.6rem;align-items:center;justify-content:center;text-align:center}
.hero-panel{background:rgba(6,14,12,0.6);padding:1rem 1.15rem;border-radius:10px}
.hero-tagline{margin-top:0;color:#fff;font-weight:800;letter-spacing:0.02em;font-size:1.15rem;line-height:1.1}
.hero-brief{margin:.5rem 0 0;color:rgba(255,255,255,0.92);font-size:0.98rem}
.hero-cta{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:0.9rem}
.hero .btn{border-color:rgba(255,255,255,0.95);color:#fff}
.hero .btn.primary{background:#fff;color:var(--accent);border:0;padding:.7rem 1rem;font-weight:700}

/* panel wrapper for the copy to keep contrast over busy images */
.hero-copy > *{max-width:56ch}
.hero-copy{display:flex;align-items:center;justify-content:center}
.hero-copy .hero-inner-panel{background:rgba(0,0,0,0.35);padding:1rem;border-radius:10px}
.hero-copy .hero-panel{background:rgba(6,14,12,0.6)}
.hero .btn{border-color:rgba(255,255,255,0.9);color:#fff}
.hero .btn.primary{background:#fff;color:var(--accent);border:0}

@media(min-width:720px){
  .hero-title{font-size:1.6rem}
  .hero-inner{padding:1.5rem}
  .hero{padding-left:1.5rem;padding-right:1.5rem}
  .hero-tagline{font-size:1.45rem}
  .hero-brief{font-size:1.05rem}
  .hero .btn.primary{padding:.85rem 1.1rem}
}

@media(min-width:900px){
  .hero{padding:2.25rem 0}
  /* Use a two-column layout when there's artwork, but ensure copy spans both columns
    so single-column hero content (like just a tagline) stays centered. */
  .hero-inner{display:grid;grid-template-columns:1fr 320px;align-items:center;min-height:420px}
  .hero-copy{grid-column:1/-1}
  .hero-title{font-size:2rem}
  .hero-logo{max-height:320px}
  .hero-tagline{font-size:2.25rem;margin-top:0}
  .hero-brief{font-size:1.1rem}
  .hero .btn.primary{font-size:1.05rem}
}

/* Make the hero tagline larger and centered on desktop */
@media(min-width:900px){
  .hero-tagline{font-size:1.4rem;margin-top:1rem;text-align:center}
}

/* Re-apply horizontal margins for small screens after hero defaults so it wins in cascade */
@media(max-width:899px){
  .hero{margin-left:1rem;margin-right:1rem}
}

.small{font-size:.85rem}

/* Stepper styles for estimator */
.step{margin-top:.6rem}
.hidden{display:none}
.step select, .step input{transition:box-shadow .12s ease}
.hint{color:var(--muted);font-size:.9rem}

/* Estimator progress */
.est-progress{display:flex;gap:.5rem;margin-top:.6rem}
.step-indicator{flex:1;display:flex;flex-direction:column;align-items:center;padding:.4rem;border-radius:8px;background:#f7fbf9;color:var(--muted);font-size:.8rem;transition:all .25s ease}
.step-indicator i{background:var(--glass);padding:.45rem;border-radius:999px;color:var(--accent);margin-bottom:.25rem}
.step-indicator.completed{background:linear-gradient(90deg,#eef4ff,#f8fbff);color:var(--accent);box-shadow:0 6px 12px rgba(11,61,145,0.06);transform:translateY(-4px)}

/* reveal animation for steps */
.step.revealed{animation:reveal .36s ease both}
@keyframes reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* small attention animation for heading icon */
.estimator h2 i{color:var(--accent);margin-right:.5rem;transform-origin:center;display:inline-block}
.estimator h2 i.pulse{animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.12)}100%{transform:scale(1)}}

/* Header icons: consistent icon + bounce-on-hover/focus */
.header-icon{color:var(--accent);margin-right:.6rem;display:inline-block;transform-origin:center bottom;transition:transform .28s cubic-bezier(.2,.9,.25,1)}
.header-icon:hover,.header-icon:focus{transform:translateY(-6px) rotate(-6deg)}
.header-icon:active{transform:translateY(-2px) rotate(-2deg)}

/* Make the whole heading interactive for keyboard users: show bounce when heading is focused */
h2:focus-within .header-icon, h3:focus-within .header-icon{transform:translateY(-6px) rotate(-6deg)}

/* Bounce entire h2 on hover (icon + text) */
h2{display:block;transform-origin:center bottom}
h2:hover, h2:focus-within{animation:heading-bounce .42s ease-out}
@keyframes heading-bounce{
  0%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
 100%{transform:translateY(0)}
}

/* Subhead styling: faint green rounded background and breathing space */
.subhead{display:inline-block;padding:.45rem .75rem;border-radius:15px;background:linear-gradient(180deg,#f6f9ff,#fbfdff);border:1px solid rgba(11,61,145,0.06);margin:0.8rem 0;color:var(--accent)}
.subhead .header-icon{margin-right:.5rem}

@media(min-width:720px){
  .subhead{padding:.55rem .9rem}
}
