/* 
   Sanity Is Clarity - Ethereal Luxury Theme 
   Static CSS Implementation
*/

:root {
    /* Updated Brand Colors from Brief */
    --background: #FFFFFF;
    --foreground: #3C3C3C; /* Charcoal Grey */
    --primary: #2E664F; /* Emerald Green */
    --primary-foreground: #FFFFFF;
    --secondary: #D9A5B3; /* Dusty Rose */
    --secondary-foreground: #FFFFFF;
    --accent: #E6D3B3; /* Warm Sand */
    --muted: #F5F5F5;
    --muted-foreground: #737373;
    --border: #E5E5E5;
    --card: #FFFFFF;
    
    /* Typography */
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    
    /* Spacing */
    --container-padding: 1rem;
    --container-max-width: 1280px;
    
    /* Effects */
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary); /* Headings in Emerald Green */
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

@media (min-width: 768px) {
    h1 { font-size: 4.5rem; }
    h2 { font-size: 3rem; }
}

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

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (min-width: 640px) {
    :root { --container-padding: 1.5rem; }
}
@media (min-width: 1024px) {
    :root { --container-padding: 2rem; }
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted-foreground); }
.italic { font-style: italic; }
.font-medium { font-weight: 500; }

.bg-secondary { background-color: rgba(217, 165, 179, 0.1); /* Soft Dusty Rose bg */ }
.bg-accent { background-color: rgba(230, 211, 179, 0.2); /* Soft Warm Sand bg */ }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background-color: #1e4d3a;
    transform: translateY(-2px);
}

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

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

.btn-glass {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--foreground);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.btn-dark {
    background-color: var(--foreground);
    color: var(--background);
    box-shadow: var(--shadow-xl);
}

.btn-dark:hover {
    background-color: #2a2828;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    height: 60px;
    width: auto;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .desktop-nav { display: flex; }
    .mobile-menu-btn { display: none; }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.nav-link.active::after, .nav-link:hover::after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

.mobile-nav a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--foreground);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    margin-top: 80px; /* Offset fixed header */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), var(--background));
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 900px;
}

.hero-logo-wrapper {
    margin-bottom: 2rem;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin: 0 auto;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.pb-0 { padding-bottom: 0; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

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

/* Images & Blobs */
.image-wrapper {
    position: relative;
}

.aspect-ratio-4-5 {
    position: relative;
    padding-bottom: 125%; /* 4:5 Aspect Ratio */
    overflow: hidden;
}

.aspect-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.aspect-ratio-4-5 img, .aspect-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.rounded { border-radius: 1rem; }
.shadow-lg { box-shadow: var(--shadow-lg); }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.blob-1 {
    bottom: -2rem;
    right: -2rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(217, 165, 179, 0.3); /* Dusty Rose */
}

.blob-2 {
    top: -2rem;
    left: -2rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(46, 102, 79, 0.1); /* Emerald Green */
}

.blob-3 {
    bottom: -2rem;
    right: -2rem;
    width: 12rem;
    height: 12rem;
    background-color: rgba(230, 211, 179, 0.3); /* Warm Sand */
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.small-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.link-wrapper { margin-top: 1.5rem; }

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
}

.arrow-icon {
    margin-left: 0.25rem;
    width: 1rem;
    height: 1rem;
    transition: margin-left 0.3s ease;
}

.text-link:hover .arrow-icon { margin-left: 0.5rem; }

/* Cards */
.card {
    background-color: var(--card);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 229, 229, 0.5);
    transition: all 0.5s ease;
    height: 100%;
}

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

.card-image {
    position: relative;
    padding-bottom: 75%; /* 4:3 */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card:hover .card-image img { transform: scale(1.1); }

.card-content { padding: 2rem; }

.icon-circle-sm {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--muted);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card:hover .icon-circle-sm {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 1rem; }

.text-link-sm {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.arrow-icon-sm {
    width: 0.875rem;
    height: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.gradient-overlay-full {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), transparent, var(--background));
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-button-wrapper { margin-top: 2rem; }

/* Footer */
footer {
    background-color: var(--muted);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

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

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

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.footer-links h4, .footer-contact h4, .newsletter-signup h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.75rem;
    color: var(--muted-foreground);
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
}

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

.disclaimer-text {
    font-size: 0.75rem;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Specific Styles */
.page-header {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    display: block;
    margin-bottom: 1rem;
}

.header-subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.separator {
    width: 6rem;
    height: 2px;
    background-color: var(--accent);
    margin: 1.5rem auto 0;
}

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

.number-circle {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.quote-block {
    margin-top: 1.5rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Donation Page */
.impact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--muted);
    border-radius: 0.5rem;
}

.amount {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
}

/* Contact Form */
.contact-form-wrapper, .donation-form-wrapper {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(229, 229, 229, 0.5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 102, 79, 0.1);
}

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

.w-full { width: 100%; }

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
