/* ===================================
   CSS VARIABLES & DESIGN SYSTEM
   =================================== */

:root {
  /* Base Colors */
  --color-base-0: #FFFFFF;
  --color-base-1: #F8F9FA;
  --color-base-2: #E9ECEF;
  --color-base-3: #DEE2E6;

  /* Text Colors - WCAG AAA Compliant (7:1 for normal text, 4.5:1 for large text) */
  --color-text-0: #1a1d20;
  --color-text-1: #3d4246;
  --color-text-2: #5a5f65;
  --color-text-3: #767b82;

  /* Brand Colors */
  --color-primary: #BE5FD9;
  --color-primary-dark: #9B4AB5;
  --color-primary-light: #D488E8;
  --color-secondary: #03658C;
  --color-secondary-dark: #024A68;
  --color-secondary-light: #0583B8;
  --color-accent: #68A672;
  --color-accent-dark: #4F8057;
  --color-accent-light: #8BC696;
  --color-pink: #EF3EA2;
  --color-pink-light: #FDE8E8;

  /* Spacing System */
  --sp: 0.5rem;
  --sp2: 1rem;
  --sp3: 1.5rem;
  --sp4: 2rem;
  --sp5: 2.5rem;
  --sp6: 3rem;
  --sp8: 4rem;
  --sp10: 5rem;
  --sp12: 6rem;
  --sp16: 8rem;

  /* Typography */
  --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions - Smooth, natural easing */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: 700ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-0);
  background-color: var(--color-base-0);
  overflow-x: hidden;
  cursor: url('../images/paw-cursor.svg') 16 16, auto;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
  cursor: url('../images/paw-cursor.svg') 16 16, pointer;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: url('../images/paw-cursor.svg') 16 16, pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--sp3);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--sp4);
}

/* ===================================
   LAYOUT
   =================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp4);
}

.container-narrow {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 var(--sp4);
}

.section {
  padding: var(--sp12) 0;
}

.section-sm {
  padding: var(--sp8) 0;
}

.section-lg {
  padding: var(--sp16) 0;
}

/* ===================================
   SKIP TO MAIN CONTENT
   =================================== */

.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-base-0);
  padding: var(--sp2) var(--sp4);
  z-index: var(--z-tooltip);
  transition: top var(--transition-base);
}

.skip-to-main:focus {
  top: 0;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-sticky);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp3) 0;
  gap: var(--sp4);
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 0;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  transition: transform var(--transition-bounce);
  will-change: transform;
}

.navbar-logo:hover img {
  transform: scale(1.08) rotate(-2deg);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--sp6);
  list-style: none;
  order: 1;
}

.navbar-nav a {
  color: var(--color-text-0);
  font-weight: 500;
  font-size: var(--font-size-lg);
  position: relative;
  transition: color var(--transition-base);
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-smooth);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  margin-left: auto;
  order: 3;
}

.navbar-cta .btn {
  padding: var(--sp2) var(--sp4);
  font-size: var(--font-size-base);
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-base-0);
  border-radius: var(--radius-full);
  transition: all var(--transition-bounce);
  will-change: transform, box-shadow;
  box-shadow: 0 4px 12px rgba(190, 95, 217, 0.3);
}

.navbar-cta .btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-base-0);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(190, 95, 217, 0.4);
}

.navbar-socials {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  order: 2;
}

/* Hide mobile menu social icons on desktop */
.navbar-nav .navbar-socials {
  display: none;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-base-1);
  transition: all var(--transition-bounce);
  will-change: transform;
}

.social-icon:hover {
  background: var(--color-primary);
  transform: translateY(-4px) scale(1.1) rotate(5deg);
}

.social-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%);
  transition: filter var(--transition-base);
}

.social-icon:hover img {
  filter: brightness(0) saturate(100%) invert(1);
}

/* Mobile Menu Toggle - SIMPLE */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: var(--sp2);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100000;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text-0);
  border-radius: var(--radius-full);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger to X transformation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(190, 95, 217, 0.15) 0%,
    rgba(3, 101, 140, 0.2) 50%,
    rgba(104, 166, 114, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-base-0);
}

.hero-logo {
  max-width: 400px;
  margin: 0 auto var(--sp6);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* ===================================
   FEATURED DOGS IMAGE
   =================================== */

.featured-dogs-image {
  /* Ensure image displays at natural size by default */
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  /* Prevent upscaling beyond natural dimensions */
  max-height: 227px;
}

/* Responsive sizing for smaller screens */
@media (max-width: 768px) {
  .featured-dogs-image {
    /* Allow image to scale down on tablets but not beyond natural size */
    max-width: 90%;
  }
}

@media (max-width: 640px) {
  .featured-dogs-image {
    /* Full width on mobile but constrained by natural dimensions */
    max-width: 100%;
  }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: var(--color-text-0);
  color: var(--color-base-0);
  padding: var(--sp12) 0 var(--sp6);
  position: relative;
  overflow: hidden;
}

.footer-mountains {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 1;
  pointer-events: none;
}

.footer-mountains img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer-content {
  position: relative;
  z-index: 2;
  padding-top: var(--sp4);
}

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

.footer-section h3 {
  color: var(--color-primary-light);
  margin-bottom: var(--sp5);
  font-size: var(--font-size-xl);
}

.footer-section p {
  color: var(--color-base-1);
  line-height: var(--line-height-relaxed);
}

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

.footer-section ul li {
  margin-bottom: var(--sp3);
}

.footer-section a {
  color: var(--color-base-1);
  transition: color var(--transition-base);
  display: inline-block;
}

.footer-section a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp6);
  margin-top: var(--sp4);
  text-align: center;
  color: var(--color-text-3);
  font-size: var(--font-size-sm);
}

