/* ========================================================================
   Kennedy Plastering — styled to match rosebudplaster.com's measured system:
   Rethink Sans throughout, 68/60/48px heading scale, ink #111110 headings,
   warm grey #726F62 body copy, brand blue #1F61B6, flat rectangular buttons.
   ======================================================================== */

:root {
  --ink:    #111110;
  --body:   #726F62;
  --blue:   #1F61B6;
  --blue-dark: #184D91;
  --bg:     #FFFFFF;
  --tint:   #F5F3EE;
  --white:  #FFFFFF;

  --font: "Rethink Sans", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.center { text-align: center; }

.eyebrow {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--blue);
  margin: 0 0 0.75em;
}

.section-sub {
  color: var(--body);
  font-size: 1.1rem;
  max-width: 52ch;
}
.section-sub.center { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 36px;
  border-radius: 1px;
  font-weight: 600;
  font-size: 1.125rem;
  background: var(--blue);
  color: var(--white);
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--blue-dark); }

.btn-lg { padding: 22px 40px; }

/* ========================================================================
   Header
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17,17,16,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 75px;
}

.logo {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}

.logo-accent { color: var(--blue); }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  font-size: 1rem;
}

.main-nav a { color: var(--ink); opacity: 0.85; }
.main-nav a:hover { opacity: 1; color: var(--blue); }

.nav-drawer-logo { display: none; }

.nav-dropdown { position: relative; }
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid rgba(17,17,16,0.08);
  box-shadow: 0 12px 24px rgba(17,17,16,0.08);
  padding: 8px 0;
  min-width: 200px;
}
.nav-dropdown:hover .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block;
  padding: 10px 18px;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--tint); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.phone-tag {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================================================
   Hero
   ======================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: #14274F;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  text-align: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8,10,16,0.10) 0%, rgba(8,10,16,0.22) 100%);
}

/* ---------- sub-page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: #14274F center / cover no-repeat;
  padding: 90px 0 64px;
  text-align: center;
}

.page-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(8,10,16,0.28) 0%, rgba(8,10,16,0.38) 100%);
}

.page-hero .hero-inner { max-width: 700px; }

.page-hero h1 { color: var(--white); margin-bottom: 0.3em; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1em;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }

.page-hero .hero-sub { color: rgba(255,255,255,0.92); margin-bottom: 0; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }

/* ---------- process steps ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 56px 0 0;
  counter-reset: step;
}

.process-step { text-align: center; position: relative; }

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 20px;
}

.process-step h3 { font-size: 1.25rem; }
.process-step p { font-size: 1rem; color: var(--body); }

/* ---------- value list (checklist bullets) ---------- */

.value-list {
  list-style: none;
  padding: 0;
  margin: 1.4em 0 0;
  display: grid;
  gap: 12px;
}

.value-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  color: var(--body);
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--blue);
}

.value-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* ---------- service detail blocks ---------- */

.detail-block { margin-top: 64px; }
.detail-block:first-of-type { margin-top: 0; }
.detail-block h3 { font-size: 1.6rem; }
.detail-block p { max-width: 68ch; }

.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- service segments (services page) ---------- */

.service-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid rgba(17,17,16,0.08);
}

.service-segment:first-of-type { padding-top: 0; }
.service-segment:last-of-type { border-bottom: none; padding-bottom: 0; }

.service-segment.reverse .segment-media { order: 2; }
.service-segment.reverse .segment-copy { order: 1; }

.segment-copy h3 { font-size: 1.75rem; }
.segment-copy p { max-width: 60ch; }

.segment-media .media-placeholder { min-height: 280px; }

.media-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-tile.media-photo,
.gallery-tile .media-photo {
  min-height: 220px;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
}

.before-after-item {
  position: relative;
  height: 100%;
}

.before-after-item .media-photo {
  min-height: 280px;
}

.before-after-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(17,17,16,0.75);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 20px;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--body);
  opacity: 0.75;
  text-align: center;
  margin-top: 16px;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; width: 100%; }

.hero h1 { color: var(--white); text-shadow: 0 2px 16px rgba(0,0,0,0.45); }

.hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1.2rem;
  max-width: 48ch;
  margin: 0 auto 2em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* ========================================================================
   Sections (shared)
   ======================================================================== */

.section { padding: 100px 0; }
.section-tint { background: var(--tint); }

