/* Basic Reset & Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%; /* Slightly wider for better spacing */
    max-width: 1200px; /* Increased max-width */
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #005f73; /* Dark teal */
    color: #fff;
    padding-top: 15px; /* Adjusted padding */
    padding-bottom: 10px;
    min-height: 70px;
    border-bottom: #0a9396 4px solid; /* Slightly thicker border */
}

/* Header Top and Navigation Separator */
.header-divider {
    height: 1px;
    background: rgba(233, 216, 166, 0.3); /* Light gold with transparency */
    margin: 8px 0 5px 0;
    width: 100%;
    clear: both;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px; /* Slightly smaller nav text */
    transition: color 0.3s ease;
}

header ul {
    padding: 0;
    list-style: none;
    text-align: center;
    margin-top: 10px; /* Increased spacing from the top branding */
}

header li {
    display: inline-block; /* Use inline-block for better control */
    padding: 0 12px; /* Adjusted spacing */
    margin-bottom: 5px; /* Spacing for potential wrapping */
}

header #branding {
    float: left;
    margin-top: 5px;
    width: 100%; /* Full width to accommodate all elements */
    margin-bottom: 0; /* No spacing between branding and divider */
}

header #branding h1 {
    margin: 0;
    font-size: 26px; /* Slightly larger */
    font-weight: bold;
}
header #branding h1 .highlight {
    color: #e9d8a6; /* Light gold highlight */
    font-weight: bold;
}

/* Enhanced Logo Styling with Two-Tone Tagline */
.branding-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between sections */
    width: 100%;
    justify-content: space-between;
}

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

.logo-image {
    max-height: 60px; /* Adjust height as needed */
    width: auto;
    display: block;
    margin: 0 0 4px 0;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

/* Two-tone tagline container */
.logo-tagline-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    line-height: 1.2;
}

/* First part of tagline - "Florida's" */
.logo-tagline-first {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #ee9b00; /* Orange/gold to match buttons */
    letter-spacing: 0.5px;
    font-weight: 700; /* Bold */
    text-transform: none;
    display: inline-block;
    margin-right: 4px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    transition: color 0.3s ease;
}

/* Second part of tagline - "Advanced Asthma Clinic" */
.logo-tagline-second {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #e9d8a6; /* Light gold, original highlight color */
    letter-spacing: 0.5px;
    font-weight: 600; /* Semi-bold */
    text-transform: none;
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    transition: color 0.3s ease;
}

/* Hover effects for the logo container */
.logo-container:hover .logo-tagline-first {
    color: #ffffff; /* White on hover */
}

.logo-container:hover .logo-tagline-second {
    color: #ee9b00; /* Orange/gold on hover */
}

/* Doctor credentials styling with photo */
.doctor-credentials {
    display: flex;
    flex-direction: column;
    border-left: 2px solid rgba(233, 216, 166, 0.3); /* Subtle separator */
    padding-left: 20px;
    margin-left: 5px;
}

.credential-with-photo {
    display: flex;
    align-items: center;
    gap: 15px; /* Increased gap between text and photo */
}

.credential-content {
    display: flex;
    flex-direction: column;
}

.credential-photo {
    flex-shrink: 0;
}

.header-doctor-photo {
    width: 70px; /* Increased from 50px */
    height: 70px; /* Increased from 50px */
    border-radius: 50%;
    border: 2px solid #ee9b00; /* Orange/gold border */
    box-shadow: 0 3px 6px rgba(0,0,0,0.2); /* Enhanced shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover; /* Ensures the image fills the circle while maintaining aspect ratio */
    object-position: center; /* Centers the image */
}

.credential-with-photo:hover .header-doctor-photo {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* Deeper shadow on hover */
}

