/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* Reset and common styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #5F5F5F;
    background-color: #F9F7F5;
    overflow-x: hidden;
}

/* Prevent image flickering on click */
a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

a:active,
a:focus {
    outline: none;
}

a img {
    display: block;
    border: none;
    outline: none;
}

a:active img,
a:focus img {
    opacity: 1;
    outline: none;
}

/* Fallback for broken images */
img {
    background: linear-gradient(45deg, #F9F7F5 25%, #E8E0D8 25%, #E8E0D8 50%, #F9F7F5 50%, #F9F7F5 75%, #E8E0D8 75%, #E8E0D8);
    background-size: 20px 20px;
}

/* Make sure images load properly */
img[src] {
    background: none;
}

/* Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999 !important; /* Musí být nejvýš */
}

/* CSS Pojistka pro menu - musí být nad vším */
.navbar-collapse {
    z-index: 10000 !important;
    background: #fff; /* Neprůhledné pozadí */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-menu {
    flex: 2;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
    gap: 2rem;
    margin-bottom: 0 !important; /* Override Bootstrap default */
}

.nav-link {
    text-decoration: none;
    color: #4A403A;
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: #C59D85;
    text-decoration: none;
}

.flags {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.flag {
    width: 28px;
    height: 20px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #ddd;
    transition: box-shadow 0.2s;
}

.flag:hover {
    box-shadow: 0 0 4px #C59D85;
}

/* Main sections */
main {
    margin-top: 60px;
}

section {
    padding: 2.5rem 2rem; /* 40px top + 40px bottom = 80px between sections */
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 80px; /* Offset for fixed header */
}

#home {
    min-height: 100vh;
    scroll-margin-top: 100px; /* Větší rezerva pro jistotu - pojistka pokud JS selže */
    padding: 0; /* Home má své vlastní spacing */
}

#services {
    background: #F9F7F5;
    padding: 2.5rem 0; /* 40px top + 40px bottom */
    scroll-margin-top: 55px;
}

#about {
    padding: 2.5rem 2rem; /* 40px top + 40px bottom */
    scroll-margin-top: 60px;
}

#events {
    padding: 2.5rem 2rem; /* 40px top + 40px bottom */
    scroll-margin-top: 20px;
}

#contact {
    padding: 2.5rem 2rem; /* 40px top + 40px bottom */
    scroll-margin-top: 60px;
}

.logo {
    height: 72px;
    vertical-align: middle;
    object-fit: contain;
}

/* Bootstrap custom styling */
:root {
    --bs-primary: #C59D85;
    --bs-primary-rgb: 197, 157, 133;
    --bs-info: #C59D85;
    --bs-info-rgb: 197, 157, 133;
    --bs-success: #C59D85;
    --bs-success-rgb: 197, 157, 133;
}

.text-primary {
    color: #C59D85 !important;
}

/* Override Bootstrap info colors */
.text-info {
    color: #C59D85 !important;
}

.bg-info {
    background-color: #C59D85 !important;
}

.border-info {
    border-color: #C59D85 !important;
}

.btn-info {
    background-color: #C59D85 !important;
    border-color: #C59D85 !important;
    color: #fff !important;
}

.btn-info:hover {
    background-color: #A68069 !important;
    border-color: #A68069 !important;
}

/* Override Bootstrap success colors */
.text-success {
    color: #C59D85 !important;
}

.bg-success {
    background-color: #C59D85 !important;
}

.border-success {
    border-color: #C59D85 !important;
}

.btn-success {
    background-color: #C59D85 !important;
    border-color: #C59D85 !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #A68069 !important;
    border-color: #A68069 !important;
}

.btn-primary {
    background-color: #C59D85;
    border-color: #C59D85;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #A68069;
    border-color: #A68069;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 157, 133, 0.3);
}

.btn-outline-primary {
    color: #C59D85;
    border-color: #C59D85;
    border-radius: 30px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #C59D85;
    border-color: #C59D85;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #4A403A;
    border-color: #4A403A;
    border-radius: 30px;
    color: #F9F7F5;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #3a322e;
    border-color: #3a322e;
    transform: translateY(-2px);
}

.bg-primary {
    background-color: #C59D85 !important;
}

/* Ensure good contrast on primary backgrounds */
.bg-primary .text-primary,
.bg-primary.text-primary {
    color: #fff !important;
}

/* Home section */
#home {
    background: linear-gradient(rgba(250, 247, 245, 0.65), rgba(245, 235, 228, 0.65)),
    url('../images/mistnost.PNG') center/cover;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #4A403A;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Service Cards */
