/* ================================================
   PAW HAVEN — Organic Luxury Redesign
   Aesthetic: Warm earthy tones, editorial serif,
   natural textures, smooth reveals
================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ================================================
   ROOT TOKENS
================================================ */
:root {
  --cream:      #f5f0e8;
  --cream-dark: #ede5d4;
  --forest:     #2d4a3e;
  --forest-mid: #3d6455;
  --forest-lt:  #5a8a72;
  --terra:      #c4623a;
  --terra-lt:   #e07d58;
  --sand:       #b8a07a;
  --sand-lt:    #d4bfa0;
  --charcoal:   #1a1a18;
  --muted:      #7a7260;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --radius-sm:  10px;
  --radius-md:  20px;
  --radius-lg:  32px;
  --radius-xl:  48px;

  --shadow-soft: 0 8px 40px rgba(45,74,62,.10);
  --shadow-card: 0 4px 24px rgba(26,26,24,.08);
  --shadow-lift: 0 20px 60px rgba(45,74,62,.18);

  --transition: .35s cubic-bezier(.25,.8,.25,1);
  --transition-fast: .2s ease;
}

/* ================================================
   RESET + BASE
================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
img { width:100%; display:block; }
a { text-decoration:none; color:inherit; }

/* ================================================
   HEADER + NAVBAR
================================================ */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6%;
  background: rgba(26,26,24,.92);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(180,160,122,.15);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 14px 6%;
  background: rgba(26,26,24,.98);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  font-style: italic;
  color: var(--sand-lt);
  letter-spacing: -.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--terra-lt);
  transition: var(--transition);
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.cart {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid rgba(180,160,122,.35);
  border-radius: 999px;
  transition: var(--transition-fast);
}
.cart:hover { border-color: var(--sand-lt); background: rgba(180,160,122,.1); }

#cart-count {
  background: var(--terra);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ================================================
   BUTTONS
================================================ */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid var(--forest);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(45,74,62,.3); background: var(--forest-mid); border-color: var(--forest-mid); }

.secondary-btn {
  background: var(--terra);
  border-color: var(--terra);
  margin-left: 12px;
}
.secondary-btn:hover { background: var(--terra-lt); border-color: var(--terra-lt); box-shadow: 0 12px 30px rgba(196,98,58,.3); }

/* Card button full-width */
.card .btn {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

/* ================================================
   HERO SECTION
================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slides {
  display: none;
  position: absolute;
  inset: 0;
}

.slides img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(26,26,24,.88) 0%,
    rgba(45,74,62,.5) 55%,
    rgba(196,98,58,.15) 100%
  );
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 80px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%; left: 6%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand-lt);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(180,160,122,.4);
  border-radius: 999px;
  background: rgba(180,160,122,.08);
  animation: fadeUp .8s ease both;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.08;
  animation: fadeUp .8s .15s ease both;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--sand-lt);
}

.hero-content p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  font-weight: 300;
  line-height: 1.6;
  animation: fadeUp .8s .3s ease both;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp .8s .45s ease both;
}

.prev, .next {
  position: absolute;
  top: 50%; z-index: 3;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}
.prev { left: 3%; }
.next { right: 3%; }
.prev:hover, .next:hover { background: rgba(255,255,255,.25); }

.dots {
  position: absolute;
  bottom: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--transition-fast);
}
.dot.active, .dot:hover {
  background: white;
  width: 22px;
  border-radius: 999px;
}

/* ================================================
   SECTION DEFAULTS
================================================ */
section { padding: 96px 6%; }

section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 52px;
  color: var(--charcoal);
}

/* ================================================
   CARDS
================================================ */
.card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

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

.card img {
  height: 220px;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover img { transform: scale(1.04); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 20px 4px;
}

.card p {
  padding: 4px 20px;
  color: var(--muted);
  font-size: .875rem;
}

.card h4 {
  padding: 6px 20px 16px;
  color: var(--forest);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ================================================
   GRIDS
================================================ */
.category-grid,
.products,
.why-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* ================================================
   PAGE BANNER
================================================ */
.page-banner {
  height: 48vh;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(26,26,24,.7), rgba(45,74,62,.6)),
    url("../images/banner.jpg") center/cover no-repeat;
  padding-top: 80px;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  color: white;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
}

/* ================================================
   SEARCH BAR
================================================ */
.search-section {
  text-align: center;
  padding: 48px 6% 0;
}

.search-section input,
#searchInput {
  width: 100%;
  max-width: 560px;
  padding: 15px 28px;
  border: 2px solid var(--cream-dark);
  border-radius: 999px;
  outline: none;
  background: white;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--charcoal);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.search-section input:focus,
#searchInput:focus {
  border-color: var(--forest-lt);
  box-shadow: 0 0 0 4px rgba(90,138,114,.12);
}

/* ================================================
   WHY US
================================================ */
.why-us {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  position: relative;
  overflow: hidden;
}

.why-us h2 { color: white; }

.why-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-6px);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  margin-bottom: 10px;
  font-weight: 700;
}

.why-card p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ================================================
   TESTIMONIALS
================================================ */
.testimonials {
  background: var(--cream-dark);
}

.testimonial {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border-left: 4px solid var(--terra);
}

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

.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial h4 {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================================================
   FAQ
================================================ */
.faq { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--cream-dark);
}

