/*
=====================================================
Ashraf Interiors - Global Premium Styles (Corrected)
=====================================================
*/

:root {
    --primary: #0e1a36;
    --primary-soft: #172b57;
    --primary-deep: #081224;
    --gold: #b88746;
    --gold-light: #d8b37a;
    --cream: #f7f3ec;
    --cream-deep: #eee7dc;
    --white: #ffffff;
    --text: #232323;
    --muted: #6c6c6c;
    --line: rgba(14, 26, 54, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 12px 35px rgba(10, 20, 45, 0.08);
    --shadow-md: 0 22px 70px rgba(10, 20, 45, 0.14);
    --shadow-lg: 0 35px 100px rgba(5, 12, 30, 0.22);
    --container: 1280px;
    --transition: 0.35s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--gold);
    color: var(--white);
}

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
}

section {
    position: relative;
    padding: 110px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Cormorant Garamond", serif;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.4rem, 7vw, 6.5rem);
    line-height: 0.96;
}

h2 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.05;
}

h3 {
    font-size: 2rem;
    line-height: 1.12;
}

p {
    color: var(--muted);
}

.gold {
    color: var(--gold-light);
}

.section-heading {
    max-width: 720px;
}

.section-heading-center {
    margin-inline: auto;
    text-align: center;
}

.section-heading-center > p:last-child {
    max-width: 700px;
    margin: 18px auto 0;
}

.section-eyebrow {
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.section-line {
    display: block;
    width: 96px;
    height: 2px;
    margin-top: 24px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-action {
    margin-top: 48px;
    text-align: center;
}

/* Buttons */

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 14px 35px rgba(184, 135, 70, 0.28);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    border-color: rgba(184, 135, 70, 0.65);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

.text-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    color: var(--primary);
    font-weight: 600;
}

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45%;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.text-link:hover::after {
    width: 100%;
}

/* Loader / progress / cursor */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: var(--primary-deep);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-wrapper {
    text-align: center;
}

.loader-logo img {
    width: 110px;
    margin: 0 auto;
}

.loader-line {
    display: block;
    width: 170px;
    height: 2px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

#cursor,
#cursor-blur {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    border-radius: 50%;
}

#cursor {
    width: 10px;
    height: 10px;
    background: var(--gold);
}

#cursor-blur {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(184, 135, 70, 0.55);
}

#cursor.cursor-active {
    transform: scale(1.8);
}

#cursor-blur.cursor-active {
    width: 58px;
    height: 58px;
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header.sticky {
    padding: 12px 0;
    background: rgba(8, 18, 36, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 150px;
    max-height: 72px;
    object-fit: contain;
}

.desktop-nav {
    display: block;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    position: relative;
    padding: 7px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 500;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold-light);
    transition: width var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a.active {
    color: var(--gold-light);
}

.desktop-btn {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 0.88rem;
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    margin: 6px auto;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(184, 135, 70, 0.16), transparent 35%),
        linear-gradient(145deg, var(--primary-deep), var(--primary));
    transform: translateY(-100%);
    transition:
        transform 0.6s cubic-bezier(0.76, 0, 0.24, 1),
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-inner {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 100px 24px 40px;
}

.mobile-menu-inner > a:not(.btn) {
    color: var(--white);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 8vw, 4rem);
    line-height: 1;
}

/* Inner hero used by secondary pages */

.inner-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-deep);
}

.inner-hero-media,
.inner-hero-media img,
.inner-hero-overlay {
    position: absolute;
    inset: 0;
}

.inner-hero-media img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    opacity: 0.42;
}

.inner-hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 18, 36, 0.97) 0%, rgba(8, 18, 36, 0.82) 52%, rgba(8, 18, 36, 0.42) 100%),
        linear-gradient(180deg, rgba(8, 18, 36, 0.18), rgba(8, 18, 36, 0.78));
}

.inner-hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    padding-top: 150px;
    padding-bottom: 100px;
}

.inner-hero-content h1 {
    max-width: 820px;
    color: var(--white);
}

.inner-hero-content h1 span {
    display: block;
}

.inner-hero-content > p:not(.section-eyebrow) {
    max-width: 680px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.05rem;
}

.inner-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.inner-hero-actions .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.inner-hero-index {
    position: absolute;
    right: 5vw;
    bottom: 50px;
    z-index: 2;
    display: flex;
    align-items: end;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.inner-hero-index span {
    color: rgba(255, 255, 255, 0.15);
    font-family: "Cormorant Garamond", serif;
    font-size: 5rem;
    line-height: 0.8;
}

.inner-hero-index small {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Home hero */

.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 80px;
    background: var(--primary-deep);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background-image {
    width: 100%;
    height: 115%;
    opacity: 0.26;
    filter: saturate(0.8);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 18, 36, 0.98) 0%, rgba(8, 18, 36, 0.82) 48%, rgba(8, 18, 36, 0.34) 100%),
        linear-gradient(180deg, rgba(8, 18, 36, 0.35), rgba(8, 18, 36, 0.78));
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.6px, transparent 0.6px);
    background-size: 5px 5px;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 760px;
}

