/* Happy Tails Pet Care: starter styles */

:root {
  --color-bg: #fffaf4;
  --color-surface: #ffffff;
  --color-alt: #fdf0e3;
  --color-text: #2f2a26;
  --color-muted: #6b625b;
  --color-primary: #d9692e;
  --color-primary-dark: #b8541f;
  --color-accent: #3f7d6e;
  --color-border: #eadfd3;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(47, 42, 38, 0.08);
  --max-width: 1120px;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-text);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-text);
  color: #fff;
}

/* Header */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--color-primary-dark);
}

.header-cta {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-alt);
}

.section-intro {
  max-width: 680px;
  margin: 0 0 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
}

/* Hero */

.hero {
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card p:last-child {
  margin-bottom: 0;
}

.price {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: auto;
}

/* Lists */

.check-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* Call to action band */

.cta-band {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-accent);
}

.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus {
  background: var(--color-alt);
  color: var(--color-text);
}

/* Footer */

.site-footer {
  background: var(--color-text);
  color: #eee5dc;
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.6rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  color: #c9bfb5;
}

/* Small screens */

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }
}
