/*
Theme Name: Pinevalley Waste
Description: Pinevalley Waste residential pickup site.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: pinevalley-waste
*/
:root {
  --ink: #10221b;
  --forest: #0b2920;
  --paper: #f7f8f2;
  --white: #fff;
  --lime: #c9f64e;
  --sage: #e8efdf;
  --line: #cdd8cc;
  font: 1rem/1.65 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #6a8c15; outline-offset: 4px; }
.skip { position: absolute; z-index: 3; top: 0; left: 1rem; transform: translateY(-150%); background: var(--white); padding: .6rem; }
.skip:focus { transform: none; }

header { background: var(--forest); color: white; }
.bar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: .34em;
  text-decoration: none;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -.047em;
  line-height: 1.15;
}
.logo span { font-weight: 350; color: #b7cbba; }
.header-links { display: flex; align-items: center; gap: clamp(.65rem, 1.65vw, 1.6rem); }
.header-links a { color: #e7ede7; text-decoration: none; white-space: nowrap; font-weight: 550; }
.header-links a:hover,.header-links a[aria-current] { color: var(--lime); }
.header-links a[aria-current] { text-decoration: underline 2px; text-underline-offset: .5em; }

button,.button { display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--forest); border: 1px solid transparent; border-radius: .35rem; padding: .86rem 1.2rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover,.button:hover { background: #b8e43e; }
#menu-button { display: grid; gap: 5px; padding: 12px; }
#menu-button i { width: 26px; height: 4px; background: currentColor; }
#menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: white; background: var(--forest); }
#menu[open] { display: grid; grid-template-rows: auto 1fr auto; }
.menu-top { display: flex; justify-content: flex-end; padding-top: 1.25rem; }
#menu-close { font-size: 1.8rem; line-height: 1; }
#menu nav { align-self: center; padding: 1.5rem 1rem 1.25rem; }
#menu a { display: table; margin: auto; padding: .1em .2em; font-size: clamp(2rem, 5.8vw, 4.3rem); font-style: italic; transform: skewX(-5deg); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; text-decoration: none; }
#menu a:hover,#menu a[aria-current] { color: var(--lime); }
body:has(#menu[open]) { overflow: hidden; }

h1,h2,h3 { font-weight: 650; letter-spacing: -.035em; line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.7vw, 5.1rem); margin: 0 0 1.1rem; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.85rem); margin: 0 0 1rem; }
h3 { font-size: 1.38rem; margin: .65rem 0; }
p { margin: 0 0 1rem; }
.hero { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid #355146; background: var(--forest); color: white; }
.hero p,.lede { max-width: 42rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.eyebrow { font-size: .78rem !important; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
.home-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.75rem, 6vw, 6rem); }
.home-hero h1 { font-size: clamp(2.65rem, 5.7vw, 5rem); line-height: 1.08; }
figure { margin: 0; min-width: 0; }
.home-hero img { display: block; width: 100%; min-height: 445px; object-fit: cover; object-position: 67% center; border-radius: .35rem; box-shadow: .65rem .65rem var(--lime); }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split img { display: block; width: 100%; border-radius: .35rem; }
figcaption { margin-top: .6rem; font-size: .9rem; color: #3b574a; }
.band,aside { background: var(--sage); }
.callout,.footer-row,aside { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.callout { justify-content: space-between; }
footer { background: var(--forest); color: white; padding-block: 2.2rem; }
.footer-row .logo { margin-right: auto; }
aside { justify-content: center; padding: 1.5rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.process { margin-bottom: 0; }
.process article { border-top: 3px solid var(--forest); padding: 1rem .3rem; }
.process span { font-weight: 650; color: #42643d; }
.card,.panel { background: var(--white); border: 1px solid var(--line); border-radius: .45rem; padding: clamp(1.1rem, 3vw, 2rem); }
.card { color: var(--ink); font-weight: 650; font-size: 1.23rem; }
.topic { min-height: 104px; display: block; text-align: left; }
.topic span { display: block; color: #42643d; font-size: 1.45rem; margin-bottom: .35rem; }
.topic:hover { background: var(--sage); }
.panel { max-width: 790px; margin-inline: auto; }
.panel h2 { font-size: clamp(1.85rem, 3.2vw, 2.8rem); }
.fields,.payment { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
details { background: var(--white); border: 1px solid var(--line); border-radius: .35rem; padding: .9rem 1.1rem; margin: .6rem 0; }
details[open] { border-color: #789764; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .65rem 0 0; font-size: 1rem; font-weight: 400; }

label { display: block; margin: .65rem 0; font-weight: 600; }
input,select,textarea { display: block; width: 100%; margin-top: .25rem; padding: .7rem .8rem; background: var(--white); color: inherit; border: 1px solid #819887; border-radius: .35rem; font: inherit; }
.panel button { margin-top: .65rem; }
.zip-row { display: flex; align-items: stretch; gap: .55rem; }
.zip-row input { flex: 1; min-width: 0; margin: 0; }
.zip-row button { margin: 0; }
.zip-error { color: #9a2e22; margin: .5rem 0; }
.zip-error:empty,#form-result:empty { display: none; }
.zip-result { background: var(--sage); border-left: 3px solid #668f2c; padding: .75rem 1rem; margin-top: 1rem; }
.zip-result p { margin: .2rem 0 0; }
.address-form button { margin-top: .75rem; }
#form-result { margin-top: .75rem; }

@media (max-width: 800px) {
  .header-links { display: none; }
  .home-hero,.split { grid-template-columns: 1fr; }
  .home-hero img { min-height: 0; max-height: 420px; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 2rem); }
  .cards,.fields,.payment { grid-template-columns: 1fr; }
  .fields { gap: 0; }
  .footer-row { column-gap: 1.2rem; }
  .footer-row .logo { margin-right: 2rem; }
}
@media (max-width: 380px) {
  .zip-row { flex-direction: column; }
}

:root {
  --forest: #102c24;
  --paper: #f5f6ed;
  --sage: #e4ecd9;
  --lime: #d8f38c;
}
header { background: var(--paper); color: var(--forest); border-bottom: 1px solid #dce3d5; }
header .logo span { color: #526e60; }
.header-links a { color: #314a3f; }
.header-links a:hover,.header-links a[aria-current] { color: #315928; }
#menu-button { background: transparent; color: #000; border: 0; }
button,.button { border-radius: .7rem; }
.home-hero { gap: 0; grid-template-columns: 1fr 1fr; align-items: stretch; padding-block: clamp(1.2rem, 3vw, 2.8rem); }
.home-copy {
  background: var(--forest);
  color: #fbfcf7;
  padding: clamp(1.75rem, 4vw, 4.5rem);
  border-radius: 1.2rem 0 0 1.2rem;
}
.home-copy .eyebrow { color: var(--lime); }
.home-copy .lede { color: #d7e1d9; margin-bottom: 1.8rem; }
.home-copy .zip-result { color: var(--forest); }
.home-copy .zip-error { color: #ffd4c7; }
.home-copy input { color: var(--ink); }
.home-hero h1 { font-size: clamp(2.6rem, 5.1vw, 5rem); letter-spacing: -.065em; font-weight: 600; }
.home-hero img { height: 100%; box-shadow: none; border-radius: 0 1.2rem 1.2rem 0; object-position: 69% center; }
.hero { background: radial-gradient(ellipse at 88% 24%, #326149, var(--forest) 68%); border-top: 0; }
.hero p { color: #e1e9e1; }
.hero .eyebrow { color: var(--lime); }
.band { background: transparent; }
.process article { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.45rem; }
.process h3 { margin-top: 0; }
main > .split:not(.route-section) { border-top: 1px solid var(--line); }
.split img { border-radius: 1rem; }
.card,.panel { border-radius: 1rem; }
details { border-radius: .7rem; }
footer { border-top: 1px solid #40584b; }
@media (max-width: 920px) {
  .header-links { display: none; }
}
@media (max-width: 800px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-copy { border-radius: 1rem 1rem 0 0; }
  .home-hero img { height: clamp(230px, 55vw, 400px); border-radius: 0 0 1rem 1rem; }
}
@media (max-width: 990px) and (min-width: 801px), (max-width: 430px) {
  .home-copy .zip-row { flex-direction: column; }
}

.rate { font-size: 1.3rem; font-weight: 650; }
#pricing-waitlist { margin: .4rem .6rem .4rem 0; }
#menu a { font-size: clamp(2rem, 5.5vw, 4rem); }
@media (max-width: 1000px) {
  .header-links { display: none; }
}

.menu-service { justify-self: center; margin: 0 1rem 2rem; padding: .55rem 1.15rem; border: 1px solid var(--lime); border-radius: .45rem; color: var(--lime); font-weight: 650; }

.guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.guide-cards .panel { width: 100%; }
.guide-cards h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
@media (max-width: 1110px) { .header-links { display: none; } }
@media (max-width: 570px) { .guide-cards { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  #menu {
    opacity: 0;
    transform: perspective(1100px) rotateX(-9deg) translateY(-1rem);
    transform-origin: top center;
    transition: transform 300ms cubic-bezier(.2,.7,.25,1), opacity 220ms ease,
      overlay 300ms allow-discrete, display 300ms allow-discrete;
  }
  #menu[open] { opacity: 1; transform: none; }
  @starting-style {
    #menu[open] {
      opacity: 0;
      transform: perspective(1100px) rotateX(-9deg) translateY(-1rem);
    }
  }
  #menu-close { transition: transform 220ms ease; }
  #menu-close:hover { transform: rotate(90deg); }
}

.payment-method { margin: 0; padding: 0; overflow: hidden; align-self: start; }
.payment-method summary { display: block; list-style: none; }
.payment-method summary::-webkit-details-marker { display: none; }
.payment-method summary:focus-visible { outline-offset: -4px; }
.payment-art { display: block; width: 100%; height: auto; background: var(--sage); }
.payment-title { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 1.2rem; }
.payment-title::after { content: ""; width: .55rem; height: .55rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: .25rem; }
.payment-method[open] .payment-title::after { transform: rotate(225deg); }
.payment-method p { margin: 0; padding: 0 1.2rem 1.15rem; }

.texas-locations { max-width: none; background: var(--sage); }
.texas-locations .card p { font-size: 1rem; font-weight: 400; }
.texas-locations .card .location-status { font-weight: 650; color: #315928; }
.texas-locations .card a { font-size: 1rem; }
