/* ===== HV Petvilla — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600..900&family=Inter:wght@400;500;600&display=swap');

:root {
  --teal:       #8A5A34;   /* saddle brown — primary accent */
  --teal-dark:  #3D2817;   /* dark roast espresso — hero/footer bands */
  --teal-light: #EDE0CB;   /* pale latte tint (hover states) */
  --green:      #C89B5C;   /* warm caramel — secondary accent */
  --green-light:rgba(200,155,92,.15);
  --white:      #FBF6EC;   /* cream — text on dark bands (hero/footer/buttons) */
  --ink:        #3A2A1C;   /* dark roast — body text on light surfaces */
  --surface:    #FFFBF3;   /* card surface, lifted off the page bg */
  --bg:         #F6EFE0;   /* warm cream — page background */
  --border:     #E4D5BC;
  --muted:      #8A7860;
  --red:        #C1443A;
  --shadow-sm:  0 1px 4px rgba(58,42,28,.08);
  --shadow-md:  0 4px 18px rgba(58,42,28,.12);
  --shadow-lg:  0 10px 40px rgba(58,42,28,.18);
  --radius:     16px;
  --radius-sm:  10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(246,239,224,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; height: 68px;
  gap: 16px;
}

.nav-logo-img {
  height: 48px; width: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 900; font-size: 1.35rem;
  color: var(--teal); flex-shrink: 0;
}
.nav-logo .accent { color: var(--green); }

.nav-links {
  display: flex; gap: 4px; margin-left: auto; align-items: center;
}
.nav-links a {
  padding: 8px 13px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: 0.88rem;
  color: var(--muted); transition: all 0.18s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--teal-light); color: var(--teal);
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  margin-left: auto; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2.5px;
  background: var(--teal); border-radius: 2px;
  transition: all 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-mobile {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--surface); z-index: 199;
  border-bottom: 1.5px solid var(--border);
  padding: 12px 16px;
  flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--muted); transition: all 0.18s;
}
.nav-mobile a:hover, .nav-mobile a.active {
  background: var(--teal-light); color: var(--teal);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #5C3B22 45%, var(--teal) 100%);
  color: var(--white); padding: 52px 20px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content:''; position:absolute; inset:0;
  background: 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'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%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");
}
.hero-icon { font-size: 3rem; margin-bottom: 14px; }
.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 3rem);
  margin-bottom: 12px; position: relative;
}
.hero h1 .hi { color: var(--green); }
.hero p { font-size: 1rem; opacity: 0.85; max-width: 500px; margin: 0 auto; position: relative; }

/* ── CONTAINER ── */
.container { max-width: 880px; margin: 0 auto; padding: 28px 20px; flex: 1; }

/* ── CARD ── */
.card {
  background: var(--surface); border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 20px;
}
.card h2 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 900;
  font-size: 1.15rem; color: var(--teal); margin-bottom: 20px;
}

/* ── FORM ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--teal); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  background: var(--surface); color: var(--ink);
  transition: border-color 0.18s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 0.18s;
  text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: var(--white); box-shadow: 0 4px 14px rgba(138,90,52,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(138,90,52,.45); }
.btn-green  { background: var(--teal); color: var(--white); }
.btn-green:hover { background: #6E4327; }
.btn-outline { border: 2px solid currentColor; background: transparent; }
.btn-outline:hover { background: rgba(244,239,227,.1); }
.btn-block { width: 100%; }

/* ── FOOTER ── */
footer {
  background: var(--teal-dark); color: rgba(244,239,227,0.75);
  text-align: center; padding: 24px 20px; font-size: 0.84rem;
}
footer a { color: #E8C888; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── FOOTER LOGO ── */
.footer-logo {
  display: block; margin: 0 auto 14px;
  height: 64px; width: 64px; border-radius: 12px; object-fit: cover;
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 300;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 16px rgba(37,211,102,.45);
  text-decoration: none; transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--teal); color: var(--white);
  padding: 11px 22px; border-radius: 30px; font-size: 0.88rem; font-weight: 600;
  opacity: 0; transition: all 0.3s; z-index: 500; white-space: nowrap;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
@media (max-width: 420px) {
  .hero { padding: 40px 16px 48px; }
}

/* ═══════════════════════════════════════════════════════
   PROFESSIONAL POLISH LAYER — added
   Scroll reveals, stats, badges, back-to-top, nav shadow,
   testimonial polish, product shine, micro-interactions
═══════════════════════════════════════════════════════ */

/* Nav gains depth once page is scrolled */
.nav.scrolled { box-shadow: 0 2px 16px rgba(58,42,28,.12); }

/* Active nav link gets a little animated underline */
.nav-links a { position: relative; }
.nav-links a.active::after {
  content:''; position:absolute; left:13px; right:13px; bottom:3px;
  height:2px; border-radius:2px;
  background: linear-gradient(90deg,var(--teal),var(--green));
}

/* Scroll-reveal utility: elements fade + rise into place */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1.in-view { transition-delay: .05s; }
.reveal-2.in-view { transition-delay: .12s; }
.reveal-3.in-view { transition-delay: .19s; }
.reveal-4.in-view { transition-delay: .26s; }
.reveal-5.in-view { transition-delay: .33s; }
.reveal-6.in-view { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── STATS STRIP ── */
.stats-strip {
  max-width: 860px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
  position: relative; z-index: 2; margin-top: -30px;
}
.stat-box {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 16px 10px; text-align: center;
}
.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 900; font-size: 1.5rem;
  color: var(--teal); line-height: 1.1;
  background: linear-gradient(135deg,var(--teal),var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2,1fr); margin-top: -20px; }
}

