/* ============================================================
   Cape Expert Handyman — hand-written stylesheet (no framework)
   ============================================================ */

:root {
  --brand-primary: #1E2E3D;
  --brand-primary-dark: #141F2A;
  --brand-accent: #DBAD3E;
  --brand-accent-dark: #B78B27;
  --ink: #1D2630;
  --ink-soft: #4C5A67;
  --paper: #FBF8F2;
  --paper-alt: #F2EDE2;
  --line: #E2DACB;
  --white: #FFFFFF;
  --success: #2E7D4F;
  --error: #C0392B;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 35, 50, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 35, 50, 0.12);
  --wrap-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--brand-accent);
  outline-offset: 2px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--brand-primary); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.icon { width: 1.3em; height: 1.3em; }
.icon--sm { width: 1em; height: 1em; }
.icon--xl { width: 3em; height: 3em; }

.logo-mark { height: 42px; width: auto; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--brand-accent); color: var(--brand-primary); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--brand-accent-dark); box-shadow: 0 0 0 1px rgba(219, 173, 62, 0.3), 0 8px 24px -4px rgba(219, 173, 62, 0.55); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.55); color: inherit; }
.btn--outline { background: transparent; border-color: var(--brand-primary); color: var(--brand-primary); padding: 8px 16px; }
.btn--outline:hover { background: var(--brand-primary); color: var(--white); }
.btn--danger { border-color: var(--error); color: var(--error); }
.btn--danger:hover { background: var(--error); color: var(--white); }
.btn--sm { padding: 7px 14px; font-size: 0.85rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--line);
}

.site-header__utility {
  background: var(--brand-primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
}
.site-header__utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 7px 24px; }
.site-header__utility-inner .icon--sm { color: var(--brand-accent); }
.site-header__utility-contact { display: flex; gap: 22px; }
.site-header__utility-contact a { display: inline-flex; align-items: center; gap: 5px; }
.site-header__utility-contact a:hover { color: var(--brand-accent); }

.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--brand-primary); }
.brand__mark { height: 46px; width: auto; flex-shrink: 0; transition: transform 0.18s ease; }
.brand:hover .brand__mark { transform: scale(1.05); }
.brand__mark--custom { max-height: 46px; width: auto; border-radius: 10px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; white-space: nowrap; color: var(--brand-primary); }
.brand__name em { font-style: normal; color: var(--brand-accent-dark); }

.main-nav { display: flex; gap: 26px; flex: 1; justify-content: center; }
.main-nav a { color: var(--brand-primary); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; opacity: 0.8; position: relative; padding: 6px 0; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-accent-dark); transform: scaleX(0); transition: transform 0.2s ease; }
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--brand-primary); border-radius: 2px; }

.mobile-cta-bar { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 700px 420px at 78% 15%, rgba(219, 173, 62, 0.16) 0%, rgba(219, 173, 62, 0) 70%),
    linear-gradient(160deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 24px 96px; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--brand-accent-dark); margin-bottom: 14px; }
.hero .eyebrow { color: #E9C57A; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 0.4em; }
.hero__lede { font-size: 1.12rem; opacity: 0.92; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.88rem; font-weight: 600; opacity: 0.92; }
.hero__badges li { display: flex; align-items: center; gap: 6px; }

.hero__photo { position: relative; max-width: 360px; margin-left: auto; padding: 14px 14px 14px 0; }
.hero__photo::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: -14px; bottom: -14px;
  border: 2px solid var(--brand-accent);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero__photo picture, .hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}