.credential-specialty {
    font-size: 16px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.credential-doctor {
    font-size: 15px;
    color: #e9d8a6; /* Light gold */
}

.credential-doctor strong {
    font-weight: 700;
    color: #ee9b00; /* Orange/gold for emphasis */
    letter-spacing: 0.5px;
}

/* Contact Information Styling for Header */
.header-contact-info {
    display: flex;
    flex-direction: column;
    margin-left: auto; /* Push to far right */
    padding-left: 20px;
    border-left: 2px solid rgba(233, 216, 166, 0.3); /* Subtle separator */
    font-size: 14px;
    text-align: right;
}

.contact-item {
    margin-bottom: 3px;
    white-space: nowrap;
}

.contact-label {
    color: #e9d8a6; /* Light gold */
    font-weight: 600;
    margin-right: 4px;
}

.contact-value {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.contact-value:hover {
    color: #ee9b00; /* Orange/gold on hover */
    text-decoration: underline;
}

/* Legacy logo tagline style (keeping for compatibility) */
.logo-tagline {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #e9d8a6; /* Light gold color to match theme */
    letter-spacing: 0.5px;
    font-weight: 300;
    text-transform: none;
    display: block;
    margin-top: -2px;
}
/* End Logo Styling */

header nav {
    float: right;
    margin-top: 5px; /* Reduced since we're using the divider */
    clear: both; /* Force nav below the header elements */
    width: 100%; /* Full width for proper centering */
}

header .highlight, header .current a {
    color: #e9d8a6; /* Light gold highlight */
    font-weight: bold;
}

header a:hover {
    color: #ee9b00; /* Orange hover */
}

/* Clearfix for header */
header::after {
  content: "";
  display: table;
  clear: both;
}

/* Main Content Area */
main {
    padding: 30px 0;
}

main h1, main h2, main h3 {
    color: #005f73; /* Dark teal headings */
    margin-bottom: 15px;
    line-height: 1.3;
}

main h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}
 main h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #a8dadc; /* Light blue underline */
    padding-bottom: 5px;
    margin-bottom: 20px;
}
 main h3 {
     font-size: 1.4em;
 }

section {
    background: #fff;
    padding: 30px; /* Increased padding */
    margin-bottom: 30px;
    border-radius: 8px; /* More rounded corners */
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 6px; /* Rounded image corners */
}

/* Hero Section Specifics */
 #hero .lead {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

/* Dr. Hull Image Styling */
.doctor-intro {
    overflow: hidden; /* Contain floats */
    margin-bottom: 15px;
}
.doctor-image {
    float: left;
    max-width: 180px; /* Increased from 150px to 180px */
    height: auto;
    border-radius: 50%; /* Circular image */
    margin: 0 25px 10px 0; /* Increased right margin */
    border: 4px solid #0a9396; /* Thicker border */
    box-shadow: 0 3px 10px rgba(0,0,0,0.15); /* Added subtle shadow */
}

/* Special styling for Dr. Hull's image on index page */
#hero .doctor-image {
    max-width: 220px; /* Even larger on index page */
    margin: 0 30px 15px 0; /* More space around the image */
}

.doctor-intro p {
    margin-left: 220px; /* Increased space for the image (from 170px) */
    padding-top: 10px; /* Align text better vertically */
    font-size: 1.05em; /* Slightly larger text */
}


/* Model Viewer */
model-viewer {
    width: 100%;
    height: 450px; /* Slightly taller */
    margin: 25px auto;
    display: block;
    border-radius: 8px;
    background-color: #e8f0f2;
    border: 1px solid #ccc;
}

/* Buttons */
.button {
    display: inline-block;
    background: #ee9b00; /* Orange */
    color: #fff;
    padding: 12px 25px; /* Larger padding */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 5px; /* Spacing around buttons */
}

.button:hover {
    background: #ca6702; /* Darker orange */
    color: #fff;
    transform: translateY(-2px); /* Slight lift effect */
}

/* Forms */
.form-group {
    margin-bottom: 20px; /* Increased spacing */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #005f73;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px; /* Increased padding */
    border: 1px solid #ccc;
    border-radius: 5px; /* More rounded */
    font-size: 15px;
    transition: border-color 0.3s ease;
}
 .form-group input:focus, .form-group textarea:focus {
     border-color: #0a9396; /* Teal focus border */
     outline: none;
 }


.form-group textarea {
    height: 140px; /* Taller textarea */
    resize: vertical;
}

/* Footer */
footer {
    padding: 25px;
    margin-top: 30px;
    color: #fff;
    background-color: #0a9396; /* Medium teal */
    text-align: center;
    font-size: 0.9em;
    line-height: 1.5;
}
 footer p {
     margin-bottom: 5px;
 }

/* Success Stories / Quotes */
blockquote {
    border-left: 5px solid #ee9b00; /* Orange border */
    margin: 2em 10px; /* Increased margin */
    padding: 1em 15px; /* Increased padding */
    font-style: italic;
    background-color: #fdf8e9; /* Light yellow background */
    border-radius: 5px;
}

blockquote p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

blockquote footer {
    background: none;
    color: #555;
    padding: 0;
    margin: 0;
    text-align: right;
    font-style: normal;
    font-weight: bold;
}

/* Lists */
ul, ol {
    margin-left: 25px; /* Increased indent */
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px; /* Increased spacing */
}

