@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #111013;
    --panel: rgba(150, 144, 162, 0.06);
    --text: rgba(255, 255, 255, 0.75);
    --white: #fff;
    --accent: #069672;
    --muted: rgba(255, 255, 255, 0.48);
    --border: rgba(255, 255, 255, 0.18);
    --button: #56565a;
    --container: 1300px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }

button, input, textarea { font: inherit; }

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

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    height: 113px;
    transition: background-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
    position: fixed;
    background: rgba(17, 16, 19, 0.9);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    width: min(var(--container), calc(100% - 40px));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.brand {
    display: block;
    width: 200px;
    height: 66px;
    margin-top: 24px;
    flex: 0 0 auto;
}

.brand img { width: 200px; height: 66px; object-fit: contain; }

.primary-navigation { margin-left: auto; }

.primary-navigation__list {
    display: flex;
    align-items: flex-start;
    list-style: none;
    margin: 25px 0 0;
    padding: 0;
}

.nav-item { position: relative; }

.nav-link,
.language-toggle {
    border: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.nav-link {
    min-height: 63px;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.language-toggle:hover,
.language-item.is-open .language-toggle { color: var(--accent); }

.nav-number {
    color: currentColor;
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
}

.nav-label { white-space: nowrap; font-family: "DM Sans", sans-serif; font-weight: 600; }

.submenu,
.language-menu {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: rgba(24, 23, 27, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.submenu {
    top: 63px;
    left: 50%;
    width: 220px;
    transform: translate(-50%, 6px);
}

.has-submenu:hover .submenu,
.has-submenu.is-open .submenu,
.submenu:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.submenu a {
    min-height: 34px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 12px;
    text-decoration: none;
}

.submenu a:hover { color: var(--accent); background: rgba(255, 255, 255, 0.05); }

.language-item { margin-left: 4px; }

.language-toggle {
    min-width: 54px;
    min-height: 53px;
    padding: 5px 0 0;
    display: grid;
    grid-template-columns: 24px;
    justify-items: center;
    align-content: start;
    row-gap: 1px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.language-toggle img,
.language-menu img { width: 24px; height: 18px; object-fit: cover; }

.language-current { line-height: 1.15; white-space: nowrap; }

.language-arrow { font-size: 9px; line-height: 1; color: var(--muted); }

.language-menu {
    top: 58px;
    right: 0;
    width: 150px;
    padding: 7px;
    transform: translateY(6px);
}

.language-item.is-open .language-menu,
.language-menu:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-size: 13px;
}

.language-menu button:hover { color: var(--accent); background: rgba(255, 255, 255, 0.05); }

.menu-toggle { display: none; }

.page-main { position: relative; }

.hero {
    position: relative;
    min-height: 100vh;
    background-image: url('../images/hero-dubai.jpg');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.37); }

.hero__content {
    position: relative;
    z-index: 1;
    padding-inline: 20px;
    padding-top: clamp(250px, 31vh, 326px);
    padding-bottom: 80px;
}

.hero__eyebrow {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.hero__title {
    max-width: 1260px;
    margin: 0;
    color: var(--white);
    font-family: "DM Sans", sans-serif;
    font-size: clamp(34px, 3.05vw, 46px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.02em;
    margin-left: 5px;
    vertical-align: -0.12em;
    background: rgba(255, 255, 255, 0.78);
    animation: cursor-blink 900ms steps(1) infinite;
}

@keyframes cursor-blink { 50% { opacity: 0; } }

.home-spacer { height: 95px; }

.about-intro {
    min-height: 271px;
    display: grid;
    grid-template-columns: 48% 11% 41%;
    padding-inline: 20px;
    padding-top: 0;
}

.page-main--about .about-intro { padding-top: 210px; }

.about-intro h2 {
    margin: 0;
    color: var(--white);
    font-family: "DM Sans", sans-serif;
    font-size: 50px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-intro__copy { grid-column: 3; max-width: 503px; margin-left: 0; }

.about-intro__copy p {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.95;
    text-align: justify;
}

.about-gallery {
    width: 100%;
    min-height: 567px;
    display: grid;
    grid-template-columns: minmax(0, 55.3%) 6% minmax(300px, 22.4%);
    align-items: stretch;
    margin-top: 0;
}

.about-gallery > div { min-height: 567px; overflow: hidden; }

.about-gallery img { width: 100%; height: 100%; object-fit: cover; }

.about-gallery__large img { object-position: center; }

.about-gallery__small img { object-position: center; }

.company-list { margin-top: 95px; padding-bottom: 80px; }

.company-row {
    min-height: 130px;
    display: grid;
    grid-template-columns: 31% 43.5% 25.5%;
    align-items: center;
    border-top: 1px solid var(--border);
    padding: 25px 20px;
}

.company-row:last-child { border-bottom: 1px solid var(--border); }

.company-row__brand {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.company-row__brand img {
    width: auto;
    max-width: 280px;
    max-height: 100px;
    object-fit: contain;
}

.company-row--imobiliara .company-row__brand img,
.company-row--realestate .company-row__brand img { max-width: 280px; }

.company-row--nura .company-row__brand img { max-width: 250px; max-height: 56px; }

.company-row--emirates .company-row__brand img { max-width: 240px; max-height: 100px; }

.company-row--confeuropa .company-row__brand img { max-width: 180px; max-height: 100px; }

.company-row--aquagloria .company-row__brand img { max-width: 200px; max-height: 72px; }

.company-row--shopitaly .company-row__brand img,
.company-row--littleitaly .company-row__brand img { max-width: 210px; max-height: 78px; }

.company-row--philipo .company-row__brand img { max-width: 210px; max-height: 140px; }

.company-row__description {
    max-width: 525px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.72;
    text-align: center;
}

.company-row__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.company-row__links a,
.secondary-button {
    border: 0;
    border-radius: 5px;
    background: var(--button);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.company-row__links a { padding: 14px 24px; }

.company-row__links a:hover,
.secondary-button:hover { background: var(--accent); transform: translateY(-1px); }

.scroll-indicator {
    position: fixed;
    z-index: 10;
    left: 0;
    bottom: 100px;
    width: 84px;
    height: 130px;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

.scroll-indicator__handle {
    position: absolute;
    left: 0;
    top: 16px;
    width: 23px;
    height: 58px;
    display: grid;
    place-items: center;
    background: rgba(20, 19, 23, 0.9);
    font-size: 26px;
    line-height: 1;
}

.scroll-indicator__line {
    position: absolute;
    left: 78px;
    top: 30px;
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
}

.scroll-indicator__label {
    position: absolute;
    left: 65px;
    top: 35px;
    transform: rotate(-90deg);
    transform-origin: left top;
    font-size: 12px;
    font-weight: 700;
}

.page-main--contact { padding-top: 0; }

.contact-hero {
    min-height: 449px;
    display: flex;
    align-items: flex-start;
}

.contact-hero__inner { padding-top: 111px; }

.contact-hero h1 {
    margin: 0 0 5px;
    color: var(--white);
    font-family: "DM Sans", sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.contact-hero p { margin: 0 0 20px; font-size: 13px; }

.accent-button {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    padding: 8px 15px;
    border-radius: 4px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: filter 180ms ease, transform 180ms ease;
}

.accent-button:hover { filter: brightness(1.15); transform: translateY(-1px); }

.contact-panel { background: var(--panel); }

.contact-panel__inner {
    min-height: 829px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 25px;
    padding-top: 55px;
    padding-bottom: 80px;
}

.contact-panel__intro h2 {
    margin: 0 0 0;
    color: var(--white);
    font-family: "DM Sans", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.contact-panel__intro p { margin: 4px 0 0; font-size: 11px; line-height: 1.45; }

.contact-panel__intro strong { color: var(--white); }

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 20px;
    align-content: start;
}

.form-field { min-width: 0; }

.form-field--full { grid-column: 1 / -1; }

.form-field label {
    display: block;
    margin: 0 0 6px;
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 2px;
    outline: 0;
    background: rgba(255, 255, 255, 0.065);
    color: var(--white);
    font-size: 12px;
    line-height: 1.4;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.form-field input { height: 38px; padding: 0 12px; }

.form-field textarea { min-height: 92px; padding: 10px 12px; resize: vertical; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.32); }

.form-field input:focus,
.form-field textarea:focus { border-color: rgba(6, 150, 114, 0.8); background: rgba(255, 255, 255, 0.09); }

.form-field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { padding-top: 2px; }

.secondary-button { padding: 12px 20px; cursor: pointer; }

.form-status {
    grid-column: 1 / -1;
    padding: 11px 13px;
    border-radius: 3px;
    font-size: 12px;
}

.form-status--success { background: rgba(6, 150, 114, 0.15); color: #7ce4c1; }
.form-status--error { background: rgba(220, 80, 80, 0.14); color: #ffadad; }

.offices { background: var(--bg); }

.offices__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 120px;
    padding-top: 52px;
    padding-bottom: 60px;
}

.office-card h3 {
    margin: 0 0 4px;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.office-card p { margin: 0; font-size: 11px; line-height: 1.45; }

.office-card p span:first-child { display: inline-block; width: 17px; }

.office-card a { text-decoration: none; }
.office-card a:hover { color: var(--accent); }

@media (max-width: 1180px) {
    :root { --container: 960px; }
    .nav-link { padding-inline: 12px; }
    .hero__title { font-size: clamp(34px, 4.2vw, 48px); }
    .about-intro { column-gap: 40px; }
    .company-row { grid-template-columns: 28% 47% 25%; }
    .company-row__description { font-size: 14px; }
    .offices__grid { gap-inline: 60px; }
}

@media (max-width: 768px) {
    :root { --container: 100%; }

    .container,
    .site-header__inner { width: calc(100% - 32px); }

    .site-header { height: 88px; }
    .site-header__inner { align-items: flex-start; }
    .brand { width: 160px; height: 54px; margin-top: 17px; }
    .brand img { width: 160px; height: 54px; }

    .menu-toggle {
        position: absolute;
        z-index: 30;
        right: 0;
        top: 20px;
        width: 42px;
        height: 42px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(17, 16, 19, 0.45);
        cursor: pointer;
    }

    .menu-toggle span:not(.sr-only) { width: 100%; height: 2px; background: var(--white); transition: transform 180ms ease, opacity 180ms ease; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    .primary-navigation {
        position: fixed;
        inset: 0;
        z-index: 10;
        padding: 105px 24px 30px;
        background: rgba(17, 16, 19, 0.98);
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 180ms ease, visibility 180ms ease, transform 220ms ease;
    }

    .primary-navigation.is-open { opacity: 1; visibility: visible; transform: translateX(0); }

    .primary-navigation__list { display: flex; flex-direction: column; align-items: stretch; margin: 0; }
    .nav-item { border-bottom: 1px solid var(--border); }
    .nav-link { min-height: 58px; padding: 12px 0; display: flex; flex-direction: row; justify-content: flex-start; gap: 14px; font-size: 20px; }
    .nav-number { min-width: 22px; margin: 0; font-size: 9px; }
    .nav-label { white-space: normal; }
    .language-item { margin-left: 0; }
    .language-toggle { width: auto; min-height: 58px; padding: 12px 0; display: flex; align-items: center; gap: 10px; font-size: 20px; }
    .language-toggle img { width: 27px; height: 19px; }
    .language-arrow { margin-left: 3px; font-size: 10px; }
    .submenu { position: static; width: 100%; padding: 0 0 12px 36px; border: 0; background: transparent; opacity: 1; visibility: hidden; max-height: 0; overflow: hidden; transform: none; transition: max-height 220ms ease, visibility 220ms ease; }
    .has-submenu.is-open .submenu { visibility: visible; max-height: 180px; transform: none; }
    .submenu a { min-height: 40px; padding: 8px 0; font-size: 15px; }

    .hero { min-height: 760px; background-position: 54% top; }
    .hero__content { padding-inline: 0; padding-top: 235px; padding-bottom: 70px; }
    .hero__eyebrow { font-size: 11px; margin-bottom: 12px; }
    .hero__title { font-size: clamp(30px, 8.2vw, 42px); line-height: 1.12; }
    .home-spacer { height: 56px; }

    .about-intro,
    .page-main--about .about-intro { min-height: 0; display: block; padding-inline: 0; padding-top: 32px; padding-bottom: 44px; }
    .about-intro h2 { font-size: clamp(38px, 12vw, 52px); margin-bottom: 38px; }
    .about-intro__copy { grid-column: auto; max-width: none; margin: 0; }
    .about-intro__copy p { font-size: 15px; line-height: 1.75; text-align: left; margin-bottom: 22px; }

    .about-gallery { display: block; min-height: 0; }
    .about-gallery > div { min-height: 0; }
    .about-gallery__large { height: 64vw; max-height: 500px; }
    .about-gallery__gap { display: none; }
    .about-gallery__small { width: 72%; height: 86vw; max-height: 620px; margin: 28px 0 0 auto; }

    .company-list { margin-top: 55px; padding-bottom: 46px; }
    .company-row { display: flex; flex-direction: column; gap: 22px; min-height: 0; padding: 38px 0; }
    .company-row__brand { width: 100%; min-height: 66px; padding: 0; }
    .company-row__description { max-width: 560px; font-size: 15px; line-height: 1.6; }
    .company-row__links { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .company-row__links a { padding: 12px 16px; font-size: 11px; }

    .scroll-indicator { display: none; }

    .contact-hero { min-height: 330px; }
    .contact-hero__inner { padding-top: 130px; }
    .contact-hero h1 { font-size: 44px; }
    .contact-hero p { font-size: 13px; }
    .contact-panel__inner { display: block; min-height: 0; padding-top: 40px; padding-bottom: 55px; }
    .contact-panel__intro { margin-bottom: 35px; }
    .contact-panel__intro h2 { font-size: 25px; }
    .contact-form { display: flex; flex-direction: column; gap: 17px; }
    .form-status { order: -1; }
    .form-actions { padding-top: 2px; }
    .offices__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 42px; padding-bottom: 48px; }
    .office-card h3 { font-size: 14px; }
    .office-card p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
