/* ============================================================
   TEDMARK DIGITAL — Theme System v2
   Clean, minimal, mobile-first. Light = green accent.
   Dark = lime accent. Toggle via [data-theme] on <html>.
   ============================================================ */

:root {
    --bg:        #ffffff;
    --bg-soft:   #eef9f1;
    --card:      #ffffff;
    --border:    #eceef1;
    --text:      #0b0f14;
    --text-soft: #5b6470;
    --muted:     #8a919c;
    --accent:    #22c55e;
    --accent-ink:#0b0f14;
    --accent-soft: rgba(34,197,94,0.12);
    --radius:    16px;
    --shadow:    0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
}

html[data-theme="dark"] {
    --bg:        #0a0a0a;
    --bg-soft:   #121212;
    --card:      #141414;
    --border:    #232323;
    --text:      #f5f5f5;
    --text-soft: #a3a3a3;
    --muted:     #6b6b6b;
    --accent:    #4ade80;
    --accent-ink:#0a0a0a;
    --accent-soft: rgba(74,222,128,0.12);
    --shadow:    0 1px 2px rgba(0,0,0,0.3), 0 8px 32px rgba(0,0,0,0.4);
}

/* ── Base ────────────────────────────────────────────── */
body {
    background: var(--bg);
    color: var(--text);
    transition: background-color .25s ease, color .25s ease;
}
.tm-t-soft { color: var(--text-soft) !important; }
.tm-t-muted { color: var(--muted) !important; }

/* ── Pill Navbar ─────────────────────────────────────── */
.tm2-nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 200; display: flex; justify-content: center; padding: 0 16px; }
.tm2-nav {
    width: 100%; max-width: 1100px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 8px 8px 20px;
    gap: 12px;
}
.tm2-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.tm2-logo img { height: 26px; width: auto; display: block; }
.tm2-logo-text { font-family:'Plus Jakarta Sans',sans-serif; font-weight: 800; font-size: 15px; color: var(--text); letter-spacing: -0.2px; }

.tm2-links { display: flex; align-items: center; gap: 4px; }
.tm2-links a {
    font-size: 13.5px; font-weight: 600; color: var(--text-soft); text-decoration: none;
    padding: 8px 14px; border-radius: 999px; transition: all .15s;
}
.tm2-links a:hover, .tm2-links a.active { color: var(--text); background: var(--bg-soft); }

.tm2-nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.tm2-toggle {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg-soft); color: var(--text); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; flex-shrink: 0; transition: all .2s;
}
.tm2-toggle:hover { border-color: var(--accent); }

.tm2-cta {
    background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13.5px;
    padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.tm2-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

.tm2-burger {
    display: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg-soft); color: var(--text); align-items: center; justify-content: center; cursor: pointer;
}

.tm2-mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    margin-top: 8px; padding: 10px; box-shadow: var(--shadow);
}
.tm2-mobile-menu.open { display: flex; }
.tm2-mobile-menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 12px 14px; border-radius: 12px; }
.tm2-mobile-menu a:hover { background: var(--bg-soft); }

/* ── Inner Page Hero (centered, minimal, reused everywhere) ── */
.tm2-page-hero { padding: 140px 16px 56px; text-align: center; background: var(--bg-soft); }
.tm2-page-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.01em;
    color: var(--text); max-width: 680px; margin: 0 auto 16px;
}
.tm2-page-hero p {
    font-size: 0.95rem; color: var(--text-soft); line-height: 1.7;
    max-width: 560px; margin: 0 auto;
}

/* ── Hero (centered, minimal) ───────────────────────── */
.tm2-hero { padding: 150px 16px 60px; text-align: center; background: var(--bg); overflow: hidden; position: relative; }
.tm2-hero-glow {
    position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 300px; max-width: 90vw;
    background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none; filter: blur(20px);
}
.tm2-badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11.5px; font-weight: 700; color: var(--text-soft);
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
    text-transform: uppercase; letter-spacing: .04em;
}
.tm2-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.tm2-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.02em;
    color: var(--text); max-width: 780px; margin: 0 auto 20px; position: relative; z-index: 1;
}
.tm2-hero p {
    font-size: 1rem; color: var(--text-soft); line-height: 1.7;
    max-width: 520px; margin: 0 auto 32px; position: relative; z-index: 1;
}
.tm2-email-form {
    display: flex; gap: 8px; max-width: 420px; margin: 0 auto 40px; position: relative; z-index: 1;
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px;
}
.tm2-email-form input {
    flex: 1; border: none; background: transparent; padding: 10px 14px;
    font-size: 14px; color: var(--text); outline: none; min-width: 0;
}
.tm2-email-form input::placeholder { color: var(--muted); }
.tm2-email-form button {
    background: var(--accent); color: var(--accent-ink); border: none; font-weight: 700; font-size: 13.5px;
    padding: 10px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: all .2s;
}
.tm2-email-form button:hover { filter: brightness(1.08); }

.tm2-logos { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; position: relative; z-index: 1; }
.tm2-logos span { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }

