/* Gosse Cut & Gloss — shared stylesheet
   Mobile-first. Breakpoints: 640px (tablet), 1024px (desktop). */

:root {
  --emerald: #10B981;
  --emerald-dark: #047857;
  --forest: #065F46;
  --forest-deep: #064E3B;
  --graphite: #111827;
  --slate: #4B5563;
  --muted: #6B7280;
  --surface: #F3F4F6;
  --white: #FFFFFF;
  --divider: #E5E7EB;
  --amber: #F59E0B;
  --radius: 4px;
  --shadow: 0 4px 12px rgba(0, 0, 0, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keeps #anchors clear of the sticky header */
}

body {
  margin: 0;
  font: 1rem/1.6 var(--sans);
  color: var(--slate);
  background: var(--white);
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--graphite);
  line-height: 1.2;
  margin: 0 0 16px;
}
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 20px; }
a { color: var(--emerald-dark); }
a:hover { color: var(--forest-deep); }
img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-alt { background: var(--surface); }
.center { text-align: center; }
.narrow { max-width: 46em; }
.center .narrow, .narrow.center { margin-left: auto; margin-right: auto; }
.small { font-size: .875rem; }
.mt-32 { margin-top: 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Short emerald bar under section headings */
.bar::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 16px;
  background: var(--emerald);
}
.center .bar::after { margin-left: auto; margin-right: auto; }

.label {
  font: 700 .875rem/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--emerald-dark);
  margin: 0 0 8px;
}

/* Visually hidden but available to screen readers and keyboard */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 8px; top: -64px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius);
}
.skip:focus { top: 8px; color: var(--white); }

/* ---------- Placeholders (remove once real content is in) ---------- */
.ph {
  background: #FEF3C7;
  color: var(--graphite);
  border: 1px dashed var(--amber);
  border-radius: 2px;
  padding: 0 4px;
  font-style: normal;
  font-weight: 400;
}
.ph-note {
  background: #FEF3C7;
  color: var(--graphite);
  border: 1px dashed var(--amber);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: .875rem;
}
.ph-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 8px;
  background: repeating-linear-gradient(45deg, var(--surface) 0 12px, var(--divider) 12px 24px);
  color: var(--slate);
  font: 700 .75rem/1.3 var(--sans);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 .875rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--graphite); }
.btn-primary:hover { filter: brightness(.93); color: var(--graphite); }
.btn-secondary { border-color: var(--emerald); color: var(--emerald-dark); background: transparent; }
.btn-secondary:hover { background: var(--emerald); color: var(--graphite); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--divider);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo { display: block; padding: 8px 0; }
.logo svg { height: 48px; width: auto; }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--divider);
  border-radius: var(--radius);
  font: 700 .75rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--graphite);
  cursor: pointer;
}
.nav-btn .bars,
.nav-btn .bars::before,
.nav-btn .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--graphite);
}
.nav-btn .bars { position: relative; }
.nav-btn .bars::before, .nav-btn .bars::after { content: ""; position: absolute; left: 0; }
.nav-btn .bars::before { top: -6px; }
.nav-btn .bars::after { top: 6px; }
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--emerald); outline-offset: 2px; }
.nav-toggle:checked + .nav-btn { border-color: var(--emerald); }

.nav { display: none; flex-basis: 100%; padding-bottom: 16px; }
.nav-toggle:checked ~ .nav { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { border-top: 1px solid var(--divider); }
.nav li:last-child { padding-top: 16px; }
.nav a:not(.btn) {
  display: block;
  padding: 12px 0;
  font: 700 .875rem/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  text-decoration: none;
  color: var(--graphite);
}
.nav a:not(.btn):hover { color: var(--emerald-dark); }
.nav .btn { display: block; }

/* Current page: set by the body class so header markup stays identical */
.page-home .nav a.nav-home,
.page-services .nav a.nav-services,
.page-gallery .nav a.nav-gallery,
.page-contact .nav a.nav-contact { color: var(--emerald-dark); box-shadow: inset 4px 0 0 var(--emerald); padding-left: 12px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--forest-deep), var(--forest));
  color: var(--white);
  padding: 64px 0;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  max-width: 13em;
  margin: 0 0 24px;
}
.hero .label { color: var(--emerald); margin-bottom: 16px; }
.hero .lede { font-size: 1.125rem; max-width: 34em; margin: 0 0 32px; color: var(--divider); }
.hero .btn-secondary { color: var(--white); }
.hero .btn-secondary:hover { color: var(--graphite); }

