/* =====================================================================
 * gajee.co — Marketing Subpages CSS (About / Contact / Privacy / Terms)
 *
 * Supplements /marketing/gajee.css with subpage-specific styles.
 * Loaded AFTER gajee.css, so it can override / extend.
 *
 * Brand palette (matches gajee.css):
 *   Green:        #20bf67   (primary)
 *   Green dark:   #15a558
 *   Green light:  #e8f8ee
 *   Ink:          #0f172a
 *   Muted:        #64748b
 *   Line:         #e2e8f0
 *   Bg:           #f8fafc
 * ===================================================================== */

/* ───────────────────────────────────────────────────────────────────
   1. Sub-hero (shared by About / Contact / Privacy / Terms)
   ─────────────────────────────────────────────────────────────────── */

.sub-hero {
    padding: 96px 0 56px;
    background: linear-gradient(180deg, #f5fbf7 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border, #e2e8f0);
    text-align: center;
}
.sub-hero .container {
    max-width: 880px;
}

.sub-hero .breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin-bottom: 18px;
}
.sub-hero .breadcrumb a {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    transition: color 0.15s;
}
.sub-hero .breadcrumb a:hover { color: #20bf67; }
.sub-hero .breadcrumb .sep { opacity: 0.4; }

.sub-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #e8f8ee;
    color: #15a558;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
    margin: 0 auto 24px;
}
.sub-hero .eyebrow .dot {
    width: 6px; height: 6px;
    background: #20bf67;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(32, 191, 103, 0.18);
}

