/* ============================================================
   RAKISTATTOO — Main Stylesheet
   ============================================================
   TABLE OF CONTENTS
   1. Variables & Reset
   2. Typography
   3. Header & Navigation
   4. Hero
   5. Features
   6. Marquee
   7. About
   8. Services & Tables
   9. Gallery & Lightbox
   10. Contact
   11. Footer
   12. Media Queries
   ============================================================ */


/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */

:root {
    --bg-color: #F8F9F7;
    --text-main: #3E3A41;
    --ink-black: #080607;
    --muted-gray: #7B7A7E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #080607;
    margin: auto 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg-texture.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    filter: brightness(0.8) opacity(0.5) contrast(150%);
}

main {
    padding: 2rem 5%;
    overflow-x: hidden;
}

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}


/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

.font-header {
    font-family: "Bebas Neue", sans-serif;
    color: #F8F9F7;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 500;
    letter-spacing: 1px;
}

.font-title, h1, h2 {
    font-family: "Special Gothic Expanded One", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: clamp(1rem, 5vh, 3.75rem);
    color: #F8F9F7;
    padding: 0;
    margin-bottom: 1rem;
}

.font-regular, p {
    font-family: "Montserrat", sans-serif;
}

.emphasized {
    font-family: "Special Gothic Expanded One", sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin: 0.2rem 0;
}

a i {
    text-decoration: none;
    color: #F8F9F7;
}


/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */

header {
    position: sticky;
    top: 0;
    z-index: 998;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    background: #080607;
}

header a {
    margin: 0;
    text-decoration: none;
    color: inherit;
}

header hr {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    color: #F8F9F7;
}

.brand {
    display: flex;
    align-items: center;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: 1px;
    border-right: 2px solid #F8F9F7;
    padding: clamp(20px, 2vw, 25px) clamp(20px, 1.5vw, 20px) clamp(0px, 1vw, 5px);
}

.brand img {
    height: clamp(2.5rem, 4vw, 5rem);
    width: auto;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 5% 15px;
}

nav {
    margin: 0 1rem;
}

nav ul {
    display: flex;
    gap: clamp(3.5rem, 5vw, 10rem);
    list-style: none;
    color: #F8F9F7;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 600;
    white-space: nowrap;
}

nav ul li a {
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
    line-height: 1;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #F8F9F7;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.nav-label {
        display: none;
    }

.hamburger {
    color: #F8F9F7;
    display: none;
}


/* ============================================================
   4. HERO
   ============================================================ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 2px;
    gap: 20px;
    width: 100%;
    padding: 0 10%;
    min-height: 85vh;
    overflow: hidden;
    background-color: #F8F9F7;
    color: #080607;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 4vw, 5.5rem);
    color: #080607;
    position: relative;
    padding: 10px;
    margin: 0 0 1rem;
    z-index: 2;
}

.hero p {
    position: relative;
    z-index: 2;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 500;
    text-align: justify;
    line-height: 1.4rem;
    padding: 10px;
    margin: 0 0 1rem;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 50%;
    z-index: 1;
    opacity: 0.4;
    filter: blur(2.5px) contrast(100%) invert(1);
    transform: scale(1.1);
}

.cycle-word {
    display: inline;
    line-height: 1;
    min-width: 100%;
    transition: color 0.4s ease;
}

/* .hero h1:hover .cycle-word {
    color: #ffffff;
} */

.cta-button {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px) contrast(200%);
    border: 2px solid rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    color: #080607;
    -webkit-text-stroke: 1px rgba(19, 18, 18, 0.474);
    padding: 10px 25px;
    font-family: "Special Gothic Expanded One", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 30px auto;
    max-width: 95%;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta-button:hover {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.8);
}


/* ============================================================
   5. FEATURES
   ============================================================ */

