/* ==========================================================
   ERNANOEVENTI
   Dark Luxury Main Stylesheet
   ========================================================== */


/* ==========================================================
   ROOT VARIABLES
   ========================================================== */

:root {

    --black:
    #0C0A08;

    --black-soft:
    #15110E;

    --gold:
    #C4A35A;

    --gold-light:
    #E4D2A0;

    --white:
    #F7F3EA;

    --gray:
    #A8A39A;

    --border:
    rgba(196,163,90,0.25);

    --glass:
    rgba(255,255,255,0.04);

    --shadow:
    0 25px 70px rgba(0,0,0,.45);

    --transition:
    all .45s cubic-bezier(.2,.8,.2,1);

}



/* ==========================================================
   RESET
   ========================================================== */


* {

    margin:0;
    padding:0;
    box-sizing:border-box;

}


html {

    scroll-behavior:smooth;

}


body {

    background:
    var(--black);

    color:
    var(--white);

    font-family:
    'Lato',
    sans-serif;

    overflow-x:hidden;

}


img {

    width:100%;
    display:block;

}


a {

    text-decoration:none;

    color:inherit;

}


ul {

    list-style:none;

}


/* ==========================================================
   GRAIN TEXTURE
   ========================================================== */


.grain {

    position:fixed;

    inset:0;

    pointer-events:none;

    z-index:999;

    opacity:.05;

    background-image:
    url("../assets/grain.png");

    animation:
    grainMove .25s steps(2) infinite;

}


@keyframes grainMove {

    0% {

        transform:translate(0,0);

    }


    25% {

        transform:translate(-2%,2%);

    }


    50% {

        transform:translate(2%,-1%);

    }


    100% {

        transform:translate(0,0);

    }

}



/* ==========================================================
   GLOBAL STRUCTURE
   ========================================================== */


.container {

    width:min(1200px,90%);

    margin:auto;

}


.section {

    padding:
    120px 0;

}



.section-title {

    max-width:750px;

    margin-bottom:70px;

}


.section-title span {

    display:block;

    color:
    var(--gold);

    letter-spacing:
    4px;

    font-size:
    .75rem;

    margin-bottom:20px;

}


.section-title h2 {

    font-family:
    'Fraunces',
    serif;

    font-weight:400;

    font-size:
    clamp(2.2rem,5vw,4rem);

    line-height:
    1.15;

}



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


header {

    position:absolute;

    top:0;

    width:100%;

    z-index:100;


}


#navbar {

    width:90%;

    max-width:1200px;

    margin:auto;

    padding:
    35px 0;

    display:flex;

    align-items:center;

    justify-content:space-between;

    transition:
    var(--transition);

}



.logo {

    display:flex;

    align-items:center;

    gap:15px;

    font-family:
    'Fraunces',
    serif;

    font-size:
    1.5rem;

    letter-spacing:1px;

}


.logo span {

    color:
    var(--gold);

}


.logo-mark {

    width:38px;

    height:38px;

    fill:none;

    stroke:
    var(--gold);

    stroke-width:2;

}



#navbar ul {

    display:flex;

    gap:35px;

}



#navbar ul li a {

    font-size:.9rem;

    color:
    var(--white);

    position:relative;

}



#navbar ul li a::after {

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:1px;

    background:
    var(--gold);

    transition:
    var(--transition);

}



#navbar ul li a:hover::after {

    width:100%;

}


.menu-mobile {

    display:none;

    color:
    var(--gold);

    font-size:2rem;

}



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


.hero {

    min-height:100vh;

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    background:

    linear-gradient(
    rgba(12,10,8,.75),
    rgba(12,10,8,.95)
    ),

    url("../img/hero.jpg")

    center/cover;

}



.hero-overlay {

    position:absolute;

    inset:0;

    background:

    radial-gradient(
    circle at center,
    rgba(196,163,90,.15),
    transparent 45%
    );

}



.hero-content {

    position:relative;

    z-index:2;

    max-width:900px;

}



.eyebrow {

    color:
    var(--gold);

    letter-spacing:
    6px;

    font-size:
    .85rem;

    margin-bottom:30px;

}



.hero-title {

    font-family:
    'Fraunces',
    serif;

    font-size:
    clamp(3rem,8vw,7rem);

    font-weight:400;

    line-height:1;

    margin-bottom:30px;

}



/* SHIMMER */


.shimmer {

    background:

    linear-gradient(
    90deg,
    #C4A35A,
    #fff4c4,
    #C4A35A
    );

    background-size:200%;

    -webkit-background-clip:text;

    color:transparent;

    animation:

    shimmer 5s infinite;

}