.card {
    border: 1px solid rgba(197, 157, 133, 0.2);
    box-shadow: 0 2px 12px rgba(74, 64, 58, 0.06);
    transition: all 0.3s ease;
    background: #fff;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(74, 64, 58, 0.12);
    transform: translateY(-3px);
}

.card-title {
    color: #4A403A;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.card-text {
    color: #5F5F5F;
}

.card .text-primary {
    font-weight: 700;
}

.card .btn-primary {
    /*margin-top: 1rem;*/
}

/* Service card buttons alignment */
.service-card .btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .row.align-items-stretch {
    display: flex;
}

.service-card .row.align-items-stretch > div {
    display: flex;
}

/* Service card image styling */
.card-img-wrapper {
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    position: relative;
    width: 100%;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center !important;
    display: block;
    transition: transform 0.3s ease;
}

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

.card-img-wrapper:active img,
.card-img-wrapper:focus img {
    transform: scale(1.05);
}

.card-img-wrapper:active,
.card-img-wrapper:focus {
    opacity: 1 !important;
    outline: none !important;
    background-color: transparent !important;
}

/* Specific styling for card-img-top to ensure consistency */
.card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 0;
}

/* Badge styling */
.badge.bg-primary {
    background-color: #C59D85 !important;
    color: #fff !important;
}

.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(197, 157, 133, 0.1) !important;
    color: #C59D85 !important;
}

.badge.text-primary {
    color: #C59D85 !important;
}

/* Service info badges */
.service-info .badge {
    font-weight: 500;
}

/* Service benefits list with bullets */
.service-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-benefits-list .bullet {
    color: #C59D85;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Fix text-muted visibility */
.text-muted {
    color: #6c757d !important;
}

small.text-muted {
    color: #6c757d !important;
}

/* Lead text styling */
.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

/* Ensure white text on gradient backgrounds (only for dark gradients) */
.text-white.lead,
.card.text-white .lead {
    color: #fff !important;
    opacity: 0.95;
}

/* Contact CTA Section - Light gradient with dark text */
.card.bg-gradient h3,
.card.bg-gradient .card-title,
.card.bg-gradient .lead,
.card.bg-gradient p.lead,
.card.bg-gradient p {
    color: #4A403A !important;
    font-weight: 600;
    text-shadow: none;
    opacity: 1 !important;
}

.card.bg-gradient .card-body {
    color: #4A403A !important;
}

/* Specific override for light gradient backgrounds */
div[style*="background: linear-gradient(135deg, #f5e6dc"] *,
div[style*="background: linear-gradient(135deg, #f5e6dc"] h3,
div[style*="background: linear-gradient(135deg, #f5e6dc"] p,
div[style*="background: linear-gradient(135deg, #f5e6dc"] p.lead {
    color: #4A403A !important;
    opacity: 1 !important;
}

/* Footer */
footer {
    background: #4A403A;
    color: #F9F7F5;
    text-align: center;
    padding: 1rem;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    margin-bottom: 0 !important;
}


/* Bootstrap carousel styling */
#servicesCarousel {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(74, 64, 58, 0.08);
    overflow: hidden;
    margin: 2rem 0;
}

/* 1. Zvětšení výšky karty na 550px */
#servicesCarousel .carousel-item {
    height: 550px !important;
    min-height: 550px !important;
    padding: 0 2rem;
    background: #fff;
}

/* Prevent carousel drag from interfering with image clicks */
#servicesCarousel .col-lg-6,
#servicesCarousel .col-lg-5,
#servicesCarousel .col-md-5 {
    -webkit-user-drag: none;
    user-select: none;
}

#servicesCarousel .col-lg-6 a,
#servicesCarousel .col-lg-5 a,
#servicesCarousel .col-md-5 a,
#servicesCarousel .col-lg-4 a,
#servicesCarousel .col-xl-3 a {
    display: block;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    height: 100%;
}

#servicesCarousel .col-lg-6 a:active,
#servicesCarousel .col-lg-6 a:focus,
#servicesCarousel .col-lg-5 a:active,
#servicesCarousel .col-lg-5 a:focus,
#servicesCarousel .col-md-5 a:active,
#servicesCarousel .col-md-5 a:focus {
    outline: none;
}

