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

:root {
    --page-max-width: 1200px;
    --page-padding: 24px;
    --header-height: 65px;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    line-height: 1.5;
    overflow-x: clip;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 210;
    padding: 16px 0;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-scrolled {
    background: #fff;
    border-bottom-color: #e0e0e0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-logo-wrap {
    flex-shrink: 1;
    min-width: 0;
}

.header-logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: calc(100vw - var(--page-padding) * 2 - 56px);
}

.header-logo-dark {
    display: none;
}

.navbar.navbar-scrolled .header-logo-light {
    display: none;
}

.navbar.navbar-scrolled .header-logo-dark {
    display: block;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    margin: -8px -8px -8px 0;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    transition: background-color 0.3s ease;
}

.navbar.navbar-scrolled .menu-toggle span {
    background: #111;
}

/* Slide-out menu */
.menu-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(204, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 100%);
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 56px var(--page-padding) 40px;
}

.menu-overlay.open .menu-panel {
    transform: translateX(0);
}

.menu-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.menu-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.menu-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
}

.menu-section ul {
    list-style: none;
}

.menu-section li {
    margin-bottom: 12px;
}

.menu-section a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: inline-block;
    padding: 2px 0;
}

.menu-section a:hover {
    text-decoration: underline;
}

body.menu-open {
    overflow: hidden;
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.badge-red {
    background: #cc0000;
    color: #fff;
}

.badge-white {
    background: #fff;
    color: #cc0000;
}

/* Hero */
.hero {
    min-height: 600px;
    height: 75vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.hero .container {
    flex-shrink: 0;
}

.hero-title {
    color: #fff;
    font-size: clamp(17px, 2.2vw, 28px);
    font-weight: 400;
    max-width: 100%;
    line-height: 1.35;
    margin-bottom: 32px;
}

.hero-line {
    display: block;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border: none;
    padding: 0;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.indicator::before {
    content: "";
    position: absolute;
    inset: -14px;
}

.indicator.active {
    background: #cc0000;
}

/* Explore */
.explore {
    padding: 60px 0;
}

.explore h2 {
    font-size: clamp(18px, 2.1vw, 26px);
    font-weight: 400;
    max-width: 100%;
    margin-bottom: 40px;
    line-height: 1.35;
}

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

.card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card:hover p {
    text-decoration: underline;
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin-bottom: 16px;
}

.card p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow-wrap: break-word;
}

/* Capabilities */
.capabilities {
    position: relative;
    display: grid;
}

.capabilities-bg,
.capabilities-content {
    grid-area: 1 / 1;
}

.capabilities-bg {
    width: 100%;
    display: block;
    object-fit: cover;
    min-height: 400px;
    height: 100%;
}

.capabilities-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.capabilities h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    max-width: 1000px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

/* Sitemap footer */
.sitemap {
    --sitemap-padding-y: 60px;
    padding: var(--sitemap-padding-y) 0;
    border-bottom: 1px solid #e0e0e0;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.sitemap-col {
    position: relative;
    padding-right: 40px;
}

.sitemap-col:nth-child(2),
.sitemap-col:nth-child(3) {
    padding-left: 40px;
}

.sitemap-col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(-1 * var(--sitemap-padding-y));
    bottom: calc(-1 * var(--sitemap-padding-y));
    right: 0;
    width: 1px;
    background: #e0e0e0;
}

.sitemap-col:last-child {
    padding-right: 0;
}

.sitemap-col h3 {
    font-size: 15px;
    margin-bottom: 16px;
}

.sitemap-col ul {
    list-style: none;
}

.sitemap-col li {
    margin-bottom: 12px;
}

.sitemap-col a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.sitemap-col a:hover {
    text-decoration: underline;
}

/* Branding footer */
.branding {
    padding: 30px 0;
}

.branding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-adersim-logo {
    display: block;
    height: 48px;
    width: auto;
}

.footer-logos a {
    display: block;
    line-height: 0;
}

.york-logo {
    display: block;
    height: 45px;
    width: auto;
}

.language-selector {
    position: relative;
    flex-shrink: 0;
}

.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    padding: 10px 36px 10px 12px;
    border: 1px solid #111;
    background: #fff;
    cursor: pointer;
    min-width: 110px;
    min-height: 44px;
}

.language-selector::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

/* Copyright */
.copyright {
    background: #fff;
    color: #111;
    border-top: 1px solid #e0e0e0;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 13px;
}

.copyright p {
    overflow-wrap: break-word;
}

/* Tablet */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .sitemap-col:nth-child(2)::after {
        display: none;
    }

    .sitemap-col:nth-child(2) {
        padding-right: 0;
    }

    .sitemap-col:nth-child(3) {
        padding-left: 0;
        padding-top: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --page-padding: 20px;
    }

    .navbar {
        padding: 12px 0;
    }

    .header-logo {
        height: 26px;
    }

    .hero {
        min-height: 500px;
        height: 68vh;
    }

    .hero-title {
        font-size: clamp(17px, 4.8vw, 22px);
        margin-bottom: 24px;
    }

    .hero-content {
        padding-bottom: 32px;
    }

    .badge {
        font-size: 16px;
        padding: 8px 14px;
        margin-bottom: 20px;
    }

    .explore {
        padding: 40px 0;
    }

    .explore h2 {
        margin-bottom: 28px;
    }

    .card-grid,
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sitemap {
        --sitemap-padding-y: 40px;
        padding: var(--sitemap-padding-y) 0;
    }

    .sitemap-col {
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 24px;
        border-bottom: 1px solid #e0e0e0;
    }

    .sitemap-col::after {
        display: none;
    }

    .sitemap-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .capabilities-bg {
        min-height: 320px;
    }

    .capabilities-content {
        padding: 48px 0;
    }

    .capabilities h2 {
        font-size: 20px;
    }

    .branding {
        padding: 24px 0;
    }

    .branding-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-adersim-logo {
        height: 40px;
    }

    .york-logo {
        height: 38px;
    }

    .menu-panel {
        padding-top: 48px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --page-padding: 16px;
    }

    .header-logo {
        height: 22px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-title {
        font-size: 17px;
    }

    .footer-logos {
        gap: 16px;
    }

    .footer-adersim-logo {
        height: 36px;
    }

    .york-logo {
        height: 34px;
    }

    .language-selector select {
        width: 100%;
    }

    .branding-row .language-selector {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-overlay,
    .menu-panel {
        transition: none;
    }
}