.hero-eyebrow {
    margin-bottom: 22px;
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 28px;
    color: var(--white);
}

.hero-title span {
    display: block;
}

.hero-description {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-actions .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-meta-item strong {
    display: block;
    color: var(--white);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.4rem;
    line-height: 1;
}

.hero-meta-item span {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.hero-visual {
    position: relative;
    perspective: 1200px;
}

.hero-image-frame {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: 180px 180px 28px 28px;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.06);
}

.hero-image-frame > img {
    width: 100%;
    height: 100%;
    min-height: 640px;
}

.hero-floating-card {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    width: min(80%, 300px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(8, 18, 36, 0.68);
    backdrop-filter: blur(16px);
    color: var(--white);
}

.hero-floating-card span,
.hero-floating-card small {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.76rem;
}

.hero-floating-card strong {
    display: block;
    margin: 5px 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
}

.scroll-cue {
    position: absolute;
    left: 34px;
    bottom: 34px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

/* Footer */

.site-footer {
    background: var(--primary-deep);
    color: #cfd6e4;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 440px;
    color: #aeb8ca;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.45rem;
}

.footer-column ul {
    display: grid;
    gap: 12px;
}

.footer-column a,
.footer-contact p {
    color: #cfd6e4;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--gold-light);
}

.footer-contact {
    display: grid;
    align-content: start;
    gap: 14px;
}

.footer-contact > a,
.footer-contact > p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.whatsapp-float,
.back-to-top {
    position: fixed;
    right: 24px;
    z-index: 900;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
}

.whatsapp-float {
    bottom: 95px;
    background: #25d366;
}

.back-to-top {
    bottom: 24px;
    border: 0;
    background: var(--gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-float:hover,
.back-to-top:hover {
    transform: translateY(-6px);
}

/* FAQ shared */

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 0;
    background: transparent;
    color: var(--primary);
    text-align: left;
    font-weight: 600;
}

.faq-question i {
    transition: transform var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
}

/* Contact status and validation */

.form-status {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    margin-top: 28px;
    padding: 18px;
    border-radius: 16px;
}

.form-status-success {
    background: rgba(38, 166, 91, 0.1);
    border: 1px solid rgba(38, 166, 91, 0.24);
}

.form-status-error {
    background: rgba(209, 67, 67, 0.08);
    border: 1px solid rgba(209, 67, 67, 0.22);
}

.form-status-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
}

.form-status strong {
    display: block;
    color: var(--primary);
}

.form-status p {
    margin-top: 3px;
    font-size: 0.9rem;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #d14343 !important;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: #d14343;
    font-size: 0.78rem;
}

.portfolio-item {
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.portfolio-hidden {
    opacity: 0;
    transform: scale(0.96);
}

/* Responsive */

@media (max-width: 1200px) {
    .desktop-nav ul {
        gap: 20px;
    }

    .desktop-btn {
        display: none;
    }

    .hero-container {
        gap: 54px;
    }

    .hero-image-frame,
    .hero-image-frame > img {
        min-height: 580px;
    }
}

@media (max-width: 992px) {
    #cursor,
    #cursor-blur {
        display: none;
    }

    .desktop-nav,
    .desktop-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    section {
        padding: 88px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding-top: 130px;
    }

    .hero-content {
        max-width: none;
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        max-width: 680px;
        margin-inline: auto;
        margin-top: 42px;
    }

    .hero-visual {
        max-width: 700px;
        margin-inline: auto;
    }

    .scroll-cue {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .site-header {
        padding: 14px 0;
    }

    .logo img {
        width: 126px;
    }

    .inner-hero-content {
        padding-top: 130px;
        padding-bottom: 80px;
        text-align: center;
    }

    .inner-hero-content > p:not(.section-eyebrow) {
        margin-inline: auto;
    }

    .inner-hero-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .inner-hero-actions .btn {
        width: min(100%, 340px);
    }

    .inner-hero-index {
        display: none;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: min(100%, 340px);
    }

    .hero-image-frame,
    .hero-image-frame > img {
        min-height: 460px;
    }

    .hero-image-frame {
        border-radius: 110px 110px 24px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 91%;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.45rem;
    }

    .hero-eyebrow,
    .section-eyebrow {
        letter-spacing: 0.16em;
    }

    .hero-image-frame,
    .hero-image-frame > img {
        min-height: 390px;
    }

    .hero-floating-card {
        right: 16px;
        bottom: 16px;
        padding: 18px;
    }

    .whatsapp-float,
    .back-to-top {
        right: 16px;
        width: 52px;
        height: 52px;
    }
}