@keyframes shimmer {

    0% {

        background-position:-200%;

    }


    100% {

        background-position:200%;

    }

}



.hero-content h2 {

    font-family:
    'Fraunces',
    serif;

    font-weight:300;

    font-size:
    clamp(1.3rem,3vw,2rem);

    margin-bottom:25px;

}



.hero-description {

    color:
    var(--gray);

    max-width:650px;

    margin:auto;

    line-height:1.8;

}


/* ==========================================================
   BUTTONS
   ========================================================== */


.hero-buttons {

    margin-top:45px;

    display:flex;

    justify-content:center;

    gap:20px;

}



.btn-gold,
.btn-outline {

    padding:

    16px 35px;

    border-radius:50px;

    transition:
    var(--transition);

}



.btn-gold {

    background:
    var(--gold);

    color:
    var(--black);

}



.btn-gold:hover {

    background:
    var(--gold-light);

    transform:
    translateY(-5px);

    box-shadow:
    0 15px 35px rgba(196,163,90,.3);

}



.btn-outline {

    border:
    1px solid var(--border);

}



.btn-outline:hover {

    border-color:
    var(--gold);

    color:
    var(--gold);

}
/* ==========================================================
   HERO HIGHLIGHTS
   ========================================================== */


.hero-highlights {

    position:relative;

    z-index:5;

    width:min(1200px,90%);

    margin:-80px auto 0;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}



.highlight-card {

    background:

    linear-gradient(
    145deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,.02)
    );

    border:

    1px solid var(--border);

    backdrop-filter:
    blur(15px);

    padding:40px 35px;

    transition:
    var(--transition);

}



.highlight-card:hover {

    transform:
    translateY(-12px);

    border-color:
    var(--gold);

    box-shadow:
    var(--shadow);

}



.highlight-card .year {

    color:
    var(--gold);

    font-size:
    .85rem;

    letter-spacing:
    3px;

    margin-bottom:20px;

}



.highlight-card h3 {

    font-family:
    'Fraunces',
    serif;

    font-size:
    1.5rem;

    font-weight:400;

    margin-bottom:15px;

}



.highlight-card p {

    color:
    var(--gray);

    line-height:
    1.7;

}



/* ==========================================================
   ABOUT
   ========================================================== */


.about {

    padding-top:160px;

}



.about-grid {

    display:grid;

    grid-template-columns:
    0.8fr 1.2fr;

    gap:80px;

    align-items:center;

}



.about-image {

    position:relative;

}



.about-image::before {

    content:"";

    position:absolute;

    inset:-20px;

    border:

    1px solid var(--border);

    z-index:-1;

}



.about-image img {

    filter:
    grayscale(20%);

}



.about-text p {

    color:
    var(--gray);

    line-height:
    1.9;

    margin-bottom:25px;

}



.about-text .lead {

    color:
    var(--white);

    font-size:
    1.15rem;

}



.about-text strong {

    color:
    var(--gold-light);

    font-weight:400;

}



/* ==========================================================
   NUMBERS
   ========================================================== */


.numbers {

    padding:

    70px 0;

    border-top:

    1px solid var(--border);

    border-bottom:

    1px solid var(--border);

}



.numbers-grid {

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

}



.number-box {

    text-align:center;

    padding:

    20px;

    border-right:

    1px solid var(--border);

}



.number-box:last-child {

    border-right:none;

}



.number-box h3 {

    font-family:
    'Fraunces',
    serif;

    color:
    var(--gold);

    font-size:
    3rem;

    font-weight:400;

}



.number-box p {

    color:
    var(--gray);

    margin-top:10px;

}



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


.services {

    background:

    linear-gradient(
    180deg,
    transparent,
    rgba(196,163,90,.04)
    );

}



.services-grid {

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:25px;

}



.service-card {

    position:relative;

    padding:

    45px 30px;

    background:

    rgba(255,255,255,.03);

    border:

    1px solid var(--border);

    transition:
    var(--transition);

    overflow:hidden;

}



.service-card::before {

    content:"";

    position:absolute;

    width:150px;

    height:150px;

    top:-80px;

    right:-80px;

    background:

    radial-gradient(
    circle,
    rgba(196,163,90,.25),
    transparent 70%
    );

    opacity:0;

    transition:
    var(--transition);

}



.service-card:hover {

    transform:
    translateY(-12px);

    border-color:
    var(--gold);

    box-shadow:
    var(--shadow);

}



.service-card:hover::before {

    opacity:1;

}



.service-icon {

    width:55px;

    height:55px;

    margin-bottom:30px;

}



