/*
Theme Name: Waite's Cleaners
Theme URI: https://www.waitescleaners.com/
Author: CHARPEN Consulting
Description: Custom classic theme for Waite's Cleaners — a homey-modern dry cleaner in the Mobile, AL area. Sage & cream palette, Bitter serif display, ACF-editable sections. Requires Advanced Custom Fields (free).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waites
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --sage:        #4C6353;
  --sage-dark:   #38493D;
  --sage-darker: #3B372F;
  --terracotta:  #A65E3B;
  --clay:        #C67B54;
  --cream:       #FAF7F2;
  --cream-2:     #F5F0E7;
  --cream-3:     #F3EFE7;
  --line:        #EAE2D5;
  --line-2:      #EEE6D8;
  --ink:         #2E2A26;
  --ink-soft:    #5F574C;
  --muted:       #8C8172;
  --sage-tint:   #EAF0EB;
  --clay-tint:   #F6EAE1;

  --serif: 'Bitter', Georgia, 'Times New Roman', serif;
  --sans:  'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(46,42,38,0.08);
  --shadow-sm: 0 4px 14px rgba(46,42,38,0.06);
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); }

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

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: inline-block;
}

.section { padding: 84px 0; }
.section--tint { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--sage { background: var(--sage); color: var(--cream-3); }
.section--sage h1, .section--sage h2, .section--sage h3 { color: var(--cream); }
.section--sage .eyebrow { color: #C9D6C6; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--terracotta); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-sage { background: var(--cream); color: var(--sage-dark); }
.btn--on-sage:hover { background: #fff; transform: translateY(-1px); }

.textlink { font-weight: 700; color: var(--terracotta); display: inline-flex; align-items: center; gap: 6px; }
.textlink:hover { gap: 10px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.topbar { background: var(--sage-dark); color: #D9E0D6; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.topbar a { font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 24px; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.brand__name { font-family: 'Cinzel', var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.04em; position: relative; padding-top: 8px; white-space: nowrap; }
.brand__name::before { content: ''; position: absolute; top: 0; left: 2%; right: 2%; height: 2px; background: currentColor; }
.brand__cleaners { font-family: 'Cinzel', var(--serif); font-weight: 400; font-size: 10.5px; letter-spacing: 0.42em; margin-right: -0.42em; margin-top: 6px; white-space: nowrap; }
.brand__est { font-family: 'Cinzel', var(--serif); font-weight: 400; font-size: 8.5px; letter-spacing: 0.2em; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; opacity: 0.85; white-space: nowrap; }
.brand__est::before, .brand__est::after { content: ''; width: 20px; height: 1px; background: currentColor; opacity: 0.7; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; font-size: 15.5px; font-weight: 600; }
.main-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a { border-color: var(--terracotta); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; min-width: 190px;
  display: none; flex-direction: column; gap: 2px;
}
.main-nav .menu-item-has-children:hover .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 8px 12px; border: 0; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--sage-tint); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--clay-tint); color: var(--terracotta); font-weight: 700; font-size: 13.5px; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 62px; letter-spacing: -0.01em; margin-bottom: 20px; }
.hero__sub { font-size: 19px; color: var(--ink-soft); max-width: 44ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--cream-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream-2); }
.trustbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; padding-top: 22px; padding-bottom: 22px; }
.trustbar span { font-weight: 700; font-size: 14.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.trustbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head h2 { font-size: 42px; letter-spacing: -0.01em; }
.section__head p { color: var(--ink-soft); font-size: 18px; margin-top: 12px; }

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

.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sage-tint); color: var(--sage); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon .material-symbols-outlined { font-size: 26px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* Service list (two-col checklist) */
.svc-list { columns: 2; column-gap: 44px; }
.svc-list li { list-style: none; break-inside: avoid; padding: 12px 0 12px 32px; position: relative; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.svc-list li::before { content: 'check_circle'; font-family: 'Material Symbols Outlined'; position: absolute; left: 0; top: 11px; color: var(--sage); }
.svc-list li small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }

