/* ==========================================================================
   Bark & Boon - style.css
   Palette: forest green + cream + honey accent
   ========================================================================== */

/* ---------- Custom font (OFL-licensed, see font/OFL.txt) ---------- */

@font-face {
  font-family: "Modern Antiqua";
  src: url("font/ModernAntiqua-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #550000;
  --green-dark: #3D0000;
  --green-deep: #203221;
  --cream: #F9F2E8;
  --cream-dark: #EFE5D3;
  --honey: #EF9A38;
  --honey-dark: #C97F1E;
  --ink: #2B2B26;
  --ink-soft: #5C5C52;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(43, 43, 38, 0.07);
  --shadow-md: 0 10px 30px rgba(43, 43, 38, 0.12);
  --font-head: "Modern Antiqua", "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green-deep); }

.accent { color: var(--honey-dark); font-style: italic; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--green);
}

.btn-outline:hover { background: var(--green); color: var(--cream); }

.btn-ghost {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}

.btn-ghost:hover { background: var(--green); color: var(--cream); }

.btn-small { padding: 9px 22px; font-size: 0.9rem; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(249, 242, 232, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo { width: 44px; height: 44px; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-name em { color: inherit; font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--honey);
  transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(239, 154, 56, 0.14), transparent),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(85, 0, 0, 0.10), transparent),
    var(--cream);
  padding: 120px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  filter: drop-shadow(0 14px 30px rgba(85, 0, 0, 0.22));
  animation: float 6s ease-in-out infinite;
}

.hero-logo img { width: 100%; height: auto; }

.hero-copy { position: relative; z-index: 1; text-align: left; max-width: 720px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--green-deep);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section { padding: 100px 0; }

.section-alt { background: var(--white); }

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-dark);
  margin-bottom: 12px;
}

.section-sub {
  max-width: 620px;
  color: var(--ink-soft);
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.section-sub a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-underline-offset: 3px;
}

.section-sub a:hover { color: var(--green-dark); }

/* ---------- Package cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--cream);
  border: 1px solid rgba(85, 0, 0, 0.10);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(85, 0, 0, 0.08);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card-icon svg { width: 30px; height: 30px; }

.card h3 { font-size: 1.3rem; color: var(--green-deep); margin-bottom: 10px; }

.card-note {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}

.card-desc { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 18px; }

.card-list {
  list-style: none;
  margin: 0 0 26px;
  flex-grow: 1;
}

.card-list li {
  font-size: 0.9rem;
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px dashed rgba(85, 0, 0, 0.15);
}

.card-list li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.card .btn {
  text-align: center;
  width: 100%;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  line-height: 1.25;
  box-sizing: border-box;
}

.card-featured {
  background: rgba(32, 50, 33, 0.14);
  border: 2px solid var(--green-deep);
}

.card-featured .card-icon { background: rgba(239, 154, 56, 0.18); color: var(--honey-dark); }
.card-featured .btn { background: var(--honey); border-color: var(--honey); color: var(--green-deep); }
.card-featured .btn:hover { background: var(--honey-dark); border-color: var(--honey-dark); }

.card-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--honey);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.footnote {
  margin-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.footnote + .footnote { margin-top: 12px; }

.classes-banner {
  margin-top: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px 30px;
  background: var(--white);
  border: 1px solid rgba(239, 154, 56, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.classes-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--green-deep);
  margin: 0 0 8px;
}

.classes-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.classes-note a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-underline-offset: 3px;
}

.classes-note a:hover { color: var(--green-dark); }

/* ---------- About ---------- */

.about-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}

.about-copy p { margin-bottom: 18px; color: var(--ink-soft); }

.about-copy strong { color: var(--ink); }

.about-creds {
  list-style: none;
  margin-top: 24px;
}

.about-creds li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-weight: 500;
  border-bottom: 1px dashed rgba(85, 0, 0, 0.2);
}

.about-creds li::before {
  content: "✔";
  position: absolute;
  left: 4px;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.quote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(85, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stars { color: var(--honey); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 14px; }

.quote blockquote {
  font-size: 0.97rem;
  color: var(--ink-soft);
  flex-grow: 1;
  margin-bottom: 18px;
}

.quote figcaption { font-size: 0.88rem; font-weight: 600; color: var(--green-deep); }
.quote figcaption em { font-weight: 400; color: var(--ink-soft); }
.quote .pet { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; margin-top: 2px; }

/* Photo-backed testimonial cards */
.quote-photo {
  position: relative;
  border: none;
  background-size: cover;
  background-position: center 30%;
  isolation: isolate;
}

.quote-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(32, 50, 33, 0.53) 0%,
    rgba(32, 50, 33, 0.75) 55%,
    rgba(32, 50, 33, 0.90) 100%);
  z-index: -1;
}

.quote-dante { background-image: url("img/dante.jpg"); }
.quote-winni { background-image: url("img/winni.jpg"); }
.quote-bella { background-image: url("img/bella.jpg"); }

.quote-photo blockquote { color: rgba(249, 242, 232, 0.94); }
.quote-photo figcaption { color: var(--honey); }
.quote-photo figcaption em { color: rgba(249, 242, 232, 0.85); }
.quote-photo .pet { color: rgba(249, 242, 232, 0.75); }

/* ---------- Contact ---------- */

.contact-inner { text-align: center; max-width: 700px; }

#contact { padding-bottom: 56px; }

.contact-inner .section-sub { margin-left: auto; margin-right: auto; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 3.2vw, 1.8rem);
  font-weight: 700;
  color: var(--cream);
  background: var(--green);
  text-decoration: none;
  padding: 18px 32px;
  border-radius: 999px;
  margin: 12px 0 0;
  box-shadow: var(--shadow-md);
  transition: background 0.25s ease;
}

.contact-email:hover { background: var(--green-dark); }

.contact-email-icon { width: 1.4em; height: 1.4em; color: var(--honey); flex-shrink: 0; }

.contact-email-arrow {
  width: 1.2em;
  height: 1.2em;
  color: var(--honey);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-email:hover .contact-email-arrow { transform: translateX(5px); }

.service-area {
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 18px 24px;
}

.service-area-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 6px;
}

.service-area-list {
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--green-dark);
  color: rgba(249, 242, 232, 0.8);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer .brand-name { color: var(--cream); }

.footer-tag { font-family: var(--font-head); font-style: italic; font-size: 1.05rem; }

.footer-social { display: flex; gap: 16px; margin: 8px 0; }

.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--honey);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--honey-dark);
  color: var(--green-deep);
  transform: translateY(-3px);
}

.footer-social svg { width: 20px; height: 20px; }

.footer-legal { font-size: 0.82rem; color: rgba(249, 242, 232, 0.75); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
}


@media (max-width: 820px) {
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo { max-width: 240px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(75vw, 300px);
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo { animation: none; }
}
