﻿/* =========================
   iTooth Navbar + Footer (FULL UPDATED)
   - Fluid padding (clamp) for all screens
   - Mobile drawer menu (hamburger)
   - Footer auto-fit grid
   - Booking button responsive width
   - Removed duplicated / conflicting media queries
   ========================= */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap");
html {
    overflow-x: hidden;
}
/* ===== Variables ===== */
:root {
    --nav-height: 90px;
    --nav-text: #000000;
    --nav-border: rgba(0,0,0,.08);
    /* Scrolled */
    --nav-bg-scrolled: rgba(0,0,0,.5);
    --nav-text-scrolled: #ffffff;
    --nav-border-scrolled: rgba(255,255,255,.16);
    --shadow-scrolled: 0 10px 28px rgba(0,0,0,.22);
    /* Fluid layout */
    --page-pad: clamp(12px, 3vw, 40px);
    --container-max: 1440px;
    --dark-border: rgba(0,0,0,0.18);
}

/* ===== Base reset ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Spacer under fixed navbar */
.nav-spacer {
    height: var(--nav-height);
}

/* =========================
   Navbar
   ========================= */
.itooth-nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--nav-border);
    direction: rtl;
    transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    /* SCROLLED state */
    .itooth-nav.is-scrolled {
        background: var(--nav-bg-scrolled);
        border-bottom-color: var(--nav-border-scrolled);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* Force link style inside navbar (override bootstrap) */
    .itooth-nav a {
        color: var(--nav-text) !important;
        text-decoration: none !important;
    }

    .itooth-nav.is-scrolled a {
        color: var(--nav-text-scrolled) !important;
    }

/* Container sizing (fluid) */
.itooth-nav__wrap {
    width: min(var(--container-max), calc(100% - (var(--page-pad) * 2)));
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | links | left controls */
    align-items: center;
    gap: 16px;
}

/* ===== RIGHT: Logo ===== */
.itooth-nav__brand {
    display: inline-flex;
    align-items: center;
    background: transparent; /* Ensures no background for the logo container */
    background-color: transparent; /* Ensures no background color */
}
    .itooth-nav__brand img {
        margin-top:12px;
        height: 140px;
        width: auto;
        display: block;
        transition: transform .8s ease;
        background-color: transparent; 
        background:transparent;/* Ensures no background color for the image */
    }

/* Optional: slightly smaller logo after scroll */
.itooth-nav.is-scrolled .itooth-nav__brand img {
    transform: scale(1.5);
    background-color: transparent;
    background: transparent;
}

/* ===== CENTER: Links ===== */
.itooth-nav__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    white-space: nowrap;
    background: transparent;
    background-color: transparent;
}

    .itooth-nav__links a {
        position: relative;
        font-size: 19px;
        font-weight: 6000;
        line-height: 1;
        transition: transform .2s ease, opacity .2s ease;
        background-color   : transparent;
        background         : transparent;
    }

/* active link */
.itooth-nav__link--active {
    font-weight: 700;
}

/* underline animation */
.itooth-nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: transparent;
    background-color: currentColor;
    transition: width .25s ease;

}

.itooth-nav__links a:hover::after {
    width: 100%;
}

/* ===== LEFT: Controls ===== */
.itooth-nav__left {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

/* EN */
.itooth-nav__lang {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

/* Button */
.itooth-nav__btn {
    border: 2px solid currentColor;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .28s ease, color .28s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

    .itooth-nav__btn:hover {
        background: currentColor;
        color: #000 !important;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(0,0,0,.22);
    }

/* Normal state hover: black bg + white text */
.itooth-nav:not(.is-scrolled) .itooth-nav__btn:hover {
    background: #000;
    color: #fff !important;
    border-color: #000;
}

/* Scrolled state button border + hover invert */
.itooth-nav.is-scrolled .itooth-nav__btn {
    border-color: rgba(255,255,255,.9);
}

    .itooth-nav.is-scrolled .itooth-nav__btn:hover {
        background: #fff;
        color: #000 !important;
        border-color: #fff;
    }

/* =========================
   LOGOUT BUTTON
   ========================= */
.itooth-nav__logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.18);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

    .itooth-nav__logout i {
        font-size: 14px;
    }

    .itooth-nav__logout:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0,0,0,.35);
    }

