:root {
    --color-bg: #0a0a0a;
    --color-bg-card: #111111;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-accent: #2b7cff;
    --color-accent-light: #5a9bff;
    --font-main: 'Estedad', Tahoma, sans-serif;
    --hero-height: min(85vh, 720px);
    --card-min-height: 420px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: var(--hero-height);
    display: flex;
    align-items: stretch;
    background: #0d0d0d;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center left;
    opacity: 0.55;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.75) 45%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: var(--hero-height);
}

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    position: relative;
    z-index: 200;
}

/* Header: hamburger icon only */
.header-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 201;
}

.menu-dropdown-wrap {
    position: relative;
}

.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    cursor: pointer;
    color: #fff;
    transition: background var(--transition), border-color var(--transition);
}

.hamburger-btn:hover,
.hamburger-btn[aria-expanded="true"] {
    background: rgba(43, 124, 255, 0.35);
    border-color: var(--color-accent);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 16px;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Language switcher */
.lang-switcher {
    flex-shrink: 0;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    transition: background var(--transition), border-color var(--transition);
}

.lang-btn:hover {
    background: rgba(43, 124, 255, 0.35);
    border-color: var(--color-accent);
}

/* English / LTR overrides */
body.lang-en {
    --font-main: 'Inter', system-ui, sans-serif;
}

html[dir="ltr"] .hero-overlay {
    background: linear-gradient(
        270deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.75) 45%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

html[dir="ltr"] .hero::before {
    background-position: center right;
}

.hero-brand .logo {
    width: clamp(140px, 18vw, 200px);
    height: auto;
}

.hero-content {
    max-width: 620px;
    margin-top: auto;
    padding-bottom: 2rem;
}

.hero-eyebrow {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 480px;
}

.hero-accent {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    margin-top: 1.5rem;
    border-radius: 2px;
}

/* Sectors Grid */
.sectors {
    background: var(--color-bg);
    padding: 0;
}

.projects-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.projects-section-header {
    padding: 3rem 2rem 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
}

.section-title {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.section-subtitle {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.sector-card-static {
    cursor: default;
}

.sector-card-static .sector-card:hover::before {
    transform: none;
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    min-height: var(--card-min-height);
}

.sector-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sector-card {
    position: relative;
    min-height: var(--card-min-height);
    overflow: hidden;
    cursor: pointer;
    transition: flex var(--transition), transform var(--transition);
    height: 100%;
}

.sector-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sector-bg);
    background-size: cover;
    background-position: center;
    transition: transform var(--transition);
    z-index: 0;
}

.sector-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
    transition: background var(--transition);
}

.sector-card:hover::before {
    transform: scale(1.06);
}

.sector-card:hover .sector-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(43, 124, 255, 0.15) 100%
    );
}

.sector-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.25rem;
    text-align: center;
}

.sector-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--color-accent-light);
}

.sector-icon-svg svg {
    width: 100%;
    height: 100%;
}

.sector-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0 auto;
}

.sector-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #fff;
}

.sector-subtitle,
.sector-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.sector-subtitle {
    font-weight: 500;
}

.sector-more {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: var(--color-accent-light);
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition);
}

.sector-card-link:hover .sector-more,
.sector-card-link:focus-visible .sector-more {
    opacity: 1;
    transform: translateY(0);
}

.sector-card-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

/* Detail page */
.detail-page-header {
    background: #0d0d0d;
}

.detail-top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-top-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.detail-hero-banner {
    margin: 0;
    width: 100%;
    max-height: min(52vh, 520px);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #111;
}

.detail-hero-banner img {
    width: 100%;
    height: min(52vh, 520px);
    object-fit: cover;
    object-position: center;
}

.detail-hero-caption {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
    text-align: center;
}

.detail-hero {
    position: relative;
    min-height: 380px;
    background: #0d0d0d;
    overflow: visible;
}

.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    opacity: 0.45;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.detail-hero-content {
    margin-top: auto;
    text-align: center;
}

.detail-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--color-accent-light);
    flex: 0 0 56px;
    overflow: hidden;
}

.detail-icon-wrap,
.detail-icon .sector-icon-svg {
    display: block;
    width: 56px;
    height: 56px;
    line-height: 0;
    overflow: hidden;
}

.detail-icon svg,
.detail-icon .sector-icon-img {
    display: block;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.detail-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.detail-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.detail-page {
    padding: 3rem 1.5rem 4rem;
}

.detail-content {
    max-width: 720px;
    margin: 0 auto;
}

.detail-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #d0d0d0;
}

.detail-body p {
    margin-bottom: 1.25rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    color: var(--color-accent-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
}

.btn-back:hover {
    background: var(--color-accent);
    color: #fff;
}

.logo-sm {
    width: clamp(100px, 14vw, 140px);
}

.card-narrow {
    max-width: 480px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1.5rem;
}

/* Footer */
.site-footer {
    background: #000;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-tagline {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Top dropdown menu */
.site-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(300px, calc(100vw - 2rem));
    max-height: min(70vh, 520px);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 300;
    pointer-events: none;
}

.site-menu-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.site-menu-dropdown-inner {
    background: #141824;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    padding: 1rem 1.1rem 1.1rem;
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

.site-menu-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-menu-link {
    display: block;
    padding: 0.65rem 0.5rem;
    border-radius: 6px;
    color: #e8e8e8;
    font-weight: 500;
    font-size: 0.92rem;
    transition: background var(--transition), color var(--transition);
}

.site-menu-link:hover {
    background: rgba(43, 124, 255, 0.15);
    color: var(--color-accent-light);
}

.site-menu-link-home {
    color: var(--color-accent-light);
    font-weight: 600;
}

.site-menu-contact {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-menu-contact-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.65rem;
}

.site-menu-contact-row {
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
    color: #bbb;
    line-height: 1.45;
    padding: 0 0.25rem;
}

.site-menu-contact-row a {
    color: var(--color-accent-light);
}

.site-menu-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}

.site-menu-empty {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 0.5rem 0.25rem;
}

.site-menu-lang {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.lang-btn-in-menu {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

.site-menu-contact-only {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.detail-hero-minimal {
    min-height: auto;
}

.detail-hero-minimal::before {
    display: none;
}

.detail-hero-minimal .detail-hero-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-inner {
        padding: 2rem 1.5rem 3rem;
    }

    .projects-section-header {
        padding: 2.5rem 1.25rem 1rem;
    }

    .detail-top-inner {
        padding: 1.25rem 1rem;
    }

    .detail-hero-banner img {
        height: min(40vh, 320px);
    }

    .detail-hero-caption {
        padding: 1.5rem 1rem 2rem;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sector-card {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .sector-card {
        min-height: 280px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
