/*
Theme Name: PortugalSEO Theme
Theme URI: https://portugalseo.pt
Author: Rafael Ferreira
Author URI: https://portugalseo.pt
Description: Tema WordPress otimizado para SEO - PortugalSEO - Agência de SEO em Portugal desde 2014
Version: 3.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portugalseo-theme
Tags: seo-optimized, portugal, responsive, business, agency
*/

/* ============================================================
   DESIGN SYSTEM — PortugalSEO v3
   Navy + Gold — Clean, Centered
   ============================================================ */

:root {
    --color-bg-primary: #020617;
    --color-bg-secondary: #020617;
    --color-bg-accent: #0f172a;
    --color-bg-header-footer: #020617;
    --color-bg-card: rgba(15, 23, 42, 0.7);
    --color-bg-button-cta: #fbbf24;
    --color-bg-button-cta-hover: #f59e0b;
    --color-text-primary: rgba(255, 255, 255, 0.92);
    --color-text-secondary: rgba(255, 255, 255, 0.78);
    --color-text-headings: #ffffff;
    --color-text-hero: #ffffff;
    --color-text-header-footer: #ffffff;
    --color-text-button-cta: #020617;
    --color-text-highlight: #fbbf24;
    --color-icon-primary: #fbbf24;
    --color-border-primary: rgba(251, 191, 36, 0.1);
    --color-shadow: rgba(0, 0, 0, 0.2);
    --color-shadow-lg: rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-headings);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
    font-size: clamp(1rem, 0.95rem + 0.21vw, 1.1rem);
}

p:last-child { margin-bottom: 0; }

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

a:hover { color: var(--color-bg-button-cta); }

strong {
    color: var(--color-text-highlight);
    font-weight: 600;
}

/* Section Pattern */
.section-icon {
    display: block;
    text-align: center;
    color: var(--color-icon-primary);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.2rem, 1.6rem + 2.56vw, 2.8rem);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: clamp(1.05rem, 0.95rem + 0.43vw, 1.2rem);
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem auto;
    color: var(--color-text-secondary);
}

/* ============================================================
   HEADER — Sticky Navy
   ============================================================ */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-header-footer);
    color: var(--color-text-header-footer);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(251,191,36,0.3));
    transition: transform 0.3s;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-header-footer);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-accent {
    color: var(--color-bg-button-cta);
    font-weight: 900;
}

.main-nav {
    display: flex;
    align-items: center;
}

/* Nav Menu (wp_nav_menu) */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-text-header-footer);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
    color: var(--color-bg-button-cta);
}

/* Dropdown arrow for items with children */
.nav-menu .menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    margin-left: 0.4rem;
    transition: transform 0.3s;
    display: inline-block;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Submenu */
.nav-menu > .menu-item-has-children > .sub-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: var(--color-bg-header-footer);
    border-radius: 12px;
    padding: 0.75rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    margin: 0;
}

.nav-menu > .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    position: relative;
}

.nav-menu .sub-menu a {
    padding: 0.6rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    color: rgba(255, 255, 255, 0.8);
}

.nav-menu .sub-menu a:hover {
    background: rgba(251, 191, 36, 0.12);
    color: var(--color-bg-button-cta);
    padding-left: 1.8rem;
}

.nav-menu .sub-menu .current-menu-item > a {
    color: var(--color-bg-button-cta);
    font-weight: 600;
}

/* Gold accent line on top of dropdown */
.nav-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-bg-button-cta), transparent);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-bg-button-cta);
    color: var(--color-text-button-cta);
}

.btn-primary:hover {
    background-color: var(--color-bg-button-cta-hover);
    color: var(--color-text-button-cta);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-highlight);
    border: 2px solid var(--color-text-highlight);
}

.btn-secondary:hover {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--color-text-highlight);
}

.cta-button {
    background-color: var(--color-bg-button-cta);
    color: var(--color-text-button-cta);
    font-weight: bold;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
    display: inline-block;
    font-size: 1.05rem;
}

.cta-button:hover {
    background-color: var(--color-bg-button-cta-hover);
    color: var(--color-text-button-cta);
    transform: scale(1.05);
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.stats-section {
    background: var(--color-bg-accent);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.stats-card {
    background-color: var(--color-bg-card);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-primary);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-bg-button-cta), var(--color-bg-button-cta-hover));
    opacity: 0;
    transition: opacity 0.3s;
}