.sub-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #0f172a;
    margin: 0 auto 22px;
    max-width: 820px;
}
.sub-hero h1 .accent {
    color: #20bf67;
    position: relative;
    display: inline-block;
    /* subtle underline accent to mirror the design */
    background-image: linear-gradient(transparent 78%, rgba(32, 191, 103, 0.28) 78%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 0 2px;
}

.sub-hero .lead {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.6;
    color: var(--text-secondary, #475569);
    max-width: 640px;
    margin: 0 auto;
}

/* Effective / Last updated meta row inside the hero — under a thin rule.
   Used by privacy.php and terms.php; other subpages just omit it. */
.sub-hero-meta {
    max-width: 640px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border, #e2e8f0);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px 28px;
    font-size: 14px;
    color: var(--text-muted, #64748b);
}
.sub-hero-meta .item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.sub-hero-meta .item b {
    color: #0f172a;
    font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────────
   2. About page
   ─────────────────────────────────────────────────────────────────── */

.about-stats {
    padding: 64px 0;
    background: #ffffff;
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.about-stat {
    padding: 28px 24px;
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    transition: border-color 0.15s, transform 0.15s;
}
.about-stat:hover {
    border-color: #20bf67;
    transform: translateY(-2px);
}
.about-stat.green {
    background: #e8f8ee;
    border-color: #c2eed3;
}
.about-stat .v {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1;
}
.about-stat.green .v { color: #15a558; }
.about-stat .l {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
}

/* Values grid */
.about-values {
    padding: 80px 0;
    background: #f8fafc;
}
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.about-value {
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.about-value:hover {
    border-color: #20bf67;
    box-shadow: 0 4px 12px rgba(32, 191, 103, 0.08);
}
.about-value .ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.about-value.green .ico {
    background: #e8f8ee;
    color: #15a558;
}
.about-value h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    margin: 0 0 8px;
}
.about-value p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
    margin: 0;
}

/* Story / team blocks */
.about-story {
    padding: 80px 0;
    background: #ffffff;
}
.about-story .container { max-width: 760px; }
.about-story h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 24px;
}
.about-story p {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--text-secondary, #475569);
    margin: 0 0 18px;
}
.about-story p b {
    color: #0f172a;
    font-weight: 600;
}

.about-team {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
}
.about-team .container { max-width: 720px; }
.about-team h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 16px;
}
.about-team .desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-secondary, #475569);
    margin: 0 auto 32px;
    max-width: 580px;
}
.about-team-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: #20bf67;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.about-team-cta:hover {
    background: #15a558;
    transform: translateY(-1px);
}

.about-cta-final {
    padding: 80px 0;
    background: #e8f8ee;
    text-align: center;
}
.about-cta-final h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 12px;
}
.about-cta-final p {
    font-size: 16px;
    color: var(--text-secondary, #475569);
    margin: 0 0 28px;
}

/* ───────────────────────────────────────────────────────────────────
   3. Contact page
   ─────────────────────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
@media (max-width: 840px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    padding: 36px 32px;
}
.contact-form-card h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 0 0 6px;
}
.contact-form-card .form-intro {
    font-size: 14.5px;
    color: var(--text-muted, #64748b);
    margin: 0 0 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.field label .opt {
    font-weight: 400;
    color: var(--text-muted, #64748b);
    margin-left: 4px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14.5px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #20bf67;
    box-shadow: 0 0 0 3px rgba(32, 191, 103, 0.15);
}
.field.error input,
.field.error select,
.field.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.field .err {
    color: #dc2626;
    font-size: 12.5px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.field .hint {
    color: var(--text-muted, #64748b);
    font-size: 12px;
    margin-top: 5px;
}

.field-prefix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field-prefix:focus-within {
    border-color: #20bf67;
    box-shadow: 0 0 0 3px rgba(32, 191, 103, 0.15);
}
.field-prefix .pfx {
    padding: 10px 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 14.5px;
    font-family: 'JetBrains Mono', monospace;
    border-right: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
}
.field-prefix input {
    border: none;
    border-radius: 0;
    flex: 1;
}
.field-prefix input:focus {
    box-shadow: none;
}

.form-submit-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.form-submit-row .privacy-note {
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    flex: 1;
    min-width: 220px;
}
.form-submit-row .privacy-note a {
    color: #20bf67;
    text-decoration: none;
}
.form-submit-row .privacy-note a:hover { text-decoration: underline; }

.form-success {
    text-align: center;
    padding: 24px 0;
}
.form-success .ico {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #e8f8ee;
    color: #15a558;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.form-success h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}
.form-success p {
    font-size: 15px;
    color: var(--text-secondary, #475569);
    margin: 0 auto 24px;
    max-width: 420px;
    line-height: 1.65;
}

/* Contact sidebar / info cards */
.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.contact-info-card:hover {
    border-color: #20bf67;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 191, 103, 0.08);
}
.contact-info-card.green {
    background: #f5fbf7;
    border-color: #c2eed3;
}
.contact-info-card .ico {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #e8f8ee;
    color: #15a558;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}
.contact-info-card p {
    font-size: 13.5px;
    color: var(--text-muted, #64748b);
    margin: 0 0 8px;
    line-height: 1.5;
}
.contact-info-card .val {
    font-size: 14px;
    font-weight: 600;
    color: #20bf67;
}

.office-card {
    padding: 22px 20px;
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
}
.office-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}
.office-card .addr,
.office-card .hours {
    font-size: 13.5px;
    color: var(--text-secondary, #475569);
    line-height: 1.65;
}
.office-card .hours {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border, #e2e8f0);
}
.office-card b { color: #0f172a; }

/* Honeypot — visually invisible to humans, present in the DOM for bots. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Top-level success / rate-limit / turnstile alerts */
.contact-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.contact-alert.success {
    background: #e8f8ee;
    border: 1px solid #c2eed3;
    color: #15a558;
}
.contact-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* ───────────────────────────────────────────────────────────────────
   4. Legal pages (Privacy / Terms)
   ─────────────────────────────────────────────────────────────────── */

.legal-layout {
    padding: 48px 0 96px;
    background: #ffffff;
}
.legal-layout .container {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
@media (max-width: 880px) {
    .legal-layout .container { grid-template-columns: 1fr; }
    .legal-toc { display: none; }
}

.legal-toc {
    position: sticky;
    top: 100px;
    padding: 20px 0;
    font-size: 13.5px;
}
.legal-toc h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #64748b);
    margin: 0 0 12px;
}
.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.legal-toc a {
    display: block;
    padding: 6px 12px;
    color: var(--text-secondary, #475569);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    line-height: 1.35;
}
.legal-toc a:hover {
    background: #f1f5f9;
    color: #20bf67;
}
.legal-toc a.is-active {
    color: #15a558;
    background: #e8f8ee;
    border-left-color: #20bf67;
    font-weight: 600;
}

.legal-body {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text-secondary, #475569);
}
.legal-body h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 40px 0 16px;
    padding-top: 16px;
    scroll-margin-top: 90px;  /* offset so anchor-jumped headings clear sticky header */
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; }
.legal-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 10px;
}
.legal-body p { margin: 0 0 16px; }
.legal-body ul, .legal-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}
.legal-body li {
    margin-bottom: 8px;
}
.legal-body b, .legal-body strong { color: #0f172a; font-weight: 600; }
.legal-body a { color: #20bf67; text-decoration: underline; }
.legal-body a:hover { color: #15a558; }
.legal-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-effective {
    padding: 16px 18px;
    background: #f8fafc;
    border-left: 3px solid #20bf67;
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary, #475569);
}
.legal-effective b { color: #0f172a; }

.legal-callout {
    background: #e8f8ee;
    border: 1px solid #c2eed3;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
}
.legal-callout p { margin: 0; color: #15a558; }
.legal-callout p b { color: #0f4d2c; }

/* TODO marker for placeholders that need user attention */
.legal-todo {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Bottom CTA shared by all subpages */
.subpage-cta {
    padding: 64px 0;
    background: #f8fafc;
    text-align: center;
    border-top: 1px solid var(--border, #e2e8f0);
}
.subpage-cta h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 0 0 12px;
}
.subpage-cta p {
    font-size: 15px;
    color: var(--text-secondary, #475569);
    margin: 0 0 24px;
}
