/* Om Shree Ganeshay Namah
   public_html/assets/css/style.css — all visual styling, for both languages.
   Brick 5 (061026).
   Brick 6 (061026): vertical pages.
   Brick 6b (061026): pictures in the placeholder slots.

   Contents
     1. Tokens        colours, type and spacing, defined once
     2. Fonts         Poppins, self-hosted, for headings
     3. Base          page, text, links, focus
     4. Shared        wrap, bands, blue and not-blue, buttons, placeholders
     5. Top bar       and the toran, the garland hung below it on every page
     6. Hero
     7. Landing       features, doors (vertical cards), spotlights, notes
     8. Vertical      lede, steps, questions
     9. Enquiry
    10. Footer
    11. Bottom bar
    12. Hindi         adjustments for Devanagari
    13. Motion
*/

/* ---- 1. Tokens --------------------------------------------------------- */

:root {
    --indigo: #1F2A5C;
    --marigold: #F59E0B;
    --marigold-deep: #B45309;
    --paper: #FFFBF5;
    --paper-deep: #FBF1E0;
    --surface: #FFFFFF;
    --ink: #1A1A1A;
    --muted: #5B6170;
    --line: rgba(31, 42, 92, 0.16);

    --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;

    --radius-card: 14px;
    --radius-small: 10px;
    --gutter: 1.25rem;

    /* Space the fixed bottom bar occupies. The page reserves exactly this
       much at its end, so the bar never covers the last line. */
    --bar-space: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

/* ---- 2. Fonts ---------------------------------------------------------- */

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-devanagari-600-normal.woff2") format("woff2");
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

/* ---- 3. Base ----------------------------------------------------------- */

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

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

/* A link to a place on the page stops clear of the garland at the top. */
[id] {
    scroll-margin-top: 3.5rem;
}

body {
    margin: 0;
    padding-bottom: var(--bar-space);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    margin: 0 0 0.6em;
    color: var(--head, var(--indigo));
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 1.25rem + 3.9vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.125rem);
}

h3 {
    font-size: 1.1875rem;
    line-height: 1.3;
    letter-spacing: 0;
}

p {
    margin: 0 0 1em;
    max-width: 65ch;
}

a {
    color: var(--head, var(--indigo));
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--focus, var(--marigold-deep));
    outline-offset: 3px;
    border-radius: 4px;
}

ul[class] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -4rem;
    z-index: 30;
    padding: 0.6rem 0.9rem;
    background: var(--surface);
    border: 2px solid var(--indigo);
    border-radius: var(--radius-small);
}

.skip-link:focus {
    top: 0.6rem;
}

/* ---- 4. Shared --------------------------------------------------------- */

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

.band {
    padding-block: clamp(2.5rem, 1.6rem + 4.5vw, 4.75rem);
}

.band--tinted {
    background: var(--paper-deep);
}

.prose {
    max-width: 46rem;
}

/* Blue and not-blue.
   A surface is either indigo with light text, or light with dark text.
   The hero, the enquiry section, every other vertical card and every other
   vertical section are blue. Everything placed on a surface (headings,
   links, buttons, placeholders, focus rings) reads these values, so nothing
   inside needs to know which kind of surface it is on. */
.hero,
.enquiry,
.spotlight:nth-child(odd),
.doors > li:nth-child(odd) > .door {
    --head: var(--paper);
    --soft: rgba(255, 251, 245, 0.84);
    --edge: transparent;
    --hover: rgba(255, 251, 245, 0.13);
    --focus: var(--paper);
    --ph-bg: rgba(255, 251, 245, 0.08);
    --ph-line: rgba(255, 251, 245, 0.5);
    --ph-text: var(--paper);
    background: var(--indigo);
    color: var(--paper);
}

/* When the cards sit two to a row, plain alternation would paint each
   column one colour. This turns it into a chequerboard instead:
   blue, light on the first row and light, blue on the second. */
