/*
Theme Name: TMA Consulting
Description: Custom theme for TMA Consulting Inc.
Version: 1.0
Author: Keystone IT Services
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Inter+Tight:wght@600;700;800&display=swap');

:root {
    --bg:        #1a1a1a;
    --bg2:       #222222;
    --bg3:       #2a2a2a;
    --accent:    #FF9900;
    --accent2:   #cc7a00;
    --text:      #cccccc;
    --heading:   #ffffff;
    --muted:     #888888;
    --border:    rgba(255,153,0,0.2);
    --radius:    6px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding-top: 90px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ffb733; }

h1,h2,h3,h4,h5,h6 {
    font-family: 'Inter Tight', sans-serif;
    color: var(--heading);
    line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary  { background: var(--accent); color: #111; }
.btn-primary:hover { background: #ffb733; color: #111; }
.btn-outline  { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #111; }

/* ── Nav ── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    height: 90px;
    display: flex;
    align-items: center;
    background: rgba(20,20,20,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { font-family: 'Inter Tight', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--heading); line-height: 1; display: flex; align-items: baseline; gap: 0; }
.nav-brand .brand-dot { color: var(--accent); }
.nav-brand .brand-sub { font-size: 1.35rem; font-weight: 400; color: #bbb; margin-left: 0.35rem; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.current { color: var(--heading); }
.nav-links .nav-cta a { color: var(--accent); border: 1px solid var(--accent); padding: 0.4rem 1rem; border-radius: var(--radius); }
.nav-links .nav-cta a:hover { background: var(--accent); color: #111; }

/* ── Hero ── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #1e1400 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,153,0,0.06) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 680px; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: var(--heading); margin-bottom: 1.5rem; }
.hero-title span { color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: var(--muted); margin-bottom: 2.5rem; max-width: 520px; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Section headings ── */
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--heading); margin-bottom: 1rem; }
.section-sub   { color: var(--muted); max-width: 560px; line-height: 1.8; margin-bottom: 3rem; }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.card {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border); transform: translateY(-3px); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--heading); }
.card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ── Two-column ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col.flip > :first-child { order: 2; }
.two-col.flip > :last-child  { order: 1; }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-box { background: var(--bg3); border-left: 3px solid var(--accent); padding: 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.stat-box .num { font-size: 2.2rem; font-weight: 800; color: var(--accent); font-family: 'Inter Tight', sans-serif; }
.stat-box .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

/* ── CTA Band ── */
.cta-band {
    background: linear-gradient(90deg, #1a1000, #2a1a00);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
    text-align: center;
}
.cta-band h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-band p  { color: var(--muted); margin-bottom: 2rem; }

/* ── Services detail ── */
.service-row { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; align-items: start; padding: 2rem; background: var(--bg2); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); margin-bottom: 1.5rem; transition: border-color 0.2s; }
.service-row:hover { border-color: var(--border); }
.service-num { font-size: 2.5rem; font-weight: 800; color: var(--border); font-family: 'Inter Tight', sans-serif; line-height: 1; padding-top: 4px; }
.service-row h2, .service-row h3 { font-size: 1.35rem; margin-bottom: 0.75rem; color: var(--heading); }
.service-row p  { font-size: 0.95rem; color: var(--muted); line-height: 1.8; }
.service-icon-wrap { display: flex; justify-content: center; padding-top: 0.25rem; }
.service-icon { font-size: 2.25rem; line-height: 1; }
.service-list { margin-top: 1rem; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.service-list li { font-size: 0.9rem; color: var(--muted); padding-left: 1.1rem; position: relative; }
.service-list li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.tag { font-size: 0.75rem; background: rgba(255,153,0,0.1); color: var(--accent); padding: 0.2rem 0.6rem; border-radius: 2rem; border: 1px solid rgba(255,153,0,0.2); }

/* ── About ── */
.about-text p { margin-bottom: 1.2rem; color: var(--text); line-height: 1.8; }
.bio-card { background: var(--bg2); border-radius: var(--radius); padding: 2rem; border-left: 3px solid var(--accent); margin-top: 1.5rem; }
.bio-card .bio-name { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin-bottom: 0.25rem; }
.bio-card .bio-title { font-size: 0.85rem; color: var(--accent); margin-bottom: 1rem; }
.bio-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-info p  { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1rem 1.25rem; background: var(--bg2); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); }
.contact-item-icon { font-size: 1.3rem; color: var(--accent); }
.contact-item-text .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-item-text .value { font-size: 0.95rem; color: var(--heading); }

.contact-form { background: var(--bg2); border-radius: var(--radius); padding: 2.5rem; border: 1px solid rgba(255,255,255,0.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    color: var(--heading);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--bg3); }
.form-notice { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.required { color: var(--accent); }
.form-success { color: #4caf50; background: rgba(76,175,80,0.08); border: 1px solid rgba(76,175,80,0.25); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.95rem; margin-bottom: 1.5rem; }

/* ── Page hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, #111 0%, #1c1000 100%);
    padding: 60px 0 50px;
    border-bottom: 1px solid var(--border);
}
.page-hero .section-label { margin-bottom: 0.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--muted); margin-top: 0.75rem; max-width: 560px; }

/* ── Footer ── */
.site-footer {
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--heading); }
.footer-brand span { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ── Divider ── */
.divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0; }

/* ── Hamburger button ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10001;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--heading);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Tablet ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .two-col { gap: 2.5rem; }
    .stats-grid { gap: 1rem; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 768px) {

    /* Nav */
    .site-nav { height: 70px; }
    body { padding-top: 70px; }
    .nav-toggle { display: flex; }
    .nav-brand { font-size: 1.75rem; }
    .nav-brand .brand-sub { font-size: 0.85rem; }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(18,18,18,0.99);
        backdrop-filter: blur(12px);
        padding: 0.5rem 1.5rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 9998;
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
        letter-spacing: 0.04em;
        color: var(--text);
    }
    .nav-links .nav-cta { margin-top: 0.75rem; }
    .nav-links .nav-cta a {
        display: block;
        text-align: center;
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
        margin-bottom: 0.5rem;
    }

    /* Layout */
    .container { padding: 0 1.25rem; }
    .section { padding: 50px 0; }
    .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .two-col.flip > * { order: unset; }

    /* Hero */
    .hero { min-height: auto; padding: 60px 0 70px; }
    .hero-sub { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; width: 100%; }

    /* Cards */
    .card-grid { grid-template-columns: 1fr; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

    /* Services */
    .service-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem; }
    .service-icon-wrap { justify-content: flex-start; }

    /* About / bio */
    .bio-card { margin-top: 0; padding: 1.5rem; }
    .two-col > div > div[style*="aspect-ratio"] { max-width: 180px !important; }

    /* Contact form */
    .contact-form { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }

    /* CTA band */
    .cta-band { padding: 50px 0; }
    .cta-band h2 { font-size: 1.6rem; }

    /* Page hero */
    .page-hero { padding: 40px 0 32px; }

    /* Footer */
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
    .footer-links { justify-content: center; }
}
