/* ==========================================================================
   Olympic Home Maintenance — Design Tokens
   Palette sampled directly from the client's logo file (images/logo.png):
   gold from the roofline + wordmark, green from the swoosh/grass gradient,
   white from the OLYMPIC lettering, charcoal from the logo's canvas.
   ========================================================================== */

:root {
  --gold: #fdb813;
  --gold-deep: #b97e00;
  --gold-pale: #ffe8b0;
  --green: #3f9c35;
  --green-light: #8dc63f;
  --green-deep: #276b21;
  --charcoal: #17140f;
  --charcoal-soft: #23201a;
  --white: #ffffff;
  --cream: #f7f5f1;
  --ink: #1c1a16;
  --ink-soft: #55503f;
  --line: #e4e0d6;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1240px;
  --radius: 6px;
  --shadow-soft: 0 12px 32px -16px rgba(23, 20, 15, 0.35);
  --shadow-card: 0 8px 24px -12px rgba(23, 20, 15, 0.28);

  --transition: 220ms ease;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-deep);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 2.5rem;
  }
}

section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.75rem;
  display: grid;
  gap: 0.9rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.bg-cream {
  background: var(--cream);
}

.bg-charcoal {
  background: var(--charcoal);
  color: var(--white);
}

.bg-charcoal h2,
.bg-charcoal h3,
.bg-charcoal .eyebrow {
  color: var(--white);
}

.bg-charcoal .lede {
  color: #cfc9ba;
}

/* Reveal-on-scroll (progressively enhanced by main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-gold:hover {
  background: var(--gold-deep);
  color: var(--white);
}

.btn-outline {
  border-color: currentColor;
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  height: 56px;
  width: auto;
}

.brand-text {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: 0 0 0 30%;
  background: var(--charcoal-soft);
  padding: 6rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 49;
  overflow-y: auto;
}

.primary-nav[data-open="true"] {
  transform: translateX(0);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
  transition: border-color var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-cta {
  align-self: flex-start;
}

@media (min-width: 1000px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    transform: none;
    inset: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 2.25rem;
    overflow: visible;
  }

  .nav-links {
    flex-direction: row;
    gap: 1.9rem;
    font-size: 0.95rem;
  }

  .brand-text {
    display: block;
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.15;
  }

  .brand-text strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
  }

  .brand-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 13, 9, 0.92) 0%, rgba(15, 13, 9, 0.55) 42%, rgba(15, 13, 9, 0.25) 68%, rgba(15, 13, 9, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 3rem 5rem;
  display: grid;
  gap: 1.4rem;
  max-width: 44rem;
}

.hero .eyebrow {
  color: var(--gold-pale);
}

.hero .eyebrow::before {
  background: var(--green-light);
}

.hero h1 {
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .lede {
  color: #e9e5da;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #e9e5da;
}

.hero-rating .stars {
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* Signature diagonal "mower stripe" cut at the base of the hero */
.hero-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  z-index: 3;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}

@media (min-width: 700px) {
  .hero-stripe {
    clip-path: polygon(0 100%, 100% 100%, 100% 15%, 0 100%);
    height: 90px;
  }
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}

.service-card figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card-icon {
  position: absolute;
  bottom: -22px;
  left: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.45);
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--charcoal);
}

.service-card-body {
  padding: 2rem 1.35rem 1.5rem;
  display: grid;
  gap: 0.6rem;
  flex: 1;
}

.service-card-body p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.service-card-link {
  margin-top: auto;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card:hover .service-card-link {
  color: var(--gold-deep);
}

/* ==========================================================================
   Trust / reviews
   ========================================================================== */

.trust-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .trust-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.rating-panel {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.rating-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.rating-panel .stars {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
}

.rating-panel p {
  color: #d8d3c4;
}

.rating-panel a {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--white);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.2rem;
  margin-top: 0.5rem;
}

.rating-panel a:hover {
  color: var(--gold);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--green-light);
  color: var(--green-light);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.testimonials {
  display: grid;
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: grid;
  gap: 0.65rem;
}

.testimonial-card p.quote {
  font-size: 1.02rem;
  color: var(--ink);
}

.testimonial-card .attribution {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ==========================================================================
   Why choose us
   ========================================================================== */

.why-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

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

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.why-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.why-item h3 {
  margin-bottom: 0.4rem;
}

.why-item p {
  color: var(--ink-soft);
}

/* ==========================================================================
   Service area
   ========================================================================== */

.area-band {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.area-band::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.area-band h2 {
  color: var(--white);
  max-width: 30ch;
}

.area-band .lede {
  color: #eafbe6;
  max-width: 55ch;
}

.area-band strong {
  color: var(--gold-pale);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.contact-info a.phone-link {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-soft);
}

.contact-list svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-deep);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
}

.contact-list a:hover {
  text-decoration-color: var(--gold-deep);
}

.quote-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}

.form-row input,
.form-row select,
.form-row textarea {
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}

.form-row input:invalid[data-touched="true"],
.form-row select:invalid[data-touched="true"],
.form-row textarea:invalid[data-touched="true"] {
  border-color: #c23b22;
}

.field-error {
  font-size: 0.82rem;
  color: #c23b22;
  min-height: 1.1em;
}

.form-grid-2 {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-status {
  border-radius: 4px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  display: none;
}

.form-status[data-state="success"] {
  display: block;
  background: #e4f3e0;
  color: var(--green-deep);
  border: 1px solid var(--green-light);
}

.form-status[data-state="error"] {
  display: block;
  background: #fbe6e0;
  color: #8f2a13;
  border: 1px solid #e39a83;
}

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

.site-footer {
  background: var(--charcoal);
  color: #cfc9ba;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-block: 3.5rem 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  display: grid;
  gap: 0.9rem;
}

.footer-brand img {
  height: 58px;
  width: auto;
}

.footer-brand p {
  max-width: 32ch;
  font-size: 0.92rem;
}

.footer-heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  color: #cfc9ba;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
  font-size: 0.8rem;
  color: #8f8a7b;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ==========================================================================
   Services detail page
   ========================================================================== */

.page-banner {
  background: var(--charcoal);
  color: var(--white);
  padding-block: 4.5rem 3.5rem;
  position: relative;
  border-bottom: 3px solid var(--gold);
}

.page-banner h1 {
  color: var(--white);
}

.page-banner .lede {
  color: #d8d3c4;
}

.service-detail {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 860px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail.flip .detail-media {
    order: 2;
  }
}

.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.detail-media button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.detail-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-copy h2 {
  margin-bottom: 0.75rem;
}

.detail-copy .lede {
  margin-bottom: 1.25rem;
}

.includes-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 1.75rem;
}

.includes-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink-soft);
}

.includes-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-detail-block {
  border-bottom: 1px solid var(--line);
}

.service-detail-block:last-of-type {
  border-bottom: none;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox[data-open="true"] {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  font-size: 1.4rem;
  color: var(--charcoal);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #e9e5da;
  font-size: 0.92rem;
}

/* ==========================================================================
   Skip link
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
