/* ============================================================
   JavaGantt Demo — style.css
   Warm palette derived from hero image (wireframe planning
   cards on a wooden table). All Gantt component styling
   comes from gantt-core via gantt-spring — do NOT override
   .gc-* classes here.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── Design tokens ───────────────────────────────────────── */
:root {
    /* Warm espresso palette — derived from hero image */
    --c-dark:        #3d2b1f;   /* deep espresso — nav, headers        */
    --c-mid:         #6b4c35;   /* warm mahogany — hover, accents      */
    --c-light-brown: #a07850;   /* warm tan — decorative accents       */
    --c-teal:        #4a9b8e;   /* muted teal — primary CTA, links     */
    --c-teal-dark:   #357a6e;   /* darker teal — hover on CTA          */
    --c-terra:       #c4614a;   /* terracotta — featured pricing       */
    --c-terra-dark:  #a34d39;   /* darker terracotta — hover           */
    --c-parchment:   #f7f3ee;   /* warm parchment — page background    */
    --c-cream:       #faf7f3;   /* lighter cream — section alternating */
    --c-white:       #ffffff;   /* card backgrounds                    */
    --c-text:        #2d1f14;   /* very dark warm brown — body text    */
    --c-muted:       #7a6355;   /* muted warm brown — secondary text   */
    --c-border:      #e0d5c8;   /* warm light border                   */
    --c-error:       #c4614a;   /* terracotta doubles as error         */
    --c-success:     #4a9b8e;   /* teal doubles as success             */

    /* Spacing & shape */
    --radius:     6px;
    --radius-lg:  12px;
    --shadow-sm:  0 1px 4px rgba(61,43,31,0.08);
    --shadow-md:  0 4px 16px rgba(61,43,31,0.12);
    --shadow-lg:  0 8px 32px rgba(61,43,31,0.16);
    --transition: 0.2s ease;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--c-text);
    background: var(--c-parchment);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--c-teal);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--c-teal-dark); text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

section { padding: 72px 0; }
section:nth-child(even) { background: var(--c-cream); }

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
    background: var(--c-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(61,43,31,0.3);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-white);
    letter-spacing: -0.5px;
}

.nav-brand span { color: var(--c-teal); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--c-white);
    text-decoration: none;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--c-teal);
    color: var(--c-white);
}
.btn-primary:hover {
    background: var(--c-teal-dark);
    color: var(--c-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(74,155,142,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--c-white);
    border: 2px solid rgba(255,255,255,0.45);
}
.btn-secondary:hover {
    border-color: var(--c-white);
    color: var(--c-white);
    text-decoration: none;
}

.btn-terra {
    background: var(--c-terra);
    color: var(--c-white);
}
.btn-terra:hover {
    background: var(--c-terra-dark);
    color: var(--c-white);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--c-dark);
    border: 2px solid var(--c-dark);
}
.btn-outline:hover {
    background: var(--c-dark);
    color: var(--c-white);
    text-decoration: none;
}

.btn-sm { padding: 8px 20px; font-size: 0.825rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Dark espresso base ensures white text is always readable
       even without any image overlay — the image is decorative */
    background: var(--c-dark);
}

/* Hero image at 0.75 opacity. A dark espresso gradient fades from
   left (behind the text) to transparent on the right, ensuring white
   text is always legible without text-shadow. */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            to right,
            rgba(61,43,31,0.70) 0%,
            rgba(61,43,31,0.38) 45%,
            rgba(61,43,31,0.02) 100%
        ),
        url('/images/hero.jpg');
    background-size: cover;
    background-position: center 40%;
    opacity: 0.75;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.hero-inner {
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--c-teal);
    color: var(--c-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--c-white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 em {
    font-style: normal;
    color: var(--c-teal);
}

.hero-lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 580px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Section headings ────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--c-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: var(--c-teal);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ── About / Introduction ────────────────────────────────── */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.intro-text h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 16px;
}

