/* ==========================================================
   PocketPaw Website – Main Stylesheet
   Brand: Steel Blue (#457B9D), Powder Blue (#A8DADC), Navy (#1D3557)
   Font: Nunito (all weights)
   Source: PocketPaw Product Specification Design System
   ========================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #457B9D;
  --primary-dark:   #1D3557;
  --primary-light:  #A8DADC;
  --primary-xlight: #EBF5F8;
  --primary-grad:   linear-gradient(135deg, #457B9D 0%, #A8DADC 100%);

  --white:          #FFFFFF;
  --bg:             #F1FAEE;
  --bg-card:        #FFFFFF;
  --border:         #D6E8EE;

  --text-dark:      #1D3557;
  --text-mid:       #4A6070;
  --text-light:     #8DA4AF;

  --shadow-sm:      0 2px 8px rgba(69, 123, 157, 0.10);
  --shadow-md:      0 8px 24px rgba(69, 123, 157, 0.14);
  --shadow-lg:      0 20px 60px rgba(69, 123, 157, 0.20);

  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --radius-full:    9999px;

  --font-heading:   'Nunito', sans-serif;
  --font-body:      'Nunito', sans-serif;

  --nav-h:          72px;
  --max-w:          1160px;
  --section-py:     100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
p  { color: var(--text-mid); font-size: 1.05rem; }

/* ---------- Layout Utilities ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--primary-xlight); }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }

/* ========================================================
   NAVIGATION
   ======================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 237, 240, 0.6);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.3rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.nav__logo img { width: 38px; height: 38px; border-radius: 10px; }
.nav__links {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.nav__links a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-mid);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--primary); background: var(--primary-xlight); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Policies Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav__dropdown-trigger::after { content: '▾'; font-size: 0.7rem; }
.nav__dropdown:hover .nav__dropdown-trigger { color: var(--primary); background: var(--primary-xlight); }
.nav__dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  padding: 6px; min-width: 190px; z-index: 200;
}
.nav__dropdown:hover .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a {
  display: block; padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--text-mid);
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown-menu a:hover { background: var(--primary-xlight); color: var(--primary); }

/* Language Switcher */
.lang-switcher { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-light);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.lang-btn:hover, .lang-btn.active {
  color: var(--primary);
  background: var(--primary-xlight);
}
.lang-btn.active { color: var(--primary-dark); }

/* Nav CTA Button */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.9rem; transition: all 0.25s; }
.btn--primary { background: var(--primary-grad); color: var(--white); box-shadow: 0 4px 16px rgba(46, 143, 160, 0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46, 143, 160, 0.45); }
.btn--outline { border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* Mobile Menu */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm);
  margin-left: auto;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: all 0.3s;
}
.nav__mobile {
  display: none; flex-direction: column; gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a { padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-mid); }
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile .lang-switcher { padding: 12px 0; }

/* ========================================================
   HERO
   ======================================================== */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: linear-gradient(160deg, #EAF7F9 0%, #F5FBFC 45%, #DCEEF1 100%);
  display: flex; align-items: center;
  overflow: hidden; position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(75, 200, 212, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46, 143, 160, 0.10) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 700; color: var(--primary);
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.hero__badge span { font-size: 1rem; }
.hero__title { margin-bottom: 20px; color: var(--text-dark); }
.hero__title em { font-style: normal; color: var(--primary); }
.hero__sub { font-size: 1.15rem; color: var(--text-mid); margin-bottom: 36px; line-height: 1.7; max-width: 480px; }
.hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* App Store Badge */
.badge-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text-dark); color: var(--white);
  padding: 12px 24px; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700;
  transition: all 0.25s; border: 2px solid transparent;
}
.badge-appstore:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.badge-appstore.coming-soon { background: var(--text-light); cursor: default; }
.badge-appstore.coming-soon:hover { transform: none; box-shadow: none; }
.badge-appstore svg { width: 28px; height: 28px; flex-shrink: 0; }
.badge-appstore__text small { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.75; font-family: var(--font-body); }
.badge-appstore__text strong { font-size: 1rem; }

/* Hero Phone Mockup */
.hero__visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  width: 260px; height: 520px;
  background: var(--primary-grad);
  border-radius: 44px;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.5);
  position: relative; overflow: hidden;
  /* Replace background with actual screenshot: */
  /* background: url('/assets/screenshot-home.png') center/cover; */
}
.phone-mockup::before {
  content: '';
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px;
  background: rgba(255,255,255,0.4); border-radius: 3px;
}
.phone-mockup__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: white; text-align: center; padding: 40px 24px;
}
.phone-mockup__paw { font-size: 4rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)); }
.phone-mockup__label { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; }
.phone-mockup__sub { font-size: 0.85rem; opacity: 0.85; }
/* Floating cards on mockup */
.phone-float {
  position: absolute;
  background: white; border-radius: var(--radius-md); padding: 10px 14px;
  box-shadow: var(--shadow-md); font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 700; color: var(--text-dark);
  display: flex; align-items: center; gap: 8px;
}
.phone-float--1 { top: 80px; right: -30px; }
.phone-float--2 { bottom: 120px; left: -30px; }

