/* ==========================================
   KIOSKI 2027
   PROFESSIONAL BUSINESS WEBSITE
========================================== */


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

:root {

    --dark-brown: #3D261B;
    --medium-brown: #65432F;
    --terracotta: #C97945;
    --terracotta-dark: #A85D31;
    --cream: #FFF6E9;
    --light-cream: #FFFBF5;
    --gold: #E9B66B;
    --sage: #788B55;
    --white: #FFFFFF;
    --text-gray: #78695E;

    --shadow:
        0 15px 50px rgba(61, 38, 27, 0.10);

    --transition: all 0.3s ease;

}


/* ==========================================
   GLOBAL STYLES
========================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark-brown);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
}

button, select {
    font-family: inherit;
}

button, a, select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 4px;
}


/* ==========================================
   NAVIGATION BAR
========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(255, 251, 245, 0.90);

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

    border-bottom: 1px solid rgba(61, 38, 27, 0.06);

    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 5px 30px rgba(61, 38, 27, 0.08);
}

.navbar {
    max-width: 1400px;
    margin: auto;
    padding: 24px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 165px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-brown);
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--terracotta);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-register {
    background: var(--dark-brown);
    color: white;

    padding: 13px 24px;
    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 12px;

    transition: var(--transition);
}

.nav-register:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-box {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-brown);
}

.language-box select {
    border: none;
    outline: none;
    background: transparent;
    color: var(--dark-brown);
    font-weight: 700;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--dark-brown);
    font-size: 23px;
    cursor: pointer;
}


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

.hero {
    min-height: 100vh;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 155px 8% 100px;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #FFF9EF 0%,
        #FBEBD8 55%,
        #F6E2C9 100%
    );
}

.hero-background {
    position: absolute;
    inset: 0;

    background-image: url("../assets/images/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(80%, 750px);

    opacity: 0.055;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-one {
    width: 450px;
    height: 450px;
    background: rgba(233, 182, 107, 0.18);
    top: -180px;
    right: -120px;
    animation: float 8s ease-in-out infinite;
}

.circle-two {
    width: 350px;
    height: 350px;
    background: rgba(201, 121, 69, 0.10);
    bottom: -150px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}


/* ==========================================
   KIOSKI + EUROPEAN UNION LOGOS
   FAR LEFT AND FAR RIGHT
========================================== */

.hero-logos {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: none;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin: 0 auto 45px;
}

.hero-logo-item {
    width: 180px;
    height: 125px;

    flex: 0 0 180px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(0 5px 12px rgba(61, 38, 27, 0.08));
}


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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    text-align: center;
    animation: fadeUp 1.1s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 20px;
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(201, 121, 69, 0.2);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 35px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--sage);
    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(120, 139, 85, 0.12);
}

.hero h1 {
    font-size: clamp(48px, 6vw, 88px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.highlight {
    color: var(--terracotta);
    font-style: italic;
}

.hero-description {
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-gray);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}


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

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    padding: 17px 30px;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;

    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);

    box-shadow:
        0 10px 25px rgba(201, 121, 69, 0.25);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(201, 121, 69, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-brown);

    border:
        1.5px solid rgba(61, 38, 27, 0.25);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-4px);
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 70px;
}

.hero-line {
    height: 45px;
    width: 1px;
    background: var(--terracotta);
}

.hero-bottom span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-gray);
}


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

.about {
    padding: 130px 8%;
    background: var(--light-cream);
}

.about-container {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-card {
    width: 100%;
    min-height: 480px;

    background: linear-gradient(
        145deg,
        #F6DFC2,
        #E9BD8E
    );

    border-radius: 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    position: relative;
    z-index: 2;

    box-shadow: var(--shadow);
}

.about-image-card img {
    width: 100%;
    max-width: 430px;
    height: auto;
    object-fit: contain;

    filter:
        drop-shadow(0 15px 15px rgba(61, 38, 27, 0.10));
}

.about-decoration {
    position: absolute;
    width: 100%;
    height: 100%;

    border: 2px solid var(--terracotta);
    border-radius: 30px;

    top: 25px;
    left: 25px;
    z-index: 1;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 15px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;

    color: var(--terracotta);
    margin-bottom: 25px;
}

.label-line {
    width: 35px;
    height: 2px;
    background: var(--terracotta);
}

.about-content h2 {
    font-size: clamp(35px, 4vw, 54px);
    line-height: 1.25;
    margin-bottom: 30px;
}

.about-content > p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 20px;
}


