/* ═══════════════════════════════════════════════════════════════
   Magic Paws – Shared Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #faf8f5;
  color: #2d2416;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  --cream:  #faf8f5;
  --ivory:  #f3efe8;
  --linen:  #e8e0d0;
  --sand:   #c9b99a;
  --gold:   #b8935a;
  --dark:   #2d2416;
  --muted:  #6b5c44;
  --white:  #ffffff;
  --radius: 14px;
  --shadow: 0 4px 32px rgba(45,36,22,.10);
  --trans:  .3s cubic-bezier(.4,0,.2,1);
}

/* ── UTILITIES ────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; color: var(--dark);
}
.section-title em { font-style: italic; color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none; transition: var(--trans);
}
.btn-primary {
  background: var(--gold); color: var(--white);
  box-shadow: 0 4px 20px rgba(184,147,90,.35);
}
.btn-primary:hover { background: #a07a45; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(184,147,90,.45); }
.btn-outline {
  background: transparent; color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }
.btn-outline-light {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline-light:hover { background: var(--white); color: var(--dark); }

/* ── HEADER / NAV ─────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linen);
  transition: box-shadow var(--trans);
}
header.scrolled { box-shadow: 0 4px 24px rgba(45,36,22,.10); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  position: relative; transition: color var(--trans);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── Dropdown ──────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-dropdown > a .dd-arrow {
  width: 10px; height: 10px; flex-shrink: 0;
  transition: transform var(--trans);
}
.nav-dropdown:hover > a .dd-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white); border-radius: 14px;
  box-shadow: 0 8px 32px rgba(45,36,22,.13);
  padding: 8px; min-width: 180px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  border: 1px solid var(--linen);
  z-index: 200;
}
.dropdown-menu::before {
  content: ''; position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--dark);
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: var(--ivory); color: var(--gold); }
.dropdown-menu a .dd-icon { font-size: 1rem; }
/* ─────────────────────────────────────────────────────────────── */

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-social { display: flex; gap: 10px; }
.nav-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ivory); display: flex; align-items: center; justify-content: center;
  transition: var(--trans); color: var(--muted);
}
.nav-social a:hover { background: var(--gold); color: var(--white); }
.nav-social svg { width: 16px; height: 16px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: var(--cream); padding: 32px 28px;
  flex-direction: column; gap: 20px;
  border-top: 1px solid var(--linen);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.1rem; font-weight: 600; color: var(--dark); transition: color var(--trans); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-social { display: flex; gap: 14px; margin-top: 8px; }
.mobile-nav-social a { font-size: .9rem; color: var(--muted); font-weight: 400; }

/* ── PAGE HERO (subpages) ─────────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,147,90,.08) 0%, transparent 70%);
}
.page-hero-inner { position: relative; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--muted); margin-bottom: 20px;
}
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb span { color: var(--sand); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.15;
  color: var(--dark); margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p { font-size: 1.05rem; color: var(--muted); max-width: 560px; }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,.75);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 40px; filter: brightness(10); margin-bottom: 20px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center;
  transition: var(--trans); color: rgba(255,255,255,.6);
}
.footer-social a:hover { background: var(--gold); color: white; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--white); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .9rem; transition: color var(--trans); }
.footer-col ul a:hover { color: var(--sand); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: .9rem;
}
.footer-contact-item svg { width: 18px; height: 18px; fill: var(--sand); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: .82rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a:hover { color: var(--sand); }
.footer-legal { display: flex; gap: 24px; }

/* ── PARTNERS ─────────────────────────────────────────────────── */
.partners { padding: 80px 0; background: var(--cream); border-top: 1px solid var(--linen); }
.partners-header { text-align: center; margin-bottom: 40px; }
.partners-header p { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 64px; flex-wrap: wrap; }
.partner-logo { opacity: .55; transition: opacity var(--trans); filter: grayscale(1); }
.partner-logo:hover { opacity: 1; filter: none; }
.partner-logo img { height: 52px; width: auto; }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-social { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}
