/* =========================================================
   Keerthana Hair - Main Stylesheet
   ========================================================= */


/* =========================================================
   1. Root Variables and Reset
   ========================================================= */

:root {
    --black: #080808;
    --black-soft: #11100e;
    --card-bg: #151515;
    --gold: #e2ae36;
    --gold-light: #f6d477;
    --gold-dark: #9a6e18;
    --border-gold: #5b4312;
    --text-light: #eeeeee;
    --text-muted: #bcbcbc;
    --white: #ffffff;
    --success: #25d366;
    --shadow-gold: rgba(226, 174, 54, 0.18);
    --transition: 0.35s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text-light);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--gold);
    color: var(--black);
}


/* =========================================================
   2. Typography
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--gold);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 3vw, 2rem);
    margin-bottom: 22px;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
    color: var(--text-light);
}

strong,
b {
    color: var(--gold-light);
}

.label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-heading {
    max-width: 750px;
    margin: 0 auto 35px;
}


/* =========================================================
   3. Header and Navigation
   ========================================================= */

.navbar {
    min-height: 82px;
    background: rgba(5, 5, 5, 0.97);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 100px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition), box-shadow var(--transition);
}

.navbar-brand:hover img {
    transform: rotate(-4deg) scale(1.04);
    box-shadow: 0 0 20px var(--shadow-gold);
}

.navbar-nav {
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 10px 12px !important;
    color: var(--white) !important;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition);
}

.nav-link::after {
    position: absolute;
    right: 12px;
    bottom: 3px;
    left: 12px;
    height: 2px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    padding: 8px 11px;
    border: 1px solid var(--gold);
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(226, 174, 54, 0.25);
}

.navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
}



/* Add to css/style.css */

/* Sticky black header */
.site-header,
header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #050505;
}

.site-header .navbar,
header .navbar {
    background: #050505;
}

/* Prevent anchor sections from hiding behind the sticky header */
section[id] {
    scroll-margin-top: 10px;
}

@media (max-width: 991.98px) {
    section[id] {
        scroll-margin-top: 76px;
    }
}



/* =========================================================
   4. Sections and Backgrounds
   ========================================================= */

section {
    position: relative;
    padding: 50px 0;
}

section:nth-of-type(even) {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.01),
        rgba(226, 174, 54, 0.025)
    );
}

.bg-black {
    background: var(--black);
}


/* =========================================================
   5. Hero Section
   ========================================================= */

.hero {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 45%,
            rgba(61, 43, 11, 0.9),
            transparent 33%
        ),
        linear-gradient(135deg, #080808, #0e0b06);
}

.hero::before {
    position: absolute;
    top: 15%;
    left: -100px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(226, 174, 54, 0.15);
    border-radius: 50%;
    content: "";
    animation: rotateDecoration 18s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-img {
    width: min(100%, 500px);
    margin: 0 auto;
    border: 5px solid var(--gold);
    border-radius: 50%;
    box-shadow:
        0 0 0 10px rgba(226, 174, 54, 0.08),
        0 0 50px rgba(226, 174, 54, 0.22);
    animation: floatingHair 4s ease-in-out infinite;
}

.btn-gold,
.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 5px;
    font-weight: 700;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--black);
    border-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-gold);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}


/* =========================================================
   6. Cards
   ========================================================= */

.card-dark,
.product-card,
.review-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    padding: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.008)
        ),
        var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.card-dark::before,
.product-card::before,
.review-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        transparent
    );
    content: "";
    transform: scaleX(0);
    transition: transform var(--transition);
}

.card-dark:hover,
.product-card:hover,
.review-card:hover {
    border-color: var(--gold);
    box-shadow: 0 18px 40px rgba(226, 174, 54, 0.13);
    transform: translateY(-8px);
}

.card-dark:hover::before,
.product-card:hover::before,
.review-card:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   7. Product Cards
   ========================================================= */

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    margin-bottom: 22px;
    border-radius: 9px;
    object-fit: cover;
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.product-card:hover img {
    filter: brightness(1.12);
    transform: scale(1.045);
}