@media (min-width: 36rem) and (max-width: 63.9375rem) {
    .doors > li:nth-child(4n + 3) > .door {
        --head: var(--indigo);
        --soft: var(--muted);
        --edge: var(--line);
        --hover: rgba(31, 42, 92, 0.07);
        --focus: var(--marigold-deep);
        --ph-bg: rgba(31, 42, 92, 0.055);
        --ph-line: rgba(31, 42, 92, 0.4);
        --ph-text: var(--muted);
        background: var(--surface);
        color: var(--ink);
    }

    .doors > li:nth-child(4n) > .door {
        --head: var(--paper);
        --soft: rgba(255, 251, 245, 0.84);
        --edge: transparent;
        --hover: rgba(255, 251, 245, 0.13);
        --focus: var(--paper);
        --ph-bg: rgba(255, 251, 245, 0.08);
        --ph-line: rgba(255, 251, 245, 0.5);
        --ph-text: var(--paper);
        background: var(--indigo);
        color: var(--paper);
    }
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.875rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.button--primary {
    background: var(--marigold);
    color: var(--ink);
}

.button--primary:hover {
    background: #FFB52E;
}

.button--quiet {
    border-color: var(--head, var(--indigo));
    color: var(--head, var(--indigo));
}

.button--quiet:hover {
    background: var(--hover, rgba(31, 42, 92, 0.07));
}

/* A labelled box that stands where a photo or clip will go. */
.placeholder {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: var(--ph-bg, rgba(31, 42, 92, 0.055));
    border: 1.5px dashed var(--ph-line, rgba(31, 42, 92, 0.4));
    border-radius: var(--radius-small);
    color: var(--ph-text, var(--muted));
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
}

.placeholder p {
    margin: 0;
    max-width: 26ch;
}

.placeholder__tag {
    font-weight: 600;
}

.placeholder--wide,
.picture--wide {
    aspect-ratio: 16 / 9;
}

.placeholder--photo,
.picture--photo {
    aspect-ratio: 4 / 3;
}

/* A real picture, once its slot is filled. It takes exactly the space
   its placeholder took, so nothing on the page moves. */
.picture {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-small);
    background: var(--ph-bg, rgba(31, 42, 92, 0.055));
}

/* ---- 5. Top bar -------------------------------------------------------- */

.top-bar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.top-bar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    padding-block: 0.8rem;
}

.wordmark {
    order: 1;
    color: var(--indigo);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.lang-switch {
    order: 2;
    margin-left: auto;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid var(--indigo);
    border-radius: var(--radius-small);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.lang-switch:hover {
    background: rgba(31, 42, 92, 0.07);
}

.site-nav {
    order: 3;
    flex-basis: 100%;
}

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

.site-nav a {
    display: inline-block;
    padding-block: 0.3rem;
    color: var(--ink);
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a[aria-current="page"] {
    color: var(--indigo);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--marigold);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.4em;
}

/* Brick 10 (071026): the menu button, for phones. site.js un-hides it and
   the "js" class on <html> folds the navigation away until it is pressed.
   Without JavaScript neither applies and the navigation is always shown. */
.menu-button {
    order: 2;
    min-height: 2.25rem;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid var(--indigo);
    border-radius: var(--radius-small);
    background: var(--indigo);
    color: var(--paper);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.menu-button[aria-expanded="true"] {
    background: transparent;
    color: var(--indigo);
}

.js .site-nav {
    display: none;
}

.js .site-nav.is-open {
    display: block;
}

.js .site-nav.is-open ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0.25rem;
}

.js .site-nav.is-open a {
    display: block;
    padding-block: 0.65rem;
}

@media (min-width: 56rem) {
    .menu-button {
        display: none;
    }

    .js .site-nav,
    .js .site-nav.is-open {
        display: block;
    }

    .site-nav {
        order: 2;
        flex-basis: auto;
        margin-left: auto;
    }

    .lang-switch {
        order: 3;
        margin-left: 0.5rem;
    }
}

/* The toran: a garland hung across the top of a doorway to welcome guests.
   It appears on every page, directly below the top bar, and stays at the top
   of the screen as the page scrolls, the way a garland stays over a door.
   Drawn as one small repeating tile. Decoration only. */
.toran {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 32px;
    background-color: var(--indigo);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='40' viewBox='0 0 56 40'%3E%3Cpath d='M0 3h56' stroke='%23FBBF24' stroke-width='2'/%3E%3Cpath d='M14 3v7' stroke='%23FBBF24' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='20' r='10' fill='%23F59E0B'/%3E%3Ccircle cx='14' cy='20' r='6' fill='%23FBBF24'/%3E%3Ccircle cx='14' cy='20' r='2.2' fill='%23D97706'/%3E%3Cpath d='M42 3C35 12 36 27 42 36C48 27 49 12 42 3Z' fill='%232F7D4F'/%3E%3Cpath d='M42 6v26' stroke='%23246240' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center top;
    background-size: 44.8px 32px;
}

@media (min-width: 40rem) {
    .toran {
        height: 40px;
        background-size: 56px 40px;
    }
}

/* ---- 6. Hero ----------------------------------------------------------- */

.hero__row {
    display: grid;
    gap: 2rem;
    padding-block: clamp(1.75rem, 1rem + 4vw, 3.75rem) clamp(2.5rem, 1.5rem + 5vw, 4.75rem);
}

.hero__lead {
    margin-bottom: 1.6rem;
    max-width: 34ch;
    font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.3125rem);
    line-height: 1.5;
}

@media (min-width: 56rem) {
    .hero__row {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        gap: 3.5rem;
    }
}

/* ---- 7. Landing -------------------------------------------------------- */

/* What it does. These are facts, not links, so they sit directly on the
   page with no box around them. The first two are given more room. */
.features {
    display: grid;
    gap: 2.25rem 1.75rem;
}

.feature h3 {
    margin-top: 0.9rem;
    margin-bottom: 0.35rem;
}

.feature p {
    margin: 0;
    color: var(--soft, var(--muted));
}

@media (min-width: 40rem) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .features {
        grid-template-columns: repeat(6, 1fr);
    }

    .feature {
        grid-column: span 2;
    }

    .feature:nth-child(-n + 2) {
        grid-column: span 3;
    }
}