.service-icon svg {

    width:100%;

    height:100%;

    fill:none;

    stroke:
    var(--gold);

    stroke-width:2;

    stroke-linecap:round;

    stroke-linejoin:round;

    transition:
    var(--transition);

}



.service-card:hover svg {

    transform:
    scale(1.15);

    filter:

    drop-shadow(
    0 0 10px rgba(196,163,90,.8)
    );

}



.service-card h3 {

    font-family:

    'Fraunces',
    serif;

    font-size:

    1.5rem;

    font-weight:400;

    margin-bottom:20px;

}



.service-card p {

    color:

    var(--gray);

    line-height:

    1.8;

}
/* ==========================================================
   TIMELINE
   ========================================================== */


.timeline {

    position:relative;

}


.timeline-wrapper {

    position:relative;

    max-width:1000px;

    margin:auto;

}


.timeline-wrapper::before {

    content:"";

    position:absolute;

    left:50%;

    top:0;

    transform:translateX(-50%);

    width:1px;

    height:100%;

    background:

    linear-gradient(
    to bottom,
    transparent,
    var(--gold),
    transparent
    );

}



.timeline-item {

    position:relative;

    width:50%;

    padding:30px 50px;

}



.timeline-item::before {

    content:"";

    position:absolute;

    top:45px;

    width:14px;

    height:14px;

    background:

    var(--gold);

    border-radius:50%;

    box-shadow:

    0 0 20px rgba(196,163,90,.8);

}



.timeline-item.left {

    left:0;

    text-align:right;

}



.timeline-item.right {

    left:50%;

}



.timeline-item.left::before {

    right:-7px;

}



.timeline-item.right::before {

    left:-7px;

}



.timeline-content {

    background:

    rgba(255,255,255,.03);

    border:

    1px solid var(--border);

    padding:

    35px;

    transition:

    var(--transition);

}



.timeline-content:hover {

    border-color:

    var(--gold);

    transform:

    translateY(-8px);

    box-shadow:

    var(--shadow);

}



.timeline-content .year {

    display:block;

    color:

    var(--gold);

    letter-spacing:

    3px;

    font-size:.8rem;

    margin-bottom:15px;

}



.timeline-content h3 {

    font-family:

    'Fraunces',
    serif;

    font-size:

    1.5rem;

    font-weight:400;

    margin-bottom:15px;

}



.timeline-content p {

    color:

    var(--gray);

    line-height:

    1.8;

}



/* ==========================================================
   PORTFOLIO GALLERY
   ========================================================== */


.portfolio {

    background:

    linear-gradient(
    180deg,
    rgba(196,163,90,.03),
    transparent
    );

}



.gallery-grid {

    display:grid;

    grid-template-columns:

    repeat(12,1fr);

    grid-auto-rows:280px;

    gap:20px;

}



.gallery-item {

    position:relative;

    overflow:hidden;

    cursor:pointer;

    border:

    1px solid var(--border);

}



.gallery-item.large {

    grid-column:

    span 7;

    grid-row:

    span 2;

}



.gallery-item.wide {

    grid-column:

    span 8;

}



.gallery-item:not(.large):not(.wide) {

    grid-column:

    span 5;

}



.gallery-item img {

    height:100%;

    object-fit:cover;

    transition:

    transform .8s cubic-bezier(.2,.8,.2,1);

}



.gallery-item::after {

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(
    transparent,
    rgba(12,10,8,.9)
    );

}



.gallery-item:hover img {

    transform:

    scale(1.08);

}



.gallery-item figcaption {

    position:absolute;

    bottom:30px;

    left:30px;

    z-index:2;

    transform:

    translateY(20px);

    opacity:0;

    transition:

    var(--transition);

}



.gallery-item:hover figcaption {

    opacity:1;

    transform:

    translateY(0);

}



.gallery-item h3 {

    font-family:

    'Fraunces',
    serif;

    font-weight:400;

    font-size:

    1.7rem;

}



.gallery-item p {

    color:

    var(--gold-light);

    margin-top:8px;

}



/* ==========================================================
   LIGHTBOX
   ========================================================== */


.lightbox {

    position:fixed;

    inset:0;

    background:

    rgba(0,0,0,.92);

    display:flex;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    opacity:0;

    visibility:hidden;

    transition:

    var(--transition);

    z-index:2000;

}



.lightbox.active {

    opacity:1;

    visibility:visible;

}



.lightbox img {

    max-width:

    85%;

    max-height:

    80vh;

    object-fit:contain;

}