/* ========================================================
   SECTION HEADINGS
   ======================================================== */
.section-head { text-align: center; margin-bottom: 60px; }
.section-head__label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--primary); background: var(--primary-xlight);
  padding: 4px 14px; border-radius: var(--radius-full);
  margin-bottom: 12px; letter-spacing: 0.05em; text-transform: uppercase;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* ========================================================
   FEATURES
   ======================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.feature-card__icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  background: var(--primary-xlight);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { font-size: 0.95rem; line-height: 1.65; }

/* ========================================================
   PAWFILE SHOWCASE
   ======================================================== */
.pawfile-section {
  background: var(--primary-dark);
  color: var(--white); padding: var(--section-py) 0;
  overflow: hidden; position: relative;
}
.pawfile-section::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' fill-rule='evenodd'%3E%3Cg fill='%234BC8D4' fill-opacity='0.07'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pawfile-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; position: relative;
}
.pawfile-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 32px; box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}
.pawfile-card__header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pawfile-card__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary-grad); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 4px 16px rgba(46,143,160,0.3);
}
.pawfile-card__name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; }
.pawfile-card__breed { color: var(--text-light); font-size: 0.9rem; }
.pawfile-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pawfile-card__tag {
  background: var(--primary-xlight); color: var(--primary-dark);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700;
}
.pawfile-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.pawfile-stat { text-align: center; padding: 12px; background: var(--bg); border-radius: var(--radius-md); }
.pawfile-stat__num { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.pawfile-stat__label { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }

.pawfile-content h2 { color: var(--white); margin-bottom: 16px; }
.pawfile-content p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 32px; }
.pawfile-steps { display: flex; flex-direction: column; gap: 20px; }
.pawfile-step { display: flex; align-items: flex-start; gap: 16px; }
.pawfile-step__num {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(75, 200, 212, 0.2); border: 2px solid var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; color: var(--primary-light);
  flex-shrink: 0; font-size: 0.9rem;
}
.pawfile-step__text strong { display: block; color: var(--white); font-family: var(--font-heading); margin-bottom: 3px; }
.pawfile-step__text span { font-size: 0.9rem; color: rgba(255,255,255,0.65); }

/* ========================================================
   DOWNLOAD CTA
   ======================================================== */
.cta-section {
  background: var(--primary-grad);
  padding: var(--section-py) 0; text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 36px; font-size: 1.1rem; }