/* ── Sections ────────────────────────────────────────── */
.tm2-section { padding: 72px 16px; }
.tm2-section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.tm2-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.tm2-eyebrow::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.tm2-h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; color: var(--text); letter-spacing: -0.01em; }
.tm2-sub { font-size: 0.95rem; color: var(--text-soft); line-height: 1.7; margin-top: 10px; }

/* ── Grid ────────────────────────────────────────────── */
.tm2-grid { display: grid; gap: 20px; }
.tm2-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tm2-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tm2-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ────────────────────────────────────────────── */
.tm2-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: all .2s ease;
}
.tm2-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tm2-card-icon {
    width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 16px;
}
.tm2-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.tm2-card p { font-size: 0.875rem; color: var(--text-soft); line-height: 1.6; }

/* ── Stats row ───────────────────────────────────────── */
.tm2-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; text-align: center; }
.tm2-stats .num { font-family:'Plus Jakarta Sans',sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1; }
.tm2-stats .num.accent { color: var(--accent); }
.tm2-stats .lbl { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* ── Buttons ─────────────────────────────────────────── */
.tm2-btn {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
    padding: 12px 24px; border-radius: 999px; text-decoration: none; border: none; cursor: pointer;
    transition: all .2s; font-family: inherit;
}
.tm2-btn-primary { background: var(--accent); color: var(--accent-ink); }
.tm2-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.tm2-btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.tm2-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── CTA band ────────────────────────────────────────── */
.tm2-cta-band {
    background: var(--bg-soft); border-radius: 24px; padding: 56px 24px; text-align: center;
    margin: 0 16px; border: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────── */
.tm2-footer { padding: 48px 16px 24px; border-top: 1px solid var(--border); }
.tm2-footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.tm2-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.tm2-footer-links a { color: var(--text-soft); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tm2-footer-links a:hover { color: var(--accent); }
.tm2-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.tm2-footer-bottom p { font-size: 12.5px; color: var(--muted); }
.tm2-social-row { display: flex; gap: 8px; }
.tm2-social {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text-soft);
    text-decoration: none; font-size: 12px; transition: all .2s;
}
.tm2-social:hover { border-color: var(--accent); color: var(--accent); }

/* ── Portfolio ───────────────────────────────────────── */
.tm2-filter-btn {
    padding: 9px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all 0.2s; border: 1.5px solid var(--border); background: var(--card); color: var(--text-soft);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.tm2-filter-btn.active, .tm2-filter-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.tm2-port-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tm2-port-media { height: 280px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tm2-port-chip {
    position: absolute; top: 12px; left: 12px; font-size: 0.7rem; font-weight: 800;
    padding: 6px 13px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); backdrop-filter: blur(4px);
}
.tm2-port-result {
    position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,0.65); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(4px);
    display: flex; align-items: center; gap: 5px;
}
.tm2-port-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tm2-port-meta { font-size: 0.7rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.tm2-tag {
    display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
    background: var(--accent-soft); color: var(--accent);
}
.tm2-port-link { font-size: 0.82rem; font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; }

/* ── Forms (theme-aware) ─────────────────────────────── */
.tm2-form-label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:7px; }
.tm2-form-input {
    width:100%; padding:12px 16px; border:1.5px solid var(--border); border-radius:10px;
    font-family:'Plus Jakarta Sans',sans-serif; font-size:14px; color:var(--text); background:var(--card);
    transition:border-color 0.2s; outline:none;
}
.tm2-form-input:focus { border-color:var(--accent); }
.tm2-form-textarea { resize:vertical; min-height:120px; }

/* ── Container width ─────────────────────────────────── */
.tm2-container { max-width: 1100px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .tm2-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .tm2-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .tm2-links { display: none; }
    .tm2-cta { display: none; }
    .tm2-burger { display: flex; }
}

@media (max-width: 640px) {
    .tm2-nav-wrap { top: 10px; padding: 0 12px; }
    .tm2-nav { padding: 6px 6px 6px 14px; }
    .tm2-logo img { height: 22px; }
    .tm2-logo-text { font-size: 13px; }

    .tm2-hero { padding: 110px 16px 40px; }
    .tm2-hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
    .tm2-hero p  { font-size: 0.9rem; }

    .tm2-page-hero { padding: 100px 16px 40px; }
    .tm2-page-hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .tm2-page-hero p  { font-size: 0.88rem; }
    .tm2-email-form { flex-direction: column; border-radius: 20px; padding: 8px; }
    .tm2-email-form input { padding: 10px 12px; text-align: center; }
    .tm2-email-form button { width: 100%; }

    .tm2-section { padding: 48px 16px; }
    .tm2-section-head { margin-bottom: 32px; }

    .tm2-grid-2, .tm2-grid-3, .tm2-grid-4 { grid-template-columns: 1fr !important; }

    .tm2-stats { gap: 24px; }
    .tm2-stats .num { font-size: 1.4rem; }

    .tm2-cta-band { padding: 36px 20px; margin: 0; border-radius: 20px; }

    .tm2-footer-top { flex-direction: column; align-items: flex-start; }
    .tm2-footer-bottom { flex-direction: column; text-align: center; }
    .tm2-social-row { justify-content: center; }
}