.product-card h3 {
    min-height: 58px;
    margin-bottom: 12px;
}

.product-card p {
    margin-top: auto;
    color: var(--text-muted);
}


/* =========================================================
   8. Process Section
   ========================================================= */

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-weight: 700;
}


/* =========================================================
   9. Testimonials Carousel
   ========================================================= */

.carousel {
    position: relative;
}

.carousel-inner {
    overflow: hidden;
    border-radius: 14px;
}

.carousel-item {
    padding: 12px 13%;
    transition: transform 0.65s ease-in-out;
}

.review-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.review-card p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 1.05rem;
    font-style: italic;
}

.gold {
    color: var(--gold);
    letter-spacing: 4px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 42px;
    height: 42px;
    padding: 8px;
    background-color: var(--gold);
    background-size: 55%;
    border-radius: 50%;
}


/* =========================================================
   10. FAQ Accordion
   ========================================================= */

.accordion {
    max-width: 950px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px !important;
}

.accordion-button {
    padding: 18px 22px;
    background: var(--card-bg) !important;
    color: var(--white) !important;
    font-weight: 600;
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(78%) sepia(72%)
        saturate(550%) hue-rotate(357deg) brightness(93%);
}

.accordion-button:not(.collapsed) {
    color: var(--gold) !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(226, 174, 54, 0.15);
}

.accordion-body {
    padding: 20px 22px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-gold);
}


/* =========================================================
   11. Forms
   ========================================================= */

.form-label {
    color: var(--gold-light);
    font-weight: 600;
}

.form-control {
    min-height: 48px;
    padding: 12px 15px;
    background: #181818;
    color: var(--white);
    border: 1px solid #604817;
    border-radius: 6px;
}

.form-control::placeholder {
    color: #888;
}

.form-control:focus {
    background: #1d1d1d;
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(226, 174, 54, 0.14);
}


/* =========================================================
   12. Gallery
   ========================================================= */

.gallery {
    columns: 3 220px;
    column-gap: 18px;
}

.gallery img {
    width: 100%;
    margin-bottom: 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    break-inside: avoid;
    transition:
        transform var(--transition),
        border-color var(--transition),
        filter var(--transition);
}

.gallery img:hover {
    border-color: var(--gold);
    filter: brightness(1.12);
    transform: scale(1.025);
}

.modal-content {
    border: 1px solid var(--gold-dark);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background var(--transition), transform var(--transition);
}