/* ── BADGES on cards/products ── */
.badge-pill {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: .65rem; font-weight: 800; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 20px; color: var(--white);
  font-family: 'Bricolage Grotesque', sans-serif; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.badge-best { background: linear-gradient(135deg,var(--green),#9C7440); }
.badge-new  { background: linear-gradient(135deg,var(--teal),var(--green)); }
.badge-display     { background: #3A8DC1; }
.badge-outofstock  { background: #D97706; }
.badge-sold        { background: #64748B; }

/* ── Product card shine + lift (extends .product-card) ── */
.product-card { position: relative; }
.product-thumb { position: relative; }
.product-thumb::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.product-card:hover .product-thumb::after { transform: translateX(120%); }

/* ── Tile icon float animation on hover ── */
.tile-icon { display: inline-block; transition: transform .3s ease; }
.tile:hover .tile-icon { transform: translateY(-4px) scale(1.1) rotate(-4deg); }

/* ── Section eyebrow tag ── */
.eyebrow {
  display: inline-block; font-family:'Bricolage Grotesque',sans-serif; font-weight: 800;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: var(--green-light);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 10px;
}

/* ── Back to top button ── */
.back-top {
  position: fixed; bottom: 20px; left: 20px; z-index: 300;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--teal);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; cursor: pointer; text-decoration: none;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .25s ease;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ── WhatsApp float: gentle pulse ring ── */
.wa-float { position: fixed; }
.wa-float::before {
  content:''; position:absolute; inset:-6px; border-radius:50%;
  border: 2px solid #25D366; opacity: .55;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(.85); opacity: .55; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

/* ── Divider with icon ── */
.divider-icon {
  display:flex; align-items:center; gap:14px; max-width:860px;
  margin: 40px auto 22px; padding: 0 20px; color: var(--muted);
}
.divider-icon::before, .divider-icon::after { content:''; flex:1; height:1.5px; background: var(--border); }
.divider-icon span { font-size: 1.2rem; }

/* ── Improved card hover for .card ── */
.card { transition: box-shadow .25s ease, transform .25s ease; }
.card.hoverable:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ── Word-reveal headline animation (restrained, staggered) ── */
.word-reveal span {
  display: inline-block; opacity: 0; transform: translateY(14px);
  animation: word-rise .6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes word-rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .word-reveal span { animation: none; opacity: 1; transform: none; }
}

/* ── Descriptive intro copy (crawlable text under a page's hero) ── */
.page-intro {
  max-width: 760px; margin: 28px auto 32px; padding: 22px 26px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif; font-size: 0.88rem; color: var(--ink); line-height: 1.7;
}
.page-intro strong { color: var(--teal); }

/* ── Bird-flying loading indicator (shared across all pages) ── */
.bird-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 50px 0; color: var(--muted); font-size: .9rem;
}
.bird-spinner {
  display: inline-block; font-size: 2.2rem; line-height: 1;
  animation: bird-fly 1.6s ease-in-out infinite;
}
.bird-spinner.sm {
  font-size: 1rem; margin-right: 6px; vertical-align: middle;
  animation-duration: .9s;
}
@keyframes bird-fly {
  0%   { transform: translate(-16px,0)    rotate(-6deg) scaleY(1);    }
  15%  { transform: translate(-8px,-9px)  rotate(-2deg) scaleY(.78);  }
  30%  { transform: translate(0,-13px)    rotate(0deg)  scaleY(1.08); }
  45%  { transform: translate(8px,-9px)   rotate(2deg)  scaleY(.78);  }
  60%  { transform: translate(16px,0)     rotate(6deg)  scaleY(1);    }
  75%  { transform: translate(8px,7px)    rotate(2deg)  scaleY(.85);  }
  90%  { transform: translate(-8px,7px)   rotate(-2deg) scaleY(.85);  }
  100% { transform: translate(-16px,0)    rotate(-6deg) scaleY(1);    }
}
@media (prefers-reduced-motion: reduce) {
  .bird-spinner { animation: none; }
}
