/* ============================================
   NILESH NARAYAN RANE — OFFICIAL WEBSITE
   Premium Statesman Branding · Design System
   ============================================ */

:root {
    --saffron: #e86a1b;
    --saffron-deep: #c9530e;
    --saffron-soft: #fdf1e4;
    --saffron-glow: rgba(232, 106, 27, 0.18);
    --gold: #c7a35a;
    --gold-deep: #9a7a35;
    --gold-light: #e7d6a6;
    --charcoal: #141414;
    --charcoal-soft: #1f1f22;
    --charcoal-mid: #2a2a2e;
    --ink: #0a0a0b;
    --ivory: #fbf9f4;
    --paper: #f5f2eb;
    --grey: #6b6b72;
    --grey-soft: #bfbdb6;
    --grey-line: #e7e3d9;
    --white: #ffffff;

    --ff-display: 'Cormorant Garamond', 'Playfair Display', serif;
    --ff-sans: 'Inter', 'Helvetica Neue', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --container: 1440px;
    --gutter: clamp(20px, 4vw, 72px);
    --radius: 2px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--ff-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--ivory);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.01em;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
}

::selection {
    background: var(--saffron);
    color: var(--white);
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--ff-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--saffron);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--saffron);
}

.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.on-dark::before { background: var(--gold); }

.display {
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: clamp(46px, 7.2vw, 120px);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.display i, .display em {
    font-style: italic;
    color: var(--saffron);
    font-weight: 400;
}

.h-xl { font-size: clamp(38px, 5vw, 78px); line-height: 1.02; }
.h-lg { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.08; }
.h-md { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.15; }
.h-sm { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; }

.lead {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.7;
    color: var(--charcoal);
    max-width: 62ch;
}

.muted { color: var(--grey); }

/* ============================================
   LAYOUT PRIMITIVES
   ============================================ */

.wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(80px, 10vw, 160px) 0;
    position: relative;
}

.section.tight { padding: clamp(60px, 7vw, 110px) 0; }

.divider {
    height: 1px;
    background: var(--grey-line);
    width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s var(--ease);
    background: rgba(251, 249, 244, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding: 14px var(--gutter);
    background: rgba(251, 249, 244, 0.94);
    border-bottom-color: var(--grey-line);
}

.nav.on-dark {
    background: rgba(10, 10, 11, 0.4);
}

.nav.on-dark.scrolled {
    background: rgba(10, 10, 11, 0.92);
    border-bottom-color: rgba(199, 163, 90, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 110;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border: 1px solid var(--charcoal);
    display: grid;
    place-items: center;
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--charcoal);
    position: relative;
    transition: all 0.4s var(--ease);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid var(--saffron);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.brand:hover .brand-mark::after { opacity: 1; }

.nav.on-dark .brand-mark {
    border-color: var(--gold);
    color: var(--ivory);
}

.brand-name {
    font-family: var(--ff-display);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--charcoal);
}

.brand-sub {
    font-family: var(--ff-sans);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-top: 4px;
}

.nav.on-dark .brand-name { color: var(--ivory); }
.nav.on-dark .brand-sub { color: var(--gold-light); }

.menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu a {
    position: relative;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    transition: color 0.3s var(--ease);
}

.nav.on-dark .menu a { color: var(--ivory); }

.menu a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 6px;
    height: 1px;
    background: var(--saffron);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.menu a:hover::after,
.menu a.active::after { transform: scaleX(1); }

.menu a.active { color: var(--saffron); }

.nav-cta {
    margin-left: 18px;
    padding: 13px 24px;
    background: var(--charcoal);
    color: var(--ivory) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--charcoal);
    transition: all 0.4s var(--ease);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--saffron);
    border-color: var(--saffron);
}

.nav.on-dark .nav-cta {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--white) !important;
}

.nav.on-dark .nav-cta:hover {
    background: transparent;
    color: var(--ivory) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    position: relative;
    z-index: 110;
}

.hamburger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1px;
    background: var(--charcoal);
    transition: all 0.4s var(--ease);
}

.nav.on-dark .hamburger span { background: var(--ivory); }

.hamburger span:nth-child(1) { top: 18px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 28px; width: 14px; left: auto; right: 12px; }

.hamburger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: auto; left: 12px; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s var(--ease);
    display: flex;
    flex-direction: column;
    padding: 110px var(--gutter) 50px;
    overflow-y: auto;
}

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

.mobile-menu a {
    display: block;
    padding: 18px 0;
    font-family: var(--ff-display);
    font-size: clamp(32px, 6vw, 52px);
    color: var(--ivory);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}

.mobile-menu a:hover {
    color: var(--saffron);
    padding-left: 16px;
}