/* =========================
   Mobile toggle button
   ========================= */
.itooth-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(0,0,0,.04);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

    .itooth-nav__toggle:hover {
        transform: translateY(-1px);
    }

.itooth-nav.is-scrolled .itooth-nav__toggle {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.10);
}

/* =========================
   Drawer (mobile menu)
   ========================= */
.itooth-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

    .itooth-drawer.is-open {
        display: block;
    }

.itooth-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.itooth-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0; /* RTL drawer from right */
    width: min(360px, 86vw);
    background: #fff;
    padding: 18px;
    box-shadow: -24px 0 60px rgba(0,0,0,.22);
    transform: translateX(12px);
    animation: drawerIn .18s ease forwards;
    direction: rtl;
}

@keyframes drawerIn {
    to {
        transform: translateX(0);
    }
}

.itooth-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.itooth-drawer__close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(0,0,0,.04);
    cursor: pointer;
}

.itooth-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.08);
}

    .itooth-drawer__nav a {
        padding: 12px 12px;
        border-radius: 14px;
        background: rgba(0,0,0,.03);
        color: #0b0f1a !important;
        font-size: 16px;
        font-weight: 700;
    }

/* =========================
   Responsive navbar rules
   ========================= */
@media (max-width: 900px) {
    .itooth-nav__wrap {
        grid-template-columns: auto auto; /* brand | left cluster */
    }

    .itooth-nav__links {
        display: none;
    }

    .itooth-nav__toggle {
        display: inline-flex;
    }

    .itooth-nav__brand img {
        height: 50px;
        background-color: transparent;
        background: transparent;
    }
}

@media (max-width: 380px) {
    .itooth-nav__btn {
        padding: 9px 14px;
        font-size: 14px;
    }

    .itooth-nav__lang {
        font-size: 14px;
    }
}

/* =========================
   Footer - Modern upgrade
   ========================= */
.site-footer {
    color: #0b0f1a;
    margin-top: 80px;
    direction: rtl;
}

/* Auto-fit grid: works on all widths */
.footer-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(10px, 5vw) var(--page-pad);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(14px, 2.5vw, 34px);
    align-items: start;
}

/* Cards hidden by default */
.footer-card {
    opacity: 0;
    transform: translateX(0);
    transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
    will-change: transform, opacity;
}

    .footer-card[data-dir="right"] {
        transform: translateX(70px);
    }

    .footer-card[data-dir="left"] {
        transform: translateX(-70px);
    }

    .footer-card.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

/* optional: stagger */
.footer-logo.footer-card {
    transition-delay: .05s;
}

.footer-links.footer-card {
    transition-delay: .12s;
}

.footer-social.footer-card {
    transition-delay: .18s;
}

.footer-contact.footer-card {
    transition-delay: .24s;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    .footer-card {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Headings */
.footer-links h4,
.footer-social h4,
.footer-contact h4,
.footer-location h4 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

/* Logo */
.footer-logo img {
    width: 320px;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.10));
    transition: transform .25s ease;
}

.footer-logo:hover img {
    transform: translateY(-2px) scale(1.01);
}

/* Remove underline globally in footer links */
.site-footer a {
    text-decoration: none !important;
    color: inherit;
}

    .site-footer a:hover,
    .site-footer a:focus {
        text-decoration: none !important;
        outline: none;
    }

/* Quick links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #0b0f1a;
    opacity: .88;
    transition: transform .2s ease, opacity .2s ease;
}

    .footer-links a::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(0,0,0,.25);
        transform: scale(.9);
        transition: transform .2s ease, background .2s ease;
    }

    .footer-links a:hover {
        transform: translateX(-4px);
        opacity: 1;
    }

        .footer-links a:hover::before {
            transform: scale(1.1);
            background: rgba(0,0,0,.65);
        }

/* Contact */
.footer-contact p {
    margin: 8px 0;
    font-size: 16px;
    opacity: .92;
}

