/* ============================================
   PARISH OF STRAIT-CHEDABUCTO - Main Stylesheet
   Clean, responsive design for church parish
   Professional & Modern Catholic Parish Website
   ============================================ */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9f9;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER STYLES
   ============================================ */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

header img {
    height: 80px;
    width: auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    background-color: #34495e;
    border-bottom: 3px solid #c0392b;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 15px 25px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #c0392b;
    color: #fff;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main {
    background-color: #fff;
    min-height: 400px;
    padding: 40px 20px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 4px;
}

main h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #c0392b;
    padding-bottom: 10px;
}

main h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 15px;
}

main p {
    margin-bottom: 15px;
    text-align: justify;
}

main ul {
    margin-bottom: 15px;
}

main ul li {
    margin-bottom: 10px;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    margin-bottom: 30px;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-section {
    background-color: #ecf0f1;
    padding: 30px;
    border-left: 5px solid #c0392b;
    margin-bottom: 30px;
    border-radius: 4px;
}

.welcome-section h2 {
    border: none;
    margin-bottom: 15px;
    color: #c0392b;
}

.welcome-section p {
    text-align: left;
}

/* ============================================
   IMAGE STYLES
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

main img {
    border: 3px solid #c0392b;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 20px;
    margin-top: 40px;
}

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

.footer-section h3 {
    color: #c0392b;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #c0392b;
    padding-bottom: 8px;
}

.footer-section p,
.footer-section address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 10px;
}

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

.footer-section a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.charity-number {
    font-weight: 700;
    color: #f39c12;
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c0392b;
}

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

.btn-submit {
    background-color: #c0392b;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-submit:active {
    transform: translateY(0);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */
.highlight-box {
    background-color: #ecf0f1;
    padding: 25px;
    border-left: 5px solid #c0392b;
    margin: 20px 0;
    border-radius: 4px;
}

.highlight-box h3 {
    color: #c0392b;
    margin-top: 0;
}

.info-box {
    background-color: #fff3cd;
    padding: 25px;
    border-left: 5px solid #f39c12;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box h3 {
    color: #856404;
    margin-top: 0;
}

.info-box p {
    color: #856404;
}

.info-box a {
    color: #004085;
    font-weight: 600;
}

/* ============================================
   MISSION PAGE SPECIAL STYLES
   ============================================ */
.vision-box {
    background-color: #c0392b;
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 40px 0;
}

.vision-box h2 {
    color: white;
    border: none;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.vision-box p {
    font-size: 1.3rem;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
    text-align: center;
}

.mission-box {
    background-color: #2c3e50;
    color: white;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}

.mission-box h2 {
    color: white;
    border: none;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.mission-box p {
    text-align: center;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.mission-item {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
}

.mission-item h3 {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.mission-item p {
    line-height: 1.7;
    font-size: 1rem;
    text-align: left;
}

/* ============================================
   TIMELINE STYLES
   ============================================ */
.timeline-box {
    background-color: #ecf0f1;
    padding: 25px;
    border-left: 5px solid #c0392b;
    margin: 40px 0;
    border-radius: 4px;
}

.timeline-box h3 {
    color: #c0392b;
    margin-bottom: 15px;
    margin-top: 0;
}

.timeline-box ul {
    list-style: none;
    padding: 0;
    line-height: 2.2;
}

.timeline-box ul li {
    margin-bottom: 10px;
}

.timeline-box ul li strong {
    color: #c0392b;
    font-size: 1.1rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-card {
    background-color: #ecf0f1;
    padding: 25px;
    border-left: 5px solid #c0392b;
    border-radius: 4px;
}

.info-card h3 {
    color: #c0392b;
    margin-bottom: 15px;
    margin-top: 0;
}

.info-card p,
.info-card address {
    line-height: 1.9;
}

.info-card a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #c0392b;
}

/* ============================================
   MAP PLACEHOLDER
   ============================================ */
.map-placeholder {
    background-color: #e9ecef;
    padding: 60px;
    text-align: center;
    border: 2px dashed #c0392b;
    margin-top: 20px;
    border-radius: 4px;
}

.map-placeholder p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.map-placeholder span {
    font-size: 0.9rem;
}

.map-placeholder em {
    font-size: 0.95rem;
    margin-top: 15px;
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 992px) {
    header h1 {
        font-size: 1.6rem;
    }
    
    main h2 {
        font-size: 1.8rem;
    }
    
    main h3 {
        font-size: 1.3rem;
    }
    
    nav ul li a {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }
    
    header img {
        height: 60px;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    main {
        padding: 25px 15px;
        margin: 15px 10px;
    }
    
    main h2 {
        font-size: 1.6rem;
    }
    
    main h3 {
        font-size: 1.2rem;
    }
    
    main p {
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .vision-box,
    .mission-box {
        padding: 25px 20px;
    }
    
    .vision-box p {
        font-size: 1.1rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 0 10px;
    }
    
    .map-placeholder {
        padding: 40px 20px;
    }
    
    .timeline-box ul {
        line-height: 2;
        font-size: 0.95rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }
    
    header img {
        height: 50px;
    }
    
    nav ul li a {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    main {
        padding: 20px 12px;
    }
    
    main h2 {
        font-size: 1.4rem;
    }
    
    main h3 {
        font-size: 1.1rem;
    }
    
    .vision-box p {
        font-size: 1rem;
    }
    
    .btn-submit {
        width: 100%;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header,
    nav,
    footer,
    .btn-submit,
    .contact-form {
        display: none;
    }
    
    main {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
    
    body {
        background-color: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #c0392b;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   SELECTION STYLES
   ============================================ */
::selection {
    background-color: #c0392b;
    color: white;
}

::-moz-selection {
    background-color: #c0392b;
    color: white;
}

/* ============================================
   END OF STYLESHEET
   ============================================ */