.stats-card:hover {
    box-shadow: 0 10px 30px var(--color-shadow-lg);
    transform: translateY(-10px);
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-icon-primary);
    transition: all 0.3s ease-in-out;
}

.stats-card:hover .stats-card-icon {
    background: rgba(251, 191, 36, 0.18);
}

.stats-card-value {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--color-bg-header-footer);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stats-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-headings);
    margin-bottom: 0.75rem;
}

.stats-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stats-card { padding: 2rem 1.5rem; }
    .stats-card-value { font-size: 2rem; }
}

/* ============================================================
   SECTIONS & CARDS
   ============================================================ */

.section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
}

.section:nth-of-type(even) {
    background-color: var(--color-bg-accent);
}

/* Alternating lighter sections */
.section-alt {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

.section-alt .card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(251, 191, 36, 0.15);
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-primary);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: 0 10px 30px var(--color-shadow-lg);
    transform: translateY(-10px);
}

.card-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-icon-primary);
    transition: all 0.3s ease-in-out;
}

.card:hover .card-icon {
    background: rgba(251, 191, 36, 0.2);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-headings);
}

/* ============================================================
   SERVICES TABS
   ============================================================ */

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.services-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--color-border-primary);
    background: transparent;
    color: var(--color-text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.services-tab:hover {
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--color-text-headings);
    background: rgba(251, 191, 36, 0.08);
}

.services-tab.active {
    background: var(--color-bg-button-cta);
    color: var(--color-text-button-cta);
    border-color: var(--color-bg-button-cta);
}

.services-tab i {
    font-size: 0.9rem;
}

.services-tab-content {
    display: none;
}

.services-tab-content.active {
    display: block;
    animation: tabFadeIn 0.4s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .services-tabs { gap: 0.35rem; }
    .services-tab { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    min-height: 90vh;
    color: var(--color-text-hero);
    text-align: center;
    background: url('/wp-content/uploads/2026/02/portugalseo-hero-seo-portugal.jpg') no-repeat center center/cover;
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 2rem + 4.5vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text-hero);
    letter-spacing: -1.5px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2.5rem 0;
    flex-wrap: nowrap;
}

.stat-item {
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    flex-shrink: 1;
    min-width: 0;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
}

.stat-value {
    display: block;
    font-size: clamp(2.5rem, 1.5rem + 4vw, 3.5rem);
    font-weight: 900;
    color: var(--color-bg-button-cta);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: clamp(0.9rem, 0.8rem + 0.43vw, 1.1rem);
    color: var(--color-text-hero);
    opacity: 0.9;
    margin-top: 0.25rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
    margin-bottom: 2.5rem;
    color: var(--color-text-hero);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-microcopy {
    font-size: 1rem;
    margin-top: 1.25rem;
    color: var(--color-text-hero);
    opacity: 0.8;
}

/* Trust Bar */
.hero-trust-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-bar-container {
    padding: 1.5rem 0;
    overflow: hidden;
    width: 100%;
}

.trust-bar-track {
    display: flex;
    gap: 3.5rem;
    animation: scroll-left 40s linear infinite;
    width: fit-content;
    padding-right: 3.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--color-text-hero);
    font-size: clamp(0.9rem, 0.8rem + 0.43vw, 1rem);
    flex-shrink: 0;
    white-space: nowrap;
}

.trust-item i {
    color: var(--color-text-hero);
    font-size: clamp(1.6rem, 1.3rem + 0.5vw, 2rem);
    flex-shrink: 0;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT VISUAL SECTION
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--color-bg-button-cta);
    border-radius: 16px;
    z-index: -1;
}

.about-text {
    text-align: left;
}

.about-tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.12);
    color: var(--color-text-highlight);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text h2 {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
    margin-bottom: 1.25rem;
    text-align: left;
}

.about-text p {
    margin-bottom: 1.25rem;
}

.about-stats-inline {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border-primary);
    border-bottom: 1px solid var(--color-border-primary);
}

.about-stat {
    text-align: center;
    flex: 1;
}

