/* ============================================
   THE VELVET PAW — STYLE SHEET
   ============================================ */

/* 1. Variables
   -------------------------------------------- */
:root {
  --color-cream: #FDF6EC;
  --color-warm-white: #FFFAF3;
  --color-soft-orange: #E8985E;
  --color-deep-amber: #C47234;
  --color-warm-brown: #5C3D2E;
  --color-soft-brown: #8B6F5C;
  --color-muted-sage: #A3B18A;
  --color-light-sage: #DAD7CD;
  --color-warm-gray: #B5A99A;
  --color-near-black: #2B1F1A;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(92, 61, 46, 0.08);
  --shadow-md: 0 4px 16px rgba(92, 61, 46, 0.12);
  --shadow-lg: 0 8px 32px rgba(92, 61, 46, 0.16);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  --header-height: 72px;
}

/* 2. Reset
   -------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-near-black);
  background-color: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-deep-amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-soft-orange);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* 3. Typography
   -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-warm-brown);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

.text-accent { color: var(--color-soft-orange); }
.text-muted { color: var(--color-soft-brown); }

/* 4. Layout Utilities
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: 4rem 0;
}

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

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

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header p {
  color: var(--color-soft-brown);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* 5. Navigation
   -------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-cream);
  border-bottom: 1px solid rgba(181, 169, 154, 0.3);
  height: var(--header-height);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-warm-brown);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__logo:hover {
  color: var(--color-soft-orange);
}

.nav__logo span {
  color: var(--color-soft-orange);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 400;
  color: var(--color-soft-brown);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-soft-orange);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-warm-brown);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-warm-brown);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 6. Hero
   -------------------------------------------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero--large {
  min-height: 560px;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(43, 31, 26, 0.65) 0%,
    rgba(92, 61, 46, 0.45) 50%,
    rgba(196, 114, 52, 0.3) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem;
  max-width: 700px;
}

.hero__title {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Buttons
   -------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn--primary:hover {
  background-color: var(--color-deep-amber);
  border-color: var(--color-deep-amber);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline:hover {
  background-color: #fff;
  color: var(--color-warm-brown);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-warm-brown);
  border-color: var(--color-warm-brown);
}

.btn--outline-dark:hover {
  background-color: var(--color-warm-brown);
  color: #fff;
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* 7. Article Cards
   -------------------------------------------- */
.article-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-card__body {
  padding: 1.5rem;
}

.article-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted-sage);
  margin-bottom: 0.5rem;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-warm-brown);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
}

.article-card__title a:hover {
  color: var(--color-soft-orange);
}

.article-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-soft-brown);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.article-card__meta {
  font-size: 0.8rem;
  color: var(--color-warm-gray);
}

/* Featured article (larger card) */
.featured-article {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-article__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.featured-article__body {
  padding: 2rem;
}

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

.featured-article__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-warm-brown);
  margin-bottom: 0.75rem;
}

.featured-article__title a {
  color: inherit;
  text-decoration: none;
}

.featured-article__title a:hover {
  color: var(--color-soft-orange);
}

.featured-article__excerpt {
  color: var(--color-soft-brown);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.featured-article__meta {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
}

/* Breed spotlight card on home */
.breed-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.breed-spotlight__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.breed-spotlight__body {
  padding: 2rem;
}

.breed-spotlight__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-soft-orange);
  margin-bottom: 0.5rem;
}

.breed-spotlight__title {
  margin-bottom: 0.75rem;
}

.breed-spotlight__text {
  color: var(--color-soft-brown);
  margin-bottom: 1.25rem;
}

/* 8. Breed Cards (Gallery)
   -------------------------------------------- */
.breed-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.breed-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.breed-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.breed-card__body {
  padding: 1.25rem;
}

.breed-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-warm-brown);
  margin-bottom: 0.5rem;
}

.breed-card__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.breed-card__trait {
  display: inline-block;
  background-color: var(--color-light-sage);
  color: var(--color-warm-brown);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.breed-card__desc {
  font-size: 0.9rem;
  color: var(--color-soft-brown);
  line-height: 1.6;
}

/* 9. Tip Cards
   -------------------------------------------- */
.tip-card {
  background: #fff;
  border-left: 4px solid var(--color-muted-sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.tip-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tip-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-warm-brown);
  margin-bottom: 0.5rem;
}

.tip-card__text {
  font-size: 0.95rem;
  color: var(--color-soft-brown);
  line-height: 1.6;
}

.tip-category {
  margin-bottom: 3rem;
}

.tip-category__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-warm-brown);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-light-sage);
}

/* 10. Author/Team Cards
   -------------------------------------------- */
.author-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.author-card__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-light-sage);
}

.author-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-warm-brown);
  margin-bottom: 0.25rem;
}

