/* ================================================================
   STUDIO DENTISTICO GHIGLIONE - STYLES
   Premium dental clinic website
   ================================================================ */

/* ======================== CSS CUSTOM PROPERTIES ======================== */
:root {
    /* Colors */
    --white: #FFFFFF;
    --deep-navy: #0B1F33;
    --dental-teal: #19A7A5;
    --dental-teal-dark: #148F8D;
    --dental-teal-light: #1EC4C2;
    --soft-blue-bg: #F3FAFB;
    --light-gray: #64748B;
    --gold-accent: #C9A45C;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(11, 31, 51, 0.06), 0 1px 2px rgba(11, 31, 51, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(11, 31, 51, 0.07), 0 2px 4px -2px rgba(11, 31, 51, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(11, 31, 51, 0.08), 0 4px 6px -4px rgba(11, 31, 51, 0.04);
    --shadow-xl: 0 20px 50px -5px rgba(11, 31, 51, 0.1), 0 8px 10px -6px rgba(11, 31, 51, 0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-height: 64px;
    --container-max: 1200px;
    --container-padding: 20px;
}

/* ======================== RESET & BASE ======================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--deep-navy);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

/* ======================== UTILITIES ======================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
}

.section__label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--dental-teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-2);
}

.section__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--deep-navy);
    line-height: 1.25;
    margin-bottom: var(--space-3);
}

.section__subtitle {
    font-size: var(--font-size-base);
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-10);
}

/* ======================== BUTTONS ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 22px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box;
    max-width: 100%;
}

.btn--primary {
    background: var(--dental-teal);
    color: var(--white);
    border-color: var(--dental-teal);
}

.btn--primary:hover {
    background: var(--dental-teal-dark);
    border-color: var(--dental-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(25, 167, 165, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--deep-navy);
    border-color: var(--gray-300);
}

.btn--outline:hover {
    border-color: var(--dental-teal);
    color: var(--dental-teal);
    transform: translateY(-1px);
}

.btn--white {
    background: var(--white);
    color: var(--deep-navy);
    border-color: var(--white);
}

.btn--white:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 12px 26px;
    font-size: var(--font-size-sm);
}

.btn--sm {
    padding: 8px 18px;
    font-size: var(--font-size-xs);
}

/* ======================== HEADER ======================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow var(--transition-base);
    height: var(--header-height);
}

.header.scrolled {
    box-shadow: 0 1px 20px rgba(11, 31, 51, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 1001;
}

.logo__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo__text {
    font-size: var(--font-size-sm);
    color: var(--deep-navy);
    letter-spacing: -0.01em;
    font-weight: 400;
}

.logo__text strong {
    font-weight: 700;
}

.header__nav {
    display: none;
}

.nav__list {
    display: flex;
    gap: var(--space-8);
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--light-gray);
    position: relative;
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dental-teal);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--deep-navy);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header__cta {
    display: none;
}

/* Hamburger */
.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--deep-navy);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.header__hamburger.active .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.mobile-menu__link {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--deep-navy);
    transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
    color: var(--dental-teal);
}

.mobile-menu__cta {
    margin-top: var(--space-8);
}

/* ======================== HERO SECTION ======================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(243, 250, 251, 0.90) 100%
    );
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding-top: var(--space-8);
    padding-bottom: var(--space-10);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero__content {
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 5px 12px;
    background: rgba(25, 167, 165, 0.08);
    border: 1px solid rgba(25, 167, 165, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--dental-teal-dark);
    margin-bottom: var(--space-4);
}

.hero__badge svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.hero__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--deep-navy);
    margin-bottom: var(--space-3);
    letter-spacing: -0.025em;
    max-width: 100%;
    word-break: normal;
}

.hero__title-accent {
    color: var(--dental-teal);
}

.hero__subtitle {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--deep-navy);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.hero__description {
    font-size: var(--font-size-sm);
    color: var(--light-gray);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    width: 100%;
    box-sizing: border-box;
}

.hero__buttons .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.hero__trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    box-sizing: border-box;
}

.trust__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--light-gray);
    font-weight: 500;
}

.trust__item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.hero__image {
    display: none;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/5;
    max-height: 520px;
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================== ABOUT SECTION ======================== */
.about {
    padding: var(--space-12) 0;
    background: var(--white);
}