.footer-bottom a {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-bottom a:hover {
  color: var(--color-secondary);
  cursor: pointer;
  transform: translateY(-2px);
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-to-top {
  position: fixed;
  bottom: var(--sp4);
  right: var(--sp4);
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-base-0);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-bounce);
  will-change: transform, opacity;
  z-index: var(--z-fixed);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-6px) scale(1.1);
  box-shadow: var(--shadow-2xl);
}

/* ===================================
   COOKIE CONSENT
   =================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(33, 37, 41, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-base-0);
  padding: var(--sp4);
  z-index: var(--z-modal);
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 250px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.cookie-consent-text a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: var(--sp2);
  flex-shrink: 0;
}

.cookie-consent-actions button {
  white-space: nowrap;
  min-width: 100px;
}

@media (max-width: 640px) {
  .cookie-consent {
    padding: var(--sp3);
    /* Remove blur on mobile for better performance and readability */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(33, 37, 41, 1);
  }

  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp3);
  }

  .cookie-consent-text {
    min-width: auto;
  }

  .cookie-consent-text p {
    font-size: var(--font-size-sm);
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-consent-actions button {
    flex: 1;
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
  }

  .section {
    padding: var(--sp10) 0;
  }
}

@media (max-width: 768px) {
  /* Remove backdrop filter on mobile navbar */
  .navbar {
    background: rgba(255, 255, 255, 0.98);
  }

  /* Mobile Navigation Layout: [Logo] [Join Our Pack] [Burger Menu] */
  .navbar-inner {
    padding: var(--sp2) 0;
    gap: var(--sp2);
  }

  .navbar-logo {
    order: 1;
    flex-shrink: 0;
  }

  .navbar-logo img {
    height: 40px;
  }

  .navbar-cta {
    order: 2;
    flex: 1;
    margin-left: 0;
    display: flex;
    justify-content: center;
  }

  .navbar-cta .btn {
    padding: var(--sp2) var(--sp3);
    font-size: var(--font-size-sm);
    min-height: 40px;
    white-space: nowrap;
  }

  .menu-toggle {
    order: 3;
    display: flex;
    flex-shrink: 0;
    min-width: 48px;
    min-height: 48px;
  }

  /* Hide social icons from navbar on mobile */
  .navbar-inner > .navbar-socials {
    display: none;
  }

  /* SIMPLE Mobile Menu - Full width, pure white */
  .navbar-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    z-index: 999999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 20px;
    gap: var(--sp);
  }

  .navbar-nav.active {
    transform: translateY(0);
  }

  .navbar-nav li {
    width: 100%;
  }

  .navbar-nav a {
    display: flex;
    align-items: center;
    padding: var(--sp3);
    font-size: var(--font-size-xl);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
    min-height: 52px;
    color: #000000;
  }

  .navbar-nav a:hover {
    background: var(--color-base-1);
  }

  .navbar-nav a::after {
    display: none;
  }

  /* Social icons in mobile menu */
  .navbar-nav .navbar-nav-socials {
    width: 100%;
    padding-top: var(--sp4);
    margin-top: auto;
    border-top: 1px solid var(--color-base-2);
  }

  .navbar-nav .navbar-socials {
    display: flex;
    justify-content: center;
    gap: var(--sp3);
  }

  .navbar-nav .navbar-socials .social-icon {
    width: 48px;
    height: 48px;
  }

  .navbar-nav .navbar-socials .social-icon img {
    width: 24px;
    height: 24px;
  }

  /* Simple backdrop */
  body.menu-open {
    overflow: hidden;
  }

  .hero-logo {
    max-width: 300px;
  }

  .footer {
    padding: var(--sp10) 0 var(--sp6);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp8);
  }

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

@media (max-width: 640px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--sp3);
  }

  .section {
    padding: var(--sp8) 0;
  }

  /* Smaller mobile navigation adjustments */
  .navbar-inner {
    padding: var(--sp) 0;
  }

  .navbar-logo img {
    height: 36px;
  }

  .navbar-cta .btn {
    padding: var(--sp) var(--sp2);
    font-size: 0.8rem;
    min-height: 36px;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .menu-toggle span {
    width: 26px;
    height: 3.5px;
  }

  .navbar-nav {
    width: 280px;
    right: -280px;
    padding: var(--sp10) var(--sp3) var(--sp3);
  }

  .navbar-nav a {
    padding: var(--sp2);
    font-size: var(--font-size-lg);
    min-height: 48px;
  }

  .hero-logo {
    max-width: 250px;
  }

  .footer {
    padding: var(--sp8) 0 var(--sp5);
  }

  .footer-grid {
    gap: var(--sp6);
    margin-bottom: var(--sp6);
  }

  .footer-section h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--sp4);
  }

  .footer-section ul li {
    margin-bottom: var(--sp2);
  }
}

/* Extra small devices (320px - 375px) */
@media (max-width: 375px) {
  .navbar-cta .btn {
    font-size: 0.75rem;
    padding: var(--sp) var(--sp);
  }

  .navbar-nav {
    width: 260px;
    right: -260px;
  }
}

/* ===================================
   CUSTOM PAW CURSOR
   =================================== */

/* Apply paw cursor to all clickable elements */
a,
button,
.btn,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="checkbox"],
input[type="radio"],
select,
.social-icon,
.menu-toggle,
.scroll-to-top,
.modal-close,
.gallery-modal-nav,
.masonry-item,
.card-hover,
.tag {
  cursor: url('../images/paw-cursor.svg') 16 16, pointer;
}

/* Keep text cursor for text inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
  cursor: text;
}