.mobile-menu .mobile-foot {
    margin-top: auto;
    padding-top: 30px;
    color: var(--grey-soft);
    font-size: 13px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid var(--charcoal);
    background: var(--charcoal);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--saffron);
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease);
    z-index: 0;
}

.btn > * { position: relative; z-index: 1; }

.btn:hover::before { transform: translateX(0); }
.btn:hover { border-color: var(--saffron); }

.btn.outline {
    background: transparent;
    color: var(--charcoal);
}

.btn.outline.light {
    color: var(--ivory);
    border-color: var(--ivory);
}

.btn.saffron {
    background: var(--saffron);
    border-color: var(--saffron);
}

.btn.saffron::before { background: var(--charcoal); }

.btn .arrow {
    width: 14px;
    height: 9px;
    position: relative;
}

.btn .arrow::after {
    content: "→";
    position: absolute;
    inset: 0;
    font-size: 14px;
    line-height: 1;
    display: grid;
    place-items: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--ink);
    color: var(--ivory);
    padding: 100px 0 40px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 70px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-title {
    font-family: var(--ff-display);
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--ivory);
}

.footer-title em { color: var(--saffron); font-style: italic; }

.footer-desc {
    color: var(--grey-soft);
    font-size: 14px;
    line-height: 1.8;
    max-width: 340px;
}

.footer-heading {
    font-family: var(--ff-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 26px;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    font-size: 14px;
    color: var(--grey-soft);
    transition: color 0.3s var(--ease);
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--ivory);
    padding-left: 10px;
}

.footer-links a::before {
    content: "→";
    position: absolute;
    left: -14px;
    opacity: 0;
    transition: all 0.3s var(--ease);
    color: var(--saffron);
}

.footer-links a:hover::before { opacity: 1; }

.footer-contact {
    font-size: 14px;
    line-height: 1.9;
    color: var(--grey-soft);
}

.footer-contact a {
    display: block;
    color: var(--grey-soft);
    transition: color 0.3s var(--ease);
}

.footer-contact a:hover { color: var(--saffron); }

.socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: var(--grey-soft);
    transition: all 0.4s var(--ease);
}

.socials a:hover {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--white);
    transform: translateY(-3px);
}

.socials svg { width: 16px; height: 16px; }

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 35px;
    font-size: 12px;
    color: var(--grey);
    flex-wrap: wrap;
    gap: 18px;
    letter-spacing: 0.04em;
}

.footer-bar a { color: var(--gold); transition: color 0.3s var(--ease); }
.footer-bar a:hover { color: var(--saffron); }

.credit-line {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.credit-line span { color: var(--grey); }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 640ms; }

/* ============================================
   PAGE INTRO TRANSITION
   ============================================ */

.page-intro {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 200;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: transform 1.1s var(--ease);
}

.page-intro.done { transform: translateY(-101%); }

.page-intro .mark {
    font-family: var(--ff-display);
    font-size: clamp(48px, 10vw, 120px);
    color: var(--ivory);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: introMark 1.8s var(--ease) forwards;
}

.page-intro .mark em { color: var(--saffron); font-style: italic; }

@keyframes introMark {
    0% { opacity: 0; transform: translateY(30px); }
    30% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* ============================================
   SHARED: HERO BANNER (INNER PAGES)
   ============================================ */

.page-hero {
    position: relative;
    padding: 190px var(--gutter) 120px;
    background: linear-gradient(160deg, var(--ink) 0%, var(--charcoal-soft) 100%);
    color: var(--ivory);
    overflow: hidden;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0; right: -5%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--saffron-glow), transparent 60%);
    z-index: -1;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: end;
    max-width: var(--container);
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(48px, 7vw, 108px);
    line-height: 0.98;
    color: var(--ivory);
    letter-spacing: -0.025em;
    margin-top: 18px;
}

.page-hero h1 em { color: var(--saffron); font-style: italic; font-weight: 400; }

.page-hero .lead {
    color: var(--grey-soft);
    font-size: 17px;
    line-height: 1.8;
    margin-top: 26px;
    max-width: 50ch;
}

.page-hero .crumbs {
    display: flex;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.page-hero .crumbs a { color: var(--gold-light); }
.page-hero .crumbs a:hover { color: var(--saffron); }

/* ============================================
   SHARED CARDS & COMPONENTS
   ============================================ */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--grey-line);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 100px;
    color: var(--charcoal);
    background: var(--white);
}

.pill.dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--ivory); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .menu { display: none; }
    .hamburger { display: block; }
    .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px 40px; }
}

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
    .footer-bar { flex-direction: column; align-items: flex-start; }
    .page-hero { padding: 140px var(--gutter) 80px; }
}
