/* ============================
   Northern Bear Pet Food & Supplies
   style.css
   ============================ */

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

:root {
  --red-dark: #991B1B;
  --red: #B91C1C;
  --red-light: #FEE2E2;
  --red-pale: #FFF5F5;
  --cream: #FFFDF9;
  --cream-2: #FDF8F5;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ============================
   TOP BAR
   ============================ */
.top-bar {
  background-color: var(--red-dark);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item.hours {
  display: none;
}

.top-bar-right .top-bar-item {
  font-weight: 600;
}

@media (min-width: 640px) {
  .top-bar-item.hours {
    display: flex;
  }
}

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-icon {
  background-color: var(--red);
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--white);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red-dark);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-800);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--red);
}

.btn-nav {
  background-color: var(--red);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-nav:hover {
  background-color: var(--red-dark);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  padding: 0.25rem;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--gray-100);
  padding: 1rem 1.5rem;
  background: var(--white);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-weight: 500;
  color: var(--gray-800);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.nav-mobile a:hover {
  background-color: var(--gray-50);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  background-color: rgba(185, 28, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero h1 span {
  color: #FFD3D3;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #F3F4F6;
  max-width: 40rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: 9999px;
  padding: 0.875rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background-color: var(--red-dark);
  transform: scale(1.04);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  padding: 0.875rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

/* ============================
   SECTIONS SHARED
   ============================ */
section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 1rem;
}

.section-divider {
  width: 6rem;
  height: 4px;
  background-color: var(--red);
  margin: 0 auto 1.5rem;
  border-radius: 9999px;
}

.section-lead {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto;
}

/* ============================
   FEATURES
   ============================ */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background-color: var(--cream);
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background-color: #FEF2F2;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color 0.2s, transform 0.2s;
}

.feature-card:hover .feature-icon {
  background-color: var(--red);
  transform: scale(1.1);
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--red);
  transition: color 0.2s;
}

.feature-card:hover .feature-icon svg {
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================
   PRODUCTS
   ============================ */
.products {
  background-color: var(--cream-2);
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.products-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 1rem;
}

.products-header .section-divider {
  margin: 0;
}

.view-all {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--red-dark);
}

.view-all svg {
  width: 1rem;
  height: 1rem;
}

.view-all-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.category-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-icon svg {
  width: 2rem;
  height: 2rem;
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.icon-orange { background-color: #FFEDD5; }
.icon-orange svg { color: #EA580C; }
.icon-blue { background-color: #DBEAFE; }
.icon-blue svg { color: #2563EB; }
.icon-green { background-color: #DCFCE7; }
.icon-green svg { color: #16A34A; }
.icon-purple { background-color: #F3E8FF; }
.icon-purple svg { color: #9333EA; }
.icon-pink { background-color: #FCE7F3; }
.icon-pink svg { color: #DB2777; }
.icon-amber { background-color: #FEF3C7; }
.icon-amber svg { color: #D97706; }

@media (min-width: 768px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .view-all { display: flex; }
  .view-all-mobile { display: none; }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ============================
   ABOUT
   ============================ */
.about {
  background: var(--white);
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  width: 100%;
}

.about-image-shadow {
  position: absolute;
  inset: 0;
  background-color: var(--red);
  border-radius: 1.5rem;
  transform: translate(1rem, 1rem);
}

.about-image-wrap img {
  position: relative;
  border-radius: 1.5rem;
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-badge {
  position: absolute;
  bottom: -2rem;
  left: -1.5rem;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.about-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.about-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  line-height: 1.4;
}

.about-text {
  width: 100%;
  padding-top: 2rem;
}

.about-text .label {
  display: block;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-text h2 span {
  color: var(--red-dark);
}

.about-text p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.btn-solid {
  display: inline-block;
  background-color: var(--red);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
  margin-top: 0.75rem;
}

.btn-solid:hover {
  background-color: var(--red-dark);
}

@media (min-width: 1024px) {
  .about-inner {
    flex-direction: row;
    gap: 5rem;
  }
  .about-image-wrap {
    width: 50%;
    flex-shrink: 0;
  }
  .about-image-wrap img {
    height: 500px;
  }
  .about-text {
    width: 50%;
    padding-top: 0;
  }
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials {
  background-color: var(--red-dark);
  color: var(--white);
}

.testimonials .section-header h2 {
  color: var(--white);
}

.testimonials .section-divider {
  background-color: #F87171;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.stars svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #FBBF24;
  fill: #FBBF24;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: #FEF2F2;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-role {
  color: #FECACA;
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================
   CONTACT
   ============================ */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-left h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 1rem;
}

.contact-lead {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: #FEF2F2;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--red);
}

.contact-item h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
}

.contact-item p {
  color: var(--gray-600);
  line-height: 1.65;
}

.map-placeholder {
  background-color: #E5E3DF;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 400px;
  position: relative;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-card {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-100);
  max-width: 18rem;
  text-align: center;
}

.map-card svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--red);
  margin: 0 auto 0.75rem;
}

.map-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
  font-family: 'Inter', sans-serif;
}

.map-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.btn-outline-red {
  display: inline-block;
  width: 100%;
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.btn-outline-red:hover {
  background-color: #FEF2F2;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   FOOTER
   ============================ */
footer {
  background-color: var(--gray-900);
  color: #D1D5DB;
  padding: 4rem 1.5rem;
  border-top: 8px solid var(--red);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand svg {
  width: 2rem;
  height: 2rem;
  color: var(--red);
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-desc {
  color: #9CA3AF;
  line-height: 1.75;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.social-link:hover {
  background-color: var(--red);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #D1D5DB;
}

.footer-col h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #D1D5DB;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-links a svg {
  width: 1rem;
  height: 1rem;
}

.newsletter-text {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  background-color: #1F2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.newsletter-input::placeholder {
  color: #6B7280;
}

.newsletter-btn {
  background-color: var(--red);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.newsletter-btn:hover {
  background-color: var(--red-dark);
}

.footer-bottom {
  border-top: 1px solid #1F2937;
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* SVG inline icon helpers */
svg {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
