/*
Theme Name: Kathleen Vaught PC Custom
Author: Your Name
Description: Clean, modern, responsive custom theme for Kathleen Vaught P.C.
Version: 1.1
*/

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f5f7;
}

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

/* Header & Logo */
.main-header {
    background: linear-gradient(135deg, #1e2530 0%, #0f131a 100%);
    color: #fff;
    padding: 25px 0;
    border-bottom: 3px solid #8a1529; /* Elegant maroon border line */
}

.header-flex {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-kv {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    border: 2px solid #fff;
    padding: 2px 10px;
    letter-spacing: 2px;
}

.logo-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.sub-logo {
    font-size: 0.8rem;
    color: #a0aab5;
    letter-spacing: 4px;
    display: block;
}

/* Navigation */
.main-nav {
    background-color: #4a3c31; /* Original dark brown accent */
}

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

.main-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #8a1529; /* Maroon active state */
}

/* Hero Section */
.hero-banner {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e1e4e8;
}

.hero-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: stretch;
}

.profile-pic img {
    width: 100%;
    height: auto;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero-graphic {
    background: linear-gradient(rgba(30, 37, 48, 0.4), rgba(15, 19, 26, 0.7)), 
                url('public/banner.png') no-repeat center center;
    background-size: cover;
    height: 100%;
    min-height: 250px; /* Gives it great presence on desktop */
    display: flex;
    align-items: center; /* Vertically centers the text */
    justify-content: center; /* Horizontally centers the text */
    padding: 30px;
    border-radius: 4px; /* Softens the sharp edges slightly */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.overlay-text {
    color: #ffffff;
    font-family: 'Cinzel', serif; /* Uses the elegant legal serif font */
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); 
}

/* Main Layout (Two Column) - Flexbox Powered */
.main-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Content Area */
.content-area {
    flex: 2 !important; /* Takes up 2/3 of the screen width */
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    min-width: 0; /* Prevents long words/links from breaking layout */
}

.content-area h2 {
    font-family: 'Cinzel', serif;
    color: #8a1529; /* Red highlight header */
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #f4f5f7;
    padding-bottom: 10px;
}

.content-area p {
    margin-bottom: 20px;
    color: #4a4a4a;
}

.inline-link {
    color: #8a1529;
    font-weight: 600;
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

.disclaimer {
    border-left: 4px solid #8a1529;
    padding-left: 15px;
    font-style: italic;
    color: #666;
    margin-top: 30px;
}

/* Sidebar */
.sidebar {
    flex: 1 !important; /* Takes up 1/3 of the screen width */
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    min-width: 300px; /* Keeps sidebar sharp and readable */
}

.sidebar-box {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.sidebar-box h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #1e2530;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* Question Search bar */
.question-box form {
    display: flex;
    gap: 10px;
}

.question-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.question-box button {
    background-color: #8a1529;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.question-box button:hover {
    background-color: #6a101f;
}

/* Map & Contact Box */
.phone-number a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8a1529;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.map-container img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

.map-container a {
    text-decoration: none;
    display: block;
    position: relative;
}

.map-label {
    display: block;
    text-align: center;
    background: #1e2530;
    color: #fff;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 0 0 4px 4px;
}

/* Footer */
.main-footer {
    background-color: #1e2530;
    color: #a0aab5;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
}

/* --- Custom Contact Form Styles --- */
.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.custom-contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a3c31;
}

/* Inputs & Textarea Styling */
.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d3d7dc;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background-color: #fafbfc;
    transition: all 0.3s ease;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    border-color: #8a1529;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 5px rgba(138, 21, 41, 0.2);
}

.custom-contact-form textarea {
    height: 160px;
    resize: vertical;
}

/* Captcha Block (Matches the original layout) */
.captcha-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 200px;
}

.captcha-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.captcha-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    font-weight: bold;
    color: #333;
}

/* Style the tiny math input box */
.custom-contact-form .wpcf7-quiz {
    width: 60px !important;
    text-align: center;
    padding: 8px !important;
    border: 1px solid #d3d7dc;
    border-radius: 4px;
}

/* Submit & Reset Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Standardizing CF7 Submit button & Native Reset button */
.custom-contact-form .btn-submit,
.custom-contact-form .btn-reset {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

/* Maroon Submit Button */
.custom-contact-form .btn-submit {
    background-color: #8a1529;
    color: #ffffff;
}

.custom-contact-form .btn-submit:hover {
    background-color: #6a101f;
}

/* Grey Reset Button */
.custom-contact-form .btn-reset {
    background-color: #e1e4e8;
    color: #4a4a4a;
}

.custom-contact-form .btn-reset:hover {
    background-color: #d1d5db;
}

/* Adjust layout spacing for CF7 validation messages */
.wpcf7-not-valid-tip {
    color: #8a1529;
    font-size: 0.8rem;
    margin-top: 5px;
}

.wpcf7-response-output {
    border-radius: 6px;
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
}

/* 📱 Responsive Design (Mobile / Tablet Media Queries) */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-pic img {
        max-width: 200px;
        margin: 0 auto;
    }

    .main-layout {
        flex-direction: column !important; /* Stacks column on tablet and mobile */
    }

    .content-area,
    .sidebar {
        width: 100% !important;
        flex: none !important;
        min-width: 100% !important;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}