.about-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--color-text-headings);
    font-weight: 900;
}

.about-stat span {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--color-border-primary);
    color: var(--color-text-headings);
}

.faq-question:hover {
    color: var(--color-text-highlight);
}

.faq-question i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
}

.faq-question.open i {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding: 0 1rem;
    transition: max-height 0.4s ease-in-out;
    overflow: hidden;
    max-height: 0;
}

.faq-answer p {
    padding: 1.5rem 0;
    font-size: 1.05rem;
}

/* ============================================================
   CONTACT SECTION — Scheduler
   ============================================================ */

.contact-hero-section {
    background: linear-gradient(135deg, rgba(10,35,66,0.82) 0%, rgba(15,23,42,0.78) 100%), url('/wp-content/uploads/2026/02/contact-hero-portugalseo.jpg') no-repeat center 30%/cover;
    padding: 0;
}

.contact-section {
    background: linear-gradient(to right, #020617, #0f172a);
    color: var(--color-text-hero);
    padding: 6rem 0;
}

.contact-section h2,
.contact-section p {
    color: var(--color-text-hero);
}

/* Scheduler Layout */
.scheduler-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.scheduler-panel {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cal-month-year {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-transform: capitalize;
}

.cal-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 0.85rem;
}

.cal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    padding: 0.4rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: white;
    background: transparent;
    border: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.cal-day:hover:not(.cal-day--disabled):not(.cal-day--empty) {
    background: rgba(251, 191, 36, 0.25);
}

.cal-day--today {
    border: 2px solid var(--color-bg-button-cta) !important;
}

.cal-day--selected {
    background: var(--color-bg-button-cta) !important;
    color: var(--color-bg-header-footer) !important;
    font-weight: 700;
}

.cal-day--disabled {
    color: rgba(255, 255, 255, 0.2);
    cursor: default;
}

.cal-day--empty {
    cursor: default;
}

/* Time Slots */
.scheduler-times {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

.times-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.times-label i {
    margin-right: 0.4rem;
    color: var(--color-bg-button-cta);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.time-slot {
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.time-slot:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--color-bg-button-cta);
}

.time-slot--selected {
    background: var(--color-bg-button-cta) !important;
    color: var(--color-bg-header-footer) !important;
    border-color: var(--color-bg-button-cta) !important;
    font-weight: 700;
}

/* Form Panel */
.scheduler-form-panel {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
}

/* Global input styles — white text on dark bg */
.form-group input,
.form-group select,
.form-group textarea,
.contact-form input,
.contact-form select,
.contact-form textarea,
.scheduler-form-panel input,
.scheduler-form-panel select,
.scheduler-form-panel textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    caret-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-bg-button-cta) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Autofill override — prevent browser from making bg white */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.95) inset !important;
    box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.95) inset !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    caret-color: #fff !important;
}

.form-group select,
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem;
}

.form-group select option,
select option {
    background-color: #020617;
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* RGPD checkbox row — checkbox left, text right, max 2 lines */
.rgpd-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.rgpd-row input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    padding: 0;
    border: none !important;
    background: none !important;
    accent-color: var(--color-bg-button-cta);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.rgpd-row span {
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
}

.rgpd-row span a {
    color: var(--color-bg-button-cta);
    text-decoration: underline;
}

/* Thank You Message */
.thank-you-message {
    text-align: center;
    padding: 3rem 2rem;
}

.thank-you-content {
    max-width: 500px;
    margin: 0 auto;
}

.thank-you-content i.fa-check-circle {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 1.5rem;
    display: block;
}

.thank-you-content h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.thank-you-details {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-weight: 600;
    color: var(--color-bg-button-cta) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--color-bg-header-footer);
    color: var(--color-text-header-footer);
    padding: 3.5rem 0;
    text-align: center;
}

.site-footer p {
    color: var(--color-text-header-footer);
    opacity: 0.8;
}

.site-footer a {
    color: var(--color-text-header-footer);
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--color-bg-button-cta);
}

