/* ==========================================================================
   Fence Painters Sydney - styles.css
   Plain CSS, mobile-first. Layout modelled on reference design.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #14385c;
  --navy-deep: #0e2740;
  --green: #2e8f63;
  --green-dark: #23724e;
  --green-check: #57b489;
  --yellow: #f6c62e;
  --yellow-hover: #e9b714;
  --orange: #f18a21;
  --ink: #1c2430;
  --muted: #55606d;
  --line: #e3e8ee;
  --bg-light: #f4f7fa;
  --white: #fff;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
  --container: 75rem;
  --radius: 1.25rem;
  --radius-sm: 0.625rem;
  --shadow: 0 10px 30px rgba(14, 39, 64, 0.12);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.9rem, 8.5vw, 5rem);
  color: var(--white);
}

h2 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  color: var(--navy);
}

h3 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--navy);
}

h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

p {
  margin: 0 0 1.1rem;
}

a {
  color: var(--green-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 3.5rem;
}

.section--tight {
  padding-block: 2.5rem;
}

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

.section--dark {
  background: var(--navy-deep);
  color: #e8eef4;
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-intro {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}

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

.highlight {
  color: var(--green);
}

.highlight--yellow {
  color: var(--yellow);
}

.kicker {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.section--dark .kicker {
  color: var(--yellow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 6.25rem;
  padding: 0.8rem 2.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--navy-deep);
}

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

.btn--green {
  background: var(--green);
  color: var(--white);
}

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

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

/* Check list */
.check-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.8rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--green-check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/0.85rem no-repeat;
}

.check-list strong {
  color: inherit;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

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

/* Grids */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40em) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 64em) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.6rem;
}

.site-header__logo img {
  width: clamp(7rem, 20vw, 13rem);
}

@media (max-width: 30em) {
  .site-header .btn {
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem;
  }
}

.site-header__ctas {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Main navigation */
.site-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.site-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
}

.site-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__menu a {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
}

.site-nav__menu a:hover {
  color: var(--yellow);
}

/* Mobile: dropdown panel under the header */
@media (max-width: 63.9375em) {
  .site-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav.is-open .site-nav__menu {
    display: block;
  }

  .site-nav__menu a {
    padding: 0.7rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Desktop: inline links, no toggle */
@media (min-width: 64em) {
  .site-nav__toggle {
    display: none;
  }

  .site-nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.site-header .btn {
  font-size: 1.05rem;
  padding: 0.5rem 1.15rem;
}

.site-header .btn--quote-desktop {
  display: none;
}

@media (min-width: 48em) {
  .site-header .btn {
    font-size: 1.2rem;
    padding: 0.6rem 1.6rem;
  }

  .site-header .btn--quote-desktop {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  isolation: isolate;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 30, 49, 0.92) 0%, rgba(11, 30, 49, 0.78) 45%, rgba(11, 30, 49, 0.55) 100%);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem 3.5rem;
}

@media (min-width: 64em) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    padding-block: 4rem 4.5rem;
  }
}

.hero__copy {
  color: #e8eef4;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 6.25rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.hero__rating .stars {
  color: var(--orange);
  letter-spacing: 0.1em;
}

.hero h1 span.highlight--yellow {
  display: block;
}

.hero__sub {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.hero .check-list {
  font-size: 1rem;
  max-width: 36rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Quote form card */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  color: var(--ink);
}

.quote-card h2,
.quote-card h3 {
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.quote-card__note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.quote-form {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 24em) {
  .quote-form {
    grid-template-columns: 1fr 1fr;
  }

  .quote-form .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b8c2cc;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.quote-form .btn {
  margin-top: 0.3rem;
}

.quote-card__privacy {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  text-align: center;
}

/* Mobile above-the-fold: tighten the hero type and lift the CTAs and the
   quote form above the supporting copy. display: contents dissolves the
   copy block so its children reorder against the form as one column. */
@media (max-width: 63.9375em) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-block: 1.25rem 2.5rem;
  }

  .hero__copy {
    display: contents;
  }

  .hero__rating {
    order: 1;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.7rem;
  }

  .hero h1 {
    order: 2;
    font-size: clamp(2.1rem, 9vw, 3.2rem);
    margin-bottom: 0.55rem;
  }

  .hero__sub {
    order: 3;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
  }

  .hero__ctas {
    order: 4;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
  }

  /* Side by side rather than stacked: one row of CTAs keeps the form's first
     fields on the first screen. Labels wrap instead of overflowing. */
  .hero__ctas .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    text-align: center;
    font-size: 1.02rem;
    padding: 0.6rem 0.7rem;
  }

  .hero .quote-card {
    order: 5;
  }

  .hero .check-list {
    order: 6;
    margin: 1.75rem 0 0;
  }

  /* The detail sentence repeats verbatim in the check list directly below,
     so the hero keeps the lead line only and the form moves up a screenful. */
  .hero__sub-more {
    display: none;
  }

  .hero .quote-card {
    padding: 1.05rem 1.05rem 1.25rem;
  }

  .hero .quote-card h2 {
    font-size: 1.6rem;
  }

  .hero .quote-card__note {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.7rem;
  }
}

/* ---------- Trust strip (under hero) ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-strip__inner {
  display: grid;
  gap: 1.25rem;
  padding-block: 1.75rem;
}

@media (min-width: 48em) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.trust-item__icon {
  flex: 0 0 auto;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: grid;
  place-items: center;
  color: var(--navy);
}

.trust-item__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Media / gallery ---------- */
.figure-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  margin: 0;
}

.figure-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.figure-card figcaption {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  text-align: center;
  padding: 0.7rem 1rem;
}

/* ---------- Split sections (image + copy) ---------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 64em) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .split--flip > .split__media {
    order: 2;
  }
}

.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ---------- Service / fence-type cards ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}

.service-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---------- Process steps ---------- */
.step-card {
  position: relative;
  padding-top: 1.25rem;
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: 0.4rem;
}

/* ---------- Pricing factors ---------- */
.pricing-cols {
  display: grid;
  gap: 0.25rem 2rem;
}

@media (min-width: 48em) {
  .pricing-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 52rem;
  margin-inline: auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 1.25rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 1.25rem 1.1rem;
  margin: 0;
  color: var(--muted);
}

/* ---------- Final CTA ---------- */
.final-cta__inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 64em) {
  .final-cta__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}

.badge-row li {
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6.25rem;
  padding: 0.35rem 0.9rem;
}

.badge-row {
  padding: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9c6d2;
  font-size: 0.95rem;
}

.site-footer a {
  color: #dfe8f0;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2rem;
}

@media (min-width: 48em) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer__badge {
  width: 8.5rem;
  margin-bottom: 1rem;
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer__legal p {
  margin: 0.2rem 0;
}