/* ============================================================
   PICKUP FEATURE
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 36px; }
.step { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 26px; }
.step__num { font-family: var(--serif); font-size: 34px; color: var(--clay); }
.step h3 { font-size: 20px; margin: 8px 0; }
.step p { font-size: 15px; opacity: 0.9; }

/* ============================================================
   REVIEWS
   ============================================================ */
.rating-line { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 30px; }
.stars { color: #E0A73E; letter-spacing: 2px; }
.review { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.review__quote { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin-bottom: 16px; }
.review__author { font-weight: 700; font-size: 14.5px; }
.review__author span { color: var(--muted); font-weight: 400; }

/* ============================================================
   LOCATIONS
   ============================================================ */
.loc-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.loc-card__badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); background: var(--clay-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.loc-card h3 { font-size: 23px; margin-bottom: 12px; }
.loc-card .row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.loc-card .row .material-symbols-outlined { font-size: 19px; color: var(--sage); margin-top: 2px; }
.loc-card .actions { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--sage); border-color: var(--sage); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { font-size: 54px; letter-spacing: -0.01em; }
.page-hero p { color: var(--ink-soft); font-size: 19px; margin-top: 14px; max-width: 56ch; }
.page-hero--sage { background: var(--sage); border-bottom: 0; }
.page-hero--sage h1 { color: var(--cream); }
.page-hero--sage p { color: #D6E0D4; }

.back-link { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sage); margin-bottom: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--sage-dark); color: #D9E0D6; padding: 60px 0 28px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #A7B6A5; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.brand--footer { display: inline-flex; color: #fff; margin-bottom: 14px; }
.brand--footer .brand__name { font-size: 24px; }
.brand--footer .brand__cleaners { font-size: 11.5px; }
.brand--footer .brand__est { font-size: 9px; }
.footer-brand p { font-size: 14.5px; opacity: 0.85; margin-top: 12px; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; opacity: 0.8; }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16/10; }
  .hero h1 { font-size: 46px; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
/* Compact nav before collapsing: tighter gaps and smaller CTA. */
@media (max-width: 1340px) {
  .main-nav ul { gap: 16px; font-size: 14.5px; }
  .header-cta .btn { padding: 12px 18px; font-size: 14.5px; }
  .site-header .wrap { gap: 16px; }
}

/* Collapse to hamburger while there is still room — no squeezing. */
@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 22px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 12px; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .section { padding: 56px 0; }
  .grid--3, .grid--2, .steps, .svc-list { grid-template-columns: 1fr; columns: 1; }
  .section__head h2 { font-size: 32px; }
  .hero h1 { font-size: 38px; }
  .page-hero h1 { font-size: 38px; }
  .topbar { font-size: 12.5px; }
  .topbar .wrap { justify-content: center; gap: 6px 14px; padding-top: 6px; padding-bottom: 6px; }
  .topbar .material-symbols-outlined { font-size: 15px; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: grid; gap: 12px; }
.faq { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .material-symbols-outlined { color: var(--sage); transition: transform 0.2s ease; flex-shrink: 0; }
.faq[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.faq p { padding: 0 22px 18px; color: var(--ink-soft); }

/* ============================================================
   PAGE-HERO SPLIT (text + photo)
   ============================================================ */
.page-hero__split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
@media (max-width: 720px) {
  .page-hero__split { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   THE PRESS (posts)
   ============================================================ */
.post-card__media { display: block; margin: -28px -28px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--cream-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__date { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-size: 22px; margin-bottom: 10px; }
.post-card h3 a:hover { color: var(--terracotta); }

.prose h2 { font-size: 30px; margin: 36px 0 14px; }
.prose h3 { font-size: 23px; margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--sage); padding: 4px 0 4px 20px; margin: 24px 0; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.prose img { border-radius: var(--radius-sm); }
.prose a { color: var(--terracotta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.pagination .nav-links { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.pagination .page-numbers.current { background: var(--sage); color: var(--cream); border-color: var(--sage); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--ink); }
