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

.hero{

    width:100%;

    min-height:100vh;

    background-image:url("../images/hero.jpg");

    background-position:center center;

    background-repeat:no-repeat;

    background-size:cover;

    display:flex;

    align-items:flex-start;

    padding-left:100px;

    padding-top:160px;

    position:relative;

}

.hero-content{

    width:620px;

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;

    transform:translate(120px,-10px);

}

/*=========================================
 HEADER
=========================================*/

.header{

    width:90%;

    height:95px;

    position:fixed;

    top:25px;

    left:50%;

    transform:translateX(-50%);

    z-index:9999;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 30px;

    border-radius:22px;


    background:rgba(255,255,255,.10);

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,.30);

    box-shadow:0 10px 30px rgba(0,0,0,.06);

}

.logo{

    display:flex;

    align-items:center;

    gap:18px;

    flex-shrink:0;

}

.logo img{

    width:100px;

}



.logo-text h1{

    font-family:'Cormorant Garamond',serif;

    font-size:34px;

    font-weight:700;

    color:#264132;

    letter-spacing:.5px;

}

.logo-text span{

    display:block;

    margin-top:4px;

    font-size:12px;

    letter-spacing:3px;

    color:#8f6d36;

}


nav{

    display:flex;

    gap:30px;
	
	margin-left:60px;

}

nav a{

    font-family:'Cormorant Garamond', serif;

    font-size:22px;

    font-weight:700;

    letter-spacing:0.5px;

    color:#353535;

    text-decoration:none;

    position:relative;

    transition:all .35s ease;

}

nav a::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:-8px;

    width:0;

    height:0px;

    background:#caa65b;

    transform:translateX(-50%);

    transition:.35s ease;

}

nav a:hover{

    color:#ffffff;

    font-weight:800;

    transform:translateY(-2px);

}

nav a:hover::after{

    width:100%;

}

.flags{

    display:flex;

    align-items:center;

    gap:22px;

}

.flags img{

    width:40px;

    cursor:pointer;

    transition:all .30s ease;

}

.flags img:hover{

    transform:translateY(-1px) scale(1.10);

    filter:brightness(1.10);

}



.flag{

    position:relative;

    display:inline-flex;

    justify-content:center;

    align-items:center;

}

.flag span{

    position:absolute;

    top:28px;

    left:50%;

    transform:translateX(-50%) translateY(4px);

    background:rgba(255,250,240,.95);

    color:#234536;

    border:1px solid rgba(202,166,91,.45);

    border-radius:12px;

    padding:3px 8px;

    font-size:11px;

    font-weight:600;

    letter-spacing:1px;

    white-space:nowrap;

    opacity:0;

    visibility:hidden;

    transition:all .25s ease;

    pointer-events:none;

}

.flag:hover span{

    opacity:1;

    visibility:visible;

    transform:translateX(-50%) translateY(0);

}

.hero-top{

    display:block;

    font-family:'Cormorant Garamond',serif;

    font-size:22px;

    letter-spacing:5px;

    color:#8f6d36;

    margin-bottom:0px;

}

.hero-title{

    font-family:'EB Garamond', serif;

    font-size:110px;

    font-weight:600;

    line-height:.9;

    color:#16382f;
	
	margin-top:5px !important;

    margin-bottom:0px;
	
	opacity:0;
    transform:translateY(15px);
    transition:opacity .8s ease, transform .8s ease;

}

.hero-subtitle{

    font-family:'Cormorant Infant', serif;

    font-size:78px;

    font-weight:500;

    color:#6f4d22;
	
	opacity:0;
    transform:translateY(15px);
    transition:opacity .8s ease, transform .8s ease;

}

.hero-services{

    margin-top:0px;

    font-family:'Cormorant Garamond', serif;

    font-size:22px;

    line-height:1.8;

    color:#3d3d3d;

    text-align:center;

    opacity:0;

    transform:translateY(12px);

    transition:opacity .9s ease, transform .9s ease;

}

.hero-services.show{

    opacity:1;

    transform:translateY(0);

}

.hero-author{

    margin-top:16px;

    text-align:center;

}

.hero-author span{

    display:block;

    font-family:'Cormorant Garamond', serif;

    font-size:23px;

    font-style:italic;

    color:#5b4a32;

    margin-bottom:7px;

}

.hero-author h3{

    font-family:'Allura', cursive;

    font-size:68px;

    font-weight:400;

    color:#234536;

    line-height:1;

}

.hero-divider{
    width:85px;
    height:auto;
    display:block;
    margin:18px auto;
    opacity:.95;
}

/*=============================
  GALLERY DROPDOWN
==============================*/

.gallery-menu{
    position:relative;
}

.dropdown{

    position:absolute;

    top:60px;

    left:0;

    width:240px;

    background:rgba(255,255,255,.06);

    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);

    border:1px solid rgba(255,255,255,.35);

    border-top:none;

    border-radius:0 0 22px 22px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    overflow:hidden;

    opacity:0;

    visibility:hidden;

    transform:scale(.96);

    transform-origin:top center;

    transition:.28s ease;

    z-index:999;

}

.gallery-menu:hover .dropdown{

    opacity:1;

    visibility:visible;

    transform:scale(1);

}

.dropdown a{

    display:block;

    padding:18px 30px;

    color:#234536;   /* أو اللون الأصلي */

    font-family:'Cormorant Garamond', serif;

    font-size:20px;

    font-weight:700;

    text-decoration:none;

    transition:.30s ease;

    border-left:3px solid transparent;
	


}

