/* Ravel Dome – site styles
   Palette: harbor blue + chart-paper, saffron as the single accent (the India / trade-route thread). */

:root {
    --harbor: #163a5f;
    --harbor-deep: #0f2a45;
    --paper: #eef2ef;
    --white: #fbfcfb;
    --saffron: #e2a33b;
    --saffron-pale: #f6e7c8;
    --seaglass: #86b8b3;
    --ink: #172331;
    --muted: #536170;
    --line: #c9d3d0;

    --display: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
    --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display-lh: 1.08;
    --body-lh: 1.6;

    --wrap: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 9vw, 7.5rem);
    --radius: 4px;
}

:root:lang(he) {
    --body: "IBM Plex Sans Hebrew", "IBM Plex Sans", system-ui, sans-serif;
}

:root:lang(ar) {
    --display: "Amiri", "Times New Roman", serif;
    --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
    --display-lh: 1.35;
    --body-lh: 1.8;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: var(--body-lh);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: var(--display-lh);
    margin: 0;
    text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--ink);
    color: var(--white);
    padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

.lead {
    font-size: clamp(1.15rem, 1.6vw, 1.33rem);
    max-width: 38em;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    font: 600 1rem/1.2 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { background: #ecb558; }

.btn-ghost { border-color: rgba(251, 252, 251, 0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--harbor); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 76px;
}

.brand img { height: 48px; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-inline-start: auto;
}

.site-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    padding-block: 0.4rem;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav .nav-india { border-bottom-color: var(--saffron); }

.lang-switch {
    padding-inline-start: 1.5rem !important;
    border-inline-start: 1px solid var(--line);
    gap: 1rem !important;
}
.lang-switch a { color: var(--muted); }
.lang-switch a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.menu-toggle {
    display: none;
    margin-inline-start: auto;
    width: 48px; height: 48px;
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 2px;
    background: var(--ink);
    content: "";
}
.menu-bars { top: 23px; }
.menu-bars::before { top: -7px; left: 0; }
.menu-bars::after { top: 7px; left: 0; }

@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gutter) 1.5rem;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav a { display: block; padding-block: 0.8rem; font-size: 1.05rem; }
    .lang-switch {
        flex-direction: row !important;
        border-inline-start: 0;
        border-top: 1px solid var(--line);
        padding-inline-start: 0 !important;
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
        gap: 1.5rem !important;
    }
}

/* ---------- Hero ---------- */

.hero {
    background: var(--harbor);
    color: var(--white);
    padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 4.6rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}
:root:lang(ar) .hero h1 { letter-spacing: 0; font-weight: 700; }

.hero .lead { color: rgba(251, 252, 251, 0.85); margin-bottom: 2.25rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-map { margin: 0; }
.hero-map svg { width: 100%; height: auto; overflow: visible; direction: ltr; }

.graticule line { stroke: rgba(134, 184, 179, 0.22); stroke-width: 0.6; stroke-dasharray: 2 4; }

.route {
    fill: none;
    stroke: var(--seaglass);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.4s cubic-bezier(.6, .1, .3, 1) forwards;
}
.route-mumbai { stroke: var(--saffron); stroke-width: 2; }
.route-london { animation-delay: 0.15s; }
.route-ny { animation-delay: 0.3s; }
.route-dubai { animation-delay: 0.45s; }
.route-mumbai { animation-delay: 0.6s; }
.route-shanghai { animation-delay: 0.75s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.node { fill: var(--white); }
.node-mumbai { fill: var(--saffron); }
.home { fill: var(--saffron); }
.home-ring { fill: none; stroke: var(--saffron); stroke-width: 1; opacity: 0.6; }

.hero-map text {
    font-family: var(--body);
    font-size: 13px;
    fill: rgba(251, 252, 251, 0.8);
}
.hero-map .home-label { font-size: 15px; font-weight: 600; fill: var(--white); }

@media (prefers-reduced-motion: reduce) {
    .route { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-map { margin-inline: calc(var(--gutter) * -0.5); }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.section-head p { color: var(--muted); max-width: 32em; }

.statement { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 500; max-width: 12em; }
:root:lang(ar) .statement { font-weight: 700; }

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(2rem, 6vw, 5rem);
}

.about-body > p { max-width: 36em; font-size: 1.2rem; }

.principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2.5rem;
    margin: 3rem 0 0;
}
.principles > div {
    border-inline-start: 2px solid var(--saffron);
    padding-inline-start: 1.1rem;
}
.principles dt { font-weight: 600; margin-bottom: 0.35rem; }
.principles dd { margin: 0; color: var(--muted); font-size: 1rem; }

.services { background: var(--white); }

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.service-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 2rem;
    padding-block: 1.75rem;
    border-bottom: 1px solid var(--line);
}
.service-list h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 500; }
:root:lang(ar) .service-list h3 { font-weight: 700; }
.service-list p { color: var(--muted); max-width: 32em; }