.cta-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.badge-appstore--light {
  background: var(--white); color: var(--text-dark);
}
.badge-appstore--light:hover { background: var(--primary-xlight); transform: translateY(-2px); }

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}
.footer__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer__brand { max-width: 300px; }
.footer__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.2rem; color: var(--white); margin-bottom: 12px;
}
.footer__logo img { width: 34px; height: 34px; border-radius: 8px; }
.footer__tagline { font-size: 0.9rem; line-height: 1.6; }
.footer__col h4 { color: var(--white); font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a { font-size: 0.88rem; transition: color 0.2s; }
.footer__col ul li a:hover { color: var(--primary-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}
.footer__bottom a:hover { color: var(--primary-light); }

/* ========================================================
   POLICY PAGES
   ======================================================== */
.policy-hero {
  background: var(--primary-grad);
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  text-align: center;
}
.policy-hero h1 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.policy-hero p { color: rgba(255,255,255,0.8); }
.policy-body {
  max-width: 780px; margin: 0 auto; padding: 60px 24px 100px;
}
.policy-body h2 { font-size: 1.4rem; margin: 40px 0 12px; color: var(--text-dark); }
.policy-body h3 { font-size: 1.1rem; margin: 24px 0 8px; color: var(--text-dark); }
.policy-body p { margin-bottom: 16px; color: var(--text-mid); line-height: 1.8; }
.policy-body ul, .policy-body ol { margin: 0 0 16px 24px; color: var(--text-mid); line-height: 1.8; }
.policy-body ul li { list-style: disc; margin-bottom: 6px; }
.policy-body ol li { list-style: decimal; margin-bottom: 6px; }
.policy-body a { color: var(--primary); text-decoration: underline; }
.policy-body strong { color: var(--text-dark); }
.policy-last-updated {
  background: var(--primary-xlight); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px;
  font-size: 0.9rem; color: var(--text-mid); margin-bottom: 40px;
}

/* ========================================================
   PAWFILE PAGE
   ======================================================== */
.pawfile-page {
  min-height: 100vh; padding-top: var(--nav-h);
  background: var(--bg);
}
.pawfile-page__hero {
  background: var(--primary-grad);
  padding: 60px 24px 100px; text-align: center;
}
.pawfile-page__avatar-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 4px solid rgba(255,255,255,0.5);
  margin: 0 auto 20px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.pawfile-page__avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pawfile-page__name { color: white; font-size: 2.2rem; margin-bottom: 6px; }
.pawfile-page__breed { color: rgba(255,255,255,0.8); font-size: 1rem; }

.pawfile-page__body { max-width: 600px; margin: -50px auto 60px; padding: 0 24px; }
.pawfile-main-card {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.pawfile-info { padding: 28px; }
.pawfile-info__row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.pawfile-info__row:last-child { border-bottom: none; }
.pawfile-info__label { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }
.pawfile-info__value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }

.pawfile-bio { padding: 24px 28px; border-top: 1px solid var(--border); }
.pawfile-bio h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 8px; color: var(--text-dark); font-size: 0.95rem; }
.pawfile-bio p { font-size: 0.95rem; color: var(--text-mid); }

.pawfile-personalities { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; }

.pawfile-download-cta {
  background: var(--primary-xlight); border-top: 1px solid var(--border);
  padding: 28px; text-align: center;
}
.pawfile-download-cta p { font-size: 0.9rem; margin-bottom: 16px; }

/* Loading / Error States */
.state-loading, .state-error, .state-notfound {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; gap: 16px; padding: 40px;
  text-align: center;
}
.state-loading { color: var(--text-light); }
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-error h3, .state-notfound h3 { color: var(--text-dark); }
.state-error p, .state-notfound p { font-size: 0.95rem; }

/* ========================================================
   BROWSE PAGE
   ======================================================== */
.browse-page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--bg);
}

/* Hero */
.browse-hero {
  background: var(--primary-grad);
  padding: 60px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.browse-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%3Ccircle cx='30' cy='30' r='3' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");
}
.browse-hero__paw { font-size: 2.8rem; margin-bottom: 12px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); }
.browse-hero h1  { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; position: relative; }
.browse-hero p   { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 460px; margin: 0 auto; position: relative; }

/* Filter controls bar */
.browse-controls {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky; top: var(--nav-h); z-index: 100;
  box-shadow: var(--shadow-sm);
}
.browse-filters {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}

/* Search input */
.browse-search-wrap {
  position: relative; flex: 1; min-width: 200px;
}
.browse-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-light); pointer-events: none;
}
.browse-search-input {
  width: 100%; padding: 10px 14px 10px 36px;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text-dark);
  background: var(--bg); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.browse-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(69,123,157,0.12);
  background: var(--white);
}

/* City dropdown */
.browse-city-select {
  padding: 10px 16px; min-width: 160px;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--text-dark); background: var(--bg); outline: none; cursor: pointer;
  transition: border-color 0.2s;
}
.browse-city-select:focus { border-color: var(--primary); background: var(--white); }

/* Result count */
.browse-count {
  font-size: 0.82rem; color: var(--text-light);
  font-weight: 600; margin-top: 10px;
}

/* Content area */
.browse-content { padding: 36px 0 80px; }

/* Cards grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Individual dog card */
.browse-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}
.browse-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Card avatar */
.browse-card__avatar {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--primary-xlight);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.browse-card__img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.browse-card__paw { font-size: 3.5rem; }

/* Card body */
.browse-card__body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.browse-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browse-card__meta {
  font-size: 0.82rem; color: var(--text-light);
  display: flex; align-items: center; gap: 4px;
}
.browse-card__breed {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browse-card__age { flex-shrink: 0; }
.browse-card__city {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--primary); margin-top: 4px;
}
.browse-card__cta {
  display: inline-block; margin-top: auto; padding-top: 12px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--primary);
  transition: color 0.2s;
}
.browse-card:hover .browse-card__cta { color: var(--primary-dark); }

/* Empty state */
.browse-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 80px 24px; text-align: center;
  color: var(--text-light);
}
.browse-empty p { font-size: 0.95rem; }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 900px) {
  :root { --section-py: 70px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .phone-float { display: none; }
  .pawfile-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-py: 56px; --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: flex; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .features-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .pawfile-inner { grid-template-columns: 1fr; }

  /* Browse page – 2 columns on mobile */
  .browse-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .browse-card__avatar { aspect-ratio: 1 / 1; }
  .browse-hero { padding: 40px 20px 60px; }
  .browse-filters { flex-direction: column; }
  .browse-search-wrap, .browse-city-select { width: 100%; }
}
