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

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

h1,
h2,
h3,
h4,
.logo-text,
.footer-logo {
    font-family: 'Playfair Display', serif;
    white-space: nowrap;
}

a {
    text-decoration: none;
    color: #1a73e8;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a73e8;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0d62d1;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #1a73e8;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

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

.logo img {
    height: 75px;
    margin-right: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.nav-menu {
    display: flex;
    margin-right: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}

.nav-item {
    margin-left: 30px;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
    font-size: 20px;
}

.nav-link:hover {
    color: #1a73e8;
}

.nav-item .btn {
    font-size: 20px;
    padding: 10px 20px;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Services dropdown (desktop hover, mobile toggle) */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown > .nav-link::after {
    content: ' ▾';
    font-size: 0.7em;
    opacity: 0.65;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    min-width: 248px;
    padding: 8px 0;
    margin-top: 4px;
    z-index: 1002;
}

.dropdown-menu li {
    margin: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: #f0f7ff;
    color: #1a73e8;
}

/* Desktop / tablet landscape: show submenu on real hover only (not sticky touch “hover”).
   Do not use :focus-within alone — clicking <a href="#services"> leaves focus on the link
   and keeps the menu open. Keyboard users: :focus-visible on the trigger + focus in submenu. */
@media screen and (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .nav-item.has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media screen and (min-width: 769px) {
    /* Keyboard / focus: class toggled from js/site.js (avoid :has() for older engines) */
    .nav-item.has-dropdown.dropdown-keyboard .dropdown-menu {
        display: block;
    }
}

/* Touch / tablet in “desktop” width: no hover submenu; JS toggles .open */
@media screen and (min-width: 769px) and (hover: none),
       screen and (min-width: 769px) and (pointer: coarse) {
    .nav-item.has-dropdown.open .dropdown-menu {
        display: block;
    }
}

.lang-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
}

.lang-links a {
    color: #333;
}

.lang-links a:hover {
    color: #1a73e8;
}

.lang-links .lang-active {
    color: #1a73e8;
}

.lang-sep {
    color: #aaa;
    user-select: none;
}

/* Specialty / inner pages */
.page-main {
    padding-top: 96px;
}

.specialty-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    padding: 48px 0 36px;
    border-bottom: 1px solid #e0e8f5;
}

.specialty-hero h1 {
    white-space: normal;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    color: #1a3a5c;
    text-align: left;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.specialty-hero .lead {
    font-size: 1.15rem;
    color: #444;
    max-width: 720px;
    line-height: 1.65;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 18px;
    color: #666;
}

.breadcrumb a {
    color: #1a73e8;
}

.breadcrumb span[aria-current="page"] {
    color: #333;
}

.specialty-body {
    padding: 56px 0 80px;
    background: #fff;
}

.specialty-body h2 {
    text-align: left;
    font-size: 28px;
}

.specialty-body .service-list {
    list-style: disc;
    padding-left: 1.35rem;
    margin: 16px 0 24px;
    max-width: 640px;
}

.specialty-body .service-list li {
    margin-bottom: 8px;
    color: #444;
}

.specialty-body .body-copy {
    max-width: 720px;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.7;
}

.specialty-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn.btn-secondary {
    background-color: #2e7d32;
}

.btn.btn-secondary:hover {
    background-color: #1b5e20;
}

.service-more {
    margin-top: 14px;
}

.service-more a {
    font-weight: 600;
    font-size: 15px;
}

/* Responsive mobile menu */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        background-color: white;
        width: 100%;
        flex-direction: column;
        flex-wrap: wrap;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 10px 0;
    }
    .nav-item.has-dropdown .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        padding: 4px 0 4px 12px;
        margin-top: 6px;
        border-left: 2px solid #e8e8e8;
        min-width: auto;
    }
    .nav-item.has-dropdown.open .dropdown-menu {
        display: block;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(background.jpg?date=20251107) center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero ul {
    padding-left: 2rem;
}

/* --- HERO FLEX LAYOUT --- */
.hero-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title,
.hero-subtitle,
.hero-locations {
    flex: 1 1 0;
}

.hero-featured-img {
    flex: 0 0 320px;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0;
    display: block;
}

@media screen and (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .hero-featured-img {
        max-width: 90vw;
        margin: 20px auto 0 auto;
    }
}

/* Hero Title & Subtitle */
.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

/* About Section */
.about {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.about-content {
    flex: 1 1 0;
}

.about-img {
    flex: 0 0 320px;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0;
    display: block;
}

.about-img img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.about-list li {
    margin-bottom: 5px;
}

/* Services Section */
.services {
    background-color: #f5f9ff;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: #007BFF;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    text-align: center;
}

.service-content ul {
    margin-top: 15px;
}

.service-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-content li:before {
    content: "\2022";
    color: #1a73e8;
    position: absolute;
    left: 0;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #f5f9ff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

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

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Contact Section */
.contact {
    background-color: #f5f9ff;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    min-width: 40px;
    height: 40px;
    background-color: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    margin-right: 15px;
}

.hours-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

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

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

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

/* Map */
.map {
    height: 400px;
    margin-top: 50px;
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a73e8;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #1a73e8;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: #1a73e8;
}

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

/* Language switch (EN | ES links in header) */
.language-selector {
    flex-shrink: 0;
    margin-left: 12px;
}

@media screen and (max-width: 768px) {
    .about-content h2 {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    .about-content h4 {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    .about-inner {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0 10px;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
    }
    .about-content {
        max-width: 400px;
        width: 100%;
        margin: 0 auto 20px auto;
        text-align: left;
        word-break: break-word;
        overflow-wrap: break-word;
        padding: 0;
    }
    .about-img {
        max-width: 90vw;
        width: 100%;
        margin: 0 auto 20px auto;
        display: block;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .about-img img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }
    .container {
        padding: 0 10px;
    }
    .about-container {
        padding: 0;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        flex-direction: column-reverse;
    }
}

body {
    box-sizing: border-box;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Ensures padding on both sides */
}

.about-content {
    min-width: 0;
    word-break: break-word;
    width: 100%;
}

.about-inner {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
}

/* Last-resort specificity: keep Services submenu out of the nav flex row (beats stale cache / late CSS). */
header nav ul.nav-menu > li.nav-item.has-dropdown > ul.dropdown-menu {
    display: none !important;
    flex: none !important;
    margin-top: 4px !important;
    z-index: 1002 !important;
}

@media screen and (min-width: 769px) {
    header nav ul.nav-menu > li.nav-item.has-dropdown > ul.dropdown-menu {
        position: absolute !important;
        left: 0 !important;
        top: 100% !important;
    }
}

@media screen and (min-width: 769px) and (hover: hover) and (pointer: fine) {
    header nav ul.nav-menu > li.nav-item.has-dropdown:hover > ul.dropdown-menu {
        display: block !important;
    }
}

@media screen and (min-width: 769px) {
    header nav ul.nav-menu > li.nav-item.has-dropdown.dropdown-keyboard > ul.dropdown-menu {
        display: block !important;
    }
}

@media screen and (min-width: 769px) and (hover: none),
       screen and (min-width: 769px) and (pointer: coarse) {
    header nav ul.nav-menu > li.nav-item.has-dropdown.open > ul.dropdown-menu {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    header nav ul.nav-menu > li.nav-item.has-dropdown.open > ul.dropdown-menu {
        display: block !important;
        position: static !important;
    }
}