/* ==========================================================================
   Safiyya Pet Shop — stylesheet
   Palette: warm cream / terracotta / sage / charcoal
   ========================================================================== */

:root {
  --cream: #F6EFE6;
  --cream-2: #EFE4D6;
  --sand: #E3D3BF;
  --terracotta: #C8643C;
  --terracotta-dark: #A94F2C;
  --sage: #7A9E7E;
  --sage-dark: #5F8264;
  --ink: #2A2320;
  --ink-2: #5B514B;
  --ink-3: #8A7E76;
  --white: #FFFDFA;

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

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(42, 35, 32, .35);
  --shadow-sm: 0 8px 24px -12px rgba(42, 35, 32, .25);

  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
em { font-style: italic; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--cream-2); }
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head p:last-child { color: var(--ink-2); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--terracotta); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px -12px rgba(200, 100, 60, .8); }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--ghost { border-color: var(--sand); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.link { color: var(--terracotta); font-weight: 600; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.link:hover { border-color: currentColor; }
.dot { color: var(--ink-3); margin: 0 .5rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0; transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  padding: .6rem 0; background: rgba(246, 239, 230, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(42, 35, 32, .08);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.brand em { color: var(--terracotta); font-style: italic; font-weight: 400; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--terracotta); color: #fff; }
.nav:not(.is-scrolled) .brand, .nav:not(.is-scrolled) .nav__links a, .nav:not(.is-scrolled) .btn--ghost { color: #fff; }
.nav:not(.is-scrolled) .brand em { color: #FFD9C7; }
.nav:not(.is-scrolled) .btn--ghost { border-color: rgba(255,255,255,.4); }
.nav:not(.is-scrolled) .btn--ghost:hover { background: rgba(255,255,255,.12); }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 500; font-size: .95rem; }
.nav__links a { position: relative; padding: .3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--terracotta); transition: width .3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; gap: .6rem; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; color: inherit; }
.nav:not(.is-scrolled) .nav__toggle { color: #fff; }
.nav.is-scrolled .nav__toggle { color: var(--ink); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 1rem; padding: 1.2rem 1.5rem 1.6rem;
  background: var(--cream); border-top: 1px solid var(--sand); font-size: 1.1rem; font-weight: 500;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .btn { align-self: flex-start; margin-top: .4rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(30, 22, 18, .72) 0%, rgba(30, 22, 18, .45) 45%, rgba(30, 22, 18, .1) 100%),
    linear-gradient(180deg, rgba(30, 22, 18, .35) 0%, transparent 30%, rgba(30, 22, 18, .5) 100%);
}
.hero__content { padding: 8rem 0 6rem; max-width: 720px; }
.hero .eyebrow { color: #FFD9C7; }
.hero h1 em { color: #FFD9C7; }
.hero .lead { color: rgba(255, 255, 255, .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.hero__rating { display: inline-flex; align-items: center; gap: .8rem; padding: .6rem 1rem .6rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); font-size: .92rem; }
.stars { display: inline-flex; gap: 2px; color: #F5B841; }
.hero__scroll { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Trust bar ---------- */
.trust { background: var(--ink); color: var(--cream); padding: 2.2rem 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust__item { display: flex; flex-direction: column; gap: .2rem; padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,.15); }
.trust__num { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; color: #FFD9C7; }
.trust__label { font-size: .88rem; color: rgba(246, 239, 230, .7); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about__badge {
  position: absolute; right: -1.2rem; bottom: -1.2rem; display: flex; align-items: center; gap: .7rem;
  background: var(--sage); color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-size: 1rem; line-height: 1.2; transform: rotate(-2deg);
}
.about__text p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 20px; height: 20px; border-radius: 50%; background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Offer cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem; border: 1px solid rgba(42, 35, 32, .06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); color: var(--terracotta); margin-bottom: 1.4rem; }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.why__text > p { color: var(--ink-2); }
.quotes { display: grid; gap: 1rem; margin: 2rem 0; }
.quote { margin: 0; padding: 1.4rem 1.6rem; background: var(--white); border-left: 3px solid var(--terracotta); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.quote p { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; margin: 0 0 .5rem; }
.quote footer { font-size: .85rem; color: var(--ink-3); }
.why__media { position: relative; }
.why__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.why__pill { position: absolute; left: -1rem; top: 1.5rem; display: flex; align-items: center; gap: .6rem; background: var(--white); padding: .7rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 600; }

/* ---------- Gallery marquee ---------- */
.gallery { overflow: hidden; }
.gallery__track { display: flex; gap: 1.2rem; width: max-content; padding: 0 .6rem; animation: marquee 48s linear infinite; }
.gallery__track:hover { animation-play-state: paused; }
.gallery__track figure { margin: 0; width: clamp(260px, 30vw, 420px); aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__track img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__track figure:hover img { transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-50%); } }
.gallery__note { margin-top: 1.5rem; font-size: .85rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.accordion details { border-bottom: 1px solid var(--sand); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.4rem 1.2rem 0; font-family: var(--font-display); font-size: 1.15rem; position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--terracotta); transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p { color: var(--ink-2); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Visit ---------- */
.visit { background: var(--cream-2); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.visit__block { margin-top: 1.8rem; }
.visit__block h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; color: var(--ink-3); margin-bottom: .6rem; }
address { font-style: normal; margin-bottom: .6rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.hours td { padding: .45rem 0; border-bottom: 1px dashed var(--sand); }
.hours td:last-child { text-align: right; color: var(--ink-2); }
.hours tr.is-today td { font-weight: 700; color: var(--terracotta); }
.open-status { margin-top: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.open-status.is-open::before { background: #3FA35B; box-shadow: 0 0 0 4px rgba(63,163,91,.18); }
.open-status.is-closed::before { background: var(--terracotta); }
.visit__actions { display: flex; gap: .6rem; margin-top: .6rem; }
.visit__map { position: sticky; top: 6rem; }
.visit__map iframe { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); filter: saturate(.85) contrast(1.02); }

/* ---------- CTA band ---------- */
.band { background: var(--terracotta); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -8%; top: -40%; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.08); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; }
.band h2 { margin: 0; max-width: 560px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(246,239,230,.75); padding: 4rem 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin-bottom: 1rem; }
.footer a { display: block; margin-bottom: .5rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.brand--footer { color: var(--cream); margin-bottom: 1rem; }
.brand--footer em { color: #FFD9C7; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; color: rgba(246,239,230,.5); }
.footer__bottom a { display: inline; color: inherit; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(37,211,102,.7);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img, .gallery__track, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__cta .btn--ghost { display: none; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-scrolled, .nav.menu-open { background: rgba(246, 239, 230, .96); }
  .nav.menu-open .brand, .nav.menu-open .nav__toggle { color: var(--ink); }
  .nav.menu-open .brand em { color: var(--terracotta); }
  .about__grid, .why__grid, .faq__grid, .visit__grid { grid-template-columns: 1fr; }
  .why__media { order: -1; }
  .about__badge { right: .8rem; bottom: -1rem; }
  .why__pill { left: .8rem; }
  .visit__map { position: static; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__content { padding: 7rem 0 5rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__rating { font-size: .85rem; }
  .btn--lg { width: 100%; }
  .band h2 { font-size: 1.7rem; }
}
