/* Reset and base styles */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Home page styles */
.home-page {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f7fb;
    min-height: 100vh;
    padding: 0 0 2rem 0;
}

.banner {
    width: 100%;
    height: 220px;
    background: #64050b;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.banner-img {
    height: 80%;
    object-position: top center;
    object-fit: contain;
    margin: 5px;
}

.main-card {
    max-width: 1050px;
    margin: -40px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.10);
    padding: 1.2rem 2rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.main-card.gallery-page-card {
    max-width: none;
    width: calc(100% - 2rem);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-name {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-img {
    height: 80px;
    object-fit: cover;
    background: #fff;
}

.business-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
}

.lang-switch-row {
    display: flex;
    gap: 0.5rem;
}

.lang-btn-toggle {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: #900b13;
    background: #f3f4f6;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}

.lang-btn-toggle:hover {
    background: #900b1315;
    color: #3e0000;
    border-color: #900b13;
}

.lang-btn-active {
    background: #900b13;
    color: #fff;
    border-color: #64050b;
    cursor: default;
}

.lang-btn-toggle.lang-btn-active:hover {
    background: #900b13;
    color: #fff;
    border-color: #3e0000;
}

.book-btn-row {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.book-btn {
    display: inline-block;
    background: #900b13;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1.2rem 7rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px #900b1333;
    transition: background 0.15s, box-shadow 0.15s;
}

.book-btn:hover {
    background: #64050b;
    box-shadow: 0 4px 16px #900b1366;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #900b13;
}

.about-section p {
    color: #334155;
    font-size: 1.05rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.info-block {
    min-width: 220px;
    flex: 1 1 220px;
}

.info-block h3 {
    color: #900b13;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== Business hours table ===== */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97rem;
    margin-top: 0.25rem;
}

.hours-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.hours-table td:first-child {
    font-weight: 700;
    color: #1e293b;
    width: 3.5rem;
    padding-left: 0.5rem;
}

.hours-table td:last-child {
    color: #475569;
}

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

.hours-table tr:nth-child(even) td {
    background: #fafafa;
}

.hours-table tr.hours-closed td {
    color: #94a3b8;
    font-style: italic;
}

.hours-table tr.hours-closed td:first-child {
    color: #94a3b8;
}

.hours-table tr.hours-today td {
    background: #fff4f4;
    color: #900b13;
}

.hours-table tr.hours-today td:first-child {
    color: #900b13;
}

.hours-table tr.hours-today td:last-child::after {
    content: " ←";
    font-size: 0.8rem;
    opacity: 0.7;
}
.contact-details {
    margin-bottom: .75rem;
    color: #334155;
    line-height: 1.8;
}

.contact-details a {
    color: #900b13;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.address {
    margin-bottom: .75rem;
    color: #334155;
    line-height: 1.8;
}

.payment-methods {
    margin-bottom: .75rem;
    color: #334155;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: .5rem;
}

.social-icon {
    display: inline-block;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 8px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.social-icon img:hover {
    box-shadow: 0 2px 8px rgba(37,99,235,0.12);
}

.instagram-preview-widget {
    margin-top: 1rem;
}

/* ===== Site Navigation ===== */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.9rem;
    align-items: center;
}

.nav-link {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #900b13;
}

.nav-link.active {
    background: #fff0f0;
    color: #900b13;
}

.nav-book-btn {
    background: #900b13;
    color: #fff;
    margin-left: auto;
}

.nav-book-btn:hover {
    background: #64050b;
    color: #fff;
}

.nav-book-btn.active {
    background: #64050b;
    color: #fff;
}

.business-name-link {
    text-decoration: none;
    color: inherit;
}

/* ===== Page headings ===== */
.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

/* ===== Services page ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-card {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.service-card:hover {
    border-color: #900b13;
    box-shadow: 0 4px 16px rgba(144,11,19,0.08);
}

.service-card h3 {
    color: #900b13;
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
}

.service-card p {
    color: #475569;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== Partner section ===== */
.partner-section {
    margin-top: 2rem;
    padding: 1.4rem 1.75rem;
    background: #fffbea;
    border: 2px solid #f0c040;
    border-radius: 14px;
}


.partner-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.partner-name a {
    color: #c00;
    text-decoration: none;
}

.partner-name a:hover {
    text-decoration: underline;
}

.partner-desc {
    color: #475569;
    font-size: 0.97rem;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.partner-link {
    display: inline-block;
    color: #92400e;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 8px;
    padding: 0.4em 1em;
    transition: background 0.15s, border-color 0.15s;
}

.partner-link:hover {
    background: #fde68a;
    border-color: #f59e0b;
}

/* ===== Gallery page ===== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    flex: 0 1 210px;
    min-width: 180px;
    position: relative;
}

.gallery-item.liked {
    order: -1000; /* Push liked items to the front */
}

.gallery-link {
    display: block;
    text-decoration: none;
}

.gallery-img-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    image-rendering: auto;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    will-change: transform;
}

.gallery-like-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.gallery-like-btn:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

.gallery-like-btn.liked {
    color: #ff4444;
}


/* ===== Gallery Modal ===== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    animation: fadeIn 0.2s ease-in-out;
}

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

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

.gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.gallery-modal-img {
    width: auto;
    height: auto;
    max-width: 96vw;
    max-height: 96vh;
    object-fit: contain;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    z-index: 1001;
}

.gallery-modal-nav:hover {
    background: rgba(255,255,255,0.35);
}

.gallery-modal-nav.prev {
    left: 1rem;
}

.gallery-modal-nav.next {
    right: 1rem;
}

.gallery-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    z-index: 1001;
}

.gallery-modal-close:hover {
    background: rgba(255,255,255,0.35);
}

.gallery-modal-like {
    position: absolute;
    top: 1.5rem;
    right: 5.5rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    z-index: 1001;
}

.gallery-modal-like:hover {
    background: rgba(255,255,255,0.35);
}

.gallery-modal-like.liked {
    color: #ff4444;
}

.gallery-modal-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    background: rgba(0,0,0,0.4);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* ===== Contact page ===== */
.contact-page-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-page-block {
    min-width: 220px;
    flex: 1 1 220px;
}

.contact-page-block h3 {
    color: #900b13;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* ===== Directions page ===== */
.directions-address {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #334155;
    line-height: 1.8;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    margin-bottom: 1.5rem;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.transit-info {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    color: #334155;
    line-height: 1.8;
}

.transit-info h3 {
    color: #900b13;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* ===== Socials page ===== */
.social-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    min-width: 220px;
}

.social-card:hover {
    background: #fff0f0;
    border-color: #900b13;
    box-shadow: 0 4px 16px rgba(144,11,19,0.10);
}

.social-card img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.social-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.social-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #900b13;
}

.social-card-handle {
    font-size: 0.9rem;
    color: #64748b;
}

/* ===== Appointment page ===== */
.appointment-hero {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
}

.appointment-hero h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.appointment-hero p {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.appointment-alt {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
    color: #334155;
    line-height: 1.8;
    text-align: center;
}

.appointment-alt h3 {
    color: #900b13;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.appointment-alt a {
    color: #900b13;
    text-decoration: none;
}

.appointment-alt a:hover {
    text-decoration: underline;
}

/* ===== Gallery large-screen thumbnail sizing ===== */
@media (min-width: 1100px) {
    .gallery-item {
        flex: 0 1 260px;
    }
    .gallery-grid img {
        height: 280px;
    }
    .gallery-img-container {
        height: 280px;
    }
}

@media (min-width: 1500px) {
    .gallery-item {
        flex: 0 1 320px;
    }
    .gallery-grid img {
        height: 340px;
    }
    .gallery-img-container {
        height: 340px;
    }
}

/* ===== Responsive styles ===== */
@media (max-width: 900px) {
    .main-card {
        max-width: 98vw;
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
    }
    .info-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .gallery-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 600px) {
    .banner {
        height: 140px;
        align-items: center;
    }
    .main-card {
        margin-top: 0px;
        padding: 1rem 0.25rem 1rem 0.25rem;
    }
    .logo-img {
        width: 56px;
        height: 56px;
    }
    .business-name {
        font-size: 1.25rem;
    }
    .book-btn {
        padding: 1rem 3rem;
        font-size: 1rem;
    }
    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .lang-switch-row {
        align-self: flex-end;
    }
    .gallery-item {
        flex: 0 0 100%;
    }
    .gallery-grid {
        gap: 0.75rem;
    }
    .gallery-modal-close,
    .gallery-modal-like {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        top: 1rem;
    }
    .gallery-modal-close {
        right: 1rem;
    }
    .gallery-modal-like {
        right: 4.5rem;
    }
    .gallery-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 700px) {
    .nav-book-btn {
        margin-left: 0;
    }
}

/* ===== FAQ page ===== */
.faq-list {
    margin-top: 1rem;
}

.faq-item {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: #f9fafb;
    overflow: hidden;
    transition: border-color 0.15s;
}

.faq-item[open] {
    border-color: #900b13;
    background: #fff;
}

.faq-item summary {
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #900b13;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.1rem;
    color: #475569;
    font-size: 0.97rem;
    line-height: 1.65;
    margin: 0;
}