/* 2. Nastavení obrázku - Portrétní režim */
/* DEFINITIVNÍ FIX: Zákaz jakéhokoliv filtru nebo opacity na obrázku */
#servicesCarousel img {
    width: 100% !important;
    height: 550px !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    display: block;
    /* Povolíme jen zoom */
    transition: transform 0.3s ease !important;
    filter: none !important;
    opacity: 1 !important;
    /* GPU fixy */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Zákaz efektů na odkazu okolo */
#servicesCarousel a {
    background: transparent !important;
    opacity: 1 !important;
}

#servicesCarousel a:hover,
#servicesCarousel a:focus,
#servicesCarousel a:active {
    background: transparent !important;
    opacity: 1 !important;
}

/* Hover jen zvětšuje, nemění barvu */
#servicesCarousel a:hover img {
    transform: scale(1.02) translateZ(0) !important;
    filter: none !important;
    opacity: 1 !important;
}

#servicesCarousel .col-lg-5 a:hover img,
#servicesCarousel .col-lg-4 a:hover img,
#servicesCarousel .col-xl-3 a:hover img,
#servicesCarousel .col-lg-6 a:hover img,
#servicesCarousel .col-md-5 a:hover img {
    transform: scale(1.02);
}

#servicesCarousel .col-lg-5 a:active img,
#servicesCarousel .col-lg-5 a:focus img,
#servicesCarousel .col-lg-4 a:active img,
#servicesCarousel .col-lg-4 a:focus img,
#servicesCarousel .col-xl-3 a:active img,
#servicesCarousel .col-xl-3 a:focus img,
#servicesCarousel .col-lg-6 a:active img,
#servicesCarousel .col-lg-6 a:focus img,
#servicesCarousel .col-md-5 a:active img,
#servicesCarousel .col-md-5 a:focus img {
    transform: scale(1.02);
}

/* 3. Textová část - vertikální centrování */
#servicesCarousel .col-md-7,
#servicesCarousel .col-lg-8,
#servicesCarousel .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 3. Responzivita pro mobily (pod 992px) */
@media (max-width: 992px) {
    #servicesCarousel .carousel-item {
        height: auto !important;
        padding: 2rem 1rem;
    }

    #servicesCarousel .col-lg-5 img {
        height: 400px !important;
        margin-bottom: 2rem;
    }
}

/* CSS FIX: Scrollovatelné menu na mobilu */
@media (max-width: 991px) {
    .navbar-collapse {
        /* Omezí výšku menu, aby nebylo vyšší než obrazovka */
        max-height: calc(100vh - 80px);
        /* Povolí scrollování uvnitř menu, pokud je obsah dlouhý */
        overflow-y: auto;
        /* Přidá stín pro oddělení */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        /* Pozadí musí být bílé */
        background-color: #fff;
        padding-bottom: 1rem;
    }
}

#servicesCarousel .carousel-control-prev,
#servicesCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    z-index: 20;
}

#servicesCarousel .carousel-control-prev {
    left: 10px;
}

#servicesCarousel .carousel-control-next {
    right: 10px;
}

#servicesCarousel .carousel-control-prev-icon,
#servicesCarousel .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(197, 157, 133, 0.9);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(74, 64, 58, 0.15);
}

#servicesCarousel .carousel-control-prev-icon:hover,
#servicesCarousel .carousel-control-next-icon:hover {
    background-color: #C59D85;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* 1. OPRAVA: Viditelné carousel indikátory */
#servicesCarousel .carousel-indicators {
    bottom: 10px;
}

#servicesCarousel .carousel-indicators button {
    background-color: #C59D85 !important;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    transition: all 0.3s ease;
}

#servicesCarousel .carousel-indicators .active {
    background-color: #4A403A !important;
    opacity: 1;
}

/* 2. OPRAVA: Odstranění zašednutí při hoveru */
#servicesCarousel a:hover,
#servicesCarousel a:focus,
#servicesCarousel img:hover {
    opacity: 1 !important;
    filter: none !important;
    background: transparent !important;
}

.service-content h3 {
    color: #C59D85;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.service-benefits ul li {
    color: #5F5F5F;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-benefits ul li i {
    color: #C59D85;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-benefits ul li::before {
    color: #C59D85;
}

/* Navigation lists - no bullets */
nav ul {
    list-style: none !important;
}

nav ul li {
    list-style: none !important;
}

nav ul li::before {
    content: none !important;
}

/* Service benefits lists - no bullets, just text */
.service-benefits ul {
    list-style: none;
    padding-left: 0;
}

.service-benefits ul li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.service-benefits ul li::before {
    content: none;
}