.hero__photo-badge {
  position: absolute;
  z-index: 2;
  left: -18px;
  bottom: 28px;
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
  line-height: 1.15;
}
.hero__photo-badge strong { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.hero__photo-badge span { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

.hero__divider { height: 46px; background: var(--paper); clip-path: polygon(0 100%, 100% 0, 100% 100%); margin-top: -1px; }

/* ---------- Sections (generic) ---------- */
.section { padding: 76px 0; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); text-align: center; max-width: 40ch; margin: 0 auto 0.4em; }
.section-lede { text-align: center; max-width: 56ch; margin: 0 auto 2.6em; color: var(--ink-soft); }
.eyebrow--center { text-align: center; }
.section-cta-link { text-align: center; margin-top: 2em; font-weight: 700; }

.page-hero { background: var(--paper-alt); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-hero .eyebrow a { text-decoration: underline; }
.page-hero--service .service-detail__price { font-weight: 600; margin-bottom: 1.4em; }

.page-hero--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  border-bottom: none;
  padding: 96px 0 72px;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30,46,61,0.92) 0%, rgba(30,46,61,0.8) 100%);
}
.page-hero__content { position: relative; z-index: 1; max-width: 640px; }
.page-hero--photo .eyebrow { color: var(--brand-accent); }
.page-hero--photo h1 { color: var(--white); }
.page-hero--photo .section-lede { color: rgba(255,255,255,0.85); text-align: left; margin: 0; }

/* ---------- Service grid / cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-accent); }
.service-card__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--paper-alt); border-radius: 12px; color: var(--brand-accent); margin-bottom: 6px; }
.service-card h2, .service-card h3 { font-size: 1.18rem; margin-bottom: 0.2em; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.service-card__link { font-weight: 700; color: var(--brand-accent-dark); font-size: 0.9rem; }
.service-card__price { font-weight: 700; color: var(--brand-primary); font-size: 0.9rem; }

/* ---------- Why us / process ---------- */
.why-us { background: var(--paper-alt); }
.why-us__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--ink-soft); font-weight: 500; }
.checklist .icon { color: var(--success); flex-shrink: 0; margin-top: 3px; }

.process-steps { display: flex; flex-direction: column; gap: 22px; }
.process-step { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.process-step__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-accent); color: var(--brand-primary); font-weight: 800; flex-shrink: 0; }
.process-step h3 { font-size: 1.02rem; margin-bottom: 2px; }
.process-step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Areas ---------- */
.areas-chip-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 1.6em; }
.area-chip { background: var(--white); border: 1.5px dashed var(--brand-primary); color: var(--brand-primary); padding: 10px 20px; border-radius: 999px; font-weight: 700; }
.area-chip:hover { background: var(--brand-primary); color: var(--white); border-style: solid; }
.areas-preview .section-lede { text-align: center; }

