/* ───────────────────────────────────────────────────────────────
   HomeTending — Shared Styles
   Global, cross-page styles. Page-specific rules live in each HTML
   file's <head> <style> block. The :root tokens below are the single
   source of truth for the site's palette, type and spacing.
   ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Design tokens — change a value here to update it site-wide */
:root {
  --navy: #508691;          /* brand teal — C65 M22 Y25 K5 / RGB 80,134,145 (used everywhere) */
  --navy-dark: #457581;     /* slightly darker teal — hover feedback only, never a static fill */
  --tan: #9c8769;           /* warm tan — quiet accent copy + CTA strip background */
  --gray: #f3efe6;          /* alternating section background (warm cream) */
  --cream: #fcf8f2;         /* page background & light fills (warm off-white) */
  --text: #2b2725;          /* primary body copy (warm near-black) */
  --text-light: #6e6a63;    /* secondary / muted copy */
  --white: #fff;            /* solid card backgrounds only — text/CTAs use --cream */
  --border: #ddd;           /* default input & field border */
  --shadow: 0 4px 20px rgba(61,60,40,0.08);  /* standard elevation for cards & nav */
  --check-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='1.5' y='1.5' width='17' height='17' rx='4.5' fill='%23fcf8f2' stroke='%23508691' stroke-opacity='0.6'/%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23508691' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");  /* "checked box" bullet — defined once here, used by both sample pages */
}

html { scroll-behavior: smooth; }  /* makes in-page #anchor links (nav, footer) glide instead of jump */
body {
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4,
.logo, .section-title, .page-hero h1 {  /* display serif for all headings + wordmark; body copy stays in Lato */
  font-family: 'Playfair Display', Georgia, serif;
}

/* NAV — fixed bar across the top of every page (76px tall); hero/section top-padding clears it */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--cream);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 76px;
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(61,118,134,0.12);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 700; color: var(--navy);
  text-decoration: none;
}
.logo-full { height: 40px; width: auto; aspect-ratio: 540 / 113; display: block; flex-shrink: 0; }  /* aspect-ratio keeps the wide wordmark from distorting when only height is set */

nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
nav a:hover { color: var(--navy); }
.nav-active { color: var(--navy) !important; font-weight: 600; }
.nav-cta {  /* the "Contact Us" pill in the nav — a class beats the `nav a` element selector, so no !important is needed */
  background: var(--navy); color: var(--cream);
  padding: 10px 22px; border-radius: 6px; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--navy-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; flex-shrink: 0; background: none; border: none; padding: 8px; }  /* a real <button> now — background/border reset the default button chrome and padding grows the tap target; hidden on desktop, revealed at the 640px mobile breakpoint */
.hamburger span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; }

/* PAGE HERO (inner pages) — teal banner at the top of every non-home page */
.page-hero {
  background: var(--navy);
  padding: 150px 5% 80px; text-align: center;  /* 150px top padding clears the fixed 76px nav */
}
.page-hero .badge {
  display: inline-block; background: rgba(252,248,242,0.15); color: var(--cream);
  border: 1px solid rgba(252,248,242,0.35); padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem); color: var(--cream);
  font-weight: 700; line-height: 1.2; margin-bottom: 1rem;
}
.page-hero h1 em { color: var(--tan); font-style: normal; }
.page-hero p { font-size: 1.1rem; color: rgba(252,248,242,0.82); max-width: 560px; margin: 0 auto; }

/* SECTION COMMON */
section { padding: 90px 5%; }
.section-label {
  display: inline-block; color: var(--tan); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy);
  font-weight: 700; line-height: 1.2; margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: var(--text-light); max-width: 580px; margin-bottom: 3rem; }

/* BUTTONS */
.btn-primary {
  background: var(--navy); color: var(--cream); padding: 14px 32px; border-radius: 8px;
  font-size: 1rem; font-weight: 700; text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s; box-shadow: 0 4px 16px rgba(61,118,134,0.3);
}
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--navy); padding: 13px 30px; border-radius: 8px;
  font-size: 1rem; font-weight: 600; text-decoration: none; display: inline-block;
  border: 2px solid var(--navy); transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--navy); color: var(--cream); }

