/* ============================================================
   PITSDC — Public site (bold & modern, wordmark logo)
   ============================================================ */
:root {
    --ink: #0b1220;
    --ink-2: #1a2236;
    /* Deep navy used for admin chrome (sidebar, auth screen) */
    --navy: #0f1830;
    --navy-2: #16213f;
    --muted: #5b6678;
    --line: #e6e9ef;
    --bg: #ffffff;
    --bg-alt: #f6f7f9;

    /* Single confident accent */
    --accent: #2563eb;
    --accent-dark: #1d4ed8;

    --danger: #dc2626;
    --success: #16a34a;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(11, 18, 32, .10);
    --maxw: 1140px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .16em;
    font-size: .78rem; font-weight: 800; color: var(--accent);
}

/* ---------------- Header / nav (light, high-contrast) ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-text {
    color: var(--ink); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em;
}
.brand-logo { display: block; height: 40px; width: auto; max-width: 220px; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a { color: var(--muted); padding: 9px 13px; border-radius: 8px; font-size: .95rem; font-weight: 600; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a.active { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; }
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* ---------------- Hero (dark, bold type) ---------------- */
.hero {
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(37, 99, 235, .45), transparent 60%),
        linear-gradient(165deg, #0b1220 0%, #111b33 60%, #16275a 100%);
    color: #fff; padding: 112px 0 104px;
}
.hero .eyebrow { color: #8fb3ff; }
.hero h1 {
    color: #fff; font-size: 3.5rem; font-weight: 800; line-height: 1.04;
    letter-spacing: -.03em; max-width: 840px; margin: 14px 0 0;
}
.hero .lead { font-size: 1.25rem; color: #aeb8c9; max-width: 660px; margin-top: 18px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: #8fb3ff; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------------- Sections ---------------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #cfd6e4; }
.section-dark .section-title, .section-dark h2 { color: #fff; }
.section-title { font-size: 2.3rem; font-weight: 800; text-align: center; margin: 0 0 10px; }
.section-title::after {
    content: ""; display: block; width: 54px; height: 4px; margin: 18px auto 0;
    background: var(--accent); border-radius: 2px;
}
.section-sub { text-align: center; color: var(--muted); max-width: 660px; margin: 0 auto 44px; font-size: 1.08rem; }
.section-dark .section-sub { color: #aab3c4; }

.page-header { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 70px 0; }
.page-header h1 { font-size: 2.7rem; font-weight: 800; margin: 0 0 10px; }

/* ---------------- Cards (numbered, modern hover) ---------------- */
.card-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
    position: relative; overflow: hidden;
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 30px; color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4d9e2; text-decoration: none; }
.card:hover::before { transform: scaleX(1); }
.svg-icon { display: block; width: 100%; height: 100%; }
.card-icon { display: inline-flex; width: 44px; height: 44px; color: var(--accent); margin-bottom: 14px; }
.service-hero-icon { display: inline-flex; width: 52px; height: 52px; color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card-link { color: var(--accent-dark); font-weight: 700; }

/* ---------------- Features ---------------- */
.feature-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 28px; }
.feature h3 { margin-top: 0; font-size: 1.2rem; font-weight: 800; }
.feature p { color: var(--muted); margin-bottom: 0; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block; cursor: pointer; border: 1.5px solid transparent;
    padding: 13px 26px; border-radius: 9px; font-weight: 700; font-size: 1rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--bg-alt); }
/* On dark backgrounds (hero), make the outline button light */
.hero .btn-outline, .section-dark .btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero .btn-outline:hover, .section-dark .btn-outline:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: .85rem; border-radius: 7px; }

.cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Forms ---------------- */
.form { background: #fff; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-group label { font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.form-group input, .form-group textarea, .form-group select {
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px;
    font-size: 1rem; font-family: inherit; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form-group.checkbox label { flex-direction: row; align-items: center; gap: 8px; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 5px; }
.field-hint { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------------- Alerts ---------------- */
.alert { padding: 13px 16px; border-radius: 9px; margin: 16px 0; font-size: .95rem; font-weight: 600; }
.alert-success { background: #e8f6ed; color: #15803d; border: 1px solid #bce3cb; }
.alert-error { background: #fdeaea; color: #b91c1c; border: 1px solid #f3c2c2; }

/* ---------------- Info / prose ---------------- */
.info-block { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.prose { font-size: 1.06rem; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.3rem; list-style: disc; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.checklist { list-style: none; padding: 0; margin: 18px 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.contact-details h3 { font-size: 1rem; margin: 0 0 6px; }
.contact-details p, .contact-details address { margin: 0; font-style: normal; line-height: 1.5; }
@media (max-width: 680px) { .contact-details { grid-template-columns: 1fr; gap: 18px; } }

/* ---------------- Client logo strip ---------------- */
.logo-strip { padding: 36px 0; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.logo-strip-label { text-align: center; margin: 0 0 20px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.logo-item img { height: 46px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: opacity .2s, filter .2s; }
.logo-item:hover img { filter: grayscale(0); opacity: 1; }

/* ---------------- Portfolio cards / media ---------------- */
.card-portfolio { padding-top: 0; overflow: hidden; }
.card-media { display: block; margin: -28px -28px 18px; background: var(--bg-alt); aspect-ratio: 16 / 9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-media { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.project-media img { width: 100%; height: auto; display: block; }

/* ---------------- Testimonials ---------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { margin: 0; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.6; }
.testimonial blockquote::before { content: "\201C"; color: var(--accent); font-weight: 700; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { color: var(--muted); font-size: .92rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #97a2b4; margin-top: 0; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 56px 22px 30px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-grid a { display: block; color: #97a2b4; padding: 3px 0; }
.footer-address { font-style: normal; margin: 0 0 8px; line-height: 1.5; }
.footer-grid a:hover { color: #fff; }
.admin-link { opacity: .6; font-size: .9rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 22px; font-size: .85rem; color: #7a8597; }

/* ---------------- Error page ---------------- */
.error-page { padding: 110px 0; }
.error-code { font-size: 5.5rem; font-weight: 800; margin: 0; color: var(--accent); letter-spacing: -.04em; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; background: #fff; padding: 12px 16px; gap: 4px;
        border-bottom: 1px solid var(--line);
    }
    .main-nav.open { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.4rem; }
    .hero { padding: 84px 0 76px; }
    .section { padding: 60px 0; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
