/* Mascotas JC1 — demo conceptual · Ingresify */

:root {
  --ink: #14170f;
  --green-900: #10261a;
  --green-700: #1c4a2c;
  --green-600: #2f6b3d;
  --green-100: #e6efe2;
  --cream: #faf7f0;
  --paper: #fffdf9;
  --brick: #b5502e;
  --line: rgba(20, 23, 15, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, Segoe UI, Arial, sans-serif;

  --wrap: min(1180px, 100% - 2.5rem);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* space for mobile cta bar */
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.55rem + 2.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 0.7em;
}
.eyebrow.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: #fff;
  padding: 0.8em 1.2em;
  border-radius: var(--radius-s);
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 30px; height: 30px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.9em 1.3em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  min-height: 48px;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green-600);
  color: #fff;
}
.btn-primary:hover { background: var(--green-700); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost {
  background: var(--green-100);
  color: var(--green-900);
}

.btn-sm {
  padding: 0.55em 1em;
  min-height: 40px;
  font-size: 0.88rem;
}

@media (max-width: 400px) {
  .btn-label-collapse {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .header-actions .btn-sm {
    padding: 0.6em;
    min-width: 40px;
  }
}

.btn-lg {
  padding: 1em 1.5em;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 1rem;
}
.cta-row.center { justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.brand-word strong { font-weight: 600; }

.main-nav {
  display: none;
  gap: 1.8rem;
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}
.main-nav a:hover { color: var(--green-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-actions .menu-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--green-900);
  color: #fff;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mobile-nav-head .brand-word { color: #fff; }
.mobile-nav .menu-toggle { border-color: rgba(255,255,255,0.3); color: #fff; }

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 0;
  flex: 1;
}
.mobile-nav nav a {
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 0.5rem 0;
}
.mobile-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.mobile-nav-foot .btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Sections */
section { padding: clamp(3rem, 2.4rem + 3vw, 6.5rem) 0; }

/* Hero */
.hero {
  padding-top: clamp(2.2rem, 1.8rem + 2vw, 4rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy .lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  max-width: 46ch;
  color: rgba(20,23,15,0.82);
}
.trust-line {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--green-700);
  font-size: 0.95rem;
}
.hero-art { justify-self: center; width: min(320px, 70vw); }

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero-art { justify-self: end; width: 100%; max-width: 340px; }
}

/* Services */
.service-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.8rem;
}
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}
.service-card p { color: rgba(20,23,15,0.78); }

@media (min-width: 768px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* About */
.about { background: var(--green-100); }
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-copy p { color: rgba(20,23,15,0.82); }
.about-figure { justify-self: center; width: min(320px, 80vw); }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-figure { justify-self: end; width: 100%; }
}

/* Schedule */
.schedule-grid { max-width: 640px; }
.schedule-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.schedule-list li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--ink);
}
.schedule-list .icon { color: var(--green-600); }
.fine-print {
  font-size: 0.92rem;
  color: rgba(20,23,15,0.65);
  max-width: 55ch;
}

/* Reputation */
.reputation {
  background: var(--green-900);
  color: #fff;
}
.reputation-inner {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}
.rating-badge {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  color: #f2c94c;
  justify-self: start;
}
.rating-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.6rem + 2vw, 4.5rem);
  font-weight: 600;
  color: #fff;
}
.rating-out { color: rgba(255,255,255,0.6); font-size: 1.2rem; }
.reputation-copy p { color: rgba(255,255,255,0.82); }
.reputation .eyebrow { color: #cfe6d4; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  border-bottom: 1.5px solid rgba(255,255,255,0.4);
  padding-bottom: 0.15em;
}

@media (min-width: 768px) {
  .reputation-inner { grid-template-columns: auto 1fr; }
}

/* Location */
.location-grid {
  display: grid;
  gap: 2rem;
}
.address-line {
  display: flex;
  gap: 0.6em;
  color: rgba(20,23,15,0.82);
}
.address-line .icon { color: var(--green-600); margin-top: 0.15em; }
.map-frame {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px) {
  .location-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .map-frame { aspect-ratio: 1 / 1; }
}

/* Final CTA */
.final-cta { background: var(--cream); }
.final-cta-inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.final-cta-inner p { color: rgba(20,23,15,0.78); }
.social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}
.social-row a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  text-decoration: none;
}
.social-row a:hover { border-color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.site-footer .brand-word { color: #fff; font-size: 1.1rem; }
.footer-address, .footer-contact { margin: 0.6rem 0 0; font-size: 0.92rem; }
.footer-contact a { text-decoration: underline; text-underline-offset: 2px; }
.footer-note p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  max-width: 60ch;
}
.footer-year { margin-top: 0.8rem; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1.3fr; }
}

/* Mobile sticky CTA bar */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 1.25rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-cta-bar .btn {
  flex: 1;
  padding-inline: 0.9em;
  font-size: 0.92rem;
}

@media (max-width: 380px) {
  .mobile-cta-bar {
    gap: 0.5rem;
    padding-inline: 0.9rem;
  }
  .mobile-cta-bar .btn {
    padding-inline: 0.6em;
    font-size: 0.86rem;
    gap: 0.4em;
  }
}

@media (min-width: 1024px) {
  .mobile-cta-bar { display: none; }
}

/* Reveal on scroll (progressive enhancement: hidden only once .js confirms the script runs) */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn { transition: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
}