/* ---------- Page heading band (inner pages) ---------- */
.page-head { background: var(--surface); padding: 48px 0; border-bottom: 1px solid var(--divider); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.page-head p { margin: 0; max-width: 40em; }

/* ---------- Home: points, cards, reviews ---------- */
.points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.points li { padding: 16px 24px; background: var(--surface); border-left: 4px solid var(--emerald); border-radius: var(--radius); }
.points strong { display: block; color: var(--graphite); }

.grid-2 { display: grid; gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-body ul { margin-bottom: 24px; }

.quote-band { background: var(--graphite); color: var(--divider); padding: 48px 0; }
.quote-band h2 { color: var(--white); }
.quote-band p { max-width: 36em; margin-left: auto; margin-right: auto; margin-bottom: 24px; }

.reviews { display: grid; gap: 24px; margin-top: 32px; }
.review {
  margin: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review p { font: italic 1.125rem/1.5 var(--serif); color: var(--graphite); }
.review footer { font-size: .875rem; color: var(--muted); }

/* ---------- Services: package cards (collapsible below 640px) ---------- */
.pkg-grid { display: grid; gap: 16px; margin-top: 32px; align-items: start; }
.pkg {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pkg-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkg h3 { margin: 0; }
.pkg h3 label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px 8px;
  cursor: pointer;
}
.pkg h3 label::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--emerald-dark);
  border-bottom: 2px solid var(--emerald-dark);
  transform: rotate(45deg);
  transition: transform .15s;
}
.pkg-toggle:checked ~ h3 label::after { transform: rotate(-135deg); }
.pkg-toggle:focus-visible ~ h3 label { outline: 3px solid var(--emerald); outline-offset: -3px; }
.pkg-price { margin: 0; padding: 0 24px 16px; font-weight: 700; color: var(--emerald-dark); }
.pkg-body { display: none; padding: 0 24px 24px; }
.pkg-body > :last-child { margin-bottom: 0; }
.pkg-toggle:checked ~ .pkg-body { display: block; }
.tap-hint { font-size: .875rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- Gallery ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter label {
  padding: 8px 16px;
  border: 2px solid var(--emerald);
  border-radius: var(--radius);
  font: 700 .875rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--emerald-dark);
  cursor: pointer;
}
.filter label:hover { background: var(--surface); }
.filter input:checked + label { background: var(--emerald-dark); border-color: var(--emerald-dark); color: var(--white); }
.filter input:focus-visible + label { outline: 3px solid var(--emerald); outline-offset: 2px; }

.gallery-grid {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
/* The filter: hide tiles that don't match the checked radio */
#f-lawn:checked ~ .gallery-grid .tile:not(.t-lawn),
#f-car:checked ~ .gallery-grid .tile:not(.t-car) { display: none; }

.tile {
  position: relative;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile .ph-img + .ph-img { border-top: 2px solid var(--white); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile figcaption { padding: 8px 12px; font-size: .875rem; }
.tag {
  position: absolute;
  top: 8px; left: 8px;
  padding: 4px 8px;
  border-radius: var(--radius);
  font: 700 .6875rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--white);
  background: var(--graphite);
}
.t-lawn .tag { background: var(--forest); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
.contact-grid > * { min-width: 0; }
.form-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form fieldset { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.form legend {
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--divider);
  font: 700 .75rem/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--emerald-dark);
}
.form-grid { display: grid; gap: 0 16px; }
.cols-addr { grid-template-columns: 1fr 1fr; }
.cols-addr .span-2 { grid-column: span 2; }
.field { min-width: 0; margin-bottom: 16px; }
.form label { display: block; margin: 0 0 6px; font-weight: 700; font-size: .875rem; color: var(--graphite); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--graphite);
  font: 1rem/1.4 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
.form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234B5563' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  text-overflow: ellipsis;
}
.form textarea { height: auto; min-height: 144px; padding: 12px; resize: vertical; }
.form ::placeholder { color: #9CA3AF; opacity: 1; }
.form input:hover, .form select:hover, .form textarea:hover, .tel:hover { border-color: var(--graphite); }
.form input:focus, .form select:focus, .form textarea:focus, .tel:focus-within {
  outline: 0;
  border-color: var(--emerald-dark);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .3);
}
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid,
.form [aria-invalid="true"], .tel:has([aria-invalid="true"]) { border-color: #B91C1C; }
.form [aria-invalid="true"]:focus, .tel:has([aria-invalid="true"]):focus-within { box-shadow: 0 0 0 3px rgba(185, 28, 28, .2); }
.field-error { margin: 6px 0 0; font-size: .8125rem; font-weight: 700; color: #B91C1C; }
.field-error + .hint { display: none; }
.field-error[hidden] + .hint { display: block; }
.hint { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }

/* Phone: flag and country code sit inside the box, in front of the number */
.tel {
  display: flex;
  align-items: stretch;
  height: 48px;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.tel-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--surface);
  border-right: 1px solid var(--divider);
  color: var(--graphite);
  font-weight: 700;
  white-space: nowrap;
}
.tel .flag { flex: none; border-radius: 2px; }
.tel .flag-us { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.tel .flag-intl, .tel.is-intl .flag-us { display: none; }
.tel.is-intl .flag-intl { display: block; }
.form .tel input { flex: 1; min-width: 0; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.form .btn { width: 100%; padding: 16px 24px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 16px 0; border-top: 1px solid var(--divider); }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list .label { display: block; margin-bottom: 4px; }
.info-list a { font-size: 1.125rem; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: var(--divider); padding: 48px 0 24px; font-size: .875rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-mark { font: italic 700 1.75rem/1.1 var(--serif); color: var(--white); margin-bottom: 8px; }
.footer-mark span {
  display: block;
  margin-top: 8px;
  font: 700 .75rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--emerald);
}
.footer-h {
  font: 700 .75rem/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--white);
  margin: 0 0 8px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--divider); }
.site-footer a:hover { color: var(--emerald); }
.footer-base { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--slate); }
.footer-base p { margin: 0; }

/* ---------- Tablet: 640px+ ---------- */
@media (min-width: 640px) {
  .points { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 32px; }
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-addr { grid-template-columns: 1fr 96px 128px; }
  .cols-addr .span-2 { grid-column: auto; }
  .form .btn { width: auto; min-width: 240px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; }

  /* Package cards are always open from tablet up */
  .pkg-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
  .pkg-toggle { display: none; }
  .pkg h3 label { cursor: default; padding-top: 24px; }
  .pkg h3 label::after { display: none; }
  .pkg-body { display: block; }
  .tap-hint { display: none; }
}

/* ---------- Desktop: 1024px+ ---------- */
@media (min-width: 1024px) {
  .section { padding: 96px 0; }
  .quote-band { padding: 64px 0; }
  .page-head { padding: 64px 0; }

  .header-inner { flex-wrap: nowrap; min-height: 80px; }
  .logo svg { height: 56px; }
  .nav-btn { display: none; }
  .nav { display: block; flex-basis: auto; padding: 0; }
  .nav ul { display: flex; align-items: center; gap: 32px; }
  .nav li { border: 0; }
  .nav li:last-child { padding: 0; }
  .nav a:not(.btn) { padding: 8px 0; }
  .page-home .nav a.nav-home,
  .page-services .nav a.nav-services,
  .page-gallery .nav a.nav-gallery,
  .page-contact .nav a.nav-contact { padding-left: 0; box-shadow: inset 0 -4px 0 var(--emerald); }

  .hero {
    padding: 112px 0;
    background:
      url("../img/blades.svg") no-repeat right 6% bottom / auto 88%,
      linear-gradient(135deg, var(--forest-deep), var(--forest));
  }
  .hero h1 { margin-bottom: 32px; }
  .hero .lede { font-size: 1.25rem; margin-bottom: 48px; }

  .reviews { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .contact-grid { grid-template-columns: 3fr 2fr; gap: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pkg h3 label::after { transition: none; }
}
