/*
Description: A professional WordPress theme for Scottish distilleries directory with modern design and responsive layout.
Version: 1.1 (Refactored Palette)
Author: Custom Theme
*/

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #524632; /* OLD: #2c3e50 */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #615543; /* OLD: #555 */
}

a {
    color: #C79A6B; /* OLD: #3498db */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #A37E56; /* OLD: #2980b9 */
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

.col-12, .col-6, .col-4, .col-3 {
    padding: 0 15px;
}

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

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

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #524632; /* OLD: #2c3e50 */
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    font-weight: 500;
    color: #524632; /* OLD: #2c3e50 */
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: #C79A6B; /* OLD: #3498db */
    border-bottom-color: #C79A6B; /* OLD: #3498db */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(82, 70, 50, 0.85), rgba(41, 35, 25, 0.85)), url('assets/hero-section.png'); /* OLD: blue gradient */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(82, 70, 50, 0.08); /* OLD: rgba(0,0,0,0.08) */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
    border: 1px solid #E5DED1; /* OLD: none */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(82, 70, 50, 0.12); /* OLD: rgba(0,0,0,0.15) */
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #524632; /* OLD: #2c3e50 */
}

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

.card-title a:hover {
    color: #C79A6B; /* OLD: #3498db */
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #8A7E6A; /* OLD: #666 */
}

.card-meta i {
    color: #C79A6B; /* OLD: #3498db */
}

.card-description {
    color: #8A7E6A; /* OLD: #666 */
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.stars {
    color: #C79A6B; /* OLD: #f39c12 */
}

.rating-text {
    font-size: 0.9rem;
    color: #8A7E6A; /* OLD: #666 */
}

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

.attributes h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #524632; /* OLD: #2c3e50 */
}

.attribute-list {
    list-style: none;
    padding: 0;
}

.attribute-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #615543; /* OLD: #555 */
}

.attribute-list li i {
    color: #3E5246; /* OLD: #27ae60 */
    margin-right: 0.5rem;
    width: 16px;
}

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

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

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #E5DED1; /* OLD: #e9ecef */
    font-size: 0.9rem;
}

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

.day {
    font-weight: 500;
    color: #524632; /* OLD: #2c3e50 */
}

.time {
    color: #8A7E6A; /* OLD: #666 */
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-item i {
    color: #C79A6B; /* OLD: #3498db */
    width: 16px;
}

/* Dropdown Styles */
.search-section {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(82, 70, 50, 0.08); /* OLD: rgba(0,0,0,0.08) */
}

.dropdown-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.dropdown-group {
    flex: 1;
}

.dropdown-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #524632; /* OLD: #2c3e50 */
}

.dropdown-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5DED1; /* OLD: #e9ecef */
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

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

/* Breadcrumbs */
.breadcrumbs {
    background: transparent; /* OLD: #f8f9fa */
    padding: 1rem 0;
    margin-bottom: 2rem;
}

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

.breadcrumb-list li {
    font-size: 0.9rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #8A7E6A; /* OLD: #666 */
}

.breadcrumb-list a {
    color: #C79A6B; /* OLD: #3498db */
}

.breadcrumb-list .current {
    color: #8A7E6A; /* OLD: #666 */
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #C79A6B; /* OLD: #3498db */
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background: #A37E56; /* OLD: #2980b9 */
    color: white;
}

.nav-link i {
    font-size: 0.9rem;
}

/* Section Styles */
.content-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #524632; /* OLD: #2c3e50 */
}

/* Single Post Styles */
.single-header {
    background: linear-gradient(135deg, #615543, #524632); /* OLD: #2c3e50, #34495e */
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.single-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.single-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(82, 70, 50, 0.08); /* OLD: rgba(0,0,0,0.08) */
    padding: 2rem;
    margin: 2rem 0;
}

.featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-menu a {
    color: #A99D89; /* OLD: #bdc3c7 */
    transition: color 0.3s ease;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .col-4, .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation li {
        margin: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .dropdown-container {
        flex-direction: column;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .col-4, .col-3, .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 1rem;
    }
}

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #C79A6B; /* OLD: #3498db */
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: #A37E56; /* OLD: #2980b9 */
    color: white;
}

.btn-secondary {
    background: #8A7E6A; /* OLD: #95a5a6 */
}

.btn-secondary:hover {
    background: #615543; /* OLD: #7f8c8d */
}