.section-cta {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
}
.section-cta h2 { color: var(--white); }
.section-cta .wrap > p { font-size: 1.15rem; margin-bottom: 1.5em; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.media-placeholder {
  background: var(--tint);
  border: 1.5px dashed rgba(17,17,16,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--body);
  font-size: 0.95rem;
  padding: 24px;
  min-height: 320px;
}

/* ---------- quote form ---------- */

.quote-card {
  background: #14274F;
  border-radius: 8px;
  padding: 40px 36px;
}

.quote-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.6em;
}

.quote-card .quote-sub {
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1.6em;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #8a8a8a; }

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin-bottom: 20px;
  cursor: pointer;
}

.form-checkbox input { margin-top: 3px; }

.quote-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.form-status {
  display: none;
  color: var(--white);
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
}

.form-status.visible { display: block; }

.section-gallery { padding: 40px 0; }

.carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  flex: 1;
}

.gallery-tile {
  flex: 0 0 calc((100% - 3 * 16px) / 4);
  min-height: 160px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(17,17,16,0.12);
  box-shadow: 0 6px 18px rgba(17,17,16,0.1);
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.carousel-btn:hover { background: var(--blue); color: var(--white); }

/* ---------- our service ---------- */

.service-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.service-block h3 { font-size: 1.4rem; }
.service-block p { font-size: 1rem; margin-bottom: 1.4em; }

/* ---------- why choose us ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 56px 0 48px;
}

.feature-card { text-align: center; }
.feature-card h3 { font-size: 1.3rem; }
.feature-card p { font-size: 1rem; }

.center-cta { text-align: center; }

/* ---------- suburb strip ---------- */

.suburb-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 48px 0 0;
}

.suburb-strip li {
  background: var(--white);
  border: 1px solid rgba(17,17,16,0.12);
  border-radius: 1px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- FAQ accordion ---------- */

.accordion { max-width: 780px; margin: 48px auto 0; }

.accordion-item {
  border-bottom: 1px solid rgba(17,17,16,0.12);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  padding: 22px 4px;
  cursor: pointer;
  position: relative;
  padding-right: 32px;
}

.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 400;
}

.accordion-item.open .accordion-trigger::after { content: "\2212"; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion-item.open .accordion-panel { max-height: 240px; }

.accordion-panel p { padding-bottom: 20px; margin: 0; font-size: 1rem; }

/* ========================================================================
   Footer
   ======================================================================== */

.site-footer {
  background: var(--tint);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 1em;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.6em;
}

.footer-col a:hover { color: var(--blue); }

.logo-footer { display: block; margin-bottom: 14px; }

.social-links { display: flex; gap: 16px; margin-top: 8px; }
.social-links a { font-weight: 600; }

.footer-copyright {
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.7;
  padding-top: 24px;
  border-top: 1px solid rgba(17,17,16,0.1);
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .service-blocks { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .gallery-tile { flex-basis: calc((100% - 16px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  /* backdrop-filter makes the header a containing block for position:fixed
     children, which traps the drawer inside the header box. Drop it here. */
  .site-header {
    backdrop-filter: none;
    background: var(--white);
  }

  .header-cta .phone-tag { display: none; }
  .nav-toggle { display: flex; order: 2; position: relative; z-index: 101; }
  .header-cta { order: 3; margin-left: auto; }

  .site-header.nav-open .nav-toggle {
    position: fixed;
    top: 26px;
    left: calc(min(300px, 82vw) - 52px);
  }

  .nav-drawer-logo {
    display: block;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 26px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17,17,16,0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
    z-index: 90;
  }

  .site-header.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 82vw;
    background: var(--white);
    padding: 26px 28px 40px;
    gap: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(0,0,0,0.18);
    border-bottom: none;
    z-index: 100;
  }

  .main-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(17,17,16,0.08);
    font-size: 1.1rem;
  }

  .site-header.nav-open .main-nav {
    transform: translateX(0);
  }

  .hero { padding: 90px 0 70px; }
}

@media (max-width: 760px) {
  .service-blocks { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid-3 { grid-template-columns: 1fr; }
  .gallery-tile { flex-basis: 100%; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .service-segment { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .service-segment.reverse .segment-media { order: 1; }
  .service-segment.reverse .segment-copy { order: 2; }
  .segment-media .media-placeholder { min-height: 200px; }
  .before-after-item .media-photo { min-height: 180px; }
}

@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .header-cta .btn { padding: 12px 16px; font-size: 0.95rem; }
  .logo { font-size: 1rem; }
}
