/* Aman Car — professional site styles */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Reem+Kufi:wght@400;500;600;700&display=swap');

:root {
    --ac-slate: #0f1724;
    --ac-steel: #0d4f78;
    --ac-sky: #1177a8;
    --ac-ice: #e8f3f9;
    --ac-mist: #f4f7fa;
    --ac-ink: #122033;
    --ac-muted: #5b6b7c;
    --ac-line: #d5dde6;
    --ac-white: #ffffff;
    --ac-accent: #2aa3d4;
    --ac-shadow: 0 18px 50px rgba(15, 23, 36, 0.08);
    --ac-radius: 18px;
    --ac-nav-h: 76px;
    --font-display: 'Reem Kufi', sans-serif;
    --font-body: 'Almarai', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ac-nav-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ac-ink);
    background: var(--ac-mist);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-head {
    max-width: 42rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--ac-sky);
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.section-title {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--ac-slate);
    line-height: 1.25;
}

.section-lead {
    margin: 0;
    color: var(--ac-muted);
    font-size: 1.05rem;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--ac-steel) #d7dee8;
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: #d7dee8;
}

*::-webkit-scrollbar-thumb {
    background: var(--ac-steel);
    border-radius: 999px;
}

.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;
    height: var(--ac-nav-h);
    backdrop-filter: blur(14px);
    background: rgba(244, 247, 250, 0.9);
    border-bottom: 1px solid rgba(15, 23, 36, 0.06);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px rgba(15, 23, 36, 0.08);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.brand-link img {
    height: 58px;
    width: auto;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ac-slate);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ac-line);
    border-radius: 12px;
    background: var(--ac-white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ac-slate);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--ac-muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ac-slate);
    background: rgba(17, 119, 168, 0.1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    inset-inline-end: 0;
    min-width: 240px;
    padding: 0.55rem;
    border-radius: 16px;
    background: var(--ac-white);
    border: 1px solid rgba(15, 23, 36, 0.08);
    box-shadow: var(--ac-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown.is-open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    color: var(--ac-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.dropdown-panel a:hover {
    background: var(--ac-ice);
    color: var(--ac-steel);
}

.dropdown-panel .switch-site {
    margin-top: 0.35rem;
    border-top: 1px solid var(--ac-line);
    padding-top: 0.85rem;
    color: var(--ac-sky);
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: calc(var(--ac-nav-h) + 2rem) 0 3.5rem;
    color: var(--ac-white);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(15, 23, 36, 0.9) 12%, rgba(13, 79, 120, 0.72) 55%, rgba(42, 163, 212, 0.4) 100%),
        linear-gradient(to top, rgba(15, 23, 36, 0.75), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: end;
}

.hero-copy {
    max-width: 36rem;
}

.hero-brand {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.6rem);
    font-weight: 700;
    line-height: 1.08;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
}

.hero-text {
    margin: 0 0 1.75rem;
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-visual {
    justify-self: center;
    max-width: 360px;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
    animation: floatY 5.5s ease-in-out infinite;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--ac-accent);
    color: var(--ac-slate);
}

.btn-primary:hover {
    background: #49b4dc;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--ac-white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-navy {
    background: var(--ac-steel);
    color: var(--ac-white);
}

.btn-navy:hover {
    background: var(--ac-sky);
}

.btn-outline {
    background: transparent;
    border-color: var(--ac-line);
    color: var(--ac-slate);
}

.btn-outline:hover {
    border-color: var(--ac-sky);
    background: var(--ac-ice);
}

.about {
    background:
        radial-gradient(circle at top left, rgba(17, 119, 168, 0.12), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, var(--ac-mist) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-panel {
    padding: 1.75rem;
    border-radius: calc(var(--ac-radius) + 6px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 36, 0.06);
    box-shadow: var(--ac-shadow);
}

.about-panel p {
    margin: 0 0 1rem;
    color: var(--ac-muted);
    font-size: 1.02rem;
}

.about-panel p:last-child {
    margin-bottom: 0;
}

.about-meta {
    display: grid;
    gap: 0.85rem;
}

.meta-chip {
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: var(--ac-slate);
    color: var(--ac-white);
}

.meta-chip strong {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-display);
    color: var(--ac-accent);
}

.caps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cap-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.35rem 1.4rem;
    border-radius: var(--ac-radius);
    background: var(--ac-white);
    border: 1px solid rgba(15, 23, 36, 0.06);
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.cap-item:hover {
    transform: translateY(-3px);
    border-color: rgba(17, 119, 168, 0.4);
    background: linear-gradient(180deg, #ffffff, #f2f8fc);
}

.cap-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ac-ice);
    color: var(--ac-sky);
}

.cap-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: var(--ac-slate);
}

.cap-item p {
    margin: 0;
    color: var(--ac-muted);
    font-size: 0.95rem;
}

.services {
    background: linear-gradient(180deg, rgba(13, 79, 120, 0.03), transparent), var(--ac-white);
}

.services-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.services-visual {
    justify-self: center;
    max-width: 260px;
    animation: floatY 6s ease-in-out infinite;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
    background: var(--ac-mist);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-link:hover {
    background: var(--ac-white);
    border-color: rgba(17, 119, 168, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--ac-shadow);
}

.service-link .icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ac-slate);
    color: var(--ac-accent);
    flex-shrink: 0;
}

