/* Harbor Line Pet Care — soft teal / rose, rounded UI, cookie strip at top */

:root {
  --bg: #f0fdfa;
  --card: #ffffff;
  --ink: #134e4a;
  --muted: #5e7c7a;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --rose: #e11d48;
  --rose-soft: #ffe4e6;
  --focus: #7c3aed;
  --line: #99f6e4;
  --max: 1080px;
  --round: 20px;
  --round-sm: 12px;
  --font: "Segoe UI", system-ui, -apple-system, "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, #ccfbf1 0%, var(--bg) 28%, #f8fafc 100%);
}

a {
  color: var(--teal-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--rose);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 400;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--round-sm);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* Cookie — top sticky */
#cookie-consent {
  position: sticky;
  top: 0;
  z-index: 300;
  background: linear-gradient(90deg, #ccfbf1, #fce7f3);
  border-bottom: 3px solid var(--teal);
  padding: 0.85rem 0;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.15);
}

#cookie-consent[hidden] {
  display: none !important;
}

.cookie-inner {
  display: grid;
  gap: 0.65rem;
}

.cookie-inner h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.cookie-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 90ch;
}

.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--rose {
  background: var(--rose);
  color: #fff;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  min-height: 52px;
  min-width: 11rem;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.btn--rose:hover {
  background: #be123c;
  color: #fff;
}

.btn--teal-outline {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--teal);
  padding: 0.85rem 1.35rem;
  font-size: 1.02rem;
  min-height: 52px;
  min-width: 10rem;
}

.btn--teal-outline:hover {
  background: #f0fdfa;
}

/* Modal */
#cookie-modal[hidden] {
  display: none !important;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(19, 78, 74, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-dialog {
  background: var(--card);
  border-radius: var(--round);
  padding: 1.25rem;
  max-width: 460px;
  width: 100%;
  border: 3px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.cookie-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.cookie-dialog label {
  display: flex;
  gap: 0.5rem;
  margin: 0.65rem 0;
  color: var(--muted);
  align-items: flex-start;
}

/* Header */
.top-bar {
  background: var(--card);
  border-bottom: 2px solid var(--line);
  padding: 0.65rem 0;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 900;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}

.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.menu-btn {
  display: none;
  border: 2px solid var(--teal);
  background: var(--card);
  border-radius: var(--round-sm);
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--rose-soft);
  color: var(--rose);
}

.site-nav a[aria-current="page"] {
  background: #ccfbf1;
  color: var(--teal-dark);
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.1;
  font-weight: 900;
}

.tagline {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-pic {
  margin: 0;
  border-radius: var(--round);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.2);
}

.hero-pic img {
  display: block;
  width: 100%;
  height: auto;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.cta .btn {
  min-width: 220px;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
}

/* Cards */
section {
  padding: 2rem 0;
}

section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--card);
  border-radius: var(--round);
  padding: 1.25rem;
  border: 2px solid var(--line);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.08);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.photos figure {
  margin: 0;
  border-radius: var(--round);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.photos figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--card);
}

/* Inner pages */
.page-title {
  padding: 2rem 0 1rem;
}

.page-title h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 1.6rem;
  font-size: 1.2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

/* Footer */
footer {
  margin-top: 2.5rem;
  background: var(--ink);
  color: #a7f3d0;
  padding: 2rem 0;
  border-radius: var(--round) var(--round) 0 0;
}

footer a {
  color: #fecdd3;
}

footer a:hover {
  color: #fff;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.2rem;
  min-height: 50px;
  min-width: 9.5rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  border: 2px solid #5eead4;
}

.foot-links a:hover {
  background: var(--teal-dark);
  color: #fff !important;
}

@media (max-width: 760px) {
  .menu-btn {
    display: block;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .top-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