#lightbox-caption {

    color:

    var(--gold-light);

    margin-top:25px;

    font-family:

    'Fraunces',
    serif;

    font-size:

    1.4rem;

}



.close-lightbox {

    position:absolute;

    top:40px;

    right:50px;

    color:

    var(--white);

    font-size:

    3rem;

    cursor:pointer;

    transition:

    var(--transition);

}



.close-lightbox:hover {

    color:

    var(--gold);

}
/* ==========================================================
   CONTACT
   ========================================================== */


.contact {

    position:relative;

}



.contact-grid {

    display:grid;

    grid-template-columns:

    .8fr 1.2fr;

    gap:80px;

    align-items:start;

}



.contact-info {

    display:flex;

    flex-direction:column;

    gap:20px;

}



.info-card {

    padding:30px;

    background:

    rgba(255,255,255,.03);

    border:

    1px solid var(--border);

    transition:

    var(--transition);

}



.info-card:hover {

    border-color:

    var(--gold);

    transform:

    translateX(10px);

}



.info-card h3 {

    font-family:

    'Fraunces',
    serif;

    font-size:

    1.3rem;

    font-weight:400;

    color:

    var(--gold-light);

    margin-bottom:10px;

}



.info-card p {

    color:

    var(--gray);

}



/* ==========================================================
   CONTACT FORM
   ========================================================== */


.contact-form {

    display:flex;

    flex-direction:column;

    gap:20px;

}



.contact-form input,
.contact-form textarea {

    width:100%;

    background:

    rgba(255,255,255,.04);

    border:

    1px solid var(--border);

    padding:

    18px 20px;

    color:

    var(--white);

    font-family:

    'Lato',
    sans-serif;

    transition:

    var(--transition);

}



.contact-form textarea {

    resize:none;

}



.contact-form input::placeholder,
.contact-form textarea::placeholder {

    color:

    rgba(247,243,234,.5);

}



.contact-form input:focus,
.contact-form textarea:focus {

    outline:none;

    border-color:

    var(--gold);

    background:

    rgba(196,163,90,.05);

}



.contact-form .btn-gold {

    width:max-content;

    border:none;

    cursor:pointer;

    font-family:

    'Lato',
    sans-serif;

}



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


footer {

    background:

    #080706;

    padding:

    80px 0 30px;

    border-top:

    1px solid var(--border);

}



.footer-grid {

    display:grid;

    grid-template-columns:

    1.3fr 1fr 1fr 1fr;

    gap:40px;

}



footer h3 {

    font-family:

    'Fraunces',
    serif;

    font-size:

    2rem;

    font-weight:400;

    margin-bottom:15px;

}



footer h3 span {

    color:

    var(--gold);

}



footer h4 {

    color:

    var(--gold-light);

    font-weight:400;

    margin-bottom:20px;

}



footer p,
footer li {

    color:

    var(--gray);

    line-height:

    1.8;

    font-size:.95rem;

}



footer li {

    margin-bottom:8px;

}



.footer-bottom {

    margin-top:60px;

    padding-top:25px;

    border-top:

    1px solid var(--border);

    text-align:center;

}



/* ==========================================================
   BACK TO TOP
   ========================================================== */


#backToTop {

    position:fixed;

    right:30px;

    bottom:30px;

    width:50px;

    height:50px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:

    var(--gold);

    color:

    var(--black);

    border-radius:50%;

    font-size:1.5rem;

    opacity:0;

    visibility:hidden;

    transition:

    var(--transition);

    z-index:1000;

}



#backToTop.visible {

    opacity:1;

    visibility:visible;

}



#backToTop:hover {

    transform:

    translateY(-5px);

    background:

    var(--gold-light);

}



/* ==========================================================
   NAVBAR SCROLL STATE
   ========================================================== */


#navbar.scrolled {

    background:

    rgba(12,10,8,.85);

    backdrop-filter:

    blur(15px);

    padding:

    20px 0;

}



/* ==========================================================
   REVEAL ANIMATIONS
   ========================================================== */


.reveal {

    opacity:0;

    transform:

    translateY(40px);

    transition:

    1s ease;

}



.reveal.active {

    opacity:1;

    transform:

    translateY(0);

}



/* ==========================================================
   SELECTION
   ========================================================== */


::selection {

    background:

    var(--gold);

    color:

    var(--black);

}



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


::-webkit-scrollbar {

    width:10px;

}



::-webkit-scrollbar-track {

    background:

    var(--black);

}



::-webkit-scrollbar-thumb {

    background:

    var(--gold);

    border-radius:20px;

}



::-webkit-scrollbar-thumb:hover {

    background:

    var(--gold-light);

}