.intro-text p {
    color: var(--c-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.intro-pull {
    border-left: 4px solid var(--c-teal);
    background: var(--c-white);
    padding: 22px 26px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.intro-pull p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--c-mid);
    margin: 0;
    line-height: 1.65;
}

/* ── Feature cards ───────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--c-muted);
    line-height: 1.65;
}

/* ── Framework matrix ────────────────────────────────────── */
.matrix-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--c-white);
}

.matrix-table thead tr {
    background: var(--c-dark);
}

.matrix-table th {
    padding: 20px 12px;
    color: var(--c-white);
    font-weight: 600;
    text-align: center;
}

.matrix-table th:first-child {
    text-align: left;
    padding-left: 20px;
    font-size: 1.1rem;
    font-family: var(--font-display);
}

/* Logo pill — fixed dimensions ensure all four pills are identical
   oval shapes regardless of each logo's aspect ratio. border-radius: 50%
   on a fixed-size element always produces the same ellipse. */
.logo-pill {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-white);
    border-radius: 50%;
    width: 140px;
    height: 70px;
    box-shadow:
        0 6px 10px 2px rgba(0,0,0,0.60),
        0 -4px 8px 2px rgba(0,0,0,0.35),
        4px 0 8px 1px rgba(0,0,0,0.20),
        -4px 0 8px 1px rgba(0,0,0,0.20),
        inset 0 10px 8px -4px rgba(255,255,255,0.85),
        inset 0 -10px 8px -4px rgba(180,140,90,0.40);
}

/* 3D curved effect — layered box-shadows create highlight at top
   and shadow at bottom, giving the pill a rounded convex appearance */
.logo-pill::before {
    content: none;
}

.logo-pill img {
    position: relative;
    z-index: 1;
    display: block;
    /* Logo fills as much of the fixed pill as possible at natural aspect ratio */
    max-width: 110px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.matrix-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
    text-align: center;
    color: var(--c-muted);
}

.matrix-table td:first-child {
    text-align: left;
    color: var(--c-text);
    font-weight: 500;
}

.matrix-table tr:last-child td { border-bottom: none; }

.matrix-table tr:nth-child(even) td {
    background: var(--c-parchment);
}

.tick  { color: var(--c-teal);  font-size: 1.1rem; font-weight: 700; }
.cross { color: var(--c-terra); font-size: 1.1rem; font-weight: 700; }

/* ── Matrix guide buttons ───────────────────────────────────── */

/* tfoot row — generous top padding creates the healthy gap
   between the matrix body and the guide buttons             */
.matrix-guides-row td {
    padding: 28px 12px 20px;
    text-align: center;
    border-bottom: none;
    background: var(--c-white);
}

.matrix-guides-row td:first-child {
    background: var(--c-white);
}

/* Active guide button — shimmer animation draws the eye
   without being garish. A diagonal highlight sweeps left
   to right on a rich espresso base, evoking a premium feel */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

.btn-guide {
    display: inline-block;
    padding: 10px 15px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    /* Espresso base with animated diagonal shimmer highlight */
    background: linear-gradient(
        105deg,
        var(--c-dark)       0%,
        var(--c-dark)       35%,
        rgba(255,255,255,0.12) 50%,
        var(--c-dark)       65%,
        var(--c-dark)       100%
    );
    background-size: 200% auto;
    animation: shimmer 7s linear infinite;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow:
        0 2px 8px rgba(61,43,31,0.35),
        inset 0 1px 0 rgba(255,255,255,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-guide:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow:
        0 5px 16px rgba(61,43,31,0.45),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Inactive — minimal, clearly secondary */
.btn-guide-soon {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--c-muted);
    background: transparent;
    border: 1px dashed var(--c-border);
    border-radius: var(--radius);
    white-space: nowrap;
    cursor: default;
    letter-spacing: 0.2px;
}

/* ── Demo section ────────────────────────────────────────── */
#demo { background: var(--c-parchment); }

/* Wide layout — chart column takes as much space as possible,
   sidebar is compact. Max-width removed on demo container so
   the chart can breathe on wide screens. */
.demo-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
}

.demo-chart-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: visible;
}

.demo-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
}

.demo-meta h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-dark);
}

