/* ============================================================
   UNNATI OPERATIONS WORKFLOW — Stylesheet
   ============================================================ */

/* ----- VARIABLES ----- */
:root {
    --navy: #0B1F0E;
    --navy-light: #132B17;
    --blue: #2D7A3A;
    --blue-light: #43A854;
    --teal: #1B8A5A;
    --gold: #C69214;
    --white: #FFFFFF;
    --off-white: #FAFBFA;
    --gray-50: #F8FAF8;
    --gray-100: #E8EDE9;
    --gray-200: #D1D9D3;
    --gray-400: #8A9B8E;
    --gray-600: #4A5D4E;
    --gray-800: #1F2D22;
    --gray-900: #0F1A12;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --section-pad: 100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(11, 31, 14, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-light) !important;
    letter-spacing: 0.3px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, #0D2610 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(45, 122, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 122, 58, 0.15);
    border: 1px solid rgba(45, 122, 58, 0.3);
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-family: var(--font-serif);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* Pipeline strip */
.hero-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pipe-step {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.pipe-icon {
    font-size: 16px;
}

.pipe-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: var(--section-pad) 0;
}

.section-light {
    background: var(--white);
}

.section-dark {
    background: var(--gray-50);
}

.section-navy {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.section-navy .section-label {
    color: var(--blue-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.section-navy .section-title {
    color: var(--white);
}

.section-desc {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--gray-600);
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* ============================================================
   WORKFLOW TIMELINE
   ============================================================ */
.workflow-timeline {
    position: relative;
}

.wf-phase {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    margin-bottom: 0;
}

.wf-phase:last-child .wf-phase-line {
    display: none;
}

/* Phase marker (left column) */
.wf-phase-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wf-phase-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(45, 122, 58, 0.3);
}

.wf-phase-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--blue), var(--gray-200));
    margin: 8px 0;
    min-height: 24px;
}

/* Phase card */
.wf-phase-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.4s var(--ease);
}

.wf-phase-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--blue);
}

.wf-phase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.wf-emoji {
    font-size: 32px;
}

.wf-phase-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.wf-duration {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
}

/* Steps row */
.wf-steps {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.wf-step {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 16px;
}

.wf-step-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(45, 122, 58, 0.1), rgba(27, 138, 90, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 14px;
    flex-shrink: 0;
}

.wf-step strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    display: block;
    margin-bottom: 4px;
}

.wf-step p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.wf-step-arrow {
    display: flex;
    align-items: center;
    color: var(--gray-200);
    font-size: 14px;
    padding-top: 24px;
    flex-shrink: 0;
}

.wf-milestone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    background: rgba(27, 138, 90, 0.06);
    border: 1px solid rgba(27, 138, 90, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ============================================================
   PAYMENT FLOW
   ============================================================ */
.payment-flow {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 20px 0;
}

.pf-block {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    min-width: 130px;
    flex-shrink: 0;
}

.pf-highlight {
    background: rgba(45, 122, 58, 0.15);
    border-color: rgba(45, 122, 58, 0.3);
}

.pf-gold {
    background: rgba(198, 146, 20, 0.15);
    border-color: rgba(198, 146, 20, 0.3);
}

.pf-icon {
    font-size: 24px;
    color: var(--blue-light);
    margin-bottom: 10px;
}

.pf-gold .pf-icon {
    color: var(--gold);
}

.pf-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.pf-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.pf-connector {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 4px;
    flex-shrink: 0;
    position: relative;
}

.pf-connector-line {
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.pf-connector span,
.pf-connector i {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-light);
    white-space: nowrap;
}

/* ============================================================
   CHECKLIST ACCORDION
   ============================================================ */
.checklist-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cl-phase {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.cl-phase:hover {
    border-color: var(--blue);
}

.cl-phase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.cl-phase-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cl-phase-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.cl-phase-emoji {
    font-size: 22px;
}

.cl-phase-header h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
}

.cl-phase-timing {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

.cl-chevron {
    font-size: 14px;
    color: var(--gray-400);
    transition: transform 0.3s var(--ease);
}

.cl-phase.open .cl-chevron {
    transform: rotate(180deg);
    color: var(--blue);
}

.cl-phase-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
    padding: 0 24px;
}

.cl-phase.open .cl-phase-body {
    max-height: 2000px;
    padding: 0 24px 24px;
}

.cl-group {
    margin-bottom: 20px;
}

.cl-group h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-group h5 i {
    font-size: 13px;
    opacity: 0.7;
}

.cl-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-50);
    transition: background 0.2s;
}

