/*
Theme Name: Churches in Australia - Sonnet4
Description: A professional directory theme for Churches in Australia
Version: 1.0
Author: Custom Theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: #3498db;
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(52, 152, 219, 0.8), rgba(44, 62, 80, 0.8)), url('assets/hero-section.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Layouts */
.cards-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.cards-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.cards-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

.card-title a:hover {
    color: #3498db;
}

.card-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-description {
    color: #555;
    line-height: 1.5;
}

/* Rating Display */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.stars {
    color: #f39c12;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

/* Work Hours */
.work-hours {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.work-hours h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Contact Info */
.contact-info {
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.contact-item i {
    width: 20px;
    color: #3498db;
}

/* Attributes */
.attributes {
    margin: 1rem 0;
}

.attributes h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.attribute-group {
    margin-bottom: 1rem;
}

.attribute-group h5 {
    color: #34495e;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.attribute-list {
    list-style: none;
    padding-left: 1rem;
}

.attribute-list li {
    padding: 0.25rem 0;
    color: #555;
}

.attribute-list li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
}

/* Dropdowns */
.dropdown-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.dropdown-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dropdown-group {
    flex: 1;
    min-width: 200px;
}

.dropdown-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.dropdown-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.dropdown-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li:not(:last-child):after {
    content: "›";
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumb-list a {
    text-decoration: none;
    color: #3498db;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* Navigation Links */
.nav-links {
    margin: 2rem 0;
}

.nav-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background: #2980b9;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.section-title.h3 {
    font-size: 1.5rem;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 1rem;
}

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

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cards-grid.cols-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cards-grid.cols-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .dropdown-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.hidden {
    display: none;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}
