/* =========================================================
   Tails — Fresno Pet Boutique
   Lightweight, responsive, SEO/accessibility-friendly styles
   ========================================================= */

:root {
  --brand: #e8743b;        /* warm orange */
  --brand-dark: #c95a26;
  --accent: #2a9d8f;       /* teal */
  --ink: #2b2622;
  --muted: #6b6259;
  --bg: #fffdf9;
  --bg-alt: #fdf3ea;
  --card: #ffffff;
  --line: #efe5d8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(95, 70, 40, 0.10);
  --maxw: 1140px;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  padding: .8rem 1.5rem; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; border: 2px solid transparent; font-size: 1rem;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost--light:hover { background: #fff; color: var(--brand-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,249,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: baseline; gap: .35rem; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-paw { font-size: 1.3rem; }
.brand-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); background: var(--bg-alt); padding: .15rem .45rem; border-radius: 6px; transform: translateY(-2px); }
.main-nav { margin-left: auto; }
.nav-menu { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); font-weight: 700; }
.nav-menu a:hover { color: var(--brand-dark); text-decoration: none; }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 70%); padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--brand-dark); margin: 0 0 .6rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 1.6rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-weight: 700; color: var(--ink); }
.hero-art { position: relative; min-height: 320px; display: grid; place-items: center; }
.blob { position: absolute; inset: 0; margin: auto; width: 320px; height: 320px; background: radial-gradient(circle at 30% 30%, #ffd9b0, var(--brand) 75%); border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%; filter: blur(2px); opacity: .9; animation: float 7s ease-in-out infinite; }
.hero-emoji { position: relative; font-size: 8rem; line-height: 1; z-index: 1; filter: drop-shadow(0 12px 18px rgba(0,0,0,.18)); }
.hero-emoji--cat { position: absolute; bottom: 8%; right: 14%; font-size: 4rem; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-3deg); } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); color: #fff; padding: 1.4rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.trust-item { font-size: .92rem; color: #e8ddcf; }
.trust-item span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.cat-card, .service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover, .service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(95,70,40,.16); }
.cat-ico { font-size: 2.2rem; margin-bottom: .5rem; }
.cat-card p, .service-card p { color: var(--muted); margin-bottom: .8rem; }
.card-link { font-family: var(--font-head); font-weight: 600; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; box-shadow: var(--shadow); }
.product-img { font-size: 3.2rem; background: var(--bg-alt); border-radius: 12px; padding: 1.2rem 0; margin-bottom: .8rem; }
.product h3 { font-size: 1.02rem; }
.product-meta { color: var(--muted); font-size: .85rem; margin: 0 0 .4rem; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--brand-dark); font-size: 1.2rem; margin: 0; }
.center-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1.5rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: center; }
.about-art { display: grid; place-items: center; }
.about-circle { width: 240px; height: 240px; display: grid; place-items: center; font-size: 6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #bdeae3, var(--accent)); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; font-weight: 600; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: #fff; background: var(--accent); width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }

/* ---------- Testimonials ---------- */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin: 0; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 .8rem; font-size: 1.05rem; }
.quote figcaption { color: var(--brand-dark); font-weight: 700; font-size: .9rem; }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.nap { font-style: normal; color: var(--muted); line-height: 1.7; }
.nap strong { color: var(--ink); }
.hours-title { margin-top: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 700; color: var(--ink); }
.hours td { color: var(--muted); text-align: right; }
.loc-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; box-shadow: 0 4px 14px rgba(95,70,40,.06); }
details summary { font-family: var(--font-head); font-weight: 600; cursor: pointer; font-size: 1.05rem; }
details[open] summary { color: var(--brand-dark); margin-bottom: .6rem; }
details p { color: var(--muted); margin: 0; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.92); font-size: 1.1rem; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8cdbf; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: #b8ab9b; max-width: 32ch; }
.brand--footer { color: #fff; font-size: 1.3rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a, .footer-brand a, .footer-bottom a { color: #d8cdbf; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .loc-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 240px; }
  .card-grid, .card-grid--3, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .main-nav { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 20px;
    gap: .8rem; display: none; box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .card-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