.footer-separator {
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 2rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-contact-list a,
.footer-contact-list span {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-list a:hover {
    color: white;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Reveal: only hide when JS is confirmed available */
html.has-js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

html.has-js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Emergency fallback: if main JS fails, show content after 2.5s */
@keyframes reveal-emergency {
    to { opacity: 1; transform: none; }
}
html.has-js .reveal:not(.visible) {
    animation: reveal-emergency 0.5s 2.5s forwards;
}

/* ============================================================
   CONTENT AREA (WordPress pages)
   ============================================================ */

.site-content {
    min-height: 60vh;
}

.page-content,
.entry-content {
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
}

.entry-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.75rem; }
.entry-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; color: var(--color-text-secondary); }
.entry-content a { color: var(--color-text-highlight); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--color-bg-button-cta-hover); }

/* ============================================================
   GLOBAL CONTRAST FIX — Dark text on light backgrounds
   ============================================================ */

/* Any element with inline light background gets dark text */
.entry-content [style*="background:#f8f9fa"],
.entry-content [style*="background:#fff"],
.entry-content [style*="background:white"],
.entry-content [style*="background: #f8f9fa"],
.entry-content [style*="background: #fff"],
.page-content [style*="background:#f8f9fa"],
.page-content [style*="background:#fff"] {
    color: #1e293b !important;
}
.entry-content [style*="background:#f8f9fa"] p,
.entry-content [style*="background:#f8f9fa"] a,
.entry-content [style*="background:#f8f9fa"] strong,
.entry-content [style*="background:#f8f9fa"] li,
.entry-content [style*="background:#f8f9fa"] span {
    color: #1e293b !important;
}

/* Any element with inline dark background gets white text */
.entry-content [style*="background:#0a2342"],
.entry-content [style*="background: #0a2342"] {
    color: #fff !important;
}
.entry-content [style*="background:#0a2342"] p,
.entry-content [style*="background:#0a2342"] h3,
.entry-content [style*="background:#0a2342"] span {
    color: #fff !important;
}
.entry-content [style*="background:#0a2342"] h3[style*="color:#c5a66a"] {
    color: #c5a66a !important;
}
.entry-content [style*="background:#0a2342"] a[style*="background:#c5a66a"] {
    color: #0a2342 !important;
}

