/* ============================================================
   ABHIRAJ INFRA REALTY — DESIGN SYSTEM
   Aesthetic: Refined Industrial
   Skills applied: frontend-design, web-design-guidelines
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Colour Tokens ────────────────────────────────────────── */
:root {
    /* Primary palette */
    --ink: #1c1b1a;
    /* near-black base text / backgrounds */
    --ink-80: rgba(28, 27, 26, 0.80);
    --ink-50: rgba(28, 27, 26, 0.50);
    --parchment: #f5f2ec;
    /* warm off-white surface */
    --parchment-d: #ede9e1;
    /* slightly deeper surface */
    --gold: #c89b5f;
    /* refined amber accent */
    --gold-light: #d8b47e;
    --steel: #28272b;
    /* dark section background */
    --steel-mid: #3a383e;
    --mist: #e8e3da;
    /* light divider / chip */
    --white: #ffffff;

    /* Semantic */
    --bg-page: var(--parchment);
    --bg-dark: var(--steel);
    --text-primary: var(--ink);
    --text-inverse: var(--parchment);
    --accent: var(--gold);

    /* ── Typography ─────────────────────────────────────────── */
    --font-display: 'DM Serif Display', 'QuicheSans', serif;
    --font-body: 'DM Sans', 'Mont', sans-serif;

    /* Scale */
    --text-xs: 1.2rem;
    --text-sm: 1.4rem;
    --text-base: 1.6rem;
    --text-lg: 2.0rem;
    --text-xl: 2.4rem;
    --text-2xl: 3.0rem;
    --text-3xl: 4.0rem;
    --text-4xl: 5.2rem;
    --text-5xl: 6.8rem;

    /* ── Spacing Scale ──────────────────────────────────────── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* ── Motion ─────────────────────────────────────────────── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 180ms;
    --dur-base: 320ms;
    --dur-slow: 560ms;
    --dur-enter: 800ms;

    /* ── Borders / Radius ───────────────────────────────────── */
    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 8px;

    /* ── Gold rule line ─────────────────────────────────────── */
    --rule: 1px solid var(--gold);
}

/* ── Base Resets & Body ───────────────────────────────────── */
html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ─────────────────────────────────────────────── */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    /* DM Serif Display has its own weight */
    line-height: 1.1;
    margin: 0;
    padding: 0;
    color: var(--ink);
}

h4,
h5,
h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    color: var(--ink);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
    letter-spacing: 0.04em;
}

h6 {
    font-size: var(--text-base);
}

p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--ink);
    margin: 0;
    padding: 0 0 12px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

/* ── Reveal animation (replaces WOW.js for new elements) ─── */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur-enter) var(--ease-out),
        transform var(--dur-enter) var(--ease-out);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].visible {
    opacity: 1;
    transform: translate(0, 0);
}

[data-reveal].delay-1 {
    transition-delay: 100ms;
}

[data-reveal].delay-2 {
    transition-delay: 200ms;
}

[data-reveal].delay-3 {
    transition-delay: 320ms;
}

[data-reveal].delay-4 {
    transition-delay: 440ms;
}

/* ── Gold accent rule helper ──────────────────────────────── */
.rule-gold {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: var(--space-4) 0;
}

.rule-gold--center {
    margin-left: auto;
    margin-right: auto;
}

/* ── Section label (small eyebrow text) ──────────────────── */
.label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

/* ── Mobile base ──────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --text-xs: 1.4rem;
    }

    html {
        font-size: 9px;
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}