.areas-region-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.areas-region { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.areas-region h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.areas-region h2 .icon { color: var(--brand-accent); }
.suburb-list li { padding: 5px 0; border-bottom: 1px dotted var(--line); color: var(--ink-soft); }
.suburb-list li:last-child { border-bottom: none; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial-grid--full { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.testimonial-card__quote-icon { position: absolute; top: 18px; right: 20px; color: var(--paper-alt); width: 2em; height: 2em; }
.stars { display: flex; gap: 2px; margin-bottom: 10px; }
.stars .icon.is-filled { color: var(--brand-accent); }
.stars .icon.is-empty { color: var(--line); }
.testimonial-card p { font-style: italic; color: var(--ink); }
.testimonial-card footer { font-weight: 700; font-size: 0.9rem; color: var(--brand-primary); }

/* ---------- Accordion / FAQ ---------- */
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item:first-child { border-top: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 18px 4px;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: left;
  color: var(--brand-primary);
}
.accordion__icon { font-size: 1.4rem; color: var(--brand-accent); transition: transform 0.2s ease; flex-shrink: 0; margin-left: 12px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--ink-soft); }
.accordion__panel > :first-child { margin-top: 0; }
.accordion__panel p { padding-bottom: 16px; padding-right: 30px; }

/* ---------- Booking form ---------- */
.booking-section { background: var(--paper-alt); }
.booking-section--standalone { background: transparent; padding-top: 0; }
.booking-form-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.booking-form-card__intro { background: var(--brand-primary); color: var(--white); padding: 40px; }
.booking-form-card__intro h2 { color: var(--white); font-size: 1.5rem; }
.booking-trust-list { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.booking-trust-list li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 0.92rem; }
.booking-trust-list .icon { color: var(--brand-accent); }
.whatsapp-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: #7CE0A8; margin-top: 10px; }

.booking-form { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--split > div { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.88rem; color: var(--brand-primary); }
.form-row input, .form-row select, .form-row textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--brand-accent); background: var(--white); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); min-height: 1.2em; }
.form-note.is-success { color: var(--success); font-weight: 700; }
.form-note.is-error { color: var(--error); font-weight: 700; }
.form-row--checkbox label { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Service detail ---------- */
.service-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.service-detail-content ul { margin: 1em 0; padding-left: 0; }
.service-detail-content li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink-soft); }
.service-detail-content li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.service-detail-sidebar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; align-self: start; position: sticky; top: 100px; }
.sidebar-list li { margin-bottom: 4px; }
.sidebar-list a { display: flex; gap: 8px; align-items: center; padding: 8px 6px; border-radius: 6px; font-weight: 600; font-size: 0.92rem; }
.sidebar-list a:hover { background: var(--paper-alt); }
.sidebar-list .icon { color: var(--brand-accent); }
.sidebar-cta { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); font-weight: 600; font-size: 0.9rem; color: var(--brand-primary); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.about-photo { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 20px; border: 3px solid var(--white); outline: 1px solid var(--line); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--brand-accent); }
.stat-card span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 260px; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); }
.gallery-item figcaption { padding: 10px 12px; font-size: 0.85rem; color: var(--ink-soft); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state .icon { color: var(--line); margin: 0 auto 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.contact-grid .booking-form-card { grid-template-columns: 1fr; }
.contact-sidebar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.contact-methods li { margin-bottom: 14px; }
.contact-methods a { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.contact-methods .icon { color: var(--brand-accent); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 22px; }
.alert p { margin: 0; }
.alert--success { background: #E7F5EC; color: var(--success); border: 1px solid #BEE6CC; }
.alert--error { background: #FBEAE7; color: var(--error); border: 1px solid #F3C6BE; }
.alert .icon { flex-shrink: 0; margin-top: 2px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--brand-primary); color: var(--white); }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.cta-banner h2 { color: var(--white); margin: 0; font-size: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-alt); color: var(--ink-soft); padding: 64px 0 0; border-top: 3px solid var(--brand-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-logo-link { display: inline-block; margin-bottom: 18px; }
.footer-logo { width: 100%; max-width: 260px; height: auto; display: block; }
.footer-col h3 { color: var(--brand-primary); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a:hover { color: var(--brand-accent-dark); }
.footer-contact { margin-top: 14px; font-size: 0.92rem; line-height: 1.9; }
.footer-contact a:hover { color: var(--brand-accent-dark); }
.footer-social { display: flex; gap: 14px; margin-top: 14px; font-weight: 700; font-size: 0.88rem; }
.footer-social a { color: var(--brand-primary); }
.footer-bottom { padding: 22px 24px; font-size: 0.82rem; text-align: center; color: var(--ink-soft); }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--brand-accent);
  color: var(--white);
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-weight: 700;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.mobile-cta-bar__call a { display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,0.2); padding: 8px 14px; border-radius: 999px; }
.mobile-cta-bar span { display: flex; gap: 6px; align-items: center; }

/* ---------- Not found ---------- */
.not-found { text-align: center; padding: 100px 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__photo { display: none; }
  .why-us__grid, .about-grid, .service-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-detail-sidebar { position: static; }
  .booking-form-card { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2 220px; }
}

/* Nav collapses to a hamburger well before the row runs out of space —
   6 links + phone number + CTA button need ~1050px to sit comfortably. */
@media (max-width: 1050px) {
  .site-header__utility { display: none; }
  .main-nav { position: fixed; top: 0; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 84px 24px 20px; gap: 4px; transform: translateY(-110%); transition: transform 0.22s ease; border-bottom: 3px solid var(--brand-accent); max-height: 100vh; overflow-y: auto; box-shadow: var(--shadow-md); }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .site-header__actions .btn--accent { display: none; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 62px; }
}

@media (max-width: 760px) {
  .form-row--split { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner__inner { justify-content: center; text-align: center; }
  .gallery-grid { columns: 1; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1rem; }
  .brand__mark { height: 34px; width: auto; }
}