/* Article tables — dark text on light backgrounds */
.entry-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; border-radius: 12px; overflow: hidden; }
.entry-content table th { background: #0a2342; color: #fff; padding: 14px 16px; text-align: left; font-weight: 700; font-size: 0.95rem; }
.entry-content table td { padding: 14px 16px; color: #1e293b !important; font-size: 0.95rem; }
.entry-content table tbody tr { background: #fff; border-bottom: 1px solid #e9ecef; }
.entry-content table tbody tr:nth-child(even) { background: #f8f9fa; }
.entry-content table tbody tr:hover { background: #e2e8f0; }
.entry-content table a { color: #0a2342 !important; }

/* WP block light backgrounds */
.entry-content .has-background,
.entry-content .wp-block-group,
.page-content .has-background {
    border-radius: 12px;
}

/* FAQ section in articles */
.entry-content .faq-section h3 { color: var(--color-text-headings); cursor: pointer; padding: 1rem 0; border-bottom: 1px solid var(--color-border-primary); }
.entry-content .faq-section p { color: var(--color-text-secondary); padding: 0.5rem 0 1rem; }

/* Global strong/bold visibility boost */
.entry-content strong { color: #fff; font-weight: 700; }
.entry-content [style*="background:#f8f9fa"] strong,
.entry-content table strong { color: #0a2342 !important; font-weight: 700; }

/* Entry content — design system class integration (cross-browser) */

/* Section separators */
.entry-content .section-icon {
    display: block;
    text-align: center;
    color: var(--color-icon-primary);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    margin-top: 5.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.entry-content .section-icon:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* Section headings */
.entry-content .section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--color-text-headings);
}
.entry-content .section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    color: var(--color-text-secondary);
}

/* Grid — explicit for entry-content */
.entry-content .grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-grid;
    display: grid;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.entry-content .grid.grid-cols-3 {
    -webkit-grid-template-columns: repeat(3, 1fr);
    grid-template-columns: repeat(3, 1fr);
}
.entry-content .grid.grid-cols-4 {
    -webkit-grid-template-columns: repeat(4, 1fr);
    grid-template-columns: repeat(4, 1fr);
}

/* Cards inside entry-content — full reset for <a> tags */
.entry-content a.card,
.entry-content a.card:link,
.entry-content a.card:visited,
.entry-content a.card:hover,
.entry-content a.card:active {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    color: inherit !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    background: var(--color-bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid var(--color-border-primary);
    height: 100%;
    position: relative;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.entry-content a.card:hover {
    box-shadow: 0 10px 30px var(--color-shadow-lg);
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
}
.entry-content a.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}
.entry-content a.card:hover::before { opacity: 1; }
.entry-content a.card * { text-decoration: none !important; -webkit-text-decoration: none !important; }

/* Card children */
.entry-content a.card .card-icon,
.entry-content .card .card-icon {
    width: 72px;
    height: 72px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-icon-primary);
}
.entry-content .card h3 {
    color: var(--color-text-headings);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.entry-content .card p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* CTA button inside entry-content */
.entry-content .cta-button,
.entry-content a.cta-button,
.entry-content a.cta-button:link,
.entry-content a.cta-button:visited {
    color: var(--color-text-button-cta) !important;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    background-color: var(--color-bg-button-cta);
    font-weight: bold;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: -webkit-inline-flex !important;
    display: inline-flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    -webkit-transition: transform 0.3s, background-color 0.3s;
    transition: transform 0.3s, background-color 0.3s;
}
.entry-content .cta-button:hover,
.entry-content a.cta-button:hover {
    background-color: var(--color-bg-button-cta-hover);
    color: var(--color-text-button-cta) !important;
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

/* Responsive grid inside entry-content */
@media (max-width: 767px) {
    .entry-content .grid.grid-cols-3,
    .entry-content .grid.grid-cols-4 {
        -webkit-grid-template-columns: 1fr;
        grid-template-columns: 1fr;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .entry-content .grid.grid-cols-3,
    .entry-content .grid.grid-cols-4 {
        -webkit-grid-template-columns: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Entry meta (author, date) */
.entry-meta { color: var(--color-text-secondary); font-size: 0.9rem; margin-top: 0.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.entry-meta .byline, .entry-meta .posted-on { display: flex; align-items: center; gap: 0.3rem; }

/* Post thumbnail */
.post-thumbnail { margin-bottom: 2rem; border-radius: 12px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: auto; display: block; }

/* Entry footer (categories, tags) */
.entry-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border-primary); display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--color-text-secondary); }
.entry-footer a { color: var(--color-text-highlight); }

/* Post navigation */
.post-navigation { margin-top: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--color-border-primary); }
.post-navigation .nav-subtitle { font-size: 0.8rem; color: var(--color-text-secondary); text-transform: uppercase; }
.post-navigation .nav-title { color: var(--color-text-headings); font-weight: 600; }
.post-navigation a { text-decoration: none; }
.post-navigation a:hover .nav-title { color: var(--color-text-highlight); }

article { margin-bottom: 3rem; }
.entry-header { margin-bottom: 2rem; }
.entry-title { color: var(--color-text-headings); margin-bottom: 0.75rem; }

/* ============================================================
   RELATED POSTS CARDS
   ============================================================ */

.related-posts {
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--color-border-primary);
}

.related-posts-title {
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-text-headings);
    margin-bottom: 2.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-primary);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--color-shadow-lg);
    border-color: var(--color-bg-button-cta);
}

.related-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.related-card:hover .related-card-img img {
    transform: scale(1.05);
}

.related-card-img--placeholder {
    background: var(--color-bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-text-secondary);
}

.related-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.related-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-bg-button-cta);
}

.related-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-headings);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover .related-card-title {
    color: var(--color-bg-button-cta);
}

.related-card-date {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: auto;
}

/* Mobile: horizontal carousel */
@media (max-width: 768px) {
    .related-posts {
        overflow: hidden;
    }
    .related-posts > .container {
        padding: 0 !important;
    }
    .related-posts-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 0 1rem 1rem;
        scrollbar-width: none;
        scroll-padding: 1rem;
    }
    .related-posts-grid::-webkit-scrollbar { display: none; }
    .related-posts-grid .related-card {
        min-width: calc(100vw - 3rem);
        max-width: calc(100vw - 3rem);
        scroll-snap-align: start;
        flex-shrink: 0;
        margin-right: 1rem;
    }
    .related-card.mobile-hidden { display: flex; }
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.3);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.3s, transform 0.3s;
    }
    .carousel-dot.active {
        background: #c5a66a;
        transform: scale(1.3);
    }
}
@media (min-width: 769px) {
    .carousel-dots { display: none; }
}