.about__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.about__image {
    position: relative;
}

.about__image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.about__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(25, 167, 165, 0.15), rgba(25, 167, 165, 0.05));
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__text {
    font-size: var(--font-size-base);
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: var(--space-8);
}

.about__card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: var(--soft-blue-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(25, 167, 165, 0.1);
}

.about__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.about__card-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--light-gray);
    margin-bottom: 2px;
}

.about__card-value {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--deep-navy);
}

/* ======================== SERVICES SECTION ======================== */
.services {
    padding: var(--space-12) 0;
    background: var(--soft-blue-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dental-teal), var(--dental-teal-light));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--soft-blue-bg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
    transition: background var(--transition-base);
}

.service-card:hover .service-card__icon {
    background: rgba(25, 167, 165, 0.1);
}

.service-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: var(--space-3);
}

.service-card__text {
    font-size: var(--font-size-sm);
    color: var(--light-gray);
    line-height: 1.7;
}

/* ======================== WHY CHOOSE US SECTION ======================== */
.why-us {
    padding: var(--space-12) 0;
    background: var(--white);
}

.why-us__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.why-card {
    text-align: center;
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--soft-blue-bg);
    border: 1px solid rgba(25, 167, 165, 0.08);
    transition: all var(--transition-base);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(25, 167, 165, 0.2);
}

.why-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-sm);
}

.why-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: var(--space-3);
}

.why-card__text {
    font-size: var(--font-size-sm);
    color: var(--light-gray);
    line-height: 1.7;
}

/* ======================== GALLERY SECTION ======================== */
.gallery {
    padding: var(--space-12) 0;
    background: var(--soft-blue-bg);
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 31, 51, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item-label {
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: var(--space-2);
}

/* ======================== LIGHTBOX ======================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(11, 31, 51, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--transition-fast);
    z-index: 2001;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--transition-fast);
    z-index: 2001;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__content {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin-top: var(--space-4);
    font-weight: 500;
}

/* ======================== CTA BANNER SECTION ======================== */
.cta-banner {
    padding: var(--space-12) 0;
    background: linear-gradient(135deg, var(--deep-navy) 0%, #0E2A42 40%, #123348 70%, #0B1F33 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(25, 167, 165, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner__inner {
    position: relative;
    z-index: 1;
}

.cta-banner__content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-banner__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-3);
    line-height: 1.25;
}

.cta-banner__text {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.cta-banner__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.cta-banner__buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

/* ======================== CONTACTS SECTION ======================== */
.contacts {
    padding: var(--space-12) 0;
    background: var(--white);
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.contact-card {
    background: var(--soft-blue-bg);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    border: 1px solid rgba(25, 167, 165, 0.08);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-sm);
}

.contact-card__title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: var(--space-2);
}

.contact-card__text {
    font-size: var(--font-size-sm);
    color: var(--light-gray);
}

.contact-card__link {
    font-size: var(--font-size-sm);
    color: var(--dental-teal);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-card__link:hover {
    color: var(--dental-teal-dark);
}

.contact-card__hours {
    text-align: left;
    max-width: 320px;
    margin: 0 auto;
}

.hours__row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.hours__row:last-child {
    border-bottom: none;
}

.hours__row span:first-child {
    color: var(--deep-navy);
    font-weight: 500;
}

.hours__row span:last-child {
    color: var(--light-gray);
}

.hours__row--closed span:last-child {
    color: #E74C3C;
    font-weight: 500;
}

/* ======================== MAP SECTION ======================== */
.map-section {
    padding: 0 0 var(--space-12);
    background: var(--white);
}

.map__wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.map__wrapper iframe {
    display: block;
}

.map__overlay-card {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.map__overlay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map__overlay-name {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--deep-navy);
}

.map__overlay-address {
    font-size: var(--font-size-xs);
    color: var(--light-gray);
}

/* ======================== FOOTER ======================== */
.footer {
    background: var(--gray-900);
    padding: var(--space-10) 0 var(--space-6);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.logo__text--light {
    color: rgba(255, 255, 255, 0.9);
}

.footer__address {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-6);
}

.footer__links a {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
    font-weight: 500;
}

.footer__links a:hover {
    color: var(--dental-teal-light);
}

.footer__contact {
    display: flex;
    gap: var(--space-6);
}

.footer__contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer__contact-link:hover {
    color: var(--dental-teal-light);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-8);
    text-align: center;
}

