:root {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

.nav-link {
    border-radius: 999px;
    color: #57534e;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.5rem 0.55rem;
    transition: all 180ms ease;
}

.nav-link:hover,
.nav-link-active {
    background: #fef3c7;
    color: #7f1d1d;
}

.nav-dropdown-menu {
    display: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-popup-overlay {
    inset: 0;
    position: fixed;
    z-index: 50;
}

.nav-popup-overlay.hidden {
    display: none;
}

.nav-popup-backdrop {
    background: rgba(31, 19, 8, 0.45);
    border: 0;
    cursor: pointer;
    inset: 0;
    position: absolute;
}

.nav-popup-panel {
    animation: navPopupIn 180ms ease;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(69, 26, 3, 0.18);
    max-height: calc(100vh - 2rem);
    max-width: min(22rem, calc(100vw - 2rem));
    overflow-y: auto;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 100%;
}

.nav-popup-header {
    align-items: center;
    border-bottom: 1px solid #ffedd5;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
}

.nav-popup-link {
    border-radius: 0.75rem;
    color: #44403c;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 0.875rem;
    transition: background 160ms ease, color 160ms ease;
}

.nav-popup-link:hover,
.nav-popup-link-active {
    background: #fef3c7;
    color: #7f1d1d;
}

.nav-popup-sublink {
    border-radius: 0.75rem;
    color: #57534e;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem 0.5rem 2rem;
    transition: color 160ms ease;
}

.nav-popup-sublink:hover {
    color: #7f1d1d;
}

@keyframes navPopupIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-brand-wrap {
    align-items: center;
    min-width: 0;
}

.nav-title-icon-strip {
    align-self: center;
    background-image: url('../images/logo-icon.jpg');
    background-position: left center;
    background-repeat: repeat-x;
    background-size: auto 100%;
    flex: 1 1 auto;
    height: 2.15rem;
    margin-top: 0;
    min-width: 2.5rem;
    overflow: hidden;
}

.nav-brand {
    gap: 0.1rem;
}

.nav-logo-primary {
    background: linear-gradient(120deg, #7f1d1d 0%, #991b1b 38%, #b45309 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    font-family: Cinzel, serif;
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.08;
    text-transform: uppercase;
}

.nav-logo-secondary {
    color: #7f1d1d;
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    margin-top: 0.1rem;
    text-transform: uppercase;
}

.nav-logo-secondary::after {
    background: linear-gradient(90deg, #d97706, rgba(217, 119, 6, 0.15));
    border-radius: 999px;
    content: '';
    display: block;
    height: 2px;
    margin-top: 0.4rem;
    max-width: 5.5rem;
    width: 42%;
}

@media (min-width: 640px) {
    .nav-title-icon-strip {
        height: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-title-icon-strip {
        height: 2.85rem;
    }

    .nav-logo-primary {
        letter-spacing: 0.05em;
    }

    .nav-logo-secondary {
        letter-spacing: 0.16em;
    }
}

.hero-caption {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    line-height: 1.5;
}

.home-hero-video {
    display: block;
    height: auto;
    max-height: 70vh;
}

.gallery-grid {
    column-gap: 1.5rem;
    columns: 1;
}

@media (min-width: 640px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        columns: 4;
    }
}

.gallery-grid-item {
    break-inside: avoid;
    display: inline-block;
    margin-bottom: 1.5rem;
    page-break-inside: avoid;
    width: 100%;
}

.gallery-grid-image {
    display: block;
    height: auto;
    image-orientation: from-image;
    vertical-align: top;
    width: 100%;
}

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.hero-pattern {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.26), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(127, 29, 29, 0.28), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fff 48%, #fffbeb 100%);
}

.section-kicker {
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.card-hover {
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.card-hover:hover {
    box-shadow: 0 24px 60px rgba(69, 26, 3, 0.14);
    transform: translateY(-4px);
}

.feedback-timeline {
    display: flex;
    flex-direction: column;
}

.feedback-item {
    display: grid;
    gap: 1rem 1.25rem;
    grid-template-columns: 3.25rem 1fr;
}

.feedback-marker {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.feedback-marker-icon {
    align-items: center;
    background: linear-gradient(145deg, #7f1d1d, #b45309);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.28);
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-size: 1.1rem;
    height: 3.25rem;
    justify-content: center;
    width: 3.25rem;
}

.feedback-marker-line {
    background: linear-gradient(to bottom, #d97706, rgba(217, 119, 6, 0.15));
    flex: 1;
    margin: 0.65rem 0 0.35rem;
    min-height: 2.5rem;
    width: 2px;
}

.feedback-card {
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 1.5rem;
    box-shadow: 0 14px 40px rgba(69, 26, 3, 0.08);
    margin-bottom: 2rem;
    padding: 1.75rem;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.feedback-card:hover {
    box-shadow: 0 22px 52px rgba(69, 26, 3, 0.13);
    transform: translateY(-3px);
}

.feedback-number {
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.feedback-title {
    color: #7f1d1d;
    font-family: Cinzel, serif;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0.45rem;
}

.feedback-text {
    color: #44403c;
    line-height: 1.8;
    margin-top: 1rem;
}

.feedback-list {
    color: #44403c;
    line-height: 1.75;
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.feedback-list li {
    border-left: 2px solid rgba(217, 119, 6, 0.45);
    margin-top: 0.75rem;
    padding-left: 0.85rem;
}

.feedback-list li:first-child {
    margin-top: 0;
}

.feedback-card-highlight {
    background: linear-gradient(145deg, #7f1d1d 0%, #991b1b 100%);
    border-color: transparent;
}

.feedback-card-highlight .feedback-number {
    color: #fcd34d;
}

.feedback-card-highlight .feedback-title {
    color: #fff;
}

.feedback-card-highlight .feedback-text {
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640px) {
    .feedback-item {
        grid-template-columns: 2.75rem 1fr;
    }

    .feedback-marker-icon {
        font-size: 0.95rem;
        height: 2.75rem;
        width: 2.75rem;
    }

    .feedback-card {
        margin-bottom: 1.5rem;
        padding: 1.35rem;
    }
}

.ornament {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.ornament::before,
.ornament::after {
    background: linear-gradient(90deg, transparent, #d97706, transparent);
    content: '';
    display: block;
    flex: 1 1 2rem;
    height: 1px;
    max-width: 5rem;
    min-width: 1.5rem;
}

.feedback-section {
    background-image:
        radial-gradient(circle at 10% 0%, rgba(217, 119, 6, 0.06), transparent 28rem),
        radial-gradient(circle at 90% 100%, rgba(127, 29, 29, 0.05), transparent 24rem);
}

.testimonial-track {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .testimonial-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 767px) {
    .testimonial-track {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 0.5rem;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .testimonial-track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 88%;
        scroll-snap-align: center;
    }
}

.testimonial-card {
    background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 1.5rem;
    box-shadow: 0 12px 36px rgba(69, 26, 3, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 1.75rem 1.75rem 1.5rem;
    position: relative;
}

.testimonial-card-accent {
    background: linear-gradient(90deg, #7f1d1d, #d97706, #7f1d1d);
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.testimonial-card-category {
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    margin-top: 0.35rem;
    text-transform: uppercase;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    margin-top: 0.85rem;
}

.testimonial-quote {
    color: #44403c;
    flex: 1;
    font-style: normal;
    line-height: 1.8;
    margin: 1rem 0 0;
}

.testimonial-quote p::before {
    color: #d97706;
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 0;
    margin-right: 0.15rem;
    vertical-align: -0.15em;
}

.testimonial-author {
    border-top: 1px solid rgba(254, 215, 170, 0.85);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.testimonial-author cite {
    color: #7f1d1d;
    font-family: Cinzel, serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
}

.testimonial-card-featured {
    background: linear-gradient(145deg, #fff 0%, #fffbeb 55%, #fff7ed 100%);
    border-color: #f59e0b;
    box-shadow: 0 16px 42px rgba(127, 29, 29, 0.1);
}

.testimonial-card-featured .testimonial-card-category {
    color: #7f1d1d;
}

.testimonial-slider-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.testimonial-slider-dot {
    background: rgba(127, 29, 29, 0.2);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 0.55rem;
    padding: 0;
    transition: width 180ms ease, background 180ms ease;
    width: 0.55rem;
}

.testimonial-slider-dot.is-active {
    background: #7f1d1d;
    width: 1.35rem;
}

.js-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 560ms ease, transform 560ms ease;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .testimonial-track {
        scroll-behavior: auto;
    }
}

.branch-map-preview {
    aspect-ratio: 4 / 3;
    background: #fff7ed;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.branch-map-iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.branch-map-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.footer-credit-link {
    text-decoration: underline;
    text-decoration-color: rgba(251, 191, 36, 0.45);
    text-underline-offset: 3px;
}

.footer-credit-link:hover {
    text-decoration-color: #fff;
}

.social-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    transition: all 180ms ease;
    width: 2.5rem;
}

.social-link:hover {
    background: #d97706;
    color: #fff;
}

.form-field {
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    outline: none;
    padding: 0.875rem 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.form-field:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.floating-diya {
    animation: float 5s ease-in-out infinite;
}

.js-image-slider {
    min-height: 1px;
}

.slider-image {
    display: none;
}

.slider-image.is-active {
    display: block;
}

.slider-dot {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(127, 29, 29, 0.45);
    border-radius: 999px;
    height: 0.75rem;
    transition: all 180ms ease;
    width: 0.75rem;
}

.slider-dot.is-active {
    background: #7f1d1d;
    border-color: #fff;
    width: 2rem;
}

.lightbox-overlay {
    align-items: center;
    background: rgba(15, 10, 6, 0.9);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    z-index: 100;
}

.lightbox-overlay.hidden {
    display: none;
}

.lightbox-backdrop {
    cursor: zoom-out;
    inset: 0;
    position: absolute;
}

.lightbox-image {
    border: 4px solid rgba(255, 255, 255, 0.85);
    border-radius: 1.5rem;
    max-height: 88vh;
    max-width: min(1100px, 92vw);
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.lightbox-close {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #7f1d1d;
    display: flex;
    font-size: 1.25rem;
    height: 3rem;
    justify-content: center;
    position: fixed;
    right: 1.25rem;
    top: 1.25rem;
    width: 3rem;
    z-index: 2;
}

.whatsapp-float {
    align-items: center;
    background: #128c7e;
    border-radius: 999px;
    bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    color: #fff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.65rem;
    line-height: 1.2;
    padding: 0.85rem 1.15rem;
    position: fixed;
    right: 1.25rem;
    text-decoration: none;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    z-index: 90;
}

.whatsapp-float:hover {
    background: #075e54;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: #fff;
    transform: translateY(-2px);
}

.whatsapp-float i {
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 1rem;
        font-size: 0.85rem;
        max-width: calc(100vw - 2rem);
        padding: 0.75rem 1rem;
        right: 1rem;
    }

    .whatsapp-float span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}