/* List unstyled - no bullets */
.list-unstyled {
    list-style: none !important;
    padding-left: 0 !important;
}

.list-unstyled li {
    list-style: none !important;
}

.list-unstyled li::before {
    content: none !important;
}

/* About section */
#about {
    background: #F9F7F5;
}

/* Owner intro row */
.about-owner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto 3rem;
    gap: 3rem;
    align-items: center;
}

.owner-photo-wrap {
    flex-shrink: 0;
}

.owner-photo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #C59D85;
    box-shadow: 0 4px 24px rgba(197, 157, 133, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e6dc, #e8d5c4);
}

.owner-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
}

.owner-placeholder-icon {
    font-size: 5rem;
    color: #C59D85;
    opacity: 0.45;
}

.about-intro {
    flex: 1;
}

.about-intro h3 {
    font-size: 1.8rem;
    color: #C59D85;
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', serif;
}

.owner-subtitle {
    font-size: 1rem;
    color: #A68069;
    font-style: italic;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.about-intro p:not(.owner-subtitle) {
    font-size: 1.15rem;
    color: #5F5F5F;
    line-height: 1.8;
}

/* Stats bar */
.about-stats {
    max-width: 700px;
    margin: 0 auto 3rem;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74, 64, 58, 0.08);
    --bs-border-color: rgba(197, 157, 133, 0.35);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem 0.5rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #C59D85;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #5F5F5F;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(197, 157, 133, 0.35);
    margin: 0 1.5rem;
    flex-shrink: 0;
}

/* Features grid */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.feature h4 {
    font-size: 1.3rem;
    color: #4A403A;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.feature h4 i {
    color: #C59D85;
    font-size: 1.5rem;
}

.feature p {
    color: #5F5F5F;
    line-height: 1.6;
    padding-left: 2.25rem;
}

/* Mission */
.about-mission {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.about-mission h4 {
    font-size: 1.3rem;
    color: #4A403A;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.about-mission p {
    font-size: 1.1rem;
    color: #5F5F5F;
    line-height: 1.7;
    font-style: italic;
}

/* Certificates strip */
.about-certs {
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
    width: 100%;
}

.certs-title {
    font-size: 1.3rem;
    color: #4A403A;
    margin-bottom: 1.25rem;
    font-family: 'Playfair Display', serif;
}

.certs-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #C59D85 #f0e8e0;
}

.certs-strip::-webkit-scrollbar {
    height: 4px;
}

.certs-strip::-webkit-scrollbar-track {
    background: #f0e8e0;
    border-radius: 2px;
}

.certs-strip::-webkit-scrollbar-thumb {
    background: #C59D85;
    border-radius: 2px;
}

.cert-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74, 64, 58, 0.18);
}

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

.cert-placeholder-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e6dc, #ede0d4);
    font-size: 2rem;
    color: #C59D85;
    opacity: 0.7;
}

.cert-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f5e6dc, #ede0d4);
    border: 2px dashed rgba(197, 157, 133, 0.5);
    cursor: default;
}

.cert-placeholder i {
    font-size: 1.8rem;
    color: #C59D85;
    opacity: 0.7;
}

.cert-placeholder span {
    font-size: 0.75rem;
    color: #A68069;
    font-style: italic;
}

.cert-more-btn {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 12px;
    border: 2px solid #C59D85;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #C59D85;
}

.cert-more-btn:hover {
    background: #C59D85;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 157, 133, 0.35);
}

.cert-more-btn i {
    font-size: 0.9rem;
}

.cert-more-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.cert-more-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.certs-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #A68069;
    font-style: italic;
}

/* Certificates modal grid */
.certs-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.cert-modal-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-modal-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(74, 64, 58, 0.2);
    z-index: 1;
    position: relative;
}

.cert-modal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.cert-placeholder-lg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f5e6dc, #ede0d4);
    border: 2px dashed rgba(197, 157, 133, 0.4);
}

.cert-placeholder-lg i {
    font-size: 2rem;
    color: #C59D85;
    opacity: 0.6;
}

.cert-placeholder-lg span {
    font-size: 0.8rem;
    color: #A68069;
}

/* Service Detail Styles */
.service-detailed-content h4 {
    color: #C59D85;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.service-detailed-content h5 {
    color: #4A403A;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.service-detailed-content p {
    color: #5F5F5F;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-detailed-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: none;
    padding-left: 1.5rem;
}

.service-detailed-content ul li {
    color: #5F5F5F;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    position: relative;
}