.footer__copy {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.4);
}

.footer__credit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
}

.footer__credit span {
    color: rgba(255, 255, 255, 0.3);
}

/* ======================== FLOATING WHATSAPP BUTTON ======================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: var(--radius-full);
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    overflow: hidden;
}

.whatsapp-float svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    width: auto;
    padding: 0 20px;
}

.whatsapp-float__text {
    display: none;
    white-space: nowrap;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--white);
}

.whatsapp-float:hover .whatsapp-float__text {
    display: inline;
}

/* Pulse animation */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0; }
}

/* ======================== ANIMATIONS ======================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for cards */
.service-card.fade-in:nth-child(1) { transition-delay: 0ms; }
.service-card.fade-in:nth-child(2) { transition-delay: 80ms; }
.service-card.fade-in:nth-child(3) { transition-delay: 160ms; }
.service-card.fade-in:nth-child(4) { transition-delay: 240ms; }
.service-card.fade-in:nth-child(5) { transition-delay: 320ms; }
.service-card.fade-in:nth-child(6) { transition-delay: 400ms; }

.why-card.fade-in:nth-child(1) { transition-delay: 0ms; }
.why-card.fade-in:nth-child(2) { transition-delay: 80ms; }
.why-card.fade-in:nth-child(3) { transition-delay: 160ms; }
.why-card.fade-in:nth-child(4) { transition-delay: 240ms; }

.gallery__item.fade-in:nth-child(1) { transition-delay: 0ms; }
.gallery__item.fade-in:nth-child(2) { transition-delay: 80ms; }
.gallery__item.fade-in:nth-child(3) { transition-delay: 160ms; }
.gallery__item.fade-in:nth-child(4) { transition-delay: 240ms; }
.gallery__item.fade-in:nth-child(5) { transition-delay: 320ms; }

.contact-card.fade-in:nth-child(1) { transition-delay: 0ms; }
.contact-card.fade-in:nth-child(2) { transition-delay: 80ms; }
.contact-card.fade-in:nth-child(3) { transition-delay: 160ms; }
.contact-card.fade-in:nth-child(4) { transition-delay: 240ms; }
.contact-card.fade-in:nth-child(5) { transition-delay: 320ms; }