.service-link span {
    font-weight: 800;
    color: var(--ac-slate);
}

.stats {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 10%, rgba(42, 163, 212, 0.22), transparent 35%),
        linear-gradient(135deg, var(--ac-slate) 0%, #163554 50%, #0d4f78 100%);
    color: var(--ac-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.stats-list {
    display: grid;
    gap: 0.85rem;
}

.stat-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--ac-accent);
    line-height: 1.1;
}

.stat-item p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.stats-visual {
    justify-self: center;
    max-width: 320px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.careers {
    background:
        linear-gradient(120deg, rgba(15, 23, 36, 0.9), rgba(13, 79, 120, 0.86)),
        url('../images/background.jpg') center / cover;
    color: var(--ac-white);
    text-align: center;
}

.careers .section-title,
.careers .section-lead {
    color: var(--ac-white);
}

.careers .section-lead {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.contact,
.page-form {
    background:
        radial-gradient(circle at bottom right, rgba(17, 119, 168, 0.1), transparent 40%),
        var(--ac-mist);
}

.form-shell {
    width: min(720px, 100%);
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: calc(var(--ac-radius) + 8px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 36, 0.06);
    box-shadow: var(--ac-shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.form-group {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ac-slate);
}

.form-ele {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--ac-line);
    background: #fbfcfe;
    color: var(--ac-ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-ele {
    min-height: 140px;
    resize: vertical;
}

.form-ele:focus {
    border-color: var(--ac-sky);
    box-shadow: 0 0 0 4px rgba(17, 119, 168, 0.14);
}

.form-ele::placeholder {
    color: #98a2b3;
}

input::file-selector-button {
    margin-inline-end: 0.75rem;
    border: 0;
    border-radius: 10px;
    padding: 0.45rem 0.8rem;
    background: linear-gradient(135deg, var(--ac-sky), var(--ac-steel));
    color: var(--ac-white);
    font-weight: 700;
    cursor: pointer;
}

.page-hero {
    padding: calc(var(--ac-nav-h) + 2.5rem) 0 1.5rem;
    background:
        linear-gradient(135deg, rgba(15, 23, 36, 0.92), rgba(13, 79, 120, 0.78)),
        url('../images/background.jpg') center / cover;
    color: var(--ac-white);
    text-align: center;
}

.page-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.page-hero p {
    margin: 0.75rem auto 0;
    max-width: 36rem;
    opacity: 0.88;
}

.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(15, 23, 36, 0.08);
    background: var(--ac-white);
    color: var(--ac-muted);
    text-align: center;
    font-size: 0.92rem;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes heroDrift {
    from {
        transform: scale(1.04) translateY(0);
    }
    to {
        transform: scale(1.1) translateY(-1.5%);
    }
}

@media (max-width: 980px) {
    .hero-content,
    .about-grid,
    .services-layout,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        align-items: center;
        padding-bottom: 2.5rem;
    }

    .hero-visual,
    .services-visual,
    .stats-visual {
        order: -1;
        max-width: 240px;
    }

    .caps-grid,
    .services-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--ac-nav-h);
        inset-inline: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(15, 23, 36, 0.08);
        box-shadow: var(--ac-shadow);
        max-height: calc(100vh - var(--ac-nav-h));
        overflow: auto;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
    }

    .dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0.25rem 0.25rem 0.25rem 0.85rem;
        display: none;
    }

    .nav-dropdown.is-open .dropdown-panel {
        display: block;
    }

    .brand-text {
        display: none;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 1.5rem, 1120px);
    }

    .brand-link img {
        height: 48px;
    }

    .cap-item,
    .service-link,
    .stat-item {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