/* Process: a real sequence, drawn as a route with stops */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    counter-reset: step;
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    top: 21px;
    inset-inline: 22px;
    border-top: 1.5px dashed var(--seaglass);
}
.steps li { counter-increment: step; position: relative; }
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid var(--harbor);
    color: var(--harbor);
    font: 600 1rem/1 var(--body);
    margin-bottom: 1.25rem;
    position: relative;
}
.steps li:last-child::before { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.steps h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0.5rem; }
:root:lang(ar) .steps h3 { font-weight: 700; }
.steps p { color: var(--muted); font-size: 1rem; }

/* India band on home */
.india-band {
    background: var(--saffron-pale);
    padding-block: clamp(4rem, 8vw, 6.5rem);
    border-block: 1px solid #ead3a3;
}
.india-band-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: end;
}
.india-band h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 500; }
:root:lang(ar) .india-band h2 { font-weight: 700; }
.india-band p { font-size: 1.15rem; margin-bottom: 1.75rem; max-width: 30em; }

/* India page hero */
.india-hero {
    background: var(--saffron-pale);
    padding-block: clamp(3.5rem, 8vw, 7rem);
    border-bottom: 1px solid #ead3a3;
}
.india-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 500;
    max-width: 13em;
    margin-bottom: 1.5rem;
}
:root:lang(ar) .india-hero h1 { font-weight: 700; }
.india-hero .lead { margin-bottom: 2.25rem; }
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
    background: var(--harbor-deep);
    color: var(--white);
    padding-block: var(--section-y);
}
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
}
.contact h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500; margin-bottom: 1.25rem; max-width: 12em; }
:root:lang(ar) .contact h2 { font-weight: 700; }
.contact .lead { color: rgba(251, 252, 251, 0.8); }

.contact-details { margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
.contact-details dt { font-size: 0.9rem; color: var(--seaglass); }
.contact-details dd { margin: 0; font-size: 1.25rem; }
.contact-details a { text-decoration: none; border-bottom: 1px solid rgba(251, 252, 251, 0.3); }
.contact-details a:hover { border-bottom-color: var(--saffron); }

.contact-form {
    background: var(--white);
    color: var(--ink);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius);
    display: grid;
    gap: 1.1rem;
    align-content: start;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.95rem; font-weight: 500; }
.field input,
.field textarea {
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem 0.9rem;
    width: 100%;
}
.field input:focus,
.field textarea:focus { border-color: var(--harbor); outline: 2px solid var(--harbor); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 8rem; }
.contact-form .btn { justify-self: start; }

.form-status { padding: 0.8rem 1rem; border-radius: var(--radius); margin: 0; font-size: 1rem; }
.form-status.is-ok { background: #e2efe9; color: #1f5a43; }
.form-status.is-error { background: #f8e3df; color: #8a2c1c; }

.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { background: var(--harbor-deep); color: rgba(251, 252, 251, 0.6); border-top: 1px solid rgba(251, 252, 251, 0.12); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; font-size: 0.9rem; }
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .about-grid,
    .section-head,
    .service-list li,
    .india-band-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .section-head { gap: 0.75rem; }
    .service-list li { gap: 0.5rem; }
    .principles { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 1.75rem; }
    .steps::before {
        top: 22px; bottom: 22px;
        inset-inline-start: 21px; inset-inline-end: auto;
        border-top: 0;
        border-inline-start: 1.5px dashed var(--seaglass);
    }
    .steps li { padding-inline-start: 64px; }
    .steps li::before { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
}