/* ======================== RESPONSIVE - SMALL MOBILE (max 480px) ======================== */
@media (max-width: 480px) {
    .hero__title {
        font-size: 34px;
        line-height: 1.1;
    }

    .hero__subtitle {
        font-size: var(--font-size-sm);
    }

    .hero__description {
        font-size: var(--font-size-xs);
    }

    .section__title {
        font-size: var(--font-size-xl);
    }

    .cta-banner__title {
        font-size: var(--font-size-xl);
    }

    .service-card {
        padding: var(--space-4);
    }

    .why-card {
        padding: var(--space-5) var(--space-4);
    }

    .contact-card {
        padding: var(--space-4) var(--space-3);
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .lightbox__prev {
        left: 8px;
    }

    .lightbox__next {
        right: 8px;
    }

    .map__overlay-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .map__overlay-card .btn {
        width: 100%;
    }
}

/* ======================== RESPONSIVE - TABLET (768px+) ======================== */
@media (min-width: 768px) {
    :root {
        --container-padding: 32px;
        --header-height: 72px;
    }

    .section__label {
        font-size: var(--font-size-sm);
    }

    .section__title {
        font-size: var(--font-size-4xl);
    }

    .section__subtitle {
        font-size: var(--font-size-lg);
    }

    .section__header {
        margin-bottom: var(--space-16);
    }

    .btn {
        padding: 12px 28px;
    }

    .btn--lg {
        padding: 14px 32px;
        font-size: var(--font-size-base);
    }

    .hero__title {
        font-size: var(--font-size-5xl);
    }

    .hero__subtitle {
        font-size: var(--font-size-lg);
    }

    .hero__description {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-8);
    }

    .hero__badge {
        font-size: var(--font-size-xs);
        padding: 6px 16px;
        margin-bottom: var(--space-6);
    }

    .hero__inner {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
        gap: var(--space-12);
    }

    .hero__buttons {
        flex-direction: row;
        margin-bottom: var(--space-10);
    }

    .hero__buttons .btn {
        width: auto;
    }

    .hero__trust {
        flex-direction: row;
        gap: var(--space-6);
    }

    .trust__item {
        font-size: var(--font-size-sm);
    }

    .about {
        padding: var(--space-20) 0;
    }

    .about__inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-16);
    }

    .about__image {
        flex: 0 0 45%;
    }

    .about__content {
        flex: 1;
    }

    .services {
        padding: var(--space-20) 0;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .service-card {
        padding: var(--space-8);
        border-radius: var(--radius-lg);
    }

    .service-card__icon {
        width: 56px;
        height: 56px;
        border-radius: var(--radius-md);
        margin-bottom: var(--space-5);
    }

    .why-us {
        padding: var(--space-20) 0;
    }

    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .why-card {
        padding: var(--space-10) var(--space-8);
        border-radius: var(--radius-lg);
    }

    .why-card__icon {
        width: 60px;
        height: 60px;
        border-radius: var(--radius-md);
        margin-bottom: var(--space-5);
    }

    .gallery {
        padding: var(--space-20) 0;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .gallery__item {
        border-radius: var(--radius-lg);
        aspect-ratio: 4/3;
    }

    .gallery__item:first-child {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }

    .cta-banner {
        padding: var(--space-20) 0;
    }

    .cta-banner__title {
        font-size: var(--font-size-4xl);
    }

    .cta-banner__text {
        font-size: var(--font-size-base);
    }

    .cta-banner__buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-4);
    }

    .cta-banner__buttons .btn {
        width: auto;
        max-width: none;
    }

    .contacts {
        padding: var(--space-20) 0;
    }

    .contacts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .contact-card {
        padding: var(--space-8);
        border-radius: var(--radius-lg);
    }

    .contact-card--wide {
        grid-column: span 2;
    }

    .contact-card__icon {
        width: 52px;
        height: 52px;
        border-radius: var(--radius-md);
        margin-bottom: var(--space-4);
    }

    .map-section {
        padding: 0 0 var(--space-20);
    }

    .map__wrapper {
        border-radius: var(--radius-xl);
    }

    .map__overlay-card {
        bottom: 24px;
        left: 24px;
        right: auto;
        flex-wrap: nowrap;
        gap: var(--space-3);
        padding: var(--space-4) var(--space-5);
        border-radius: var(--radius-md);
    }

    .footer {
        padding: var(--space-16) 0 var(--space-8);
    }

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--space-10);
        padding-bottom: var(--space-10);
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
    }
}

/* ======================== RESPONSIVE - DESKTOP (1024px+) ======================== */
@media (min-width: 1024px) {
    :root {
        --container-padding: 32px;
    }

    /* Header - Desktop */
    .header__nav {
        display: block;
    }

    .header__cta {
        display: inline-flex;
    }

    .header__hamburger {
        display: none;
    }

    /* Hero - Desktop */
    .hero__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-16);
        min-height: calc(100vh - var(--header-height));
    }

    .hero__content {
        flex: 1;
        padding-left: var(--space-10);
    }

    .hero__image {
        display: block;
        flex: 0 0 420px;
    }

    .hero__title {
        font-size: 56px;
        line-height: 1.05;
        max-width: 680px;
    }

    .hero__description {
        max-width: 620px;
    }

    /* Services - Desktop */
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Why - Desktop */
    .why-us__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Gallery - Desktop */
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__item:first-child {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .gallery__item:nth-child(2) {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }

    /* Contacts - Desktop */
    .contacts__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-card--wide {
        grid-column: 1 / -1;
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ======================== RESPONSIVE - LARGE DESKTOP (1280px+) ======================== */
@media (min-width: 1280px) {
    .hero__title {
        font-size: 64px;
    }

    .hero__image {
        flex: 0 0 480px;
    }

}

/* ======================== ACCESSIBILITY ======================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--dental-teal);
    outline-offset: 2px;
}

/* Skip to content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