.demo-meta .chart-window {
    font-size: 0.8rem;
    color: var(--c-muted);
}

/* GanttFilterPane and GanttChart sit directly in .demo-chart-column
   with no wrapper needed — both components are layout-neutral since
   gantt-core CSS sets width:100% and margin:0 on their root elements. */

/* ── Add bar sidebar ─────────────────────────────────────── */
.sidebar-heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-border);
}

.guard-rails {
    font-size: 0.775rem;
    color: var(--c-muted);
    background: var(--c-cream);
    border: 1px solid var(--c-border);
    padding: 8px 12px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    line-height: 1.5;
}

.bar-count {
    font-size: 0.775rem;
    color: var(--c-muted);
    text-align: right;
    margin-bottom: 14px;
}

.bar-count.at-limit {
    color: var(--c-terra);
    font-weight: 700;
}

/* ── Form fields ─────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    min-height: 2.4em;
    box-sizing: border-box;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--c-text);
    background: var(--c-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--c-teal);
    box-shadow: 0 0 0 3px rgba(74,155,142,0.15);
}

/* iOS Safari inflates datetime-local fields beyond min-height --
   constrain explicitly to match select height on all devices   */
.form-group input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
    height: 2.4em;
    max-height: 2.4em;
    width: 100%;
}

/* ── Colour swatch picker ────────────────────────────────── */
.colour-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.colour-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition);
}

.colour-swatch:hover { transform: scale(1.2); }
.colour-swatch.selected { border-color: var(--c-dark); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-error {
    background: #fdf0ee;
    border: 1px solid #e8b5ad;
    color: var(--c-terra-dark);
}

.alert-success {
    background: #edf7f6;
    border: 1px solid #9ecfc9;
    color: var(--c-teal-dark);
}

/* ── Contract / Build for you band ──────────────────────── */
.contract-band {
    background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-mid) 100%);
    padding: 56px 0;
}

.contract-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.contract-inner h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 10px;
}

.contract-inner p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 620px;
}

.btn-contract {
    background: var(--c-white);
    color: var(--c-dark);
    font-weight: 700;
    white-space: nowrap;
    padding: 14px 32px;
    border-radius: var(--radius);
    transition: all var(--transition);
    display: inline-block;
    font-size: 0.9rem;
}

.btn-contract:hover {
    background: var(--c-parchment);
    color: var(--c-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

.launch-banner {
    background: linear-gradient(135deg, var(--c-mid), var(--c-light-brown));
    color: var(--c-white);
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 44px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-sm);
}

.pricing-card {
    background: var(--c-white);
    border: 2px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--c-teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pricing-card.featured {
    border-color: var(--c-terra);
    box-shadow: var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-terra);
    color: var(--c-white);
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--c-muted);
    margin-bottom: 14px;
}

.pricing-price { margin-bottom: 4px; }

.pricing-price .currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-mid);
    vertical-align: top;
    margin-top: 10px;
    display: inline-block;
}

.pricing-price .amount {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--c-dark);
    line-height: 1;
}

.pricing-price .amount-currency {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--c-muted);
    vertical-align: super;
    margin-left: 3px;
}

.pricing-launch {
    font-size: 0.775rem;
    color: var(--c-muted);
    margin-bottom: 2px;
}

.pricing-original {
    font-size: 0.85rem;
    color: var(--c-muted);
    text-decoration: line-through;
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--c-muted);
    padding: 6px 0 6px 22px;
    position: relative;
    border-bottom: 1px solid var(--c-border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-teal);
    font-weight: 700;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--c-dark);
    color: rgba(255,255,255,0.55);
    padding: 44px 0;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.8;
}

.site-footer strong {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-display);
}

.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--c-white); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero h1 { font-size: 2.4rem; }
    .intro-grid { grid-template-columns: 1fr; gap: 36px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .demo-layout { grid-template-columns: 1fr; }
    .contract-inner { grid-template-columns: 1fr; text-align: center; }
    .contract-inner p { max-width: none; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 1.9rem; }
    section { padding: 48px 0; }
}
