﻿/* St. Ann's Home - Structure Styles (Layout, Containers, Components, Sections) */

/* Reset and Base Structure */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-6 { flex: 0 0 50%; }
.col-4 { flex: 0 0 33.333%; }
.col-3 { flex: 0 0 25%; }
.col-8 { flex: 0 0 66.666%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* Main content wrapper to push footer down */
main {
    flex: 1;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-orange-dark), var(--primary-orange));
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--accent-background);
    color: var(--text-primary);
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-main {
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo:hover {
    color: var(--accent-background);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(185, 105, 75, 0.8), rgba(88, 162, 145, 0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%2358A291" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--accent-background);
}

/* Content Sections */
.section {
    padding: 4rem 0;
}

.section-light { background-color: var(--light-gray); }
.section-cream { background-color: var(--accent-background); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-orange);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card:nth-child(2n) { border-top-color: var(--secondary-teal); }
.service-card:nth-child(3n) { border-top-color: var(--accent-yellow); }

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--accent-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-orange);
}

.service-card h3 {
    color: var(--primary-orange-dark);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-yellow);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.testimonial-author {
    text-align: right;
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer - Sticky to bottom */
.site-footer {
    background: linear-gradient(135deg, var(--primary-orange-dark), var(--secondary-teal-dark));
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-background);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--accent-background);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 992px) {
    .container { padding: 0 15px; }
    .hero-content h1 { font-size: 2.5rem; }
    .service-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .header-tagline { display: none; }
    .logo { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .row { flex-direction: column; }
    .col, .col-6, .col-4, .col-3, .col-8, .col-9 {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }
    .hero-content h1 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    .service-cards { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }

    /* Header adjustments for mobile */
    .header-top .col-6:nth-child(2) { display: none; }
    .header-top .col-6:nth-child(1) {
        flex: 0 0 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html { font-size: 14px; }
    .container, .container-fluid { padding: 0 10px; }
    .service-card { padding: 1.5rem; }
    .testimonial { padding: 1.5rem; }
    .logo { font-size: 1.2rem; }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer {
        display: none;
    }
    body {
        font-size: 12pt;
        color: black;
    }
    .section { padding: 1rem 0; }
}