/* Where it fits. Each of these leads to its own page, so each is a card
   that is one link from edge to edge. The cards alternate blue and light. */
.doors {
    display: grid;
    gap: 1.25rem;
}

.door {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--edge, var(--line));
    border-radius: var(--radius-card);
    color: var(--ink);
    text-decoration: none;
}

.door:hover {
    border-color: var(--head, var(--indigo));
}

.door .placeholder {
    border-width: 0 0 1.5px;
    border-radius: 0;
}

.door .picture {
    border-radius: 0;
}

.door h3 {
    margin: 1rem 1.1rem 0.35rem;
}

.door p {
    margin: 0 1.1rem 1rem;
    color: var(--soft, var(--muted));
}

.door__more {
    margin: auto 1.1rem 1.1rem;
    color: var(--head, var(--indigo));
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.door:hover .door__more {
    text-decoration-thickness: 2px;
}

@media (min-width: 36rem) {
    .doors {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .doors {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* One section for each vertical: a photo beside a short case for it.
   Each is a full-width band. They alternate blue and light, and the photo
   changes side from one to the next. */
.spotlight {
    padding-block: clamp(2.5rem, 1.6rem + 4.5vw, 4.75rem);
}

.spotlight__row {
    display: grid;
    gap: 1.5rem;
}

.spotlight__text p:last-child {
    margin-bottom: 0;
}

/* Each point is marked with a small marigold. */
ul.points {
    margin-bottom: 1.6rem;
}

.points li {
    position: relative;
    max-width: 60ch;
    padding-left: 1.6rem;
}

.points li + li {
    margin-top: 0.55rem;
}

.points li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.5em;
    width: 0.7rem;
    height: 0.7rem;
    background: var(--marigold);
    border-radius: 50%;
}

@media (min-width: 56rem) {
    .spotlight__row {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .spotlight:nth-child(even) .spotlight__media {
        order: 2;
    }
}

/* Privacy and partners: two short notes, side by side when there is room. */
.notes {
    display: grid;
    gap: 2.25rem;
}

.note p:last-child {
    margin-bottom: 0;
}

@media (min-width: 48rem) {
    .notes {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem;
    }
}

/* ---- 8. Vertical pages ------------------------------------------------- */

/* The opening paragraph of a section, set a little larger. */
.lede {
    font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
    line-height: 1.6;
}

/* How deployment works. These are numbered because they happen in order. */
.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.75rem 1.5rem;
    counter-reset: step;
}

.step {
    counter-increment: step;
    padding-top: 0.9rem;
    border-top: 3px solid var(--marigold);
}

.step::before {
    content: counter(step);
    display: block;
    margin-bottom: 0.35rem;
    color: var(--indigo);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
}

.step h3 {
    margin-bottom: 0.3rem;
}

.step p {
    margin: 0;
    color: var(--soft, var(--muted));
}

@media (min-width: 36rem) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .steps {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Questions buyers ask. */
.faq__item {
    padding-block: 1.25rem;
    border-top: 1px solid var(--line);
}

.faq__item:last-child {
    padding-bottom: 0;
}

.faq__item h3 {
    margin-bottom: 0.4rem;
}

.faq__item p:last-child {
    margin-bottom: 0;
}

/* ---- 9. Enquiry -------------------------------------------------------- */

.enquiry {
    padding-block: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);
}

.enquiry__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    max-width: none;
}

/* Brick 8 (071026): the enquiry form. It sits on the blue enquiry section,
   so labels are light and the fields themselves are white with dark text. */
.form {
    margin-top: 1.5rem;
    max-width: 46rem;
}

.form__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 40rem) {
    .form__grid {
        grid-template-columns: 1fr 1fr;
    }

    .field--wide {
        grid-column: 1 / -1;
    }
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.field__optional {
    font-weight: 400;
    color: var(--soft);
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 2.875rem;
    padding: 0.6rem 0.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--ink);
    /* 16px or more, or iPhones zoom the page when a field is tapped. */
    font: inherit;
    font-size: 1rem;
}

.field textarea {
    resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--marigold);
    outline-offset: 2px;
}

