@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette - Warm & Emotional */
  --bg-primary: #fdf6f0;
  --bg-secondary: #f7efe5;
  --bg-card: #ffffff;
  
  --accent-primary: #e07a5f;
  --accent-secondary: #f2cc8f;
  --accent-tertiary: #81b29a;
  
  --text-primary: #2f2f2f;
  --text-secondary: #6b6b6b;
  
  --gradient-primary: linear-gradient(135deg, #e07a5f, #f2cc8f);
  
  /* Typography */
  --font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  /* UI Elements */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 15px rgba(224, 122, 95, 0.08);
  --shadow-md: 0 10px 30px rgba(224, 122, 95, 0.12);
  --shadow-lg: 0 20px 40px rgba(47, 47, 47, 0.08);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* Layout System */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-desktop);
  width: 100%;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
  filter: brightness(1.05);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--accent-primary);
  border: 2px solid var(--accent-secondary);
}

.btn-secondary:hover {
  background-color: var(--accent-secondary);
  color: var(--text-primary);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
}

/* Header & Navigation */
.header {
  background-color: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
  transition: var(--transition);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

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

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

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background-color: var(--bg-secondary);
  padding: calc(var(--spacing-desktop) * 1.5) 0 var(--spacing-desktop) 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-content h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(224,122,95,0.2), transparent);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 10s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.125rem;
}

/* Cat Grid System */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

/* Cat Cards */
.cat-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-card:hover .card-image {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--bg-card);
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.75rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.cat-meta {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 15px;
}

.cat-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--bg-secondary);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent-tertiary);
  font-weight: 700;
}

.card-footer-icon {
  background: var(--bg-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: var(--transition);
}

.cat-card:hover .card-footer-icon {
  background: var(--accent-primary);
  color: #fff;
}

/* Feature/Info Sections */
.info-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 60px;
  margin: var(--spacing-desktop) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.info-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.info-list {
  margin-top: 30px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.info-list-icon {
  color: var(--accent-tertiary);
  font-size: 1.5rem;
  margin-top: -2px;
}

.info-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* Forms */
.form-container {
  background-color: var(--bg-card);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--bg-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Cat Detail Page */
.cat-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.profile-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.profile-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.profile-details h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.profile-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tag {
  background-color: var(--bg-secondary);
  color: var(--accent-primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
}

.profile-story {
  margin-bottom: 40px;
}

.profile-story h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.profile-story p {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

.profile-stats {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 800;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6rem;
  color: var(--bg-secondary);
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin: 0;
}

.author-info p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--accent-primary);
}

/* Footer */
.footer {
  background-color: #2f2f2f;
  color: #ffffff;
  padding: 80px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.footer-col p {
  color: #aaaaaa;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  color: #aaaaaa;
  font-size: 1.1rem;
}

.footer-links a:hover {
  color: var(--accent-secondary);
  padding-left: 5px;
}

.footer-contact li {
  color: #aaaaaa;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444444;
  color: #888888;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links a {
  color: #888888;
  margin-left: 20px;
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Page Headers */
.page-header {
  background: var(--bg-secondary);
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Animations & Interactivity */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Legal Pages */
.legal-content {
  background: var(--bg-card);
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: -40px auto 80px;
  position: relative;
  z-index: 10;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.legal-content p, .legal-content ul {
  margin-bottom: 20px;
}

.legal-content ul {
  padding-left: 20px;
  list-style: disc;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-tablet);
  }
  
  .hero-container, .info-section, .cat-profile {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
    order: 1;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    order: 2;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-mobile);
  }
  
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-actions {
    display: none; /* Hide CTA in header on small mobile, rely on links */
  }
  
  .info-section {
    padding: 40px 30px;
  }
  
  .form-container, .legal-content {
    padding: 30px 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links a {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-image {
    height: 400px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .cat-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
}