﻿/* =========================================================
   Base / Layout
   ========================================================= */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg-main);
    color: var(--ink);
}

a {
    color: inherit;
}

:root {
    --brand: #1e5fd8;
    --brand-dark: #164bb5;
    --bg-main: #dce9f9;
    --bg-section: #eef4fd;
    --ink: #0f172a;
    --muted: #475569;
    --border: #c6d8f0;
    --shadow: 0 8px 22px rgba(30, 95, 216, 0.12);
    --radius: 16px;
}

/* Keep body content from hitting edges (your tightened look) */
.body-content {
    margin-top: 16px;
    padding-left: 0;
    padding-right: 0;
}

/* Bootstrap override: keep DL terms readable */
.dl-horizontal dt {
    white-space: normal;
}

/* If you still want a max input width (optional) */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select {
    max-width: 280px;
}

/* Central page width tightening (align nav + body) */
.site-container,
.container {
    width: min(900px, 92%);
    margin: 0 auto;
}

/* =========================================================
   Topbar
   ========================================================= */

.topbar {
    background: linear-gradient(90deg, var(--brand), #3b7be0);
    color: #fff;
}

.topbar-inner {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.callus,
.sep {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.topbar-link {
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: #fff;
}

/* =========================================================
   Navbar / Branding
   ========================================================= */

.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border);
}

    .navbar .nav-link {
        color: var(--ink);
        font-weight: 500;
    }

        .navbar .nav-link:hover {
            color: var(--brand);
        }

/* Logo + brand text */
.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.brand-text {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    background: linear-gradient(180deg, #cfe1fb 0%, var(--bg-section) 45%, #ffffff 75%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: stretch;
}

.hero-copy {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
}

.lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(30, 95, 216, 0.25);
    background: linear-gradient(135deg, rgba(122,162,255,.9), rgba(122,162,255,.55));
    color: #071023;
    font-weight: 800;
}

    .btn:hover {
        filter: brightness(1.05);
    }

.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

    .btn-primary:hover {
        background-color: var(--brand-dark);
        border-color: var(--brand-dark);
    }

/* Metrics */
.hero-metrics {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metric {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.metric-v {
    font-weight: 700;
    margin-top: 4px;
}

.metric-k {
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-media {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center;
    min-height: 330px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* optional overlay */
.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.55));
}

/* =========================================================
   Sections / Cards
   ========================================================= */

.section {
    padding: 30px 0;
    background: var(--bg-section);
}

.section-head {
    margin-bottom: 14px;
}

    .section-head h2 {
        margin: 0 0 6px;
        font-size: 1.6rem;
    }

.muted {
    color: var(--muted);
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Default card */
.card,
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.grid .card,
.grid-2 .card {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card h3 {
    margin: 0 0 10px;
}

.card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.55;
}

.bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

    .bullets li {
        margin: 6px 0;
    }

.center {
    margin-top: 16px;
    text-align: center;
}

/* Why Us smaller cards (only if you apply class="whyus-section" to that section) */
.whyus-section .grid-2 .card {
    padding: 18px 18px 20px;
}

    .whyus-section .grid-2 .card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .whyus-section .grid-2 .card p {
        font-size: 0.95rem;
        margin-bottom: 0;
        line-height: 1.5;
    }

/* Work container (rounded parent) */
.work-container {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 40px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   Accordion
   ========================================================= */

.accordion-button {
    background: #eef4fd;
    color: var(--ink);
}

    .accordion-button:not(.collapsed) {
        background: #dce9f9;
        color: var(--brand);
    }

/* =========================================================
   Footer
   ========================================================= */

footer {
    background: #dce9f9;
    color: var(--ink);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-title {
    font-weight: 900;
}

.footer-muted,
.footer-contact,
.footer-bottom {
    color: var(--muted);
}

.footer-bottom {
    margin-top: 10px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: #eef4fd;
}

/* =========================================================
   Forms: Force black text always (fix typing issue)
   ========================================================= */

input,
textarea,
select,
.form-control {
    color: #000 !important;
    background-color: #fff !important;
    caret-color: #000;
}

    input::placeholder,
    textarea::placeholder {
        color: #6b7280 !important;
        opacity: 1;
    }

    input:focus,
    textarea:focus,
    select:focus,
    .form-control:focus {
        color: #000 !important;
        background-color: #fff !important;
        border-color: var(--brand);
        box-shadow: 0 0 0 0.2rem rgba(30, 95, 216, 0.15);
    }

    /* Autofill on Chrome/Edge/mobile */
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill {
        -webkit-text-fill-color: #000 !important;
        box-shadow: 0 0 0px 1000px #fff inset !important;
        caret-color: #000;
    }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 940px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Topbar stacking + work padding */
@media (max-width: 576px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .topbar-right {
        width: 100%;
        gap: 6px;
    }

    .hero-copy {
        padding: 18px;
    }

    .work-container {
        padding: 22px 18px;
    }

    .brand-logo {
        height: 30px;
    }

    .brand-text {
        font-size: 0.98rem;
    }
}

@media (max-width: 420px) {
    .brand-text {
        display: none;
    }
}

/* Mobile navbar dropdown styling */
@media (max-width: 768px) {
    .navbar-collapse {
        background: #fff;
        padding: 10px 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 16px;
    }
}

/* ===== Contact page layout ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 18px;
    align-items: start;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.contact-card--aside {
    position: sticky;
    top: 90px; /* keeps it visible as you scroll on desktop */
}

.contact-title {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
}

.contact-title-sm {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 800;
}

.contact-sub {
    margin: 0 0 16px;
}

.contact-info {
    display: grid;
    gap: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
}

.info-label {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
}

.info-value a {
    color: var(--brand);
    text-decoration: none;
}

    .info-value a:hover {
        text-decoration: underline;
    }

@media (max-width: 940px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .contact-card--aside {
        position: static;
        top: auto;
    }
}