.features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0 0;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: #F8F9F7;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1.2s ease, transform 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-number {
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 10vw, 8rem);
    color: rgba(0, 0, 0, 0.06);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.feature-card:nth-child(1) { background: #F8F9F7; }
.feature-card:nth-child(2) { background: #EDEEE9; }
.feature-card:nth-child(3) { background: #e0e1dd  ; }

.feature-card p {
    background: none;
    padding: 0;
}


/* ============================================================
   6. MARQUEE
   ============================================================ */

.marquee {
    opacity: 0;
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
    transition: opacity 1s ease;
}

.marquee.visible {
    opacity: 1;
}

.marquee p {
    white-space: nowrap;
    display: block;
    width: 100%;
    font-size: clamp(0.52rem, 1vw, 3rem);
    text-align-last: justify;
    color: #F8F9F7;
    opacity: 0.7;
    padding: 20px 0;
}

.marquee-content {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 16rem;
    gap: 1.5rem;
    width: max-content;
    margin: 1rem;
    animation: marquee-animate 30s linear infinite;
}

.marquee-content img {
    width: 16rem;
    height: 20rem;
    object-fit: cover;
    border-radius: 8px;
}

@keyframes marquee-animate {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.gallery-button {
    position: relative;
    z-index: 5;
    background: rgba(30, 25, 17, 0.1);
    border: 2px solid rgba(251, 251, 251, 0.4);
    border-radius: 8px;
    color: #F8F9F7;
    padding: 10px 25px;
    font-family: "Special Gothic Expanded One", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 40px auto 0px;
    width: 80vw;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.gallery-button:hover {
    background: #F8F9F7;
    color: #080607;
    border-color: #F8F9F7;
}



/* ============================================================
   7. ABOUT
   ============================================================ */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    height: 90vh;
    padding: 0.5rem 0;
}

.about h1 {
    padding: 0.5rem 0;
}

.about-image-main {
    height: 100%;
    min-height: 0;
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-side-container {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    min-height: 0;
}

.about-accent-images {
    min-height: 0;
}

.about-accent-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    object-position: center 60%;
    filter:grayscale(30%) hue-rotate(-5deg);
}

.about-text p {
    line-height: clamp(1.2, 2.5vw, 2.2);
    text-align: justify;
    font-size: clamp(0.5rem, 2vw + 1rem, 1.5rem);
    color: #F8F9F7;
}


/* ============================================================
   8. SERVICES & TABLES
   ============================================================ */

.services-pricetables {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

.services-pricetables h2 {
    font-family: "Special Gothic Expanded One", sans-serif;
    text-transform: uppercase;
    color: #F8F9F7;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    padding: clamp(0.5rem, 0.5vw, 1.5rem) 0;
    margin-top: 1rem;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: "Montserrat", sans-serif;
    color: #F8F9F7;
    margin-bottom: 2rem;
}

thead {
    border-bottom: 2px solid #F8F9F7;
}

th {
    font-family: "Special Gothic Expanded One", sans-serif;
    text-transform: uppercase;
    font-size: clamp(1rem, 1.25vw, 2.5rem);
    letter-spacing: 0.1rem;
    padding: clamp(1rem, 2vw, 2rem) 0;
    text-align: left;
}

td {
    padding: clamp(0.65rem, 1.5vw, 1.25rem) clamp(0.25rem, 0.5vw, 0.75rem);
    font-size: clamp(1rem, 2vw, 2.5rem);
    vertical-align: middle;
}

tr {
    border-bottom: 1px solid rgba(248, 249, 247, 0.15);
}

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

td:first-child {
    width: 60%;
}

.price {
    text-align: right;
}

tr:hover td {
    background-color: rgba(248, 249, 247, 0.05);
}

tr:hover td:first-child {
    border-right: 1px solid #F8F9F7;
}


/* ============================================================
   9. GALLERY & LIGHTBOX
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-content: center;
    grid-gap: clamp(6px, 1vw, 16px);
    margin: 1.5rem 0 0;
}

.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

.gallery-cta-button {
    position: relative;
    z-index: 5;
    background: rgba(30, 25, 17, 0.1);
    border: 2px solid rgba(251, 251, 251, 0.4);
    border-radius: 8px;
    color: #F8F9F7;
    padding: 10px 25px;
    font-family: "Special Gothic Expanded One", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 40px auto 0px;
    width: 80vw;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.gallery-cta-button:hover {
    background: #F8F9F7;
    color: #080607;
    border-color: #F8F9F7;
}

#lightbox {
    position: fixed;
    z-index: 999;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
}

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

#lightbox.active img {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
}


/* ============================================================
   10. CONTACT
   ============================================================ */

.contact-location h2,
.contact-hours h2,
.contact-methods h2 {
    text-align: left;
}

.contact-location h2 {
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
}

.contact-location {
    grid-column: 1;
    grid-row: 1 / 3;
    border-right: 1px solid rgba(248, 249, 247, 0.15);
    padding-right: 2rem;
}

.contact-hours {
    grid-column: 2;
    grid-row: 1;
    padding: 0 2rem 2rem;
}

.contact-methods {
    grid-column: 2;
    grid-row: 2;
    padding: 2rem;
}

.contact-methods li a {
    text-align: justify;
    text-decoration: none;
    color: #F8F9F7;
}

.map-embed {
    padding: 1rem;
    border: 2px solid #F8F9F7;
    border-radius: 8px;
    display: block;
    width: min(90vw, 60vh);
    margin: 1rem auto;
}

.map-embed iframe {
    filter: invert(100%) hue-rotate(180deg);
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
}

address {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    color: #F8F9F7;
    font-size: clamp(0.875rem, 1.8vw, 1.125rem);
    text-align: justify;
    line-height: 2;
    margin-top: 1rem;
    padding: 0 1.6rem;
}

.contact-hours p {
    font-family: "Montserrat", sans-serif;
    color: #F8F9F7;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 2;
}

.contact-methods ul {
    list-style: none;
    font-family: "Montserrat", sans-serif;
    color: #F8F9F7;
    font-size: clamp(0.875rem, 1.8vw, 1.125rem);
    line-height: 2;
}


/* ============================================================
   11. FOOTER
   ============================================================ */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    color: #F8F9F7;
    padding: 1.5rem 5%;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(248, 249, 247, 0.15);
    text-align: center;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-socials__label {
    font-family: "Special Gothic Expanded One", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

footer ul li a i {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

footer ul li a:hover i {
    opacity: 1;
}

.footer-copyright {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    opacity: 0.4;
}

/* ============================================================
   12. MEDIA QUERIES
   ============================================================ */

@media (max-width: 768px) {
    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #080607;
        border-left: 2px solid rgba(248, 249, 247, 0.5);
        flex-direction: column;
        gap: 2rem;
        padding: 5.5rem 2rem;
        transition: right 0.3s ease;
        display: flex;
        z-index: 1001;
    }

    nav ul.open {
        right: 0;
    }

    nav ul.open .nav-label {
        display: block;
        font-family: "Special Gothic Expanded One", sans-serif;
        font-size: 0.6rem;
        letter-spacing: 0.3rem;
        opacity: 0.3;
        text-transform: uppercase;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: -0.5rem;
    }

    nav ul li a {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        opacity: 0.5;
    }

   nav ul li a::hover {
      opacity: 1;
      /* new change remove if error */
   }

    nav ul li {
        border-bottom: 1px solid rgba(248, 249, 247, 0.15);
        padding-bottom: 1rem;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a::after {
        display: none;
    }

    nav ul.open li a.active {
        opacity: 1;
    
    }

    nav ul.open li a.active::after {
        display: none;
    }

    .hero h1 {
        white-space: normal;
        font-size: clamp(1.8rem, 7vw, 5rem);
        margin: 0;
        text-align: center;
    }

    .hero p {
        margin: 0;
    }

    .hero img {
        object-position: 30% 40%;
    }

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

    .about {
        height: auto;
        min-height: 0;
    }

    .about-text p {
        font-size: clamp(0.5rem, 2.5vw, 0.85rem);
        line-height: 1.4;
    }

    .emphasized {
        font-size: clamp(0.6rem, 3vw, 1rem);
    }

    .about-side-container {
        grid-template-rows: auto;
        height: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-location,
    .contact-hours,
    .contact-methods {
        grid-column: 1;
        grid-row: auto;
    }

    .contact-location {
        border-right: none;
        padding-right: 0;
    }

    .contact-hours {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (min-width: 768px) {
    .services-pricetables h2 {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

    th {
        font-size: clamp(0.7rem, 1vw, 1rem);
    }

    td {
        font-size: clamp(0.8rem, 1.2vw, 1.1rem);
    }

    .services-pricetables {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch;
    }

    .services-pricetables h1,
    .services-pricetables h2 {
        grid-column: 1 / -1;
    }

    .table-group {
        display: flex;
        flex-direction: column;
    }

    .table-group table {
        flex: 1;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

