/*
Theme Name: Rifka's House
Theme URI: https://rifkashouse.org
Author: Rifka's House Foundation
Author URI: https://rifkashouse.org
Description: Custom WordPress theme for Rifka's House - An Intergenerational Sanctuary. Features warm marble backgrounds, vibrant bento blocks, and the Poppins font family.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rifkas-house
Tags: nonprofit, charity, custom-colors, custom-menu, featured-images, full-width-template
*/

/* ========================================
   IMPORTS & FONTS
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   CSS VARIABLES
======================================== */
:root {
  /* Brand Colors */
  --logo-blue: #00B4E6;
  --bright-orange: #FF8534;
  --vibrant-orange: #FF6B1A;
  --warm-orange: #FFA64D;
  --light-orange: #FFD4A8;
  --peach: #FFECD9;
  --bright-green: #22C55E;
  --leaf-green: #5A9A6A;
  --light-green: #B2C2B2;
  --sage: #B2C2B2;
  --mint-green: #E8F5E9;
  --gold: #C9A227;
  --gold-light: #F2D184;
  --warm-bg: #FFF8E7;
  --warm-bg-light: #FFFDF8;
  --warm-bg-dark: #FFE4C4;
  
  /* Spacing */
  --header-height: 120px;
  --container-max: 1280px;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-image: url('assets/images/marble-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.text-large {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
}

/* ========================================
   LAYOUT & CONTAINERS
======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ========================================
   HEADER
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 0.75rem 0;
  background-image: url('assets/images/header-cream.png');
  background-size: cover;
  background-position: center;
  border-top: 6px solid var(--logo-blue);
  border-bottom: 6px solid var(--logo-blue);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo img {
  height: 105px;
  width: auto;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.main-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--logo-blue);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
}

/* Header Buttons */
.header-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .main-nav, .header-buttons {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-donate {
  background: white;
  color: var(--logo-blue);
  border: 2px solid var(--logo-blue);
}

.btn-donate:hover {
  background: var(--logo-blue);
  color: white;
}

.btn-shop {
  background: white;
  color: var(--bright-orange);
  border: 2px solid var(--bright-orange);
}

.btn-shop:hover {
  background: var(--bright-orange);
  color: white;
}

.btn-action {
  background: white;
  color: var(--bright-green);
  border: 2px solid var(--bright-green);
}

.btn-action:hover {
  background: var(--bright-green);
  color: white;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bright-orange), var(--vibrant-orange));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 133, 52, 0.4);
}

/* ========================================
   BENTO BLOCKS
======================================== */
.bento-block {
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bento-sky {
  background: linear-gradient(135deg, #87CEEB 0%, #B0E2FF 50%, #E0F4FF 100%);
  border: 3px solid var(--logo-blue);
}

.bento-mango {
  background: linear-gradient(135deg, #FF8534 0%, #FFA64D 50%, #FF6B1A 100%);
  color: white;
  border: 3px solid #D4A574;
}

.bento-sage {
  background: linear-gradient(135deg, #B2C2B2 0%, #C5D5C5 50%, #98B298 100%);
  border: 3px solid #5A9A6A;
}

.bento-mint {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%);
  border: 3px solid #5A9A6A;
}

.bento-white {
  background: rgba(255,255,255,0.95);
  border: 3px solid #B2AC88;
}

.bento-solar {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
  color: white;
  border: 3px solid #D4A574;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background-image: url('assets/images/footer-blue-marble.png');
  background-size: cover;
  background-position: center;
  padding: 3rem 0 1.5rem;
}

.footer-top-bar {
  height: 12px;
  background: linear-gradient(90deg, #EC4899, #F472B6, #EC4899);
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-heading {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #D4A84B 0%, #F2D184 25%, #C9A227 50%, #E6C35C 75%, #D4A84B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

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

.footer-card {
  background-image: url('assets/images/footer-cream.png');
  background-size: cover;
  border-radius: 1rem;
  border: 3px solid var(--gold);
  padding: 1.5rem;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 2rem 0;
}

.social-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #F2D184 0%, #D4A84B 30%, #C9A227 50%, #B8942A 70%, #D4A84B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

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

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: #5C4A1F;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.4);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: white;
  font-size: 0.875rem;
}

/* ========================================
   HERO SECTIONS
======================================== */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.hero-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #4a4a4a;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   CARDS
======================================== */
.card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

/* ========================================
   FORMS
======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--logo-blue);
}

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

/* ========================================
   UTILITIES
======================================== */
.text-center { text-align: center; }
.text-white { color: white; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--logo-blue); }
.text-green { color: var(--bright-green); }
.text-orange { color: var(--bright-orange); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-6 { margin-top: 3rem; }
.pt-6 { padding-top: 3rem; }

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.5rem; }

.shadow-lg { box-shadow: 0 10px 40px rgba(0,0,0,0.1); }

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   PAGE TEMPLATES
======================================== */
.page-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .bento-block {
    padding: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}
