/* Color Palette */
:root {
    --primary-teal: #1F4E5F; /* Deep Teal/Navy */
    --accent-gold: #E3A72F;  /* Warm Gold (CTA) */
    --accent-orange: #F2B36D; /* Soft Orange (Accents) */
    --background-cream: #FAF7F2; /* Off-white Cream */
    --text-dark-slate: #2E2E2E; /* Dark Slate (Body Text) */
    --light-gray: #f0f0f0;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7; /* Increased line spacing */
    color: var(--text-dark-slate);
    background-color: var(--background-cream);
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    font-size: 1.15em; /* Slightly larger base font size */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif; /* Use Inter for headings */
    color: var(--primary-teal);
    margin-bottom: 0.8em;
    line-height: 1.2;
    font-weight: 700; /* Bold for main headings */
}

h1 { font-size: 3em; } /* Increased font size */
h2 { font-size: 2.6em; } /* Increased font size */
h3 { font-size: 2.2em; } /* Increased font size */
h4 { font-size: 1.8em; font-weight: 600; } /* SemiBold, Increased font size */

p {
    margin-bottom: 1em;
    font-size: 1.15em; /* Consistent with body base font size */
    line-height: 1.7; /* Generous line spacing */
    font-weight: 400; /* Regular for body text */
}

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

a:hover {
    color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px; /* Rounded buttons */
    font-weight: 500; /* Medium for buttons */
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-size: 1.15em; /* Larger button text */
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #d1952a; /* Slightly darker gold */
    color: var(--primary-teal); /* Changed text color on hover */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-teal);
    color: var(--white);
    border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
    background-color: #1a3e4a; /* Slightly darker teal */
    color: var(--accent-gold); /* Changed text color on hover */
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo { /* This now applies to the div containing the logo */
    margin: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--white); /* Ensure text color is white */
}

.header-logo {
    max-height: 60px; /* Adjust as needed */
    width: auto;
    vertical-align: middle;
}

.site-title-text {
    font-size: 1.8em; /* Adjust as needed */
    margin-left: 15px; /* Space between logo and text */
    color: var(--white); /* Ensure text color is white */
    margin-bottom: 0; /* Remove default h1 margin */
    line-height: 1.2; /* Ensure consistent line height */
}