/* Breadcrumbs */
.breadcrumb { padding: 1.5rem 0; margin-bottom: 1rem; }
.breadcrumb-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.875rem; }
.breadcrumb-list li { display: flex; align-items: center; color: var(--color-text-secondary); }
.breadcrumb-list li::after { content: '/'; margin-left: 0.5rem; opacity: 0.5; }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--color-text-secondary); }
.breadcrumb-list a:hover { color: var(--color-bg-button-cta); }

/* ============================================================
   HERO SEARCH BAR
   ============================================================ */

.hero-search-wrap {
    position: relative;
    max-width: 640px;
    margin: 1.5rem auto 1.5rem;
    z-index: 9999;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.4rem;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.hero-search-form:focus-within {
    background: rgba(255,255,255,0.2);
    border-color: var(--color-bg-button-cta);
    box-shadow: 0 0 0 3px rgba(251,191,36,0.25);
}

.hero-search-icon {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.hero-search-form:focus-within .hero-search-icon {
    color: var(--color-bg-button-cta);
}

.hero-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none;
    color: transparent !important;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    min-width: 0;
    caret-color: transparent;
    -webkit-text-fill-color: transparent;
    padding: 0.5rem 0 !important;
    width: auto !important;
}

.hero-search-input::placeholder {
    color: rgba(255,255,255,0.5) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.5);
    font-weight: 400;
}

.hero-search-input:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    background: transparent !important;
}

.hero-search-input::-webkit-search-cancel-button {
    display: none;
}

.hero-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--color-bg-button-cta);
    color: var(--color-text-button-cta);
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.hero-search-btn:hover {
    background: var(--color-bg-button-cta-hover);
    transform: scale(1.05);
}

/* Dropdown results — compact box, 3 visible, scroll inside */
/* Uses position:fixed so it renders above trust-bar and next section */
/* left/right/top are set by JS positionDropdown() */
.hero-search-dropdown {
    display: none;
    position: fixed;
    background: #0f172a;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    z-index: 99999;
    max-height: 168px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(251,191,36,0.3) transparent;
}
.hero-search-dropdown::-webkit-scrollbar { width: 5px; }
.hero-search-dropdown::-webkit-scrollbar-track { background: transparent; }
.hero-search-dropdown::-webkit-scrollbar-thumb { background: rgba(251,191,36,0.3); border-radius: 10px; }

.hero-search-dropdown.active {
    display: block;
}

/* Each result link — all visible, stacked vertically */
.hero-search-dropdown .hs-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-search-dropdown .hs-result:last-child { border-bottom: none; }

.hero-search-dropdown .hs-result:hover,
.hero-search-dropdown .hs-result.hs-active {
    background: rgba(251, 191, 36, 0.1);
    color: #fff;
}

/* No-result message */
.hero-search-dropdown .hs-noresult {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.hero-search-dropdown .hs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.12);
    color: var(--color-bg-button-cta);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.hero-search-dropdown .hs-label {
    font-weight: 500;
    color: #fff;
}

