/* --- Brand Colors & Variables (Upgraded) --- */
:root {
    --grape-purple: #4A148C; /* Deep, rich grape purple */
    --gold: #FFD700;         /* Vibrant, warm gold */
    --orange: #FF6F00;       /* Bold, energetic orange */
    --teal: #00897B;         /* Crisp, professional teal */
    --white: #ffffff;
    --silver-grey: #F5F7FA;  /* Soft, modern light grey */
    --text-dark: #2C3E50;    /* Deep charcoal for easy reading */
}

/* --- Basic Reset & Typography --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}
.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
header .logo img { height: 50px; width: auto; display: block; }
header h1 { font-size: 1.4rem; color: var(--grape-purple); font-weight: 800; display: none; } /* Hides text if logo is present */
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
nav a { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
nav a:hover, nav a.active { color: var(--orange); }

/* --- Hero Section (Upgraded with Gradient & Depth) --- */
.hero {
    background: linear-gradient(135deg, var(--grape-purple) 0%, var(--orange) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero h2 {
    color: var(--gold);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    color: var(--white);
    font-weight: 500;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    margin: 10px 5px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-primary { background-color: var(--orange); color: var(--white); }
.btn-secondary { background-color: var(--teal); color: var(--white); }

/* --- General Sections & Cards --- */
section { padding: 4rem 0; }
section h2 { color: var(--grape-purple); margin-bottom: 1rem; text-align: center; font-size: 2rem; }
section p { text-align: center; max-width: 800px; margin: 0 auto 2rem auto; font-size: 1.1rem; }

.card-grid { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 350px;
    text-align: center;
    border-top: 5px solid var(--orange);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card:hover { transform: translateY(-5px); }
.card h3 { color: var(--teal); margin-top: 1rem; margin-bottom: 1rem; font-size: 1.4rem; }
.card p { font-size: 0.95rem; margin-bottom: 1.5rem; }

/* --- Book Cover Images --- */
.book-cover {
    width: 180px !important;
    height: auto !important;
    max-height: 270px !important;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    margin: 0 auto 1.5rem auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.book-cover:hover { transform: scale(1.05); }

/* --- Responsive YouTube Videos --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: #000;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-card { background: var(--white); border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; }
.video-card h3 { margin-top: 1rem; margin-bottom: 0.5rem; color: var(--grape-purple); font-size: 1.2rem; }

/* --- Contact Form Styling --- */
.contact-container { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: center; margin-top: 2rem; }
.contact-info, .contact-form-wrapper { flex: 1; min-width: 300px; max-width: 500px; }
.contact-form-wrapper form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--grape-purple); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-dark); }
.checkbox-group input { width: auto; margin-top: 4px; }
.crisis-disclaimer { background-color: #fff3cd; border-left: 5px solid var(--orange); padding: 1.5rem; border-radius: 6px; margin-top: 2rem; }
.crisis-disclaimer h3 { color: #856404; margin-bottom: 0.5rem; font-size: 1.1rem; }
.crisis-disclaimer p { text-align: left; margin: 0; font-size: 0.95rem; color: #856404; }

/* --- About Us Split Layout --- */
.about-split { display: flex; align-items: center; gap: 4rem; margin: 2rem 0; text-align: left; }
.about-split .text-content { flex: 1; }
.about-split .image-content {
    flex: 1;
    background-color: var(--silver-grey);
    border-radius: 12px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}
.about-split p { text-align: left; margin-bottom: 1.5rem; }
.values-grid { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.value-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
    text-align: center;
    border-bottom: 5px solid var(--teal);
}
.value-card h3 { color: var(--grape-purple); margin-bottom: 1rem; }

/* --- Footer --- */
footer {
    background-color: var(--grape-purple);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
}
footer a { color: var(--gold); text-decoration: none; }
.footer-links { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--silver-grey); font-size: 0.9rem; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    header .container { flex-direction: column; text-align: center; gap: 1rem; }
    nav ul { justify-content: center; margin-top: 1rem; }
    .hero h2 { font-size: 2rem; }
    .hero { padding: 4rem 0; }
    .card { max-width: 100%; }
    .about-split { flex-direction: column; gap: 2rem; }
    .about-split .image-content { width: 100%; min-height: 250px; }
}
/* --- Footer Override (True Grape Purple) --- */
footer {
    background-color: #6A1B9A !important; /* Forces a rich, vibrant grape purple */
}
/* --- Align Bookshop Buttons to Bottom --- */
.card .btn {
    margin-top: auto; /* This magic trick pushes the button to the very bottom of the card */
}
