/* ─────────────────────────────────────────
   Pat's Problem Limbs & Tree Care
   stylesheet — style.css
───────────────────────────────────────── */

/* ─── VARIABLES ─── */
:root {
  --bark:      #2c1f0e;
  --moss:      #3a5a2e;
  --canopy:    #4e7a42;
  --leaf:      #7aaa5e;
  --cream:     #fff6e8;
  --parchment: #ede6d6;
  --gold:      #c8922a;
  --text:      #1e1a14;
  --muted:     #6b6255;
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ─── BASE ─── */
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

/* ─── HEADER ─── */
header {
  background: var(--bark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(74,90,46,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,146,42,0.12) 0%, transparent 50%);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 0rem 0rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.business-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--cream);
  position: relative;
}

.business-name span {
  color: var(--gold);
}

.tagline {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf);
  position: relative;
}

/* ─── PHOTO ─── */
.photo-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem 0;
}

.site-logo {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

/* ─── MAIN CONTENT ─── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ─── BIO ─── */
.bio {
  max-width: 100%;
  text-align: center;
  padding: 1rem 0 0;
}

.bio h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.2rem;
}

.bio h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 400;
  color: var(--moss);
  margin-bottom: 1rem;
}

.bio p {
  color: var(--text);
  font-size: 1rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ─── CTA BUTTONS ─── */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44,31,14,0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-call {
  background: var(--moss);
  color: #fff;
}

.btn-email {
  background: var(--parchment);
  color: var(--bark);
  border: 2px solid var(--bark);
}

.btn-gmaps {
  background: var(--canopy);
  color: #fff;
}

.btn-greview {
  background: var(--gold);
  color: #fff;
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1.5px solid #d6cebf;
  margin: 0.25rem 0;
}

/* ─── SERVICES STRIP ─── */

.service-box {
  align-items: center;
  justify-items: center;
  max-width: 100%;
}

.services {
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  text-align: center;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  columns: 2;
  margin-bottom: 0.5rem;

}

.services-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  list-style: none;
}

.services-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--moss);
  background: rgba(74,122,66,0.08);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(74,122,66,0.2);
}

/* ─── COLLAPSIBLE ─── */
.collapsible {
  margin: 0.75rem 0;
  border: 1.5px solid #d6cebf;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.collapsible-header {
  width: 100%;
  background: var(--parchment);
  border: none;
  padding: 1rem 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bark);
  transition: background 0.15s;
  user-select: none;
}

.collapsible-header:hover {
  background: #e8e0d0;
}

.chevron {
  transition: transform 0.3s;
  flex-shrink: 0;
}

.collapsible.open .chevron {
  transform: rotate(180deg);
}

.collapsible-body {
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.4s ease;
}

.collapsible.open .collapsible-body {
  max-height: 520px;
}

/* ─── REVIEW HEADER BUTTONS ─── */
.collapsible-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collapsible-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--bark);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.24rem 0.58rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
}

.btn-header:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.btn-header:active {
  transform: translateY(0);
  opacity: 1;
}

.btn-maps {
  background: var(--canopy);
  color: #fff;
}

.btn-review {
  background: var(--gold);
  color: #fff;
}

/* default: buttons side by side */
.review-header-btns {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  align-items: center;
}

/* ─── REVIEWS ─── */
.reviews-inner {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.review-card {
  border-left: 3px solid var(--canopy);
  padding-left: 1rem;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.review-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--bark);
}

.review-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.review-text {
  font-size: 0.93rem;
  color: #3a3228;
  font-weight: 300;
  line-height: 1.6;
}

/* ─── POSTS ─── */
.posts-inner {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.post-card {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #ebe3d4;
}

.post-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.post-week {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--canopy);
  margin-bottom: 0.3rem;
}

.post-text {
  font-size: 0.93rem;
  color: #3a3228;
  font-weight: 300;
  line-height: 1.6;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bark);
  color: var(--parchment);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-area-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.7rem;
}

.footer-cities {
  font-size: 0.92rem;
  font-weight: 300;
  color: #c8bfae;
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: #7a6f62;
}


/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   1024px  tablet landscape
    768px  tablet portrait
    600px  large phone (phablet)
    480px  small phone
═══════════════════════════════════════════ */

/* ─── 1024px — Tablet landscape ─── */
@media (max-width: 1024px) {
  main {
    max-width: 680px;
  }

  .bio p {
    max-width: 100%;
  }
}

/* ─── 768px — Tablet portrait ─── */
@media (max-width: 768px) {
  header {
    padding: 1.25rem 1rem 0;
  }

  .business-name {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
  }

  .tagline {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
  }

  .cta-row {
    gap: 0.6rem;
  }

  .site-logo {
    width: 160px;
    height: 160px;
  }
}

/* ─── 600px — Large phone / phablet ─── */
@media (max-width: 600px) {
  header {
    padding: 1rem 0.75rem 0;
  }

  .business-name {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tagline {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
  }

  .cta-row {
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    flex-wrap: nowrap;
  }

  .btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
    gap: 0.3rem;
  }

  .btn svg {
    width: 14px;
    height: 14px;
  }

  .site-logo {
    width: 140px;
    height: 140px;
  }

  main {
    padding: 0 1rem 2.5rem;
  }
}

/* ─── 480px — Small phone ─── */
@media (max-width: 480px) {
  /* ── Header ── */
  header {
    padding: 0.85rem 0.5rem 0;
  }

  .business-name {
    font-size: clamp(1.15rem, 5.5vw, 1.4rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tagline {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.25rem;
    margin-top: 0.3rem;
  }

  /* ── Header CTA buttons — all 4 on one row ── */
  .cta-row {
    flex-wrap: nowrap;
    gap: 0.3rem;
    padding: 0.6rem 0.35rem;
  }

  .btn {
    font-size: 0.7rem;
    padding: 0.38rem 0.45rem;
    gap: 0.25rem;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  /* ── Services — compact pills, wrap naturally ── */
  .services-list {
    gap: 0.3rem 0.4rem;
  }

  .services-list li {
    font-size: 0.72rem;
    padding: 0.18rem 0.45rem;
    letter-spacing: 0;
  }

  /* ── Logo ── */
  .site-logo {
    width: 120px;
    height: 120px;
  }

  /* ── Collapsible review header:
        Maps + Leave a Review stack vertically ── */
  .review-header-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }

  .review-header-btns .btn-header {
    justify-content: center;
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
  }

  /* keep collapsible header tidy with stacked buttons */
  .collapsible-header {
    align-items: flex-start;
    padding: 0.75rem 0.75rem;
  }

  .collapsible-header-actions {
    gap: 0.35rem;
  }

  .collapsible-label {
    font-size: 0.9rem;
  }

  /* ── Main content ── */
  main {
    padding: 0 0.75rem 2rem;
  }

  .bio h1 {
    font-size: 1.1rem;
  }

  .bio h2 {
    font-size: 1rem;
  }

  .bio p {
    font-size: 0.95rem;
  }

  /* ── Footer ── */
  footer {
    padding: 2rem 1rem;
  }

  .footer-cities {
    font-size: 0.82rem;
  }
}
