/* === Irioks Static Site - Custom Styles === */
/* Based on Hestia theme style with Material Design elements */

:root {
    --primary-color: #00897B;
    --primary-dark: #00695C;
    --primary-light: #B2DFDB;
    --accent-color: #26A69A;
    --text-dark: #1B2A29;
    --text-medium: #5F706E;
    --text-light: #8A9A98;
    --bg-light: #F0F7F6;
    --bg-white: #ffffff;
    --border-color: #D0E0DE;
    --shadow-sm: 0 2px 4px rgba(0,137,123,0.08);
    --shadow-md: 0 4px 8px rgba(0,137,123,0.12);
    --shadow-lg: 0 8px 16px rgba(0,137,123,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* === Reset & Base === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* === Top Bar === */
.top-bar {
    font-size: 0.875rem;
    background: linear-gradient(135deg, #004D40 0%, #00695C 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* === Navbar === */
.navbar {
    padding: 0.75rem 0;
    background: #ffffff !important;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.nav-link-cta {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    margin-left: 0.5rem;
}

.nav-link-cta:hover {
    background: var(--primary-dark) !important;
    color: #ffffff !important;
}

.nav-link-cta::after {
    display: none;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--radius);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 137, 123, 0.25);
}

/* === Breadcrumbs === */
.breadcrumb-wrapper {
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--text-medium);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/media/common/hero-pattern.png') center/cover;
    opacity: 0.1;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-btn {
    background: white;
    color: var(--primary-color);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--primary-dark);
}

.hero-phone-btn {
    margin-bottom: 0.75rem;
}

/* === Cards === */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

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

.card-img-top,
.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top,
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: var(--text-dark);
}

.card-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.card-text {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

/* === Buttons === */
.btn {
    border-radius: 50px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* === Sections === */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-medium);
    margin-top: 1rem;
}

/* === Features / Stats === */
.feature-box {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

/* === Doctor Cards === */
.doctor-card .card-image {
    position: relative;
    overflow: hidden;
}

.doctor-card .card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.doctor-card .specialization {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.doctor-card .filial-link {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* === Filial Cards === */
.filial-card .card-image img {
    height: 200px;
}

.filial-card .contact-info {
    font-size: 0.875rem;
}

.filial-card .contact-info strong {
    color: var(--text-dark);
}

/* === Price / Services === */
.service-category {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.service-category h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 500;
}

.service-price {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

/* === Gallery / Lightbox === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* === Blog === */
.blog-card .card-image img {
    height: 180px;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* === Forms === */
.form-control {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 137, 123, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* === Appointment Form === */
.appointment-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 1rem 0;
    z-index: 9998;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.cookie-banner a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: white;
}

/* === Map === */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-sm);
}

.map-container iframe,
.map-container #map {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Footer === */
footer a:hover {
    color: white !important;
    text-decoration: underline;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .hero-phone-btn {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .card-img-top,
    .card-image img {
        height: 180px;
    }
    
    .doctor-card .card-image img {
        height: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .appointment-form {
        padding: 1.5rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

/* === Utilities === */

.text-primary-dark {
    color: var(--primary-dark);
}

.shadow-hover {
    transition: var(--transition);
}

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

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

/* === About / Contact static pages === */
.about-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-panel,
.contact-summary {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-panel p,
.contact-summary p {
    margin-bottom: 0;
    color: var(--text-medium);
}

.contact-summary p + p {
    margin-top: 0.75rem;
}

.about-filial-gallery .gallery-item {
    display: block;
    color: white;
    box-shadow: var(--shadow-sm);
}

.about-filial-gallery .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.72) 100%);
}

.about-filial-gallery .gallery-item span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    font-weight: 600;
}

.contact-map {
    min-height: 420px;
}

.contact-card .card-img-top {
    height: 180px;
}

.section-title h1,
.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h1::after,
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* === Mobile Top Bar === */
.w-100-mobile {
    width: 100%;
}

@media (min-width: 768px) {
    .w-100-mobile {
        width: auto;
    }
}

@media (max-width: 767.98px) {
    .contact-map {
        min-height: 320px;
    }

    .about-page .lead,
    .contact-page .lead {
        font-size: 1rem;
    }

    /* Mobile top bar fixes */
    .top-bar .row {
        text-align: center;
    }

    .top-bar .col-12 {
        justify-content: center;
    }

    .top-bar a.text-white {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }

    .top-bar .text-nowrap {
        white-space: normal;
    }
}

/* === Mobile Navbar === */
@media (max-width: 991.98px) {
    .navbar {
        border-bottom: 3px solid var(--primary-color);
        padding: 0.75rem 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .navbar-brand img {
        height: 42px;
    }

    .navbar-toggler {
        border: 2px solid var(--primary-color);
        border-radius: var(--radius);
    }

    .navbar-collapse {
        background: #ffffff;
        border-radius: var(--radius-lg);
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius);
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        bottom: 6px;
        left: 1rem;
        right: 1rem;
    }

    .nav-link-mobile-cta {
        display: block;
        background: var(--primary-color) !important;
        color: #ffffff !important;
        text-align: center;
        border-radius: 50px !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem;
        font-weight: 600 !important;
        margin-top: 0.75rem;
        border-bottom: none !important;
    }

    .nav-link-mobile-cta:hover {
        background: var(--primary-dark) !important;
        color: #ffffff !important;
        text-decoration: none;
    }

    .nav-link-mobile-cta::after {
        display: none;
    }
}
