/* ========================================
   LUVE PROFESSIONAL — STYLE SYSTEM
   Black & White Minimalistic | Gold Accents
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
    /* Black & White + Gold Palette */
    --black: #0A0A0A;
    --black-soft: #141414;
    --black-light: #1E1E1E;
    --gray-dark: #2A2A2A;
    --gray: #444444;
    --gray-mid: #777777;
    --gray-light: #B0B0B0;
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --cream: #FAFAFA;
    --gold: #C9A96E;
    --gold-light: #D4B87A;
    --gold-dim: rgba(201, 169, 110, 0.3);

    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

/* ========== RESET & BASE ========== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== SCROLLBAR ========== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ========== LOADER ========== */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.4em;
    font-weight: 400;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 160px;
    height: 1px;
    background: var(--gray-dark);
    margin: 28px auto 0;
    overflow: hidden;
}

.loader-bar-inner {
    height: 100%;
    width: 0%;
    background: var(--gold);
    animation: loaderProgress 2s ease-out forwards;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes loaderProgress {
    to {
        width: 100%;
    }
}

/* ========== NAVBAR ========== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gold-dim);
    padding: 16px 60px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.4s;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.25em;
    transition: color 0.4s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-light);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========== HERO ========== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black);
    overflow: hidden;
}

/* Subtle gold corner accents */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-color: var(--gold-dim);
    border-style: solid;
    pointer-events: none;
}

.hero::before {
    top: 60px;
    left: 60px;
    border-width: 1px 0 0 1px;
}

.hero::after {
    bottom: 60px;
    right: 60px;
    border-width: 0 1px 1px 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* Gold horizontal line under hero text */
.hero-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 32px auto 0;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SECTION GENERAL ========== */

.section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 60px;
}

/* Gold divider */
.roman-divider {
    width: 100%;
    height: 1px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.roman-divider::before {
    content: '';
    width: 70%;
    max-width: 500px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
}

/* ========== INTRO SECTION ========== */

.intro {
    text-align: center;
    padding: 80px 0;
    background: var(--black);
}

.intro .container {
    max-width: 700px;
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.intro h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.intro p {
    font-size: 1.1rem;
    color: var(--gray-mid);
    line-height: 1.9;
    font-weight: 300;
}

/* ========== CORNERSTONE SECTIONS ========== */

.cornerstone-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

/* Alternate section with subtle dark shade */
.section-alt {
    background: var(--black-soft);
}

.cornerstone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 60px;
}

.cornerstone-grid.reverse {
    direction: rtl;
}

.cornerstone-grid.reverse>* {
    direction: ltr;
}

/* 3D Canvas Area */
.cornerstone-canvas-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 0.9;
    max-width: 550px;
    cursor: grab;
}

.cornerstone-canvas-wrapper:active {
    cursor: grabbing;
}

.cornerstone-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Gold corner frame around canvas */
.canvas-frame {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    pointer-events: none;
    z-index: 1;
}

.canvas-frame::before,
.canvas-frame::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--gold);
    border-style: solid;
}

.canvas-frame::before {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.canvas-frame::after {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
}

/* Content Area */
.cornerstone-content {
    padding: 20px 0;
}

.cornerstone-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--gray-dark);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.cornerstone-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.cornerstone-content p {
    font-size: 1.05rem;
    color: var(--gray-mid);
    line-height: 1.8;
    margin-bottom: 0;
    font-weight: 300;
}

/* Gold accent under headings */
.cornerstone-content h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-top: 12px;
}

/* ========== SERVICES SECTION ========== */

.services {
    padding: 100px 0;
    text-align: center;
    background: var(--black-soft);
}

.services h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 60px;
    letter-spacing: 0.04em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 60px;
}

.service-card {
    background: var(--black);
    padding: 48px 28px;
    text-align: center;
    border: 1px solid var(--gray-dark);
    transition: all 0.5s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s ease;
}

.service-card:hover::before {
    width: 100%;
    background: var(--gold);
}

.service-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-dim);
    border-radius: 50%;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

.service-card h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-mid);
    line-height: 1.7;
    font-weight: 300;
}

/* ========== CTA SECTION ========== */

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--black);
    position: relative;
}

/* Gold borders top and bottom */
.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-section::before {
    top: 0;
}

.cta-section::after {
    bottom: 0;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--gray-mid);
    max-width: 500px;
    margin: 0 auto 36px;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    padding: 14px 40px;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.15);
}

/* ========== FOOTER ========== */

.footer {
    background: var(--black);
    padding: 50px 0 24px;
    position: relative;
    border-top: 1px solid var(--gray-dark);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    letter-spacing: 0.2em;
    font-weight: 400;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    font-weight: 300;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 400;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 0.9rem;
    color: var(--gray);
    transition: color 0.3s;
    font-weight: 300;
}

.footer-col ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 36px auto 0;
    padding: 16px 60px 0;
    border-top: 1px solid var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gray);
}

/* ========== SCROLL ANIMATIONS ========== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .navbar {
        padding: 16px 30px;
    }

    .cornerstone-grid {
        gap: 40px;
        padding: 0 30px;
    }

    .cornerstone-canvas-wrapper {
        max-width: 480px;
    }

    .services-grid {
        padding: 0 30px;
        gap: 24px;
    }

    .footer-content {
        padding: 0 30px;
    }

    .footer-bottom {
        padding: 16px 30px 0;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .navbar {
        padding: 14px 20px;
    }

    .navbar.scrolled {
        padding: 10px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.6rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-logo-img {
        height: 28px;
    }

    .hero::before,
    .hero::after {
        width: 40px;
        height: 40px;
    }

    .hero::before {
        top: 30px;
        left: 30px;
    }

    .hero::after {
        bottom: 30px;
        right: 30px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .cornerstone-section {
        padding: 50px 0;
    }

    .cornerstone-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .cornerstone-grid.reverse {
        direction: ltr;
    }

    .cornerstone-canvas-wrapper {
        max-width: 100%;
        min-height: 300px;
        margin: 0 auto;
    }

    .cornerstone-content {
        text-align: center;
    }

    .cornerstone-content h3::after {
        margin: 12px auto 0;
    }

    .cornerstone-number {
        font-size: 2.5rem;
    }

    .intro {
        padding: 50px 0;
    }

    .services {
        padding: 50px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 20px;
    }

    .cta-section {
        padding: 70px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px 20px 0;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .cornerstone-number {
        font-size: 2rem;
    }

    .cornerstone-canvas-wrapper {
        min-height: 260px;
    }
}

@media (max-width: 350px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .cornerstone-canvas-wrapper {
        min-height: 220px;
    }
}