/* Removed .logo a and .logo a:hover styles as they are for text links */

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--white);
    font-weight: 500; /* Medium for navigation */
    font-size: 1.15em; /* Larger navigation text */
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.bg-cream {
    background-color: var(--background-cream);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.25em; /* Increased font size */
    color: #555;
    line-height: 1.7;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(31, 78, 95, 0.7), rgba(31, 78, 95, 0.7)), url('https://via.placeholder.com/1920x800/1F4E5F/FAF7F2?text=Happy+Dog+Training') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero h2 {
    color: var(--white);
    font-size: 3.6em; /* Adjusted for single line */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.6em; /* Increased font size */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* About Section */
.about-section h3 {
    text-align: center;
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 2; /* Reverted to original flex value */
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5em;
}

.about-image-container { /* This class now holds the video link */
    flex: 1; /* Reverted to original flex value */
    min-width: 300px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.about-logo {
    max-width: 200px; /* Adjust as needed */
    height: auto;
    margin-bottom: 20px; /* Space between logo and heading */
}

.about-image-container h4 {
    color: var(--primary-teal);
    margin-bottom: 20px;
}

/* The .about-terri-image and .image-caption classes are no longer used for this section */
/*
.about-terri-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}
*/

.about-video-link {
    margin-top: 20px;
}

.video-button .fas {
    margin-right: 8px;
    font-size: 1.2em; /* Make icon slightly larger */
    vertical-align: middle;
}

/* Reviews Section */
.reviews-section h3 {
    text-align: center;
    margin-bottom: 50px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.review-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 5px solid var(--accent-orange);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-name {
    font-weight: 600; /* SemiBold */
    color: var(--primary-teal);
    font-size: 1.15em; /* Increased font size */
}

.review-source {
    font-size: 0.95em; /* Increased font size */
    color: #777;
    display: block;
}

.review-text {
    font-style: italic;
    color: #444;
    margin-bottom: 0;
    font-size: 1.1em; /* Increased font size */
    line-height: 1.7;
}

.read-more-reviews {
    text-align: center;
    margin-top: 40px;
}

/* Services Section */
.services-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--primary-teal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h4 {
    color: var(--primary-teal);
    margin-bottom: 15px;
    font-size: 1.5em; /* Increased font size */
}

.service-card p {
    font-size: 1.05em; /* Increased font size */
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.service-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 1em; /* Increased font size */
    color: #666;
    line-height: 1.6;
}

.service-card ul li::before {
    content: '✓';
    color: var(--accent-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.call-to-action {
    text-align: center;
    margin-top: 50px;
}

/* Contact Section */
.contact-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-item {
    background-color: var(--white);
    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1 1 320px; /* Adjusted min-width for better fit */
    max-width: 450px; /* Increased max-width to accommodate long email */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 5px solid var(--accent-gold);
}

.contact-item .icon {
    font-size: 2.5em;
    color: var(--primary-teal);
    margin-bottom: 15px;
    display: block;
}

.contact-item p {
    margin-bottom: 0;
    font-size: 1.15em; /* Increased font size */
    color: var(--text-dark-slate);
    line-height: 1.7;
    /* word-break: break-word; Removed as max-width should handle it, and we want single line */
}

.contact-item p strong {
    color: var(--primary-teal);
}

.contact-item a {
    color: var(--primary-teal);
    font-weight: 600; /* SemiBold */
    white-space: nowrap; /* Ensure email link stays on a single line */
}

.contact-item a:hover {
    color: var(--accent-gold);
}

.contact-note {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 1.15em; /* Increased font size */
    margin-top: 20px;
    line-height: 1.7;
}

/* New styles for Contact Hours */
.contact-item.contact-hours ul {
    list-style: none;
    padding: 0;
    width: 100%; /* Ensure list takes full width of its parent */
    margin-top: 10px;
}

.contact-item.contact-hours ul li {
    margin-bottom: 5px;
    font-size: 1.05em; /* Increased font size */
    color: var(--text-dark-slate);
    display: flex;
    justify-content: space-between;
    padding: 0 10px; /* Add some padding inside the list items */
    line-height: 1.6;
    white-space: nowrap; /* Ensure day and time stay on a single line */
}

.contact-item.contact-hours ul li:last-child {
    margin-bottom: 0;
}

.contact-item.contact-hours .icon {
    margin-bottom: 15px; /* Keep icon margin consistent */
}

/* Utility class to hide elements */
.hidden {
    display: none !important;
}


/* Footer */
.footer {
    background-color: var(--primary-teal);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 1em; /* Increased font size */
    line-height: 1.6;
    display: flex; /* To center items */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
}

.footer-logo {
    max-width: 150px; /* Adjust as needed */
    height: auto;
    margin-bottom: 15px; /* Space between logo and copyright text */
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 3em; /* Adjusted for Inter and single line */
    }
    .hero p {
        font-size: 1.4em; /* Adjusted for Inter */
    }
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    .about-text, .about-image-container { /* Reverted to original media query styles */
        flex: none;
        width: 100%;
        max-width: 600px;
    }
    .review-grid, .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .contact-item {
        max-width: 100%; /* Allow full width on smaller screens */
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 15px;
    }
    .logo-link {
        flex-direction: column; /* Stack logo and text vertically on small screens */
    }
    .site-title-text {
        font-size: 1.5em; /* Smaller text on small screens */
        margin-left: 0;
        margin-top: 10px; /* Space between stacked logo and text */
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 0 10px 10px 10px; /* Adjusted: Reduced horizontal margin for nav items */
    }
    .hero {
        padding: 100px 0;
        min-height: 500px;
    }
    .hero h2 {
        font-size: 2.5em; /* Adjusted for Inter and single line */
    }
    .hero p {
        font-size: 1.2em; /* Adjusted for Inter */
    }
    h1 { font-size: 2.4em; } /* Adjusted for Inter */
    h2 { font-size: 2.2em; } /* Adjusted for Inter */
    h3 { font-size: 2em; } /* Adjusted for Inter */
    h4 { font-size: 1.6em; } /* Adjusted for Inter */
    p { font-size: 1.05em; } /* Adjusted for Inter */
    .section-padding {
        padding: 60px 0;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    .contact-item {
        max-width: 100%;
    }
    .contact-item a { /* Added: Allow email text to wrap */
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .main-nav ul li {
        margin: 0 5px 10px 5px; /* Adjusted: Further reduced horizontal margin for nav items */
    }
    .hero h2 {
        font-size: 2em; /* Adjusted for Inter and single line */
    }
    .hero p {
        font-size: 1.1em; /* Adjusted for Inter */
    }
    .btn {
        padding: 12px 20px;
        font-size: 1.05em; /* Adjusted for Inter */
    }
    .review-grid, .service-grid {
        grid-template-columns: 1fr;
    }
    .review-card, .service-card, .contact-item {
        padding: 20px;
    }
    /* .logo { font-size: 1.6em; } This was for text logo, no longer needed */
    .site-title-text {
        font-size: 1.3em; /* Even smaller text on very small screens */
    }
}