/*
Theme Name: TOMFAW
Theme URI: https://tomfaw.com
Author: TOMFAW
Author URI: https://tomfaw.com
Description: A custom WordPress theme for TOMFAW - Trusting Our Maker, Finding A Way. A space for souls healing from emotional abuse and rediscovering their God-given worth.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomfaw
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Base styles */
:root {
    --color-ocean: #a3c9d9;
    --color-sand: #f2e4c9;
    --color-coral: #e8a87c;
    --color-navy: #2d4654;
    --color-offwhite: #f9f7f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f7f4;
    color: #2d4654;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    font-size: 18px;
    background-image: linear-gradient(to bottom, rgba(249, 247, 244, 0.97), rgba(249, 247, 244, 0.97)),
        url('assets/images/wave-bg.svg');
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: bottom;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(163, 201, 217, 0.2), rgba(249, 247, 244, 1));
    border-bottom: 1px solid rgba(163, 201, 217, 0.3);
    position: relative;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2d4654;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.site-title a {
    color: #2d4654;
    text-decoration: none;
}

.site-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #2d4654;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.8;
    opacity: 0.9;
}

/* Navigation styles */
nav {
    background-color: #2d4654;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: #f9f7f4;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #e8a87c;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #e8a87c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #e8a87c;
}

.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f9f7f4;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main content styles */
main {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2d4654;
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2d4654;
    margin-bottom: 20px;
}

.wave-divider {
    height: 20px;
    background-image: url('assets/images/wave-divider.svg');
    background-size: 100% 100%;
    margin: 30px 0;
}

/* Card styles */
.card {
    background-color: rgba(242, 228, 201, 0.2);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #a3c9d9;
    color: #2d4654;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.btn:hover {
    background-color: #e8a87c;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #a3c9d9;
}

.btn-secondary:hover {
    background-color: #a3c9d9;
    color: #2d4654;
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d4654;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(163, 201, 217, 0.5);
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #2d4654;
    background-color: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #a3c9d9;
    box-shadow: 0 0 0 3px rgba(163, 201, 217, 0.3);
}

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

/* Quote styles */
.quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #2d4654;
    border-left: 3px solid #e8a87c;
    padding-left: 20px;
    margin: 30px 0;
    line-height: 1.8;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(163, 201, 217, 0.3);
    background-color: rgba(45, 70, 84, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
    text-align: left;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d4654;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 8px;
}

.footer-link a {
    color: #2d4654;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-link a:hover {
    color: #e8a87c;
    opacity: 1;
}

.footer-bottom {
    font-size: 0.9rem;
    color: #2d4654;
    opacity: 0.7;
    padding-top: 20px;
    border-top: 1px solid rgba(163, 201, 217, 0.3);
}

/* Hero section styles */
.hero {
    text-align: center;
    padding: 20px 0;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Featured posts styles */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2d4654;
}

.post-title a {
    color: #2d4654;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #e8a87c;
}

.post-date {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #e8a87c;
    margin-bottom: 15px;
}

.post-excerpt {
    margin-bottom: 20px;
}

/* Testimonial styles */
.testimonial {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-author {
    text-align: right;
    font-style: italic;
    margin-top: 15px;
    color: #2d4654;
    opacity: 0.8;
}

/* CTA section styles */
.cta {
    text-align: center;
    padding: 20px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Newsletter section styles */
.newsletter {
    text-align: center;
    padding: 20px 0;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
}

/* WordPress specific styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.entry-content {
    margin-bottom: 30px;
}

.entry-meta {
    margin-bottom: 20px;
    font-style: italic;
    color: #e8a87c;
}

.comments-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(163, 201, 217, 0.3);
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
}

.comment-form .submit {
    background-color: #a3c9d9;
    color: #2d4654;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form .submit:hover {
    background-color: #e8a87c;
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        flex: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}
