/*
Theme Name: CSAAC Custom Theme
Theme URI: https://csaac.org
Author: CSAAC
Author URI: https://csaac.org
Description: Custom theme for CSAAC with branded header navigation
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csaac-custom
*/

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

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== MAIN CONTENT AREA ===== */
.site-main {
    /* No padding - let sections control their own spacing */
}

.entry-content {
    max-width: 100%;
}

/* ===== LINKS ===== */
a {
    color: #06505c;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #078199;
}

/* ===== IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary,
.btn-secondary,
.btn-accent {
    background: #cbb777;
    color: #06505c;
    font-weight: 600;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-accent:hover {
    background: #b8a566;
    transform: translateY(-2px);
}

/* WordPress button compatibility */
.wp-block-button__link,
a.button,
.button {
    padding: 1rem 2rem;
    background: #cbb777;
    color: #06505c;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.wp-block-button__link:hover,
a.button:hover,
.button:hover {
    background: #b8a566;
    transform: translateY(-2px);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ===== SECTION STYLES ===== */
section {
    margin-bottom: 0;
}

.section-title {
    font-size: 2.2rem;
    color: #06505c;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #06505c 0%, #078199 100%);
    color: white;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

/* ===== SERVICES CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #06505c;
    display: flex;
    flex-direction: column;
}

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

.service-card h3 {
    color: #06505c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card h3.school-title {
    font-size: 1.25rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-card .btn {
    width: 100%;
    text-align: center;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
}

/* ===== SERVICES FLIP CARDS ===== */
.services-flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.services-flip-card {
    perspective: 1000px;
    height: 300px;
    cursor: pointer;
}

.services-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.services-flip-card.flipped .services-flip-inner {
    transform: rotateY(180deg);
}

.services-flip-front, .services-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.services-flip-front img,
.services-flip-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-flip-back {
    transform: rotateY(180deg);
}

/* ===== JOIN MISSION SECTION ===== */
.join-mission {
    background: linear-gradient(135deg, #06505c 0%, #078199 100%);
    color: white;
    padding: 4rem 2rem;
}

.join-mission .section-title,
.join-mission .section-subtitle {
    color: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.mission-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
}

.mission-card p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.mission-card .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: #06505c;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    border: none;
    background: none;
    padding: 0;
}

.testimonial-author {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ===== DONATE SECTION ===== */
.donate-section {
    background: linear-gradient(135deg, #06505c 0%, #078199 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.donate-section .section-title {
    color: white;
}

.donate-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== NEWS SECTION ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background: white;
    border-left: 4px solid #cbb777;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item h3 {
    color: #06505c;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer,
.site-footer {
    background: #06505c;
    color: white;
    padding: 3rem 2rem 1rem;
    font-size: 1.1rem;
}

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

.footer-section h3 {
    color: #cbb777;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #cbb777;
}

.newsletter-signup input {
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.newsletter-signup button {
    padding: 0.75rem 1.5rem;
    background: #cbb777;
    color: #06505c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-signup button:hover {
    background: #b8a566;
}

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

.social-links a {
    display: inline-block;
    width: 55px;
    height: 55px;
    background: #cbb777;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    transition: background 0.3s;
    color: #06505c;
    font-weight: bold;
    font-size: 1.3rem;
}

.social-links a:hover {
    background: #b8a566;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
}

/* ===== CALLOUT BAR ===== */
.callout-bar {
    background: #cbb777;
    color: #06505c;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
    border-radius: 5px;
}

.callout-bar strong {
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* ===== BLOCKQUOTES (general) ===== */
blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: #06505c;
    margin: 2rem 0;
    line-height: 1.8;
    padding: 1.5rem 2rem;
    border-left: 5px solid #cbb777;
    background: #f8f9fa;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #06505c;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #06505c;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #06505c;
}

/* ===== WORDPRESS ALIGNMENTS ===== */
.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

figure {
    margin: 1.5rem 0;
}

figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== LISTS ===== */
ul, ol {
    margin: 0 0 1.5em 1.5em;
    padding: 0;
}

li {
    margin-bottom: 0.5em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .hero-text .button-group {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-flip-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .alignleft,
    .alignright {
        float: none;
        margin: 1rem auto;
    }
}