.author-card__role {
  font-size: 0.85rem;
  color: var(--color-soft-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.author-card__bio {
  font-size: 0.95rem;
  color: var(--color-soft-brown);
  line-height: 1.6;
}

/* Article sidebar author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.author-box__image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-warm-brown);
  margin-bottom: 0.15rem;
}

.author-box__role {
  font-size: 0.8rem;
  color: var(--color-soft-brown);
}

/* 11. Newsletter CTA
   -------------------------------------------- */
.newsletter {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.newsletter__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(43, 31, 26, 0.8) 0%,
    rgba(92, 61, 46, 0.7) 100%
  );
}

.newsletter__content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter__title {
  color: #fff;
  margin-bottom: 0.75rem;
}

.newsletter__text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter__input {
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter__input:focus {
  border-color: var(--color-soft-orange);
}

/* 12. Contact Form
   -------------------------------------------- */
.contact-form {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-warm-brown);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-light-sage);
  border-radius: var(--radius-sm);
  background: var(--color-warm-white);
  color: var(--color-near-black);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-soft-orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group .error-message {
  display: none;
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-group--error input,
.form-group--error textarea {
  border-color: #c0392b;
}

.form-group--error .error-message {
  display: block;
}

/* Contact sidebar */
.contact-sidebar {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-sidebar h3 {
  margin-bottom: 1rem;
}

.contact-sidebar p {
  color: var(--color-soft-brown);
  font-size: 0.95rem;
}

.contact-sidebar__item {
  margin-bottom: 1.25rem;
}

.contact-sidebar__item strong {
  display: block;
  color: var(--color-warm-brown);
  margin-bottom: 0.25rem;
}

/* FAQ */
.faq {
  margin-top: 2rem;
}

.faq__item {
  border-bottom: 1px solid var(--color-light-sage);
  padding: 1.25rem 0;
}

.faq__question {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-warm-brown);
  margin-bottom: 0.4rem;
}

.faq__answer {
  color: var(--color-soft-brown);
  font-size: 0.95rem;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-muted-sage);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

/* 13. Footer
   -------------------------------------------- */
.footer {
  background-color: var(--color-near-black);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer__logo span {
  color: var(--color-soft-orange);
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-soft-orange);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer__social a:hover {
  background: var(--color-soft-orange);
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* 14. Page-Specific
   -------------------------------------------- */

/* Article page */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header__image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.article-header__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-sage);
  margin-bottom: 0.5rem;
}

.article-header__title {
  margin-bottom: 0.75rem;
}

.article-header__meta {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
}

.article-header__meta a {
  color: var(--color-soft-orange);
  font-weight: 700;
}

/* Prose content */
.prose {
  max-width: 100%;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-near-black);
  margin-bottom: 1.5rem;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.prose blockquote {
  border-left: 4px solid var(--color-soft-orange);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-soft-brown);
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Breed stats box */
.breed-stats {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.breed-stats__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-warm-brown);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-light-sage);
}

.breed-stats__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-light-sage);
  font-size: 0.95rem;
}

.breed-stats__label {
  font-weight: 700;
  color: var(--color-warm-brown);
}

.breed-stats__value {
  color: var(--color-soft-brown);
}

/* Article sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.sidebar-box__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-warm-brown);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-light-sage);
}

.sidebar-box__link {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-soft-brown);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-light-sage);
  transition: color 0.2s ease;
}

.sidebar-box__link:last-child {
  border-bottom: none;
}

.sidebar-box__link:hover {
  color: var(--color-soft-orange);
}

/* About page */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-story__image {
  width: 100%;
  border-radius: var(--radius-md);
}

.about-story__text h2 {
  margin-bottom: 1rem;
}

.about-story__text p {
  color: var(--color-soft-brown);
  line-height: 1.8;
}

.mission {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.mission h2 {
  margin-bottom: 1rem;
}

.mission p {
  color: var(--color-soft-brown);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 15. Utilities
   -------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* 16. Animations
   -------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .article-card,
  .breed-card,
  .tip-card,
  .btn {
    transition: none;
  }
}

/* 17. Media Queries — Tablet (>=768px)
   -------------------------------------------- */
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .featured-article {
    grid-template-columns: 1fr 1fr;
  }

  .featured-article__image {
    height: 100%;
  }

  .breed-spotlight {
    grid-template-columns: 1fr 1fr;
  }

  .breed-spotlight__image {
    height: 100%;
  }

  .newsletter__form {
    flex-direction: row;
  }

  .newsletter__input {
    flex: 1;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr 280px;
  }

  .about-story {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 2fr 1fr;
  }

  .hero {
    min-height: 500px;
  }

  .hero--large {
    min-height: 600px;
  }
}

/* 18. Media Queries — Desktop (>=1024px)
   -------------------------------------------- */
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .article-layout {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* 19. Mobile nav (< 768px)
   -------------------------------------------- */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .nav__links--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav__overlay--visible {
    display: block;
  }
}
