/* ============================================================
   WoodCorner ? Home Page Styles
   ============================================================ */

/* ?? NAVBAR ??????????????????????????????????????????????? */
.wc-navbar {
    background: transparent;
    padding: 1.2rem 0;
    transition: var(--wc-transition);
    z-index: 1030;
}
.wc-navbar--scrolled {
    background: rgba(28, 16, 8, 0.97) !important;
    padding: .7rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.wc-navbar__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}
.wc-navbar__logo-ar {
    font-family: var(--wc-font-ar);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--wc-gold);
    letter-spacing: .5px;
}
.wc-navbar__logo-en {
    font-family: var(--wc-font-en);
    font-size: .65rem;
    letter-spacing: 4px;
    color: var(--wc-gold-light);
    text-transform: uppercase;
}
.wc-nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    font-size: .92rem;
    padding: .4rem .8rem !important;
    position: relative;
    transition: var(--wc-transition);
}
.wc-nav-link:not(.wc-nav-link--projects)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--wc-gold);
    transition: var(--wc-transition);
    }
.wc-nav-link:hover, .wc-nav-link.active { color: var(--wc-gold) !important; }
.wc-nav-link:not(.wc-nav-link--projects):hover::after {
     left: 0;
      right: 0;
    }
.wc-lang-btn {
    border: 1px solid var(--wc-gold);
    color: var(--wc-gold);
    font-size: .82rem;
    padding: .3rem .9rem;
    border-radius: 50px;
    transition: var(--wc-transition);
    background: transparent;
}
.wc-lang-btn:hover { background: var(--wc-gold); color: #fff; }
.wc-navbar__toggler {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.wc-navbar__toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wc-gold);
    border-radius: 2px;
    transition: var(--wc-transition);
}
@media (min-width: 992px) {
    .wc-navbar .wc-navbar__toggler {
        display: none;
    }
}

/* ?? HERO ?????????????????????????????????????????????????? */
.wc-hero { position: relative; height: 100vh; min-height: 600px; }
.wc-hero__swiper { height: 100%; }
.wc-hero-mobile { display: none !important; }
.wc-hero__slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.wc-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.wc-hero__slide--fallback {
    background-color: var(--wc-dark);
}

.wc-hero__overlay {
    display: none !important;
}
.wc-hero__content {
    position: relative; z-index: 2;
    padding-top: 80px; 
}
.wc-hero__eyebrow {
    display: inline-block;
    font-size: .85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--wc-gold);
    margin-bottom: 1rem;
}
.wc-hero__title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}
.wc-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.75);
    max-width: 520px;
    margin-bottom: 2rem;
}
[dir="rtl"] .wc-hero__subtitle { margin-right: 0; margin-left: auto; }
.wc-hero__btn {
    display: inline-block;
    padding: .8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--wc-transition);
}
/* pagination */
.wc-hero__pagination { bottom: 2rem !important; }
.swiper-pagination-bullet { background: rgba(255,255,255,.5) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--wc-gold) !important; width: 24px !important; border-radius: 3px !important; }
/* arrows */
.wc-hero__arrow {
    width: 48px !important; height: 48px !important;
    background: rgba(196,151,59,.15) !important;
    border: 1px solid var(--wc-gold) !important;
    border-radius: 50% !important;
    color: var(--wc-gold) !important;
    backdrop-filter: blur(4px);
    transition: var(--wc-transition) !important;
}
.wc-hero__arrow:hover { background: var(--wc-gold) !important; color: #fff !important; }
.wc-hero__arrow::after { display: none !important; }
/* scroll indicator */
.wc-hero__scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.wc-hero__scroll-line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--wc-gold), transparent);
    animation: wc-scroll-line 1.8s ease infinite;
}
@keyframes wc-scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ?? ABOUT ????????????????????????????????????????????????? */
.wc-about { background: var(--wc-cream); }
[dir="ltr"] .wc-about__img-wrap { text-align: left; }
.wc-about__img-wrap { position: relative; /* keep relative for overlays */ }
.wc-about__img {
    width: 100%;
    border-radius: calc(var(--wc-card-radius) * 1.1); /* slightly smoother */
    box-shadow: 0 18px 40px rgba(28,16,8,0.06); /* very light soft shadow */
    object-fit: cover;
    max-height: 520px;
    position: relative;
    display: block;
}
.wc-about__img-wrap::before {
    /* subtle warm overlay across the image to visually integrate tonality
       without darkening ? keeps image clear but warmer */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: calc(var(--wc-card-radius) * 1.1);
    background: linear-gradient(180deg, rgba(196,151,59,0.02), rgba(196,151,59,0.015));
    mix-blend-mode: normal;
    opacity: 1;
}

