/*
Theme Name: Dunbow Country Kennels
Author: You
Description: A custom theme for Dunbow Country Kennels.
Version: 1.0
*/

/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
html, body {
    scroll-behavior: smooth !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
        
body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Hide default WordPress page titles */
.page-title, .entry-title, .type-page > h1 {
    display: none !important;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: #ffffff;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 30px;
}

.nav-links li {
    list-style: none !important;
    position: relative; 
}

.nav-links a {
    text-decoration: none;
    display: block;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e67e22;
}

/* Dropdown Sub-Menu */
.nav-links .sub-menu {
    display: none !important; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff; 
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 5px;
    flex-direction: column; 
}

.nav-links li:hover > .sub-menu {
    display: flex !important; 
}

.nav-links .sub-menu li {
    width: 100%;
    margin: 0; 
}

.nav-links .sub-menu a {
    padding: 10px 20px;
    color: #2c3e50; 
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links .sub-menu a:hover {
    background-color: #f8f9fa; 
    color: #e67e22; 
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-book {
    background-color: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-book:hover {
    background-color: #d35400;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: white;
    color: #2c3e50;
}

/* WPForms Button Override */
div.wpforms-container-full .wpforms-form button[type=submit] {
    background-color: #e67e22 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    border: none !important;
    width: 100% !important;
    font-size: 1rem !important;
    transition: background-color 0.3s !important;
}

div.wpforms-container-full .wpforms-form button[type=submit]:hover {
    background-color: #d35400 !important;
}

/* =========================================
   4. REUSABLE SECTIONS (Cards & Grids)
   ========================================= */
.services-section {
    padding: 80px 20px;
    text-align: center;
}

.bg-white { background-color: #ffffff; }
.bg-light { background-color: #f8f9fa; }

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #7f8c8d;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.grid-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    border-radius: 10px;
    padding: 40px 30px;
    width: 350px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s;
}

.card-light { background-color: #f8f9fa; }
.card-white { background-color: #ffffff; }

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

.card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    display: block;
}

/* Service Image Cards (Grooming/Boarding) */
.card.service-card {
    padding: 0; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    border-top: none;
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 4px solid #e67e22; 
}

.service-card-content {
    padding: 30px; 
    flex-grow: 1;
}

.service-card-content h3 {
    margin-top: 0;
}

/* =========================================
   5. PAGE-SPECIFIC STYLES
   ========================================= */

/* --- HOMEPAGE HERO --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1583337130417-3346a1be7dee?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 1000px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- GROOMING & PRICING --- */
.grooming-hero-header {
    background-color: #f8f9fa;
    padding: 30px 40px; 
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
    border-left: 5px solid #2c3e50; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.grooming-hero-header .section-subtitle {
    color: #555; 
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    background-color: #ffffff;
}

.spa-pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.spa-pricing-table th {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.spa-pricing-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 1.05rem;
}

.spa-pricing-table tr:hover {
    background-color: #f8f9fa;
}

.spa-pricing-table td:first-child {
    text-align: left;
    font-weight: bold;
    color: #2c3e50;
}

.grooming-disclaimer {
    margin-top: 30px;
    font-style: italic;
    color: #777;
    font-size: 0.95rem;
    text-align: center;
}

/* --- ABOUT US --- */
.about-intro-box {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 50px auto;
}

.about-intro-box h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-intro-box p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.about-split-section {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.about-split-text {
    flex: 1;
    padding: 40px;
}

.about-split-text h3 {
    color: #e67e22;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-split-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-split-image {
    flex: 1;
    width: 100%;
}

.about-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    display: block;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.about-feature-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid #2c3e50;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

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

.about-feature-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.about-feature-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- POLICIES --- */
.policies-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
}

.policies-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
    margin-bottom: 50px;
}

.policy-card {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #2c3e50; 
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.policy-card.policy-financial {
    border-left-color: #e67e22; 
}

.policy-card h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 10px;
}

.policy-card p, 
.policy-card ul {
    color: #555555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.policy-card ul {
    margin-left: 20px;
}

.policy-card p:last-child {
    margin-bottom: 0;
}

.policy-alert {
    background-color: #fce4e4;
    color: #c0392b;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 15px;
    border: 1px solid #f5c6c6;
}

/* --- FAQ SECTION --- */
.faq-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
}

.faq-image-wrapper {
    flex: 1;
    min-width: 300px; 
    position: sticky; 
    top: 100px; 
}

.faq-classy-image {
    width: 100%;
    height: auto;
    border-radius: 15px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    object-fit: cover;
}

.faq-accordion {
    flex: 1.2; 
    min-width: 300px;
    margin: 0; 
    padding: 0;
}

.faq-item {
    background-color: #f8f9fa;
    border-left: 5px solid #2c3e50;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none; 
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: #e67e22; 
    transition: transform 0.3s ease;
}

details[open] .faq-question:after {
    content: '−';
    color: #2c3e50;
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
}

.faq-answer p {
    margin-bottom: 1.5em; 
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px; 
    margin: 0 auto;
    text-align: left;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1.5; 
    min-width: 300px;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-form-container {
    flex: 1; 
    min-width: 300px;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info strong {
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #e67e22;
}

.full-width-info-block {
    max-width: 1200px;
    margin: 40px auto 0 auto; 
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.full-width-info-block h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.full-width-info-block p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* THE FIX: Bracket is safely placed! */
.full-width-info-block p:last-child {
    margin-bottom: 0;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
    border-top: 5px solid #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.reviewer {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
        
.reviewer img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

footer a {
    color: #e67e22;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #f39c12;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* =========================================
   7. DESKTOP MEDIA QUERIES (Responsive)
   ========================================= */
@media (min-width: 900px) {
    .about-split-section {
        flex-direction: row; 
    }
    .about-features-grid {
        grid-template-columns: repeat(4, 1fr); 
    }
    .policies-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}