.service-detailed-content ul li::before {
    content: "•";
    color: #C59D85;
    font-weight: bold;
    font-size: 1.3rem;
    position: absolute;
    left: -1.5rem;
    top: -0.1rem;
}

.service-detailed-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    counter-reset: item;
    list-style: none;
}

.service-detailed-content ol li {
    color: #5F5F5F;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    position: relative;
    counter-increment: item;
}

.service-detailed-content ol li::before {
    content: counter(item) ".";
    color: #C59D85;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.service-detailed-content .alert {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Alert info boxes - earthy styling */
.alert-info {
    background-color: rgba(197, 157, 133, 0.1) !important;
    border-color: #C59D85 !important;
    color: #4A403A !important;
    border-left: 4px solid #C59D85 !important;
}

.alert-info strong {
    color: #C59D85;
}

/* Tables in service detail */
.service-detailed-content table {
    border-color: #C59D85 !important;
}

.service-detailed-content table th {
    background-color: rgba(197, 157, 133, 0.1) !important;
    color: #4A403A !important;
    border-color: #C59D85 !important;
}

.service-detailed-content table td {
    border-color: rgba(197, 157, 133, 0.3) !important;
}

/* Blockquotes and highlights */
.service-detailed-content blockquote {
    border-left: 4px solid #C59D85;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #4A403A;
    font-style: italic;
}

.service-detailed-content mark,
.service-detailed-content .highlight {
    background-color: rgba(197, 157, 133, 0.2);
    color: #4A403A;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* Events section */
#events {
    background: #F9F7F5;
    padding: 5rem 2rem;
}

.event-box {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(74, 64, 58, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 64, 58, 0.15);
}

.event-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    cursor: pointer;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #C59D85;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.7); }
    to { transform: scale(1); }
}

/* Contact section */
#contact {
    background: #F9F7F5;
    min-height: 100vh;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: #F9F7F5;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(74, 64, 58, 0.08);
}

.contact-section h3 {
    font-size: 2rem;
    color: #C59D85;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    font-size: 1.3rem;
    color: #4A403A;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #C59D85;
    padding-bottom: 0.3rem;
    display: inline-block;
    font-family: 'Playfair Display', serif;
}

.contact-item p {
    color: #5F5F5F;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gps {
    font-family: monospace;
    background: #e9ecef;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem !important;
}

.flexible-hours {
    font-style: italic;
    color: #666 !important;
    font-size: 1rem !important;
}

.phone a, .email a {
    color: #C59D85;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.phone a:hover, .email a:hover {
    color: #A68069;
}

.phone-note {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.3rem;
}

.contact-map {
    background: linear-gradient(135deg, #C59D85, #A68069);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: white;
    text-align: center;
}

.map-placeholder h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.map-coordinates {
    background: rgba(255,255,255,0.2);
    padding: 0.8rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.map-coordinates small {
    font-family: monospace;
    font-size: 1rem;
}

/* Media queries */
@media (max-width: 1200px) {
    .about-owner {
        gap: 2rem;
    }

    .contact-container {
        gap: 2rem;
    }

    .contact-info {
        padding: 2rem;
    }
}

@media (max-width: 991px) {
    #servicesCarousel .col-lg-6 img {
        aspect-ratio: 3 / 4;
        max-height: 450px;
        margin-bottom: 2rem;
    }

    .card-img-wrapper img {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 900px) {
    .about-owner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .about-intro h3 {
        font-size: 1.5rem;
    }

    .about-intro p:not(.owner-subtitle) {
        font-size: 1.05rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    #events {
        padding: 4rem 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-section h3 {
        font-size: 1.6rem;
    }

    .contact-item h4 {
        font-size: 1.2rem;
    }

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

    .map-placeholder h4 {
        font-size: 1.5rem;
    }

    .map-placeholder p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    #events {
        padding: 3rem 0;
    }

    .event-image {
        border-radius: 12px;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-details {
        gap: 1.5rem;
    }

    .phone-note {
        display: inline;
        margin-left: 0.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.6rem;
    }

    .logo {
        height: 60px;
    }
}

@media (max-width: 576px) {
    #servicesCarousel .col-lg-6 img {
        aspect-ratio: 3 / 4;
        max-height: 350px;
    }

    #servicesCarousel .carousel-item {
        padding: 1.5rem;
    }

    .card-img-wrapper img {
        aspect-ratio: 3 / 4;
    }

    nav ul {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.4rem;
    }

    .logo {
        height: 50px;
    }

    .flag {
        width: 24px;
        height: 16px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.02em;
    }
}
