/* Base Styles & Variables */
:root {
    --primary-color: #0067c0;
    --secondary-color: #006dd1;
    --accent-color: #ff4081;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --container-width: 1200px;
    --header-height: 70px;
    --footer-background: #212529;
    --card-background: #fff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease,
                transform var(--transition-speed) ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav a.active, nav a:hover {
    color: var(--primary-color);
}

nav a.active:after, nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Page Headers */
.page-header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.about-header {
    background-image: url('images/about-header.jpg'), 
                      linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
}

.contact-header {
    background-image: url('images/contact-header.jpg'), 
                      linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Post Grid */
.featured-section {
    padding: 3rem 0;
}

.featured-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

.read-more {
    display: inline-block;
    font-weight: 500;
    color: var(--primary-color);
}

.read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Daily Picks Section */
.daily-picks {
    background-color: #fff;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.daily-picks h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.picks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pick-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease;
}

.pick-card:hover {
    transform: translateY(-5px);
}

.pick-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.pick-card h3 {
    font-size: 1.1rem;
    margin: 1rem 1rem 0.5rem;
}

.pick-card p {
    margin: 0 1rem 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background-color: #f1f5f9;
    padding: 3rem 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 0.5rem;
}

.newsletter p {
    margin-bottom: 1.5rem;
}

#newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

#newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

#newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 0 20px;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    font-weight: 500;
}

#newsletter-form button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: #fff;
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    width: 120px;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.75rem;
    color: #adb5bd;
}

.footer-links h3, .footer-contact h3 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    margin-bottom: 0;
}

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

.footer-links a {
    color: #adb5bd;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #adb5bd;
}

.footer-contact i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: #adb5bd;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 1rem;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-buttons button {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
}

#accept-cookies:hover {
    background-color: var(--secondary-color);
}

#customize-cookies, #reject-cookies {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

#customize-cookies:hover, #reject-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-buttons a {
    color: #adb5bd;
    text-decoration: underline;
    margin-left: 0.75rem;
}

.cookie-buttons a:hover {
    color: #fff;
}

/* About Page */
.about-section {
    padding: 3rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 3fr 2fr;
    }
}

.about-text h2 {
    margin-top: 2rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text ul {
    padding-left: 1.5rem;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 100%;
    height: auto;
}

.team-section {
    margin-bottom: 3rem;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1.25rem 0 0.25rem;
}

.team-member p {
    margin: 0 1rem 1rem;
    color: var(--light-text);
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--light-text);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.certifications {
    text-align: center;
}

.certifications h2 {
    margin-bottom: 2rem;
}

.cert-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cert-logos img {
    height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.cert-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* Contact Page */
.contact-section {
    padding: 3rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2, .contact-form-container h2 {
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 1rem;
    color: white;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0.25rem;
    color: var(--light-text);
}

.social-contact h3 {
    margin-bottom: 1rem;
}

.business-hours {
    margin-top: 2rem;
}

.business-hours h3 {
    margin-bottom: 1rem;
}

.business-hours table {
    width: 100%;
}

.business-hours td {
    padding: 0.5rem 0;
    color: var(--light-text);
}

.business-hours td:first-child {
    font-weight: 500;
    color: var(--text-color);
    width: 40%;
}

.contact-form-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

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

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.map-section {
    padding-bottom: 3rem;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.responsive-map {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

.thank-you-message {
    text-align: center;
}

.check-icon {
    color: var(--success-color);
    margin: 0 auto 1rem;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 1.5rem;
}

.close-thank-you {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.close-thank-you:hover {
    background-color: var(--secondary-color);
}

/* Single Post Styles */
.single-post {
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    margin-bottom: 0.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-body {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.post-body h2, .post-body h3 {
    margin-top: 2rem;
}

.post-body ul, .post-body ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.post-tags span {
    font-weight: 500;
}

.post-tags a {
    background-color: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--light-text);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.share-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.share-post span {
    font-weight: 500;
}

.share-post a {
    color: var(--light-text);
}

.share-post a:hover {
    color: var(--primary-color);
}

.related-posts {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.related-posts h3 {
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h4 {
    padding: 1rem;
    font-size: 1rem;
    margin-bottom: 0;
}

.related-post a {
    color: var(--text-color);
}

.related-post a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .post-grid, .picks-container, .team-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-form input {
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    #newsletter-form button {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
}

/* Icon Styles */
.icon-location, .icon-phone, .icon-email {
    display: inline-block;
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}

.icon-location::before {
    content: "📍";
}

.icon-phone::before {
    content: "📞";
}

.icon-email::before {
    content: "✉️";
}
