/* Fund My Rescue — rescue store template (demo, Oct 2026). Each rescue's colors come in as --brand / --brand-soft / --accent. */
:root {
  --brand: #2BA59B;        /* rescue primary (from its brand kit) */
  --brand-deep: #1E7F77;
  --brand-soft: #E3F5F2;
  --accent: #FF8B3D;       /* rescue accent */
  --accent-deep: #E86A1C;
  --cream: #FFF9F0;
  --sun-soft: #FFF1C7;
  --ink: #4A3A2F;
  --ink-soft: #7A6658;
  --white: #FFFFFF;
  --line: #F1E3D1;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(170, 120, 60, .13);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
h1, h2, h3, .name { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; line-height: 1.15; }
a { color: var(--brand-deep); }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
section { padding-block: 64px; scroll-margin-top: 70px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.band { background: var(--white); border-block: 2px solid var(--line); }
.demo-flag { background: var(--sun-soft); color: var(--ink); text-align: center; font-weight: 800; font-size: .9rem; padding: 8px 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 800;
  text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; transition: transform .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); color: var(--white); box-shadow: 0 7px 0 var(--brand-deep); }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 7px 0 var(--accent-deep); }
.btn-soft { background: var(--white); color: var(--ink); box-shadow: 0 6px 0 var(--line); }
.btn-small { padding: 8px 16px; font-size: .92rem; box-shadow: 0 5px 0 var(--brand-deep); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 249, 240, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo img, .logo svg { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; }
.logo .name { font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 20px; font-weight: 800; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--brand-deep); }

/* hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: #DFF2FB center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 249, 240, .9) 0%, rgba(255, 249, 240, .65) 38%, rgba(255, 249, 240, 0) 62%); }
.hero .wrap { position: relative; width: 100%; }
.hero-text { max-width: 520px; padding-block: 60px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.hero p { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 26px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* impact strip */
.impact { background: var(--brand); color: var(--white); }
.impact .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 22px; text-align: center; }
.impact b { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.impact span { font-size: .95rem; opacity: .95; }

/* about */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.about h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.about p { color: var(--ink-soft); margin-bottom: 14px; }
.goal { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 18px; box-shadow: var(--shadow); }
.goal .top { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; margin-bottom: 10px; flex-wrap: wrap; }
.goal .bar { height: 16px; background: var(--brand-soft); border-radius: 99px; overflow: hidden; }
.goal .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; }
.goal small { display: block; margin-top: 8px; color: var(--ink-soft); }
.about-art { background: var(--brand-soft); border-radius: 32px; padding: 28px; aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.about-art .tag { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--white); padding: 6px 14px; border-radius: 99px;
  font-weight: 800; font-size: .85rem; box-shadow: var(--shadow); white-space: nowrap; }

/* product + merch cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 4 / 3; background: var(--brand-soft); display: grid; place-items: center; font-size: 3.2rem; }
.card .pic.photo { aspect-ratio: 1; background: var(--white); border-bottom: 2px solid var(--line); }
.card .pic.photo img { width: 100%; height: 100%; object-fit: contain; }

/* product carousel: swipe on phones, arrows on every screen */
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > .card { scroll-snap-align: start; }
.arrow { position: absolute; top: 38%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--white); color: var(--brand-deep); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; z-index: 2;
  transition: opacity .2s ease, transform .15s ease; }
.arrow:hover { transform: translateY(-50%) scale(1.06); }
.arrow svg { width: 22px; height: 22px; }
.arrow.prev { left: -14px; } .arrow.next { right: -14px; }
.arrow[disabled] { opacity: 0; pointer-events: none; }
.carousel-count { text-align: center; color: var(--ink-soft); font-size: .88rem; font-weight: 700; margin-top: 4px; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.15rem; }
.card .price { font-weight: 800; }
.card .gives { display: inline-block; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; font-size: .82rem; padding: 4px 10px; border-radius: 99px; align-self: flex-start; }
.card .btn { margin-top: auto; }
.note { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 20px; }