/* Responsive adjustments */
@media(max-width: 1200px) {
    .branding-container {
        flex-wrap: wrap;
    }
    
    .header-contact-info {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 5px;
        text-align: center;
        order: 3; /* Move to bottom in responsive layout */
        width: 100%;
        border-top: 1px solid rgba(233, 216, 166, 0.3);
        padding-top: 5px;
    }
    
    .contact-item {
        display: inline-block;
        margin-right: 15px;
        margin-left: 15px;
    }
}

@media(max-width: 992px) {
    /* For tablets and smaller screens */
    .branding-container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .doctor-credentials {
        border-left: none;
        border-top: 1px solid rgba(233, 216, 166, 0.3);
        padding-left: 0;
        padding-top: 5px;
        margin-left: 0;
        text-align: center;
    }
    
    /* Center the doctor photo in tablet view */
    .credential-with-photo {
        justify-content: center;
    }
    
    /* Adjust Dr. Hull's image for medium screens */
    #hero .doctor-image {
        max-width: 200px; /* Slightly smaller on tablets */
    }
    
    .doctor-intro p {
        margin-left: 210px; /* Adjusted for tablet */
    }
    
    /* Keep header doctor photo a good size on tablets */
    .header-doctor-photo {
        width: 65px;
        height: 65px;
    }
}


/* =====================
   Hamburger Nav Toggle
   ===================== */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    margin-right: 8px;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 34px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #e9d8a6;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animate bars to X when open */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media(max-width: 768px) {
    header {
        position: relative;
    }
    header #branding {
        float: none;
        text-align: center;
        width: 100%;
        padding-right: 50px; /* Make room for hamburger button */
    }
    header nav {
        float: none;
        width: 100%;
        position: relative;
    }

    /* Show hamburger button on mobile */
    .nav-toggle {
        display: flex;
    }

    /* Hide nav menu by default on mobile */
    #nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #004d5e;
        border-top: 1px solid rgba(233, 216, 166, 0.3);
    }

    /* Show nav when open */
    #nav-menu.is-open {
        display: flex;
    }

    header nav ul {
        margin-top: 0;
    }
    header li {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(233, 216, 166, 0.2);
        text-align: left;
    }
    header li:last-child {
        border-bottom: none;
    }
    header li a {
        display: block;
        font-size: 14px;
        padding: 2px 0;
    }
    .container {
        width: 95%;
    }
    main h1 { font-size: 1.8em; }
    main h2 { font-size: 1.5em; }
    .doctor-image, #hero .doctor-image {
        float: none;
        display: block;
        margin: 15px auto; /* Center image */
        max-width: 160px; /* Larger than before on mobile */
    }
    .doctor-intro p {
        margin-left: 0; /* Remove margin */
        text-align: center;
        padding-top: 0;
    }
    
    /* Stack credentials and photo on mobile but keep photo larger */
    .credential-with-photo {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .header-doctor-photo {
        width: 75px; /* Keep relatively large on mobile */
        height: 75px;
        margin-bottom: 5px;
    }
    
    /* Logo responsive adjustments */
    .logo-image {
        max-height: 50px; /* Slightly larger on mobile */
        margin: 0 auto 2px auto; /* Center on mobile */
    }
    
    .logo-tagline-first,
    .logo-tagline-second {
        font-size: 12px;
        text-align: center;
    }
    
    .logo-container {
        margin: 0 auto;
        display: inline-flex;
    }
    
    .credential-specialty {
        font-size: 14px;
    }
    
    .credential-doctor {
        font-size: 13px;
    }
    
    .header-contact-info {
        font-size: 13px;
    }
    
    .contact-item {
        margin-bottom: 2px;
    }
}

/* Smaller screens like phones */
@media(max-width: 480px) {
    .logo-image {
        max-height: 40px;
    }
    
    .logo-tagline-first,
    .logo-tagline-second {
        font-size: 11px;
    }
    
    .credential-specialty {
        font-size: 13px;
    }
    
    .credential-doctor {
        font-size: 12px;
    }
    
    .contact-item {
        display: block;
        margin-right: 0;
        margin-left: 0;
        text-align: center;
    }
    
    /* Keep Dr. Hull's image a decent size even on small phones */
    #hero .doctor-image {
        max-width: 140px;
    }
    
    /* Still maintain a good size for the header photo on small phones */
    .header-doctor-photo {
        width: 70px;
        height: 70px;
    }
}

/* CSS to hide the honeypot field for anti-spam */
.validation-field {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 0 !important;
    width: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important; /* Prevent interaction */
}