.faq-item h3 {
  padding: 22px 28px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--charcoal);
  cursor: pointer;
}

.faq-item p {
  padding: 4px 28px 22px;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ================================================
   NEWSLETTER
================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--terra) 0%, #a84f2d 100%);
  text-align: center;
  padding: 80px 6%;
}

.newsletter h2 { color: white; }

.newsletter form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter input {
  flex: 1;
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  outline: none;
  font-family: var(--font-body);
  font-size: .95rem;
  background: rgba(255,255,255,.15);
  color: white;
}

.newsletter input::placeholder { color: rgba(255,255,255,.6); }
.newsletter input:focus { background: rgba(255,255,255,.22); }

.newsletter .btn {
  background: white;
  color: var(--terra);
  border-color: white;
}
.newsletter .btn:hover { background: var(--cream); border-color: var(--cream); }

/* ================================================
   ABOUT PAGE
================================================ */
.about {
  max-width: 900px;
  margin: 80px auto 0;
  padding: 96px 6%;
}

.about h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.about p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 36px;
}

.about img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

/* ================================================
   CONTACT PAGE
================================================ */
.contact {
  max-width: 760px;
  margin: 80px auto 0;
  padding: 96px 6%;
}

.contact h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 36px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

#contactForm input,
#contactForm textarea {
  padding: 15px 20px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-body);
  font-size: .95rem;
  background: white;
  color: var(--charcoal);
  transition: var(--transition-fast);
  width: 100%;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--forest-lt);
  box-shadow: 0 0 0 4px rgba(90,138,114,.1);
}

#contactForm textarea {
  min-height: 140px;
  resize: vertical;
}

.contact iframe {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ================================================
   FOOTER
================================================ */
footer {
  background: var(--charcoal);
  color: white;
  padding: 64px 6% 32px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-container h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--sand-lt);
  margin-bottom: 10px;
}

.footer-container p {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  font-weight: 300;
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-bottom: 40px;
}

.footer-links a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: var(--transition-fast);
  padding: 4px 0;
}
.footer-links a:hover { color: var(--sand-lt); }

footer > p {
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  font-weight: 300;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ================================================
   BACK TO TOP
================================================ */
#topBtn {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--forest);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(45,74,62,.35);
  transition: var(--transition-fast);
}
#topBtn:hover { transform: translateY(-4px); background: var(--forest-mid); }

/* ================================================
   ANIMATIONS
================================================ */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ================================================
   RESPONSIVE — TABLET 900px
================================================ */
@media (max-width: 900px) {
  .hamburger { display: block; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    gap: 28px;
    transition: right .4s cubic-bezier(.25,.8,.25,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.3);
    z-index: 999;
  }

  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1rem; color: rgba(255,255,255,.85); }

  .hero-content h1 { font-size: clamp(2.4rem, 7vw, 3.5rem); }
}

/* ================================================
   RESPONSIVE — MOBILE 640px
================================================ */
@media (max-width: 640px) {
  .navbar { padding: 16px 5%; }
  .logo { font-size: 1.45rem; }

  section { padding: 72px 5%; }

  .hero-content { left: 5%; right: 5%; }
  .hero-content h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-content p { font-size: .95rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn,
  .hero-actions .secondary-btn {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .hero::after { height: 50px; }

  .category-grid,
  .why-grid,
  .testimonial-grid { grid-template-columns: 1fr; }

  .products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .page-banner { padding-top: 70px; height: 42vh; }

  .newsletter form { flex-direction: column; }
  .newsletter input { min-width: unset; width: 100%; }
  .newsletter .btn { width: 100%; text-align: center; }

  #topBtn { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  .secondary-btn { margin-left: 0; }
}

/* ================================================
   RESPONSIVE — SMALL 400px
================================================ */
@media (max-width: 400px) {
  .logo { font-size: 1.25rem; }
  .hero-content h1 { font-size: 1.9rem; }
  .products { grid-template-columns: 1fr; }
}

/* ================================================
   ACTIVE NAV LINK
================================================ */
.nav-links a.active {
  color: white;
}
.nav-links a.active::after {
  width: 100%;
  background: var(--terra-lt);
}

/* ================================================
   FOOTER — MULTI-COLUMN REDESIGN
================================================ */
footer {
  background: var(--charcoal);
  color: white;
  padding: 72px 6% 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: start;
  text-align: left;
}

/* Brand column */
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  font-style: italic;
  color: var(--sand-lt);
  margin-bottom: 14px;
}

.footer-brand > p {
  color: rgba(255,255,255,.45);
  font-size: .875rem;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  transition: var(--transition-fast);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: white;
  transform: translateY(-3px);
}

/* Footer columns */
.footer-col h4 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sand-lt);
  margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255,255,255,.45);
  font-size: .875rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: white;
  padding-left: 4px;
}

.footer-contact-item {
  color: rgba(255,255,255,.45) !important;
  font-size: .875rem !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  font-weight: 300;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* Override old footer-container centering */
.footer-container h2,
.footer-container > p {
  display: none; /* replaced by footer-brand */
}

/* Keep old single-p footer style away */
footer > p { display: none; }

/* ================================================
   FOOTER RESPONSIVE
================================================ */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Logo link — preserve styling when logo is an <a> tag */
a.logo {
  color: var(--sand-lt);
  text-decoration: none;
}
a.logo:hover {
  color: white;
  opacity: .85;
}