.lightbox-nav:hover {
    background: var(--gold-light);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

#lightboxImage {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}


/* =========================================================
   13. Floating Buttons
   ========================================================= */

.float {
    position: fixed;
    bottom: 20px;
    z-index: 1050;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--white);
    font-size: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.float:hover {
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transform: scale(1.1);
}

.wa {
    left: 18px;
    background: var(--success);
}

.call {
    bottom: 88px;
    left: 18px;
    background: var(--gold-dark);
}

.enquire {
    position: fixed;
    top: 45%;
    right: 0;
    z-index: 1050;
    padding: 16px 11px;
    background: var(--gold);
    color: var(--black);
    border-radius: 10px 0 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition:
        background var(--transition),
        padding var(--transition);
}

.enquire:hover {
    padding-right: 16px;
    padding-left: 16px;
    background: var(--gold-light);
    color: var(--black);
}


/* =========================================================
   14. Footer
   ========================================================= */

.site-footer {
    padding: 15px 0 25px;
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(226, 174, 54, 0.12),
            transparent 30%
        ),
        linear-gradient(135deg, #181208, #050505);
    border-top: 1px solid var(--gold-dark);
}

.site-footer h3 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.site-footer p {
    color: var(--text-muted);
}

.site-footer hr {
    margin: 35px 0 20px;
    border-color: var(--border-gold);
    opacity: 0.7;
}

.footer-link {
    display: block;
    width: fit-content;
    margin: 5px 0;
    color: var(--text-muted);
    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-link:hover {
    color: var(--gold);
    transform: translateX(5px);
}


/* =========================================================
   15. Scroll Reveal Animations
   ========================================================= */

.reveal,
.reveal-left,
.reveal-right,
.zoom-in {
    opacity: 0;
    will-change: opacity, transform;
    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal {
    transform: translateY(45px);
}

.reveal-left {
    transform: translateX(-45px);
}

.reveal-right {
    transform: translateX(45px);
}

.zoom-in {
    transform: scale(0.88);
}

.reveal.show,
.reveal-left.show,
.reveal-right.show,
.zoom-in.show {
    opacity: 1;
    transform: none;
}


/* =========================================================
   16. Staggered Card Animations
   ========================================================= */

.stagger > * {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.show > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger.show > *:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger.show > *:nth-child(2) {
    transition-delay: 0.12s;
}

.stagger.show > *:nth-child(3) {
    transition-delay: 0.19s;
}

.stagger.show > *:nth-child(4) {
    transition-delay: 0.26s;
}

.stagger.show > *:nth-child(5) {
    transition-delay: 0.33s;
}

.stagger.show > *:nth-child(6) {
    transition-delay: 0.4s;
}

.stagger.show > *:nth-child(7) {
    transition-delay: 0.47s;
}

.stagger.show > *:nth-child(8) {
    transition-delay: 0.54s;
}

.stagger.show > *:nth-child(9) {
    transition-delay: 0.61s;
}


/* =========================================================
   17. Keyframe Animations
   ========================================================= */

@keyframes floatingHair {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes rotateDecoration {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   18. Responsive Design
   ========================================================= */

@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: flex-start;
        padding: 15px 0;
    }

    .nav-link {
        width: 100%;
        padding: 10px 0 !important;
    }

    .nav-link::after {
        right: auto;
        bottom: 3px;
        left: 0;
        width: 40px;
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-img {
        max-width: 430px;
        margin-top: 20px;
    }

    .carousel-item {
        padding-right: 8%;
        padding-left: 8%;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    section {
        padding: 65px 0;
    }

    .navbar-brand img {
        width: 58px;
        height: 58px;
    }

    .hero {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-img {
        max-width: 330px;
    }

    .card-dark,
    .product-card,
    .review-card {
        padding: 22px;
    }

    .product-card img {
        height: 170px;
    }

    .product-card h3 {
        min-height: auto;
        font-size: 1rem;
    }

    .carousel-item {
        padding-right: 2%;
        padding-left: 2%;
    }

    .review-card {
        min-height: 250px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 32px;
        height: 32px;
    }

    .float {
        width: 50px;
        height: 50px;
    }

    .wa {
        left: 14px;
    }

    .call {
        bottom: 80px;
        left: 14px;
    }

    .enquire {
        padding: 13px 9px;
        font-size: 0.75rem;
    }

    .site-footer {
        padding-top: 45px;
    }
}

@media (max-width: 420px) {
    .hero-buttons .btn-gold,
    .hero-buttons .btn-outline-gold {
        width: 100%;
    }

    .product-card {
        padding: 14px;
    }

    .product-card img {
        height: 135px;
    }

    .product-card p {
        font-size: 0.82rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}


/* =========================================================
   19. Reduced Motion Accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .zoom-in,
    .stagger > * {
        opacity: 1;
        transform: none;
    }
}



.floating-contact-buttons {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-contact-buttons .float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-contact-buttons .float:hover,
.floating-contact-buttons .float:focus-visible {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
}

.floating-contact-buttons .wa {
    background: #25d366;
}

.floating-contact-buttons .call {
    background: #c7952e;
}

.floating-contact-buttons svg {
    display: block;
    width: 29px;
    height: 29px;
    fill: currentColor;
}

@media (max-width: 575.98px) {
    .floating-contact-buttons {
        left: 14px;
        bottom: 14px;
        gap: 9px;
    }

    .floating-contact-buttons .float {
        width: 48px;
        height: 48px;
    }

    .floating-contact-buttons svg {
        width: 25px;
        height: 25px;
    }
}