.cl-item:hover {
    background: var(--gray-50);
    margin: 0 -8px;
    padding: 8px 8px;
    border-radius: 6px;
}

.cl-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--blue);
    flex-shrink: 0;
    cursor: pointer;
}

.cl-item span {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    transition: all 0.3s;
}

.cl-item input:checked + span {
    text-decoration: line-through;
    color: var(--gray-400);
}

/* Owner badges */
.cl-owner {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cl-owner i {
    font-size: 9px;
}

.owner-unnati {
    background: rgba(45, 122, 58, 0.08);
    color: var(--blue);
    border: 1px solid rgba(45, 122, 58, 0.15);
}

.owner-fpo {
    background: rgba(27, 138, 90, 0.08);
    color: var(--teal);
    border: 1px solid rgba(27, 138, 90, 0.15);
}

.owner-buyer {
    background: rgba(198, 146, 20, 0.08);
    color: var(--gold);
    border: 1px solid rgba(198, 146, 20, 0.15);
}

.cl-milestone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    background: rgba(27, 138, 90, 0.06);
    border: 1px solid rgba(27, 138, 90, 0.15);
    padding: 10px 16px;
    border-radius: 20px;
    margin-top: 8px;
}

/* ============================================================
   RISK CARDS
   ============================================================ */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.risk-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.4s var(--ease);
}

.risk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.risk-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(45, 122, 58, 0.1), rgba(27, 138, 90, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 18px;
    margin-bottom: 16px;
}

.risk-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.risk-card ul {
    list-style: none;
}

.risk-card li {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-50);
    position: relative;
    padding-left: 16px;
}

.risk-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 12px;
}

/* ============================================================
   METRICS
   ============================================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.metric-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 24px;
}

.metric-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-group-header i {
    font-size: 20px;
    color: var(--blue-light);
}

.metric-group-header h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--white);
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.metric-target {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}

/* ============================================================
   ESCALATION TABLE
   ============================================================ */
.esc-table {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 48px;
}

.esc-header {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    background: var(--navy);
}

.esc-header .esc-col {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 20px;
}

.esc-row {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.esc-row:last-child {
    border-bottom: none;
}

.esc-row:hover {
    background: var(--gray-50);
}

.esc-col {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
}

.esc-issue {
    font-weight: 600;
    color: var(--gray-900);
    gap: 8px;
}

.esc-issue i {
    color: var(--gold);
    font-size: 14px;
}

.esc-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.esc-badge.l1 {
    background: rgba(45, 122, 58, 0.08);
    color: var(--blue);
}

.esc-badge.l2 {
    background: rgba(198, 146, 20, 0.1);
    color: var(--gold);
}

.esc-badge.l3 {
    background: rgba(220, 38, 38, 0.06);
    color: #DC2626;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.footer p {
    font-size: 13px;
    color: var(--gray-400);
}

.footer a {
    color: var(--blue-light);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root { --section-pad: 80px; }
    .section-title { font-size: 36px; }
    .hero-title { font-size: 48px; }
    .wf-steps { flex-direction: column; }
    .wf-step-arrow { padding-top: 0; transform: rotate(90deg); }
    .risk-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: 1fr; }
    .payment-flow { flex-wrap: wrap; justify-content: center; gap: 8px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 16px 24px; gap: 16px; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .hero-title { font-size: 36px; }
    .hero-pipeline { gap: 4px; }
    .pipe-step { padding: 6px 10px; font-size: 11px; }
    .pipe-arrow { display: none; }
    .section-title { font-size: 30px; }
    .wf-phase { grid-template-columns: 40px 1fr; gap: 16px; }
    .wf-phase-num { width: 40px; height: 40px; font-size: 16px; }
    .wf-phase-card { padding: 24px 20px; }
    .wf-phase-header h3 { font-size: 20px; }
    .risk-grid { grid-template-columns: 1fr; }
    .esc-header, .esc-row { grid-template-columns: 140px repeat(3, 1fr); }
    .esc-col { padding: 12px; font-size: 12px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .section-title { font-size: 26px; }
    .esc-header, .esc-row { grid-template-columns: 1fr; }
    .esc-issue { border-bottom: 2px solid var(--gray-100); }
}