/* directional fade that makes the image visually merge into the section
   by transitioning from transparent (over the image) to the section color
   near the edge facing the text. For RTL pages the gradient is flipped. */
.wc-about__img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: calc(var(--wc-card-radius) * 1.1);
    /* LTR: fade towards right edge */
    background: linear-gradient(90deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0) 62%,
                rgba(196,151,59,0.04) 78%,
                var(--wc-cream) 100%);
}

/* RTL: flip gradient so fade happens on the left side (where text appears) */
[dir="rtl"] .wc-about__img-wrap::after {
    /* Keep fade on the image's right edge even in RTL ? ensure the
       gradient always transitions into the section color from the
       side adjacent to the text (right edge of the image). */
    background: linear-gradient(90deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0) 62%,
                rgba(196,151,59,0.04) 78%,
                var(--wc-cream) 100%);
}
.wc-about__badge {
    position: absolute; bottom: -18px;
    right: -18px;
    background: var(--wc-gold);
    color: #fff;
    padding: 1.05rem 1.25rem;
    border-radius: calc(var(--wc-card-radius) * 0.9);
    text-align: center;
    box-shadow: 0 8px 20px rgba(28,16,8,0.06);
}
[dir="ltr"] .wc-about__badge { right: auto; left: -20px; }
.wc-about__badge-num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.wc-about__badge-text { font-size: .8rem; font-weight: 500; opacity: .9; }
.wc-about__text { color: var(--wc-muted); line-height: 1.9; font-size: 1.05rem; }
.wc-stat { padding: 1rem; background: var(--wc-white); border-radius: .75rem; border: 1px solid var(--wc-border); }
.wc-stat__num { font-size: 1.8rem; font-weight: 800; color: var(--wc-gold); }
.wc-stat__label { font-size: .8rem; color: var(--wc-muted); }

/* ?? PORTFOLIO ????????????????????????????????????????????? */
.wc-filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
    padding: .4rem 1.2rem;
    border-radius: 50px;
    font-size: .9rem;
    transition: var(--wc-transition);
    cursor: pointer;
}
.wc-filter-btn:hover, .wc-filter-btn.active {
    background: var(--wc-gold);
    border-color: var(--wc-gold);
    color: #fff;
}
.wc-portfolio__card { border-radius: var(--wc-card-radius); overflow: hidden; }
.wc-portfolio__img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.wc-portfolio__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wc-portfolio__card:hover .wc-portfolio__img { transform: scale(1.08); }
.wc-portfolio__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(107,58,42,.95) 0%, transparent 60%);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--wc-transition);
}
.wc-portfolio__card:hover .wc-portfolio__overlay { opacity: 1; }
.wc-portfolio__cat { font-size: .8rem; color: var(--wc-gold); letter-spacing: 2px; text-transform: uppercase; }
.wc-portfolio__title { color: #fff; font-weight: 700; font-size: 1.1rem; margin: .3rem 0 .6rem; }
.wc-portfolio__link { color: var(--wc-gold); font-size: 1.5rem; text-decoration: none; }

/* ?? TEAM ?????????????????????????????????????????????????? */
.wc-team { overflow: hidden; }
.wc-team__text-col { min-height: 500px; }
.wc-team__heading {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    white-space: pre-line;
}
.wc-team__arrow-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--wc-transition);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.wc-team__arrow-btn:hover { border-color: var(--wc-gold); color: var(--wc-gold); }
.wc-team__swiper { padding: 2rem 0 2rem 1rem !important; }
.wc-team__slide { height: auto; }
.wc-team__slide {
    /* Give slides a fixed natural width so they look like the original grid cards
       and do not expand to full container width when slidesPerView is 'auto'. */
    width: 320px;
    flex: 0 0 320px; /* ensure Swiper respects this width */
}
.wc-team__card {
    border-radius: var(--wc-card-radius);
    overflow: hidden;
    position: relative;
    height: 420px;
    background: #2a2a2a;
}
.wc-team__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wc-team__card-body {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}
.wc-team__role-en { font-size: .85rem; color: rgba(255,255,255,.8); letter-spacing: 1px; }
.wc-team__divider { width: 40px; height: 2px; background: #e74c3c; margin: .5rem 0; }
.wc-team__name { color: #fff; font-size: 1.2rem; font-weight: 700; margin: 0; }
.wc-team__role { color: rgba(255,255,255,.65); font-size: .85rem; margin: 0; }

/* ?? CTA ??????????????????????????????????????????????????? */
.wc-cta { padding: var(--wc-section-py) 0; border-top: 1px solid rgba(255,255,255,.06); }
.wc-cta__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
}
.wc-cta__btn {
    border-radius: 50px;
    padding: .75rem 2.5rem;
    font-weight: 600;
    transition: var(--wc-transition);
}
.wc-cta__btn:hover { background: var(--wc-gold) !important; border-color: var(--wc-gold) !important; }

/* ?? FOOTER ???????????????????????????????????????????????? */
.wc-footer { background: var(--wc-dark); }
.wc-footer__map-col { height: 480px; }
.wc-footer__info {
    padding: 4rem 3rem;
    background: rgba(255,255,255,.02);
}
.wc-footer__logo-ar {
    font-family: var(--wc-font-ar);
    font-size: 2rem; font-weight: 800;
    color: var(--wc-gold);
    letter-spacing: 1px;
}
.wc-footer__logo-en {
    font-family: var(--wc-font-en);
    font-size: .75rem; letter-spacing: 6px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    margin-top: .3rem;
}
.wc-footer__contact-item { display: flex; align-items: center; justify-content: center; }
.wc-footer__contact-item a, .wc-footer__contact-item span { font-size: .9rem; }
.wc-social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--wc-transition);
}
.wc-social-icon:hover { border-color: var(--wc-gold); color: var(--wc-gold); transform: translateY(-3px); }

/* ?? SCROLL TOP ???????????????????????????????????????????? */
.wc-scroll-top {
    position: fixed; bottom: 6rem;
    right: 2rem; left: auto;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--wc-gold);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--wc-shadow-gold);
    opacity: 0; transform: translateY(20px);
    transition: var(--wc-transition);
    z-index: 2000;
    cursor: pointer;
}
[dir="rtl"] .wc-scroll-top { right: auto; left: 2rem; }
.wc-scroll-top.active { opacity: 1; transform: translateY(0); }
.wc-scroll-top:hover { background: var(--wc-primary); }

/* ?? RESPONSIVE ???????????????????????????????????????????? */
@media (max-width: 991.98px) {
    .wc-hero {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin-top: 0;
        background: var(--wc-primary, #493628);
    }
    .wc-hero__swiper,
    .wc-hero__swiper .swiper-wrapper,
    .wc-hero__swiper .swiper-slide {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
        transform: none !important;
        overflow: visible !important;
    }
    .wc-hero__slide {
        width: 100% !important;
        background-size: 100% auto !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
        min-height: 180px;
    }
    .wc-hero:has(.wc-hero-mobile) .wc-hero__swiper,
    .wc-hero:has(.wc-hero-mobile) .wc-hero__pagination,
    .wc-hero:has(.wc-hero-mobile) .wc-hero__arrow,
    .wc-hero:has(.wc-hero-mobile) .wc-hero__scroll-indicator {
        display: none !important;
    }
    .wc-hero-mobile {
        display: block !important;
        position: relative;
        width: 100%;
        line-height: 0;
        margin: 0;
        padding: 0;
    }
    .wc-hero-mobile__img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }
    .wc-hero-mobile__overlay {
        display: none !important;
    }
    .wc-hero-mobile__content {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem;
        line-height: var(--wc-line-height, 1.7);
    }
    .wc-hero__scroll-indicator {
        display: none;
    }
    .wc-hero__pagination {
        bottom: 0.6rem !important;
    }
    .wc-about__badge { right: 0; }
    [dir="ltr"] .wc-about__badge { left: 0; }
    .wc-footer__map-col { height: auto; }
    .wc-team__card { height: 340px; }
    .wc-team__slide { width: 280px; flex: 0 0 280px; }
}
@media (max-width: 575.98px) {
    .wc-hero__title { font-size: 2.2rem; }
    .wc-footer__info { padding: 2rem 1.5rem; }
    .wc-team__slide { width: 220px; flex: 0 0 220px; }
}

/* NAV DROPDOWN styles moved to site.css */

