/*
 * Itchypet - Site-specific styles
 * Part of Carnivore Lifestyles ecosystem
 */

/* Import base styles */
@import '/shared/css/carnivore-base.css';

/* Site-specific overrides */
:root {
  /* Dark Theme Color Scheme - Premium Modern Design */
  --color-background: #0f0f0f;       /* Background: Deep Black */
  --color-surface: #1a1a1a;          /* Surface: Dark Gray */
  --color-surface-elevated: #2a2a2a; /* Elevated Surface: Medium Gray */
  --color-surface-hover: #333333;    /* Hover Surface: Light Gray */

  /* Primary Colors - Teal/Cyan for pet health theme */
  --color-primary: #00CED1;          /* Primary: Dark Cyan */
  --color-primary-light: #20B2AA;    /* Primary Light: Light Sea Green */
  --color-primary-dark: #008B8B;     /* Primary Dark: Dark Cyan */
  --color-secondary: #FF8C42;        /* Secondary: Orange accent */
  --color-accent: #FFD700;           /* Accent: Gold for highlights */
  --color-success: #4CAF50;          /* Success: Growth Green */

  /* Text Colors for Dark Theme */
  --color-text-primary: #FFFFFF;     /* Primary Text: Pure White */
  --color-text-secondary: #B0B0B0;   /* Secondary Text: Light Gray */
  --color-text-muted: #808080;       /* Muted Text: Medium Gray */
  --color-text-inverse: #000000;     /* Inverse Text: Black for light backgrounds */

  /* Border and Outline Colors */
  --color-border: #333333;           /* Border: Dark Gray */
  --color-border-light: #444444;     /* Light Border: Medium Gray */

  /* Override base colors with design-specified colors */
  --site-primary: #00CED1;
  --site-primary-light: #20B2AA;
  --site-primary-dark: #008B8B;
  --site-secondary: #FF8C42;
  --site-accent: #FFD700;

  /* Typography overrides */
  --font-hero: 'Playfair Display', serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  --font-nav: 'Montserrat', sans-serif;
}

/* Body class for site identification */
.site-itchypet {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  padding-top: 80px;
}

/* Typography overrides */
.site-itchypet h1,
.site-itchypet .hero-title {
  font-family: var(--font-hero);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 600;
  line-height: 1.2;
}

.site-itchypet h2,
.site-itchypet h3,
.site-itchypet h4,
.site-itchypet h5,
.site-itchypet h6 {
  font-family: var(--font-heading);
}

.site-itchypet h2 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
}

.site-itchypet h3 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
}

.site-itchypet p,
.site-itchypet .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 20px);
  font-weight: 400;
  line-height: 1.6;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 15, 15, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-primary {
  padding: 1rem 0;
}

.nav-primary .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

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

.nav-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 16px;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all 0.2s ease;
}

.nav-toggle-icon::before {
  top: -8px;
}

.nav-toggle-icon::after {
  top: 8px;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-links--active {
    display: flex;
  }
}

@media (min-width: 769px) {
  .nav-primary .container {
    justify-content: flex-start;
    gap: 3rem;
  }

  .nav-toggle {
    display: none;
  }
}

/* Hero trust badges */
.hero-trust {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-separator {
  color: var(--color-border-light);
}

/* Step numbers for how-it-works */
.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.step-number-large {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  color: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.step-bonus {
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-top: 1rem;
}

/* Section backgrounds */
.section-bg {
  background: linear-gradient(135deg,
    var(--color-surface) 0%,
    var(--color-surface-elevated) 100%);
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card.highlight-card {
  background: linear-gradient(135deg, rgba(0, 206, 209, 0.1), rgba(0, 139, 139, 0.1));
  border-color: var(--color-primary);
}

/* Vision cards */
.vision-cards {
  max-width: 800px;
  margin: 0 auto;
}

.vision-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vision-card {
  background: var(--color-surface);
}

.prominent-text {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.signature {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-top: 1rem;
}

/* Feature list items */
.feature-list-items {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list-items li {
  padding: 0.5rem 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature-list-items li::before {
  content: '\2713';
  color: var(--color-success);
  font-weight: bold;
  position: absolute;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
}

/* Resource icons */
.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Approach cards */
.approach-card {
  height: 100%;
}

/* Hero features */
.hero-features {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 206, 209, 0.2);
  transition: all 0.2s ease;
}

.hero-feature:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.6);
}

.hero-feature-icon {
  font-size: 20px;
}

.hero-feature-text {
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 14px;
}

/* Float animation */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #004040, #006666, #004D4D);
  color: var(--color-text-primary);
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

.footer-section h4 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--color-text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-ecosystem {
  margin-top: 0.5rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   STANDARDIZED HERO BACKGROUNDS
   Use these classes for consistent hero styling
   =========================================== */

/* Hero gradient background - Standard for subpages
   Usage: <section class="hero hero--compact hero-gradient">
   This creates the brown-to-amber gradient used across the site */
.hero-gradient {
  background: linear-gradient(135deg, #1a1510 0%, #3d3020 20%, #5a4a30 40%, #8a7040 60%, #b08a30 80%, #d4a020 100%);
}

/* Hero with background image */
.hero-with-background {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-with-background .hero-overlay {
  display: none;
}

.hero-content-centered {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 25vh;
  padding-bottom: 2rem;
}

.hero-content-centered .hero-actions {
  justify-content: center;
}

.hero-content-centered .hero-trust {
  justify-content: center;
}

.hero-content-centered .hero-features {
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-with-background {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .hero-background-image {
    background-image: url('/assets/images/hero-background-mobile.webp') !important;
    background-position: center center;
  }
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border-light);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-liquid {
  position: relative;
  overflow: hidden;
}

.glow-box {
  box-shadow: 0 0 20px rgba(0, 206, 209, 0.3);
}

.glow-box:hover {
  box-shadow: 0 0 30px rgba(0, 206, 209, 0.5);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== Phone Mockup Carousel ===== */
.phone-carousel {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-frame::before {
  /* Dynamic Island style notch */
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  position: relative;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gray-300);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--color-gray-400);
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  left: -50px;
  right: -50px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 20;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: #fff;
  transform: scale(1.1);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gray-700);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .phone-carousel {
    max-width: 260px;
  }

  .phone-frame {
    border-radius: 32px;
    padding: 10px;
  }

  .phone-frame::before {
    width: 80px;
    height: 24px;
    border-radius: 0 0 12px 12px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .carousel-arrows {
    display: none;
  }
}