/* FORM ELEMENTS */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(90,154,170,0.15);  /* teal focus ring (colored border + soft glow) */
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--navy); color: var(--cream);
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .15s; font-family: inherit;
}
.form-submit:hover { background: var(--navy-dark); transform: translateY(-1px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.success-msg {  /* hidden by default; the contact form's JS toggles it on submit */
  display: none; background: #d4edda; color: #155724;
  padding: 14px; border-radius: 8px; text-align: center; margin-top: 1rem; font-weight: 600;
}

/* FOOTER */
footer {
  background: var(--navy); color: rgba(252,248,242,0.7);
  text-align: center; padding: 2.5rem 5%; font-size: 0.88rem;
}
footer strong { color: var(--cream); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: rgba(252,248,242,0.65); text-decoration: none; font-size: 0.88rem; transition: color .2s; }
.footer-links a:hover { color: var(--tan); }

/* SCROLL TOP — fixed "back to top" button; invisible until JS adds .visible after ~400px of scroll */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  border-radius: 50%; background: var(--navy); color: var(--cream); border: none;
  cursor: pointer; font-size: 1.1rem; box-shadow: 0 4px 16px rgba(61,118,134,0.35);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }  /* revealed state (toggled by the scroll handler) */
.scroll-top:hover { transform: translateY(-3px); }

/* SAMPLE PAGES — teal banner + intro shared by sample-checklist.html and sample-list.html */
.sample-banner { background: var(--navy); padding: 100px 5% 44px; text-align: center; }
.sample-icon { height: clamp(48px, 8vw, 84px); width: auto; display: block; margin: 0 auto 1.4rem; }
.sample-title { font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--cream); font-weight: 700; margin: 0 0 0.7rem; }  /* h2 already inherits Playfair from the headings rule above */
.sample-tagline { font-style: italic; color: var(--tan); font-size: 1.15rem; margin: 0 0 1.2rem; }
.sample-top { padding-top: 80px; text-align: center; }
.sample-intro { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.sample-intro p { color: var(--text-light); font-size: 1.05rem; line-height: 1.75; }

/* CTA STRIP */
.cta-strip {
  background: var(--tan); padding: 60px 5%; text-align: center;
}
.cta-strip h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--cream); font-weight: 700; margin-bottom: 0.8rem; }
.cta-strip p { color: rgba(252,248,242,0.9); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-strip .btn-cream {
  background: var(--cream); color: var(--navy); padding: 14px 36px; border-radius: 8px;
  font-size: 1rem; font-weight: 700; text-decoration: none; display: inline-block;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-strip .btn-cream:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* RESPONSIVE — mobile (≤640px): swap the horizontal nav for the hamburger dropdown */
@media (max-width: 640px) {
  nav { padding: 0 4%; }
  .logo {
    font-size: 1.15rem; gap: 6px;
    flex: 1 1 auto; min-width: 0; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
  }
  .logo-full { height: 30px; }
  nav ul { display: none; }
  .hamburger { display: flex; }
  nav ul.open {  /* the open dropdown menu — toggled by toggleNav() in each page's <script> */
    display: flex; flex-direction: column;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); padding: 1.5rem 5%;
    gap: 1.2rem; box-shadow: 0 8px 20px rgba(61,60,40,0.15);
    border-bottom: 1px solid rgba(61,118,134,0.12);
  }
  .form-row { grid-template-columns: 1fr; }
}

/* GOOGLE RATING — gold stars + link to the Google reviews page (footer on every page, plus the contact info card) */
.stars { color: #f4b400; letter-spacing: 2px; }
.info-item .stars { color: #f4b400; font-size: 1.15rem; line-height: 1.4; }
.google-rating {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
  color: var(--cream); font-size: 0.95rem; text-decoration: none;
}
.google-rating:hover span:last-child { text-decoration: underline; }