/* ==========================================
   PROJECT ACKNOWLEDGMENT
========================================== */

.about-content > .project-acknowledgment {
    margin: 30px 0 35px;
    padding: 22px 25px;

    background: #FFF3E3;

    border: 1px solid rgba(201, 121, 69, 0.18);
    border-left: 4px solid var(--terracotta);
    border-radius: 0 14px 14px 0;

    color: var(--dark-brown);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;

    box-shadow:
        0 8px 25px rgba(61, 38, 27, 0.04);
}

html[dir="rtl"] .about-content > .project-acknowledgment {
    border-left: 1px solid rgba(201, 121, 69, 0.18);
    border-right: 4px solid var(--terracotta);
    border-radius: 14px 0 0 14px;
    text-align: right;
}


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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 35px;
    margin-bottom: 35px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.feature-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;

    background: #F8E7D3;
    border-radius: 15px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: var(--terracotta);
    font-size: 21px;
}

.feature h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    margin-bottom: 6px;
}

.feature p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-gray);
}


/* ==========================================
   BUSINESS OPPORTUNITIES
========================================== */

.opportunities {
    padding: 120px 8%;
    background: var(--cream);
}

.opportunities-container {
    max-width: 1250px;
    margin: auto;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 65px;
}

.section-tag {
    color: var(--terracotta);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-heading h2 {
    font-size: clamp(35px, 4vw, 55px);
    margin: 22px 0;
}

.section-heading p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.9;
}

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.opportunity-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 25px;

    border: 1px solid rgba(61, 38, 27, 0.05);

    box-shadow:
        0 10px 35px rgba(61, 38, 27, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 20px 45px rgba(61, 38, 27, 0.12);
}

.opportunity-icon {
    width: 75px;
    height: 75px;

    background: #F8E7D3;
    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--terracotta);
    font-size: 28px;

    margin-bottom: 30px;
}

.opportunity-card h3 {
    font-size: 23px;
    margin-bottom: 15px;
}

.opportunity-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
}


/* ==========================================
   CALL TO ACTION
========================================== */

.cta {
    position: relative;
    padding: 110px 8%;

    background: linear-gradient(
        135deg,
        #3D261B,
        #65432F
    );

    text-align: center;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;

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

    background-repeat: no-repeat;
    background-position: center;
    background-size: 600px;

    opacity: 0.035;
}

.cta-content {
    position: relative;
    z-index: 2;

    max-width: 800px;
    margin: auto;
}

.cta-label {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
}

.cta h2 {
    color: var(--white);
    font-size: clamp(35px, 4vw, 55px);
    line-height: 1.3;
    margin: 25px 0;
}

.cta p {
    color: #E7D6C7;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.btn-light {
    background: var(--gold);
    color: var(--dark-brown);
}

.btn-light:hover {
    background: var(--white);
    transform: translateY(-4px);
}


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

.footer {
    background: #2C1B14;
    padding: 65px 8% 25px;
}

.footer-container {
    max-width: 1250px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding-bottom: 45px;

    border-bottom:
        1px solid rgba(255,255,255,0.12);
}

.footer-brand h3 {
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 27px;
    letter-spacing: 2px;
}

.footer-brand h3 span {
    color: var(--gold);
    margin-left: 8px;
}

.footer-brand p {
    color: #BDA99B;
    font-size: 13px;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #E7D6C7;
    font-size: 13px;
    transition: var(--transition);
}

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


/* ==========================================
   SOCIAL MEDIA ICONS
========================================== */

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
}

.social-icon {
    width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #E7D6C7;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);

    font-size: 19px;
    line-height: 1;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.social-icon:hover {
    color: var(--dark-brown);
    background: var(--gold);
    border-color: var(--gold);

    transform: translateY(-5px);

    box-shadow:
        0 10px 22px rgba(233, 182, 107, 0.22);
}

.social-icon:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.social-icon i {
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.1);
}


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

.footer-bottom {
    text-align: center;
    padding-top: 25px;
}

.footer-bottom p {
    color: #A18B7D;
    font-size: 12px;
}


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

.reveal {
    opacity: 0;
    transform: translateY(50px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

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


/* ==========================================
   KEYFRAMES
========================================== */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

}

@keyframes float {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }

}


/* ==========================================
   ARABIC RTL SUPPORT
========================================== */

html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .nav-register i,
html[dir="rtl"] .btn .fa-arrow-right {
    transform: rotate(180deg);
}

html[dir="rtl"] .nav-register:hover i,
html[dir="rtl"] .btn:hover .fa-arrow-right {
    transform: rotate(180deg) translateX(5px);
}