.hero-search-dropdown .hs-cat {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(251, 191, 36, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 991px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; z-index: 1002; }
    .main-nav.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background-color: var(--color-bg-header-footer);
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1001;
        overflow-y: auto;
    }
    .main-nav.mobile-active .nav-menu {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .main-nav.mobile-active .nav-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .main-nav.mobile-active .nav-menu .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
        min-width: auto;
        background: transparent;
    }
    .main-nav.mobile-active .nav-menu .sub-menu::before { display: none; }
    .main-nav.mobile-active .nav-menu .sub-menu a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.65);
    }
    .main-nav.mobile-active .nav-menu .sub-menu a:hover {
        padding-left: 0.5rem;
    }
    .main-nav.mobile-active .nav-menu .menu-item-has-children > a::after {
        display: none;
    }
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-image::after { display: none; }
    .about-text { text-align: center; }
    .about-text h2 { text-align: center; }
    .about-stats-inline { justify-content: center; }
    .scheduler-layout {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    .time-slots { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: 1fr; }
    .section { padding: 4.5rem 0; }
    .section-subtitle { margin-bottom: 3rem; }
    .header-actions .btn-secondary { display: none; }
    .logo-icon { width: 32px; height: 32px; }
    .logo-text { font-size: 1.15rem; }
    .header-actions { gap: 0.5rem; }
    .header-actions .btn { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
    .hero-stats { gap: 0.5rem; margin: 1.5rem 0; }
    .stat-item { padding: 0 0.6rem; }
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: 0.65rem; }
    .stat-item:not(:last-child)::after { height: 30px; right: -0.3rem; }
    .about-stats-inline { gap: 1rem; }
    .about-stat strong { font-size: 1.25rem; }
    .hero-section { padding: 2rem 0 5rem; min-height: auto; }
    .hero-title { font-size: 3.2rem !important; text-wrap: balance; line-height: 1.08 !important; letter-spacing: -1px; }
    .hero-text p, .hero-subtitle { font-size: 0.9rem; }
    .section-title { font-size: 1.4rem; }
    .section-subtitle { font-size: 0.9rem; }
    .cta-button { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
    .cta-microcopy { font-size: 0.72rem !important; }
    .contact-hero-section h1 { font-size: 3.2rem !important; text-wrap: balance; line-height: 1.08 !important; letter-spacing: -1px; font-weight: 900; }
    .contact-hero-section p { font-size: 0.9rem !important; }
    .hero-search-wrap { max-width: 100%; margin: 1rem auto 1rem; }
    .hero-search-form { padding: 0.35rem 0.35rem 0.35rem 1.1rem; }
    .hero-search-input { font-size: 0.9rem; }
    .hero-search-btn { width: 40px; height: 40px; }
    .hero-search-dropdown { border-radius: 12px; max-height: 156px; }
    .hero-search-dropdown .hs-cat { display: none; }
}

/* ============================================================
   ACCESSIBILITY & UTILITIES
   ============================================================ */

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px;
}

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--color-bg-button-cta); color: var(--color-text-button-cta);
    padding: 0.75rem 1.5rem; z-index: 9999; font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus { top: 0; }

:focus-visible {
    outline: 2px solid var(--color-bg-button-cta);
    outline-offset: 2px;
}

/* ============================================================
   MOBILE BOTTOM BAR (estilo OLX)
   ============================================================ */

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--color-bg-header-footer);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

@media (max-width: 991px) {
    .mobile-bottom-bar {
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
    }
    body {
        padding-bottom: 72px;
    }
}

.mbb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 0 6px;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    gap: 3px;
    -webkit-tap-highlight-color: transparent;
}

.mbb-item i {
    font-size: 1.15rem;
    line-height: 1;
}

.mbb-item:hover,
.mbb-item:active {
    color: var(--color-bg-button-cta);
}

.mbb-active {
    color: var(--color-bg-button-cta);
}

/* Phone button — elevated circle */
.mbb-phone {
    position: relative;
    color: #fff;
    margin-top: -18px;
    padding-top: 0;
}

.mbb-phone-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-bg-button-cta), var(--color-bg-button-cta-hover));
    box-shadow: 0 4px 15px rgba(251,191,36,0.4);
    color: var(--color-text-button-cta);
    font-size: 1.3rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mbb-phone:hover .mbb-phone-circle,
.mbb-phone:active .mbb-phone-circle {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(251,191,36,0.55);
}

.mbb-phone span:last-child {
    color: var(--color-bg-button-cta);
    font-weight: 600;
    margin-top: 2px;
}

/* WhatsApp green tint */
.mbb-whatsapp i {
    font-size: 1.3rem;
}

.mbb-whatsapp:hover,
.mbb-whatsapp:active {
    color: #25D366;
}

@media print {
    .main-header, .site-footer, .btn, .hero-trust-bar, .mobile-bottom-bar { display: none; }
    body { color: black; background: white; }
}