/* 
   Gardens of St. Gertrude - Production Stylesheet 
   Theme: Garden Sanctuary (Premium, Trust, Calm)
*/

:root {
  /* Palette - Garden Sanctuary */
  --color-primary: #2a4a3e;
  /* Deep Forest Green - Trust, Stability */
  --color-primary-light: #4a7c6f;
  /* Sage - Softness */
  --color-accent: #d4a373;
  /* Warm Earth/Gold - Warmth, Action */
  --color-accent-hover: #b08d6c;

  --color-bg-cream: #fdfbf7;
  /* 'Unbleached Paper' - Organic feel */
  --color-bg-white: #ffffff;
  --color-text-dark: #1f2937;
  /* Soft Black - Readability */
  --color-text-light: #4b5563;
  /* Grey - Secondary interactions */

  --color-glass: rgba(255, 255, 255, 0.92);
  --color-success: #059669;

  /* Typography - Museum Quality */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing system (8pt grid base) */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 3rem;
  /* 48px */
  --space-xl: 5rem;
  /* 80px */

  /* Elevation / 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-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons (Premium Touch Targets) */
/* Buttons (High Contrast & Tactile) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  /* Slightly boxier/modern */
  letter-spacing: 0.025em;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  /* Dark text on Yellow for accessiblity */
  box-shadow: 0 4px 0 var(--color-accent-hover);
  /* Tactile physical button feel */
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-accent-hover);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--color-accent-hover);
}

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

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

.btn-secondary:hover {
  background-color: transparent;
  color: white;
}

/* Header & Nav (Standardized Solid White) */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #f3f4f6;
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--color-primary);
  /* Always Dark/Brand Color */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-text-dark);
  /* Always Dark */
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
}

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

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

/* Nav specific Donate button override */
.nav-actions .btn-primary {
  background-color: #FF4C00;
  color: white;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: none;
  /* cleaner look */
}

.nav-actions .btn-primary:hover {
  background-color: #e64400;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile Nav Toggle (Hidden by default) */
.mobile-toggle {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Darker overlay for better text contrast - Adding gradient for safety */
  background: url('assets/hero_home_v3.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero-content {
  /* Removed centering constraints */
  width: 100%;
}

.hero h1 {
  /* Updated for left alignment in split view */
  color: white;
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}

/* Widget Styles */
.amount-btn:hover {
  border-color: #FF4C00 !important;
  background: #fff5f2 !important;
  color: #FF4C00;
}

.amount-btn.selected {
  background: #FF4C00 !important;
  border-color: #FF4C00 !important;
  color: white !important;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

/* Trust Row */
.trust-row {
  background-color: var(--color-white);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Impact Metrics */
.impact-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-cream);
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.metric-card h3 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.metric-card p {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

/* Utilities */
.section {
  padding: var(--space-xl) 0;
}

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

.mb-md {
  margin-bottom: var(--space-md);
}

.hidden {
  display: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .nav-links {
    display: none;
  }

  /* Simplified mobile for now */
}

/* Shared Split Layout (Donate/Volunteer) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  /* Minus header */
}

.split-visual {
  background: url('assets/hero_garden_cat.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 77, 62, 0.4);
  /* Primary Overlay */
}

.split-visual-content {
  position: relative;
  z-index: 2;
  padding: 4rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

.split-form-container {
  padding: 4rem;
  background-color: var(--color-bg-cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-premium {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  width: 100%;
  max-width: 550px;
}

/* Mobile Split Layout */
@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-visual {
    padding: 3rem 1.5rem;
    min-height: 300px;
  }

  .split-visual-content {
    padding: 0;
    text-align: center;
  }

  .split-form-container {
    padding: 2rem 1.5rem;
  }

  .card-premium {
    padding: 1.5rem;
  }
}

/* Footer Standardization */
footer {
  background-color: var(--color-bg-white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
  /* Push to bottom if using flex column body */
}

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

.footer-section h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* Adoption Cards */
.adoption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}

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

.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-text {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Highlighted Cat Styles */
.card.highlighted-cat {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-float);
  transform: scale(1.02);
}

.card.highlighted-cat:hover {
  transform: scale(1.04);
}

/* Urgent Cat Styles */
.card.urgent-cat {
  border: 2px solid #e53e3e;
}

.urgent-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #e53e3e;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  background: white;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 10;
  transition: background 0.2s;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

#lb-img {
  width: 50%;
  object-fit: cover;
}

.lb-details {
  padding: 2.5rem;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.lb-details h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.lb-details p {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.lb-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 20;
}

.nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 1rem;
}

.next-btn {
  right: 1rem;
}

/* Mobile Lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    flex-direction: column;
    overflow-y: auto;
  }

  #lb-img {
    width: 100%;
    height: 300px;
  }

  .lb-details {
    width: 100%;
    padding: 1.5rem;
  }
}

/* V1.2 Campaign Strip */
.campaign-strip {
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.campaign-strip-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.strip-progress {
  width: 200px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.strip-bar {
  height: 100%;
  background: var(--color-accent);
  width: 65%;
  /* Demo value */
}

/* V1.2 Impact Stats Band */
.stats-band {
  padding: var(--space-xl) 0;
  text-align: center;
  background: white;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-block h3 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  line-height: 1;
}

.stat-block p {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* V1.2 Story Split */
/* V1.2 Story Split */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 850px;
  /* Lengthened for portrait image */
}

.story-img {
  background: url('assets/story_portrait_new.jpg') no-repeat center center;
  background-size: cover;
}

.story-text {
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fdfaf5;
  /* Warm slight off-white */
}

.story-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

/* Ways To Give Grid */
.giving-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.give-card {
  background: white;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.2s;
  text-align: left;
}

.give-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.give-icon {
  width: 48px;
  height: 48px;
  background: #fef3c7;
  color: var(--color-accent-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .story-section {
    grid-template-columns: 1fr;
  }

  .story-img {
    min-height: 300px;
  }

  .story-text {
    padding: 3rem 1.5rem;
  }

  .stats-row {
    flex-direction: column;
  }
}

/* End of Global Styles */