html[dir="rtl"] .about-content {
    text-align: right;
}

html[dir="rtl"] .about-decoration {
    left: auto;
    right: 25px;
}

html[dir="rtl"] .section-label {
    letter-spacing: 0;
}

html[dir="rtl"] .hero-badge,
html[dir="rtl"] .section-tag,
html[dir="rtl"] .cta-label,
html[dir="rtl"] .hero-bottom span {
    letter-spacing: 0;
}

html[dir="rtl"] .hero h1 {
    letter-spacing: 0;
}

/* Keep logo positions consistent in Arabic */
html[dir="rtl"] .hero-logos {
    direction: ltr;
}


/* ==========================================
   TABLET RESPONSIVENESS
========================================== */

@media (max-width: 992px) {

    .about-container {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .about-visual {
        max-width: 600px;
        margin: auto;
        width: 100%;
    }

    .about-content {
        max-width: 650px;
        margin: auto;
    }

    .nav-links {
        gap: 20px;
    }

    .opportunity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Keep footer balanced on tablets */
    .footer-container {
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 45px;
        row-gap: 30px;
    }

}


/* ==========================================
   MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 768px) {

    .navbar {
        padding: 14px 5%;

        /* Place language selector left and menu icon right */
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        direction: ltr;
    }

    .logo img {
        width: 120px;
        height: 65px;
    }

    /* ======================================
       MOBILE NAVIGATION ACTIONS
    ====================================== */

    .nav-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        gap: 20px;
        margin-left: 0;
        margin-right: 0;

        direction: ltr;
    }

    /* Language selector stays on the left */
    .language-box {
        display: flex;
        align-items: center;
        gap: 8px;

        margin-right: auto;
        margin-left: 0;
    }

    /* Building menu icon moves to the far right */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        margin-left: auto;
        margin-right: 0;

        padding: 8px;

        border: none;
        background: transparent;

        font-size: 23px;
        cursor: pointer;

        flex-shrink: 0;
    }

    /* ======================================
       MOBILE DROPDOWN MENU
    ====================================== */

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background: var(--light-cream);

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 0 6%;
        max-height: 0;
        overflow: hidden;

        visibility: hidden;

        transition:
            max-height 0.4s ease,
            visibility 0.4s;

        box-shadow:
            0 15px 25px rgba(61,38,27,0.06);

        direction: ltr;
    }

    .nav-links.open {
        max-height: 350px;
        padding: 20px 6% 30px;
        visibility: visible;
    }

    .nav-links a {
        margin: 10px 0;
    }

    .nav-register {
        justify-content: center;
    }

    /* Arabic dropdown text alignment */
    html[dir="rtl"] .nav-links {
        direction: rtl;
        text-align: right;
    }

    /* Keep physical positions unchanged in Arabic */
    html[dir="rtl"] .navbar,
    html[dir="rtl"] .nav-actions {
        direction: ltr;
    }

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

    .hero {
        padding: 145px 6% 80px;
        min-height: 100vh;
    }

    .hero-logos {
        width: 100%;
        max-width: none;

        justify-content: space-between;

        gap: 15px;
        margin-bottom: 35px;
    }

    .hero-logo-item {
        width: 130px;
        height: 100px;

        flex: 0 0 130px;
    }

    .hero h1 {
        font-size: clamp(42px, 9vw, 65px);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .about {
        padding: 90px 6%;
    }

    .about-image-card {
        min-height: 350px;
    }

    .about-decoration {
        top: 15px;
        left: 15px;
    }

    html[dir="rtl"] .about-decoration {
        right: 15px;
    }

    /* ======================================
       MOBILE OPPORTUNITIES
    ====================================== */

    .opportunities {
        padding: 90px 6%;
    }

    .opportunity-grid {
        grid-template-columns: 1fr;
    }

    /* ======================================
       MOBILE CTA
    ====================================== */

    .cta {
        padding: 90px 6%;
    }

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

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-social {
        justify-content: center;
        gap: 16px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 40px;
    }

    .hero-badge {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero-logos {
        width: 100%;
        max-width: none;

        justify-content: space-between;

        gap: 10px;
        margin-bottom: 28px;
    }

    .hero-logo-item {
        width: 100px;
        height: 80px;

        flex: 0 0 100px;
    }

    .about-image-card {
        min-height: 280px;
    }

    .about-content h2 {
        font-size: 34px;
    }

    .footer-links {
        gap: 18px;
    }

}


/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}