/* needs */
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.need { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px; }
.need .ico { font-size: 1.8rem; }
.need h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.need p { color: var(--ink-soft); font-size: .96rem; }
.need .how { margin-top: 10px; background: var(--cream); border-radius: 12px; padding: 8px 12px; font-size: .9rem; font-weight: 700; }
.need.urgent { border: 2px solid var(--accent); }
.need .urgent-tag { display: inline-block; background: var(--accent); color: var(--white); font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

/* adoptable dogs */
.dogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.dog-card { background: var(--white); border-radius: var(--radius); border: 2px solid var(--line); text-align: center; padding: 18px; }
.dog-card svg { width: 110px; margin: 0 auto 8px; }
.dog-card h3 { font-size: 1.15rem; }
.dog-card p { color: var(--ink-soft); font-size: .9rem; }
.dog-card { position: relative; display: flex; flex-direction: column; gap: 4px; }
.dog-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: 8px; }
.dog-card .facts { font-weight: 800; color: var(--brand-deep); }
.dog-card .meet { margin-top: auto; padding-top: 8px; font-weight: 800; text-decoration: none; }
.dog-card.adopted img, .dog-card.adopted svg { opacity: .85; }
.adopted-badge { position: absolute; top: 14px; left: 50%; transform: translateX(-50%) rotate(-4deg); background: var(--accent); color: var(--white);
  font-weight: 800; font-size: .9rem; padding: 5px 14px; border-radius: 99px; box-shadow: var(--shadow); white-space: nowrap; }

/* how the personalized products work (shop) */
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -8px 0 26px; }
.how-steps > div { display: flex; gap: 10px; align-items: flex-start; background: var(--cream); border-radius: 16px; padding: 12px 14px; font-size: .92rem; line-height: 1.45; }
.how-steps b { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-family: 'Fredoka', sans-serif; }
@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }

/* signup */
.signup { background: var(--sun-soft); border-radius: 32px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.signup h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.signup p { color: var(--ink-soft); }
form.sub { display: grid; gap: 10px; }
form.sub input[type=email], form.sub input[type=text] { width: 100%; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); font: inherit; background: var(--white); color: var(--ink); }
.consent { font-size: .78rem; color: var(--ink-soft); line-height: 1.45; }
.thanks { display: none; font-weight: 800; color: var(--brand-deep); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact .box { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.contact dt { font-weight: 800; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; text-decoration: none; }
.socials svg { width: 22px; height: 22px; fill: var(--brand-deep); }

/* footer */
footer { padding-block: 36px 46px; color: var(--ink-soft); font-size: .88rem; text-align: center; }
footer p { margin-bottom: 6px; }
footer a { color: var(--ink-soft); }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(74, 58, 47, .45); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.modal .panel { background: var(--white); border-radius: 28px; max-width: 420px; width: 100%; padding: 30px 26px 24px; text-align: center; position: relative; box-shadow: var(--shadow); }
.modal .panel svg.dogface { width: 92px; margin: -78px auto 6px; }
.modal h3 { font-size: 1.5rem; margin-bottom: 6px; }
.modal p { color: var(--ink-soft); margin-bottom: 14px; }
.modal .x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink-soft); }
.modal .later { background: none; border: 0; color: var(--ink-soft); margin-top: 10px; cursor: pointer; font: inherit; text-decoration: underline; }

@media (max-width: 900px) {
  .track { grid-auto-columns: calc((100% - 18px) / 2.15); }
  .about, .signup, .contact { grid-template-columns: 1fr; }
  .about-art { max-width: 380px; margin: 0 auto; width: 100%; }
  .nav .hide-sm { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(255, 249, 240, .92) 0%, rgba(255, 249, 240, .75) 55%, rgba(255, 249, 240, .2) 100%); }
  .hero { min-height: 480px; align-items: flex-start; background-position: 70% center; }
  .signup { padding: 28px 20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .track { grid-auto-columns: 78%; }
  .arrow { width: 42px; height: 42px; }
  .arrow.prev { left: -6px; } .arrow.next { right: -6px; }
  .impact .wrap { grid-template-columns: 1fr; gap: 10px; }
  .nav { gap: 10px; }
  .nav .btn { padding: 8px 12px; }
  .logo .name { font-size: 1.05rem; }
  .hero .ctas .btn { width: 100%; }
}

/* Fit the full hero illustration: no cover-cropping of faces on wide screens.
   Phones stack the copy above the complete image instead of covering the animals. */
.hero { min-height:560px; padding-block:0; background:var(--cream); }
.hero-picture { position:absolute; top:0; right:0; height:100%; width:auto; max-width:none; }
.hero::before { z-index:1; pointer-events:none; }
.hero .wrap { z-index:2; }
@media (max-width:1100px) {
  .hero { min-height:0; display:flex; flex-direction:column; align-items:stretch; padding:0; }
  .hero::before { display:none; }
  .hero .wrap { order:1; }
  .hero-text { max-width:680px; padding-block:36px; }
  .hero-picture { position:static; order:2; width:100%; height:auto; max-width:100%; }
}
/* the rescue's logo above the headline (Brand & look → "Show my logo in the header") */
.hero-logo { display: block; max-width: min(300px, 70%); max-height: 170px; width: auto; height: auto; margin: 0 0 18px; filter: drop-shadow(0 4px 10px rgba(74, 58, 47, .12)); }
@media (max-width: 900px) { .hero-logo { max-height: 120px; margin-bottom: 12px; } }
