/* ==========================================================================
   STUDIO OSTEOPATIA - VINOVO (TO)
   Components Stylesheet - Studio Info, Services, Location & Modals
   ========================================================================== */

/* ==========================================================================
   About / Studio Section
   ========================================================================== */

.about-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.about-image-column {
    position: relative;
}

.about-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.about-image-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-credentials-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credentials-icon {
    width: 44px;
    height: 44px;
    background: rgba(13, 92, 99, 0.12);
    color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.about-content-column .lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.about-content-column p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.specialties-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.specialty-pill {
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.specialty-pill i {
    color: var(--accent);
}

/* Studio Gallery Sub-Grid */
.studio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    group: hover;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(42, 157, 143, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.service-features-list {
    list-style: none;
    margin-bottom: 1.75rem;
}

.service-features-list li {
    font-size: 0.875rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-features-list i {
    color: var(--accent);
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.service-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.service-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-light);
}

/* ==========================================================================
   Hours, Location & Map Section (Vinovo TO)
   ========================================================================== */

.location-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.location-info-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.hours-table td.day {
    font-weight: 600;
    color: var(--text-main);
}

.hours-table td.time {
    text-align: right;
    color: var(--text-muted);
}

.hours-table td.closed {
    color: var(--coral);
    font-weight: 600;
}

.directions-box {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.directions-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.directions-item:last-child {
    margin-bottom: 0;
}

.directions-item i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.directions-item h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.directions-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    min-height: 440px;
}

#leaflet-map {
    width: 100%;
    height: 100%;
    min-height: 440px;
    z-index: 1;
}

/* Custom Map Overlay Badge */
.map-address-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-translucent);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-address-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.map-address-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform var(--transition-fast);
}

.contact-card:hover {
    transform: translateX(6px);
    border-color: var(--accent);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(42, 157, 143, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-card-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */

.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.footer-col-title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Modals Base
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-bounce);
    position: relative;
}

.modal-backdrop.active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--transition-fast);
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--bg-main);
}

/* Responsive Component Adjustments */
@media (max-width: 992px) {
    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .studio-gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Mobile Navigation Toggle Button
   ========================================================================== */

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(42, 157, 143, 0.1);
    color: var(--accent);
}

@media (max-width: 768px) {
    .mobile-nav-toggle { display: flex !important; }
    .nav-links { display: none !important; }
    #nav-cta-desktop { display: none !important; }
}

/* ==========================================================================
   Gallery Grid (Studio Page)
   ========================================================================== */

.studio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.gallery-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   Contact Cards Stack (Contacts Page)
   ========================================================================== */

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-main);
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(42, 157, 143, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ==========================================================================
   Directions Box (Location Page)
   ========================================================================== */

.directions-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.directions-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
}

.directions-item i {
    color: var(--accent);
    margin-top: .2rem;
    flex-shrink: 0;
}

.directions-item h5 {
    font-size: .9rem;
    margin-bottom: .2rem;
}

.directions-item p {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Specialties Badges
   ========================================================================== */

.specialties-badges {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.specialty-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--text-muted);
    padding: .4rem 0;
}

.specialty-pill i {
    color: var(--accent);
    width: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   Lead Text
   ========================================================================== */

.lead-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Booking Summary Card
   ========================================================================== */

.booking-summary-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.summary-row:last-child { border-bottom: none; }

.summary-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.summary-label i { width: 16px; }

.summary-value {
    font-weight: 700;
    font-size: .9rem;
    text-align: right;
}

/* ==========================================================================
   Hours Table (Location Page)
   ========================================================================== */

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.hours-table td {
    padding: .6rem .5rem;
    border-bottom: 1px solid var(--border-color);
}

.hours-table td.day {
    font-weight: 600;
    color: var(--text-main);
    width: 110px;
}

.hours-table td.time {
    color: var(--text-muted);
}

.hours-table td.closed {
    color: var(--danger);
    font-weight: 600;
}

/* ==========================================================================
   Map Wrapper
   ========================================================================== */

.map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    min-height: 460px;
}

#leaflet-map {
    width: 100%;
    min-height: 460px;
}

.map-address-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: .875rem 1rem;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.map-address-info h4 { font-size: .875rem; margin-bottom: .1rem; }
.map-address-info p { font-size: .78rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   Location Grid
   ========================================================================== */

.location-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.location-info-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ==========================================================================
   GDPR Document in Modal
   ========================================================================== */

.gdpr-document h3 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: .4rem;
    color: var(--primary-light);
}

.gdpr-document p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: .5rem;
}

/* ==========================================================================
   Priority Alert Box (Booking Page)
   ========================================================================== */

.priority-alert-box {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: rgba(239, 68, 68, .07);
    border: 1px solid rgba(239, 68, 68, .25);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: .875rem;
    color: var(--danger);
    margin-top: 1.25rem;
}

.priority-alert-box i { flex-shrink: 0; margin-top: .1rem; }