.footer-contact a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    opacity: .9;
    transition: transform .2s ease, opacity .2s ease;
}

    .footer-contact a:hover {
        transform: translateX(-3px);
        opacity: 1;
    }

/* Social list */
.footer-social__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-social__list a {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 16px;
        opacity: .9;
        transition: transform .2s ease, opacity .2s ease;
    }

    .footer-social__list i {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(0,0,0,.10);
        background: rgba(0,0,0,.03);
        box-shadow: 0 10px 24px rgba(0,0,0,.06);
        transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    }

    .footer-social__list a:hover {
        transform: translateX(-4px);
        opacity: 1;
    }

        .footer-social__list a:hover i {
            background: rgba(0,0,0,.92);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 16px 30px rgba(0,0,0,.18);
        }

/* Location */
.map-box {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

    .map-box iframe {
        width: 100%;
        height: 100%;
        border: 0;
        filter: brightness(1.05) contrast(1.05) saturate(1.1);
        transition: transform .3s ease;
    }

.footer-location:hover .map-box iframe {
    transform: scale(1.02);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    opacity: .9;
    transition: transform .2s ease, opacity .2s ease;
}

    .map-link:hover {
        transform: translateX(-4px);
        opacity: 1;
    }

/* Bottom bar */
.footer-bottom {
    background: #0b0f1a;
    color: #f5f7ff;
    text-align: center;
    padding: 18px 12px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
}

/* Mobile: center footer links/icons a bit nicer */
@media (max-width: 520px) {
    .footer-links a,
    .footer-contact a,
    .footer-social__list a {
        justify-content: center;
    }

        .footer-links a:hover,
        .footer-contact a:hover,
        .footer-social__list a:hover {
            transform: translateY(-2px);
        }
}

/* =========================
   Booking (Sticky form above footer)
   ========================= */
.book-cta-sticky {
    position: relative;
    z-index: 5;
    margin-top: 80px;
}

.book-cta-sticky__wrap {
    max-width: 1360px;
    margin: 0 auto -70px;
    padding: 34px 44px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: none;
}

/* Head */
.book-form__head h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.book-form__head p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 15px;
}

.book-form {
    width: 100%;
}

.book-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-bottom: 14px;
}

.book-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: #e5e7eb;
    border: 1px solid #9ca3af;
    color: #111827;
    font-size: 15px;
    outline: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .book-input::placeholder {
        color: #6b7280;
    }

    .book-input:focus {
        background: #f3f4f6;
        border-color: #9ca3af;
        box-shadow: 0 0 0 3px rgba(156,163,175,.35);
    }

/* textarea full width */
.book-input--textarea {
    grid-column: 1 / -1;
    min-height: 90px;
    resize: vertical;
}

/* submit */
.book-submit-wrap {
    text-align: center;
    margin-top: 10px;
}

.book-submit {
    width: min(520px, 100%); /* ✅ responsive instead of 50% */
    padding: 14px 28px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    border: 1px solid #9ca3af;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .book-submit:hover {
        background: #d1d5db;
        border-color: #6b7280;
        transform: translateY(-2px);
    }

    .book-submit:active {
        transform: translateY(0);
        background: #c7cdd4;
    }

    .book-submit:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(156,163,175,.45);
    }

/* Booking responsive */
@media (max-width: 768px) {
    .book-cta-sticky__wrap {
        padding: 22px 20px;
        margin-bottom: -90px;
        text-align: center;
    }

    .book-form__grid {
        grid-template-columns: 1fr;
    }
}

/* Toast */
.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    width: min(420px, calc(100% - 36px));
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    transform: translateY(14px);
    opacity: 0;
    animation: toastIn .22s ease forwards;
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
