/* 
   Palette Name: Mexican Terracotta & Warm Sand
   Colors: 
   Primary: #C84B31 (Terracotta)
   Secondary: #ECDBBA (Sand)
   Accent: #5C3D2E (Dark Brown)
   Background: #FAF4E1 (Warm Off-white)
   Text: #191919 (Almost Black)
*/

:root {
    --color-primary: #C84B31;
    --color-secondary: #ECDBBA;
    --color-accent: #5C3D2E;
    --color-bg: #FAF4E1;
    --color-text: #191919;
    --color-white: #FFFFFF;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--color-accent);
}

p {
    margin-bottom: 15px;
}

.text-center { text-align: center; }
.color-white { color: var(--color-white) !important; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); }

.text-center-box {
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
}

.btn-full {
    width: 100%;
}

/* Header Layout (Strictly from prompt) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-accent);
    color: var(--color-white);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    color: var(--color-white);
}

.hamburger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    display: none;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-white);
    transition: 0.3s;
}

.menu-checkbox {
    display: none;
}

.desktop-nav {
    display: block;
}

.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--color-white);
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--color-secondary);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--color-accent);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
    color: var(--color-white);
    display: block;
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .mobile-nav { display: block; }
    #menu-toggle:checked ~ .mobile-nav { max-height: 400px; }
    #menu-toggle:checked ~ .hamburger .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    #menu-toggle:checked ~ .hamburger .line:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .hamburger .line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
}

/* Hero Fullscreen (Index) */
.hero-fullscreen {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content-center {
    max-width: 800px;
    color: var(--color-white);
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--color-secondary);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Grids */
.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .grid-3-col { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.benefit-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid var(--color-primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Split Section */
.split-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .split-wrapper { grid-template-columns: 1fr 1fr; }
}

.shadow-img {
    border-radius: 8px;
    box-shadow: 10px 10px 0 var(--color-primary);
}

/* Testimonials */
.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    color: var(--color-white);
    border-left: 4px solid var(--color-primary);
}

.quote {
    font-style: italic;
    margin-bottom: 15px;
}

.author {
    font-weight: bold;
    color: var(--color-secondary);
}

/* Page Headers */
.page-header {
    padding: 60px 0;
    background-color: var(--color-secondary);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Timeline (Program) */
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: var(--color-secondary);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 4px solid var(--color-bg);
}

.timeline-content {
    background: var(--color-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timeline-img {
    border-radius: 4px;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

/* Stats */
.stat-box {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-secondary);
}

/* Story Section (Mission) */
.story-content-box {
    max-width: 900px;
    margin: 0 auto;
}

.story-float-img {
    float: right;
    width: 300px;
    margin: 0 0 20px 20px;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .story-float-img {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 800px) {
    .contact-grid { grid-template-columns: 3fr 2fr; }
}

.contact-form-wrapper, .contact-info-wrapper {
    padding: 30px;
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info-wrapper {
    background: var(--color-secondary);
}

/* Forms */
.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-accent);
}

.custom-form input, .custom-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.custom-form input:focus, .custom-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Legal Pages */
.text-content-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
}

.text-content-box h2 {
    margin-top: 30px;
}

.text-content-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Thank You Page */
.thank-icon {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.action-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer (Strictly Hardcoded Colors) */
.site-footer {
    background-color: #2A2A2A !important;
    color: #F5F5F5 !important;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .footer-container { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo {
    font-size: 24px;
    color: #FFFFFF !important;
    margin-bottom: 15px;
}

.footer-heading {
    color: #FFFFFF !important;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: #CCCCCC !important;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: #FFFFFF !important;
}

.footer-contact {
    margin-bottom: 10px;
    color: #CCCCCC !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #444444 !important;
    color: #999999 !important;
    font-size: 14px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    z-index: 9999;
    padding: 18px 24px;
    background-color: #111111;
    color: #FFFFFF;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 16px;
    transform: translateY(0); 
    transition: transform 0.4s ease;
    border-top: 3px solid var(--color-primary);
}

#cookie-banner.hidden { 
    transform: translateY(110%); 
}

#cookie-banner p { 
    margin: 0; 
    flex: 1; 
    min-width: 200px; 
    font-size: 14px;
}

#cookie-banner a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.cookie-btns { 
    display: flex; 
    gap: 10px; 
    flex-shrink: 0; 
    flex-wrap: wrap; 
}

.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn-accept {
    background-color: var(--color-primary);
    color: white;
}

.cookie-btn-decline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}