/* ==========================================================================
   NIRVA — brand layer (20 Nov 2026)
   Source: the Nirva brand identity book (Craywingz), "Nirva_logo.pdf".
     Logo     circular water emblem + NIRVA wordmark with the wave beneath the
              final A — traced from the book; stacked (hero), horizontal
              (header) and wordmark-only (footer). Drawn from one inline sprite.
     Palette  #094360 navy · #0c79a4 blue (the book's "signature in blue"),
              plus water tints taken from its water imagery.
     Type     Marcellus (primary) · Manrope (secondary). Self-hosted.
   The older layers (nirva-page.css, nirva-ariva.css, tailwind.css) were
   re-coloured in place from violet/rose to these blues; this file is loaded
   last and only adds what the identity needs on top.
   ========================================================================== */

/* ---- fonts (latin subsets from @fontsource, /assets/fonts) ---- */
@font-face {
    font-family: "Marcellus";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/marcellus-latin-400-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, U+20B9;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
         url("../fonts/manrope-latin-wght-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, U+20B9;
}

/* ---- tokens ---- */
:root {
    --nv-navy: #094360;        /* brand navy  */
    --nv-blue: #0c79a4;        /* brand blue  */
    --nv-water: #5fbfe4;       /* light water — accents on navy */
    --nv-sky: #a9def3;         /* palest water */
    --nv-paper: #e7f1f4;       /* the book's aqua paper, lifted for screens */
    /* legacy names used across the older layers */
    --nv-ink: #06344c;
    --nv-deep: #094360;
    --nv-ivory: #f4f9fb;
    --nv-rose: #5fbfe4;
    --nv-rose-deep: #0c79a4;
    --nv-line: #d5e5eb;
    /* the single wave from the book ("~"), used as an ornament mask */
    --nv-wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 19.5C14 10 30 4.5 47 6.5c15 1.8 24 10.6 41 12.2 12 1.1 22-1.6 32-7.6-9 9.4-21 14.3-34 13.5C68 23.5 59 14.6 45 12.6 29 10.4 14 13.4 0 19.5Z'/%3E%3C/svg%3E");
}

body { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
::selection { background: var(--nv-blue); color: #fff; }

/* ---- logo sprite + instances ---- */
.nv-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
/* every logo is three <use> parts: emblem (.nv-e), letters (.nv-t), wave (.nv-w) */
.nv-e { fill: var(--nv-blue); }
.nv-t { fill: var(--nv-navy); }
.nv-w { fill: var(--nv-blue); }

/* header: the book's horizontal lockup. White over the hero, full colour on the light bar */
.nv-lockup { display: block; width: auto; height: clamp(1.55rem, 4.2vw, 1.85rem); aspect-ratio: 5.105 / 1; overflow: visible; }
.nv-lockup--center { height: clamp(1.75rem, 2.2vw, 2.15rem); }
#navbar .nv-lockup .nv-e { fill: url(#nvWater); }
#navbar .nv-lockup .nv-t { fill: #fff; transition: fill 0.35s ease; }
#navbar .nv-lockup .nv-w { fill: var(--nv-water); transition: fill 0.35s ease; }
#navbar.nav-scrolled .nv-lockup .nv-e { fill: var(--nv-blue); }
#navbar.nav-scrolled .nv-lockup .nv-t { fill: var(--nv-navy); }
#navbar.nav-scrolled .nv-lockup .nv-w { fill: var(--nv-blue); }
#navbar .nav-brand-logo--on-dark { filter: drop-shadow(0 2px 14px rgba(2, 26, 38, 0.35)); }
#navbar.nav-scrolled .nav-brand-logo { filter: none; }
.nav-brand-sub { margin-top: 0.55rem; letter-spacing: 0.32em; }
/* the mobile menu panel is light: keep the lockup in colour while it is open */

/* ---- hero: deep water ---- */
.hero-bg-ink {
    background:
        radial-gradient(ellipse 70% 48% at 50% 108%, rgba(43, 191, 232, 0.30), transparent 62%),
        radial-gradient(ellipse 55% 45% at 85% 0%, rgba(12, 121, 164, 0.38), transparent 60%),
        linear-gradient(180deg, #06344c 0%, #094360 58%, #0a4d6c 100%);
}
/* the book's water lines (p.1), now moving: three depth layers that drift sideways at different
   speeds (each tile loops seamlessly) and rise and fall gently. Transform-only, so it stays on the
   compositor; paused while the hero is off-screen (inline script after the hero). */
.hero-bg-ink::after { content: none; }
.nv-water {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 36%, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 36%, #000 100%);
}
.nv-water__band {
    position: absolute;
    inset: -16px 0;
    animation: nvSwell 9s ease-in-out infinite alternate;
    will-change: transform;
}
.nv-water__layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(2 * max(100%, 1100px));   /* two tiles; a tile is never narrower than 1100px, so phone waves stay long and calm */
    background-repeat: repeat-x;
    background-position: 0 0;
    background-size: 50% 100%;
    animation: nvFlow 110s linear infinite;
    will-change: transform;
}
.nv-water__band--a .nv-water__layer { background-image: url("../images/brand/water-lines-a.svg"); opacity: 0.14; animation-duration: 64s; }
.nv-water__band--b .nv-water__layer { background-image: url("../images/brand/water-lines-b.svg"); opacity: 0.11; animation-duration: 96s; }
.nv-water__band--c .nv-water__layer { background-image: url("../images/brand/water-lines-c.svg"); opacity: 0.085; animation-duration: 140s; }
.nv-water__band--a { animation-duration: 7.5s; animation-delay: -2s; }
.nv-water__band--b { animation-duration: 10s; animation-delay: -6s; }
.nv-water__band--c { animation-duration: 13s; animation-delay: -9s; }
.nv-water.is-paused .nv-water__band,
.nv-water.is-paused .nv-water__layer { animation-play-state: paused; }
@keyframes nvFlow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes nvSwell { from { transform: translate3d(0, -7px, 0); } to { transform: translate3d(0, 7px, 0); } }
#hero .hero-overlay { background: linear-gradient(to top, rgba(2, 26, 38, 0.5) 0%, transparent 42%); }

#hero .hero-title--logo { margin: 0 0 clamp(1.4rem, 2.6vw, 2.1rem); }
#hero .hero-title--logo .hero-title-mask { padding: 0.5rem 0 0.75rem; }
#hero .hero-title--logo .hero-logo {
    display: block;
    width: min(78vw, clamp(15rem, 31vw, 27rem));
    height: auto;
    aspect-ratio: 1.6294 / 1;
    margin-inline: auto;
    overflow: visible;
    filter: drop-shadow(0 18px 40px rgba(2, 26, 38, 0.45));
}
#hero .hero-logo .nv-e { fill: url(#nvWater); }
#hero .hero-logo .nv-t { fill: #fff; }
#hero .hero-logo .nv-w { fill: var(--nv-water); }

.hero-kicker { color: var(--nv-sky); font-family: "Manrope", sans-serif; }
#hero .nv-hero-line {
    margin: 0 0 1.1rem;
    font-family: "Marcellus", serif;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    line-height: 1.3;
    letter-spacing: 0.26em;
    padding-left: 0.26em;
    text-transform: uppercase;
    color: #fff;
}
.hero-subtitle {
    font-family: "Manrope", sans-serif;
    font-size: clamp(0.68rem, 1vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    color: rgba(169, 222, 243, 0.92);
}
.hero-locationbar { border-color: rgba(169, 222, 243, 0.32); }
.hero-locationbar p { color: rgba(244, 249, 251, 0.82); }
#hero.hero-js .nv-hero-line { opacity: 0; transform: translateY(22px); transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1); }
#hero.hero-js.hero-lit .nv-hero-line { opacity: 1; transform: none; transition-delay: 0.26s; }
#hero.hero-js.hero-lit .hero-subtitle { transition-delay: 0.4s; }

/* ---- headings: Marcellus set the way the book sets display lines — capitals, open tracking ---- */
.page-curtain h1,
.page-curtain h2,
.page-curtain h3.text-4xl,
.page-curtain .amenity-text-slide__title,
#footer h2 {
    font-family: "Marcellus", serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.16;
}
.page-curtain h2.text-4xl,
#footer h2.text-4xl,
.page-curtain h3.text-4xl { font-size: clamp(1.6rem, 3.1vw, 2.6rem); font-weight: 400; }
.page-curtain .amenity-text-slide__title { font-size: clamp(1.5rem, 2.8vw, 2.4rem); }
.about-copy-title,
.contact-title { font-size: clamp(1.6rem, 3vw, 2.45rem); }
.page-curtain h3:not([class*="uppercase"]),
.page-curtain h4:not([class*="uppercase"]) { font-family: "Marcellus", serif; letter-spacing: 0.02em; }
.about-facts__num,
.nv-shuffle__stat { font-family: "Marcellus", serif; }

/* ---- eyebrows: the single wave from the book, then the label ---- */
.about-overline::before,
.contact-eyebrow::before,
.page-curtain span[class*="tracking-[0.2em]"][class*="uppercase"]::before {
    content: "";
    display: inline-block;
    width: 2.1rem;
    height: 0.45rem;
    margin-right: 0.8rem;
    vertical-align: 0.1em;
    background: currentColor;
    -webkit-mask: var(--nv-wave-mask) center / contain no-repeat;
            mask: var(--nv-wave-mask) center / contain no-repeat;
    flex: 0 0 auto;
}
.about-overline::before { margin-right: 0; }
#contact .contact-eyebrow { display: flex; align-items: center; color: var(--nv-blue); letter-spacing: 0.26em; }
#contact .contact-eyebrow::before { margin-right: 0.8rem; }
.page-curtain span[class*="tracking-[0.2em]"][class*="uppercase"] { color: var(--nv-blue); letter-spacing: 0.26em; font-size: 0.72rem; }
#amenities span[class*="tracking-[0.2em]"][class*="uppercase"] { color: var(--nv-water); }

/* ---- calm surfaces: white first, the book's aqua as the quiet second ground ---- */
.bg-brand-greyLight { background-color: #f3f8fa; }

/* ---- footer: wordmark in white with the water wave ---- */
#footer.footer-v2 .footer-mark-band { padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
#footer.footer-v2 .footer-mark-band .footer-logo.footer-wordmark-svg {
    width: min(100%, 78rem);
    height: auto;
    aspect-ratio: 3.9488 / 1;
    margin-inline: auto;
    overflow: visible;
}
#footer .footer-wordmark-svg .nv-t { fill: #fff; }
#footer .footer-wordmark-svg .nv-w { fill: var(--nv-water); }
#footer .footer-brand__eyebrow { color: var(--nv-sky); }

/* ---- motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
    .nv-water__band, .nv-water__layer { animation: none; }
    #hero.hero-js .nv-hero-line { opacity: 1; transform: none; transition: none; }
}

/* ---- phones & tablets: the full footer, in the normal page flow ----
   The desktop footer is a sticky "curtain reveal". On a phone the footer is
   taller than the screen, so the sticky version kept its top half (links,
   brand line, enquiry) hidden under the page. Below 1024px (and on short
   landscape screens) it is a plain section: everything shows, nothing is cut,
   and nothing waits for an entrance animation. */
@media (max-width: 1023px), (max-height: 599px) {
    #footer,
    #footer.footer-v2 { position: relative; bottom: auto; z-index: 1; }
    #footer .footer-nav-item,
    #footer .footer-article,
    #footer .footer-logo,
    #footer .footer-totop,
    #footer .footer-disclaimer,
    #footer #footer-copyright,
    #footer .footer-copyright { opacity: 1 !important; transform: none !important; visibility: visible !important; }
    #footer #footer-hairline { transform: none !important; }
}

/* ---- footer: "A project by" + the Shree Buildcon logo (logo file used as supplied, shown in white) ---- */
#footer .footer-by { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
#footer .footer-by__label { font-family: "Manrope", sans-serif; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--nv-sky); line-height: 1; }
#footer .footer-by__logo { display: inline-block; transition: opacity 0.4s ease; }
#footer .footer-by__logo:hover { opacity: 0.75; }
#footer .footer-by__logo img { display: block; height: clamp(58px, 6vw, 76px); width: auto; filter: brightness(0) invert(1); }
#footer .footer-by--first { margin-top: 0; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* ---- location: the distance under each place reads in white on the navy cards ---- */
#location .nearby-km { color: #fff; font-weight: 600; }