.dropdown a:last-child{

    border-bottom:none;

}

.dropdown a:hover{

    color:#234536;

    background:rgba(201,162,93,.08);

    padding-left:34px;

    box-shadow:inset 3px 0 #c9a25d;

}

/* ===========================
   Hero Intro Animation
=========================== */

.reveal.show{

    opacity:1;

    transform:translateY(0);

}

.reveal{

    opacity:0;

    transform:translateY(18px) scale(.96);

    transition:
    opacity 1.4s ease,
    transform 1.4s cubic-bezier(.22,.61,.36,1);

}

.reveal.show{

    opacity:1;

    transform:translateY(0) scale(1);

}

/* ===== Hero Title Special Animation ===== */

.hero-title.reveal{

    transition:
        opacity 2s ease,
        transform 2s cubic-bezier(.22,.61,.36,1);

}

.hero-subtitle.reveal{

    transition:
        opacity 1.2s ease,
        transform 1.2s ease;

}

.hero-author h3.reveal{

    transition:
        opacity 1.8s ease,
        transform 1.8s cubic-bezier(.22,.61,.36,1);

}

.signature{

    width:300px;

    display:block;

    margin:12px auto 0;

    opacity:1;

    clip-path: inset(0 100% 0 0);

    animation: signReveal 3.5s ease forwards;

    animation-play-state: paused;

}

@keyframes signReveal{

    from{

        clip-path: inset(0 100% 0 0);

    }

    to{

        clip-path: inset(0 0 0 0);

    }

}

     .hero-title.show,
     .hero-subtitle.show{

    opacity:1;

    transform:translateY(0);

}

.ornament-top{

    opacity:0;

    transform:translateY(-6px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}

.ornament-top.show{

    opacity:1;

    transform:translateY(0);

}


/*======================================
        GALLERY PAGE BACKGROUND
======================================*/

body.gallery-page{

    background-image:url("../images/gallery-background.png");

    background-position:center top;

    background-size:cover;

    background-repeat:no-repeat;

    background-attachment:fixed;

    background-color:#f5f1e8;

}

/* ==========================================
   MOBILE — HOME PAGE
========================================== */

@media (max-width: 768px){

    .hero{
        min-height:100svh;
        padding:150px 20px 40px;
        align-items:flex-start;
        overflow:hidden;
    }

    .hero-content{
        width:100%;
        max-width:100%;
        transform:none;
        margin:0 auto;
    }

    .hero-top{
        font-size:15px;
        letter-spacing:3px;
    }

    .hero-title{
        font-size:72px;
        line-height:.9;
    }

    .hero-subtitle{
        font-size:48px;
        line-height:1;
    }

    .hero-services{
        font-size:18px;
        line-height:1.6;
    }

    .hero-author span{
        font-size:19px;
    }

    .signature{
        width:min(260px,80vw);
    }

    .ornament-top{
        width:125px;
    }

    .ornament-middle{
        width:100px;
    }

    .ornament-bottom{
        width:120px;
    }

    .header{
        width:calc(100% - 24px);
        height:78px;
        top:12px;
        padding:0 14px;
    }

    .logo{
        gap:8px;
    }

    .logo img{
        width:62px;
    }

    .logo-text h1{
        font-size:20px;
    }

    .logo-text span{
        font-size:8px;
        letter-spacing:2px;
    }

    nav,
    .flags{
        display:none;
    }
}

/* ==========================================
   MOBILE MENU BUTTON
   Step 2 — visible only on mobile
========================================== */

.mobile-menu-toggle{
    display:none;
}

@media (max-width: 768px){

    .mobile-menu-toggle{
        display:flex;
        width:42px;
        height:42px;
        margin-left:auto;
        padding:0;
        border:0;
        background:transparent;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:5px;
        cursor:pointer;
        flex-shrink:0;
        z-index:10001;
    }

    .mobile-menu-toggle span{
        display:block;
        width:24px;
        height:2px;
        background:#264132;
        border-radius:2px;
    }
}

/* ==========================================
   MOBILE MENU PANEL
   Step 4 — visual styling only
========================================== */

.mobile-menu{
    display:none;
}


@media (max-width: 768px){

    .mobile-menu{
        display:flex;
        position:fixed;
        top:102px;
        left:12px;
        right:12px;
        z-index:9998;

        display:flex;
        flex-direction:column;

        padding:12px 0;

        background:rgba(248,244,235,.96);
        backdrop-filter:blur(14px);
        -webkit-backdrop-filter:blur(14px);

        border:1px solid rgba(255,255,255,.65);
        border-radius:0 0 22px 22px;
        box-shadow:0 10px 30px rgba(0,0,0,.12);

        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transform:translateY(-10px);
    }

    .mobile-menu a{
        display:block;
        padding:13px 24px;

        color:#264132;
        text-decoration:none;
        font-family:inherit;
        font-size:20px;
        font-weight:600;
    }

    .mobile-menu-flags{
        display:flex;
        justify-content:center;
        align-items:center;
        gap:22px;
        padding:14px 20px 10px;
        border-top:1px solid rgba(120,90,45,.16);
    }

    .mobile-menu-flags a,
    .mobile-menu-flags span{
        padding:0;
        display:flex;
        align-items:center;
    }

    .mobile-menu-flags img{
        width:34px;
        height:auto;
        display:block;
    }

    /* The menu will be made visible by JavaScript in the next step. */
    .mobile-menu.is-open{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        transform:translateY(0);
        transition:opacity .25s ease, transform .25s ease;
    }
}