.field [aria-invalid="true"] {
    border-color: var(--marigold);
}

/* Messages are dark text on a light box, so they read clearly on the blue. */
.field__error,
.notice {
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius-small);
}

.field__error {
    margin: 0.4rem 0 0;
    padding: 0.35rem 0.6rem;
    max-width: none;
    font-size: 0.9375rem;
    color: #8C1D18;
}

.field__error::before {
    content: "! ";
    font-weight: 700;
}

.notice {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    max-width: 46rem;
    border-left: 6px solid var(--marigold);
}

.notice--bad {
    border-left-color: #B3261E;
}

.notice p {
    margin: 0;
}

.notice p + p {
    margin-top: 0.35rem;
}

.notice a {
    color: var(--indigo);
    font-weight: 600;
}

.form__send {
    margin: 1.25rem 0 0;
}

.form__send .button {
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.form__notice {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    color: var(--soft);
}

/* The trap field: off the screen for people, still in the page for scripts. */
.form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.enquiry__direct {
    margin: 2rem 0 0;
    color: var(--soft);
}

.enquiry__direct + .enquiry__actions {
    margin-top: 0.75rem;
}

/* Brick 11 (081026): the privacy page. Each question in bold above its answer. */
.privacy h2 {
    margin-top: 2.5rem;
}

.privacy__facts {
    margin: 1rem 0 0;
}

.privacy__facts dt {
    margin-top: 1.1rem;
    font-weight: 600;
    color: var(--indigo);
}

.privacy__facts dd {
    margin: 0.2rem 0 0;
}

.privacy__advice {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    background: var(--paper-deep);
    border-left: 6px solid var(--marigold);
    border-radius: var(--radius-small);
}

.privacy__updated {
    margin-top: 2.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ---- 10. Footer -------------------------------------------------------- */

.site-footer {
    padding-block: 2rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.site-footer p {
    margin-bottom: 0.4rem;
}

.site-footer .lockup {
    color: var(--indigo);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-block: 0.9rem;
}

/* ---- 11. Bottom bar --------------------------------------------------- */

.bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    padding-block: 0.6rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.bottom-bar__row {
    display: flex;
    gap: 0.75rem;
}

/* Labels stay on one line, so the bar's height never changes and the
   space reserved for it in --bar-space is always enough. */
.bottom-bar .button {
    flex: 1 1 0;
    padding-inline: 0.5rem;
    font-size: 0.9375rem;
    white-space: nowrap;
}

@media (min-width: 40rem) {
    .bottom-bar__row {
        justify-content: flex-end;
    }

    .bottom-bar .button {
        flex: 0 0 auto;
        padding-inline: 1.2rem;
    }
}

/* ---- 12. Hindi -------------------------------------------------------- */

/* Devanagari carries marks above and below the line, so it needs more
   room between lines, and its letters are never tightened. */
html[lang="hi"] body {
    line-height: 1.7;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3 {
    line-height: 1.4;
    letter-spacing: 0;
}

html[lang="hi"] .hero__lead {
    line-height: 1.7;
}

html[lang="hi"] .lede {
    line-height: 1.75;
}

html[lang="hi"] .points li::before {
    top: 0.62em;
}

/* ---- 13. Motion ------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
