/* Hopeful Paws of Florida shell stylesheet
   Structural/visual placeholder that mirrors the existing GoDaddy site.
   Brand color and typefaces are taken from the live site. */

:root {
  --brand: #64110b;
  --brand-dark: #4a0c08;
  --brand-tint: #f6efee;
  --ink: #2b2b2b;
  --ink-soft: #56534f;
  --line: #e3dcda;
  --paper: #ffffff;
  --paper-alt: #faf7f6;
  --radius: 6px;
  --wrap: 1120px;
  --font-head: 'Work Sans', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  --font-body: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Anchor offset so sticky nav does not cover section headings */
.anchor {
  display: block;
  position: relative;
  top: -84px;
  visibility: hidden;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 26px 0 18px;
}

.site-header .logo img {
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 110px;
}

.header-cta { margin-top: 18px; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 34px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-on-dark { background: #fff; color: var(--brand); border-color: #fff; }
.btn-on-dark:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  margin: 10px auto;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--brand);
  cursor: pointer;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list > li { position: relative; }

.nav-list a,
.nav-list .submenu-label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 14px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list .submenu-label:hover,
.nav-list li[aria-current='page'] > a { color: var(--brand); }

.nav-list li[aria-current='page'] > a { text-decoration: underline; text-underline-offset: 5px; }

.submenu-label::after { content: ' \25BE'; font-size: 10px; }

.submenu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  display: none;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu { display: block; }

.submenu a {
  padding: 10px 18px;
  text-align: left;
  letter-spacing: .06em;
  text-transform: none;
  font-size: 15px;
}

.nav-donate a {
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 9px 22px;
  margin-left: 10px;
}
.nav-donate a:hover { background: var(--brand); color: #fff; }

/* ---------- Sections ---------- */

.hero {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 78px 0 84px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  letter-spacing: .02em;
  margin-bottom: .35em;
}

.hero p {
  font-style: italic;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  opacity: .94;
}

.page-title {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 58px 0;
}
.page-title h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
}

section { padding: 72px 0; }
section.alt { background: var(--paper-alt); }

.section-heading {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse .split-media { order: 2; }

.split-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.narrow { max-width: 760px; margin: 0 auto; text-align: center; }

/* ---------- Adoptable pets embed (replaced in Phase 2) ---------- */

.pets { padding: 56px 0 64px; }

/* The Adopt-a-Pet grid has a fixed minimum width, so it scrolls inside its own
   box rather than pushing the page sideways on narrow screens. */
.pets-scroll { overflow-x: auto; }

.pets-embed {
  width: 100%;
  min-width: 480px;
  border: 0;
  min-height: 900px;
}

.pets-credit {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
}
.pets-credit img { display: inline-block; vertical-align: middle; margin-left: 10px; }

/* ---------- Dog grid and detail pages ---------- */

.sample-note {
  background: var(--brand-tint);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: .93rem;
  color: var(--ink-soft);
  text-align: left;
  margin: 0 0 8px;
}

.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.dog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}

.dog-card:hover,
.dog-card:focus-visible {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.dog-card-photo { position: relative; }

/* height:auto is load bearing. The width/height attributes on these images are
   there to reserve layout space, but they land as a presentational height that
   would otherwise beat aspect-ratio. */
.dog-card-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.dog-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.dog-card-body { padding: 18px 20px 22px; }

.dog-card-body h3 {
  font-size: 1.15rem;
  color: var(--brand);
  margin-bottom: .25em;
}

.dog-meta {
  font-size: .85rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
  margin-bottom: .6em;
}

.dog-blurb {
  font-size: .93rem;
  color: var(--ink-soft);
  margin: 0;
}

.dog-grid-more { text-align: center; margin: 42px 0 0; }

.dog-detail { padding: 56px 0 76px; }

.breadcrumb {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.dog-detail h1.section-heading { margin-bottom: .4em; }

.dog-status {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.1em;
}

.dog-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 22px;
  margin: 0 0 1.6em;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dog-facts dt {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.dog-facts dd { margin: 0; font-size: 1rem; }

.dog-detail .split-media img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- Happy endings ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body { padding: 22px 24px 26px; }

.card h3 {
  font-size: 1.15rem;
  color: var(--brand);
  margin-bottom: .5em;
}

.card p { font-size: .97rem; color: var(--ink-soft); }

/* ---------- Donate band ---------- */

.donate-band {
  background: var(--brand);
  color: #fff;
}

.donate-band .section-heading { color: #fff; }
.donate-band a:not(.btn) { color: #fff; }
.donate-band .split-media img { border-radius: var(--radius); }

/* ---------- Forms ---------- */

.form-block { max-width: 560px; }

.field { margin-bottom: 18px; text-align: left; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.form-note {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.donate-band .field label,
.donate-band .form-note { color: rgba(255, 255, 255, .85); }

.subscribe-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.subscribe-row .field { flex: 1 1 260px; margin-bottom: 0; }

/* Embedded Google Forms */

.gform-wrap { text-align: center; }

.gform {
  width: 100%;
  max-width: 720px;
  border: 0;
  margin: 0 auto;
}

.gform-fallback {
  margin-top: 20px;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  padding: 46px 0 40px;
  text-align: center;
  font-size: .93rem;
  color: var(--ink-soft);
}

.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 0;
  margin: 0 0 22px;
}

.social a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.social a:hover { text-decoration: underline; }

.footer-legal { font-size: .85rem; margin-top: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }

  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
  }
  .nav-list.open { display: flex; }

  .nav-list a,
  .nav-list .submenu-label {
    padding: 13px 4px;
    text-align: left;
    width: 100%;
  }

  .submenu {
    display: block;
    position: static;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 6px 16px;
    min-width: 0;
    background: transparent;
  }

  .submenu-label::after { content: ''; }

  .nav-donate a { display: inline-block; width: auto; margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
