/* style.css */

/* =========================
   ROOT & GLOBAL
   ========================= */
:root {
    --accent-color: #2563eb;
    --bg-color: #ffffff;
    --text-color: #111827;
    --muted-text: #6b7280;
    --border-color: #e5e7eb;
    --section-alt: #f9fafb;
    --footer-bg: #111827;
    --footer-text: #d1d5db;
    --error-color: #b91c1c;
    --success-bg: #ecfdf3;
    --success-border: #16a34a;
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: var(--section-alt);
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
    max-width: 640px;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--muted-text);
}

/* =========================
   HEADER & NAV
   ========================= */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.nav-toggle {
    border: none;
    background: transparent;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Nav */
.site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    transition: max-height 0.2s ease, border-color 0.2s ease;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-list a {
    display: block;
    padding: 0.4rem 0.2rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Active link */
.nav-list a.active,
.footer-nav a.active {
    color: var(--accent-color);
    position: relative;
}

.nav-list a.active::after,
.footer-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 1.5rem;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 999px;
}

/* Mobile nav open state */
.site-header.nav-open .site-nav {
    max-height: 260px;
    border-color: var(--border-color);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Desktop nav */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        max-height: none;
        border: none;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 1.25rem;
    }

    .nav-list a {
        padding: 0.2rem 0;
    }
}

/* =========================
   HERO
   ========================= */
.hero {
    padding: 2.5rem 0 3rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--muted-text);
    font-size: 0.9rem;
}

.hero-trust li {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
}

.hero-media img {
    border-radius: 0.75rem;
    object-fit: cover;
    width: 100%;
    max-height: 360px;
}

/* Larger screens */
@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    text-decoration: none;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--accent-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: #eff6ff;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

/* =========================
   CARDS & GRID
   ========================= */
.card {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.03);
}

.card-image {
    margin: -1.25rem -1.25rem 1rem;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .card-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Services teaser */
.service-card h3 {
    margin: 0.5rem 0 0.4rem;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    margin-top: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}

/* =========================
   TWO COLUMNS / LAYOUT
   ========================= */
.two-column {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .two-column {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* Badges */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    text-align: center;
    max-width: 160px;
}

.badge img {
    max-height: 64px;
    object-fit: contain;
    margin: 0 auto 0.35rem;
}

.badge figcaption {
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* =========================
   CTA STRIP
   ========================= */
.cta-strip {
    background-color: #0f172a;
    color: #e5e7eb;
    padding: 2rem 0;
}

.cta-strip-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.cta-strip h2 {
    margin: 0 0 0.25rem;
}

.cta-strip p {
    margin: 0;
    color: #e5e7eb;
}

@media (min-width: 768px) {
    .cta-strip-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* =========================
   PAGE HEADERS
   ========================= */
.page-header h1 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--muted-text);
    max-width: 640px;
}

/* =========================
   SERVICES PAGE
   ========================= */
.service-list {
    display: grid;
    gap: 1.75rem;
}

.service-item {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
}

.service-media img {
    border-radius: 0.5rem;
    height: 220px;
    object-fit: cover;
}

.service-content h2 {
    margin: 0 0 0.5rem;
}

.service-content p {
    color: var(--muted-text);
    margin-bottom: 0.75rem;
}

.service-content ul {
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
    font-size: 0.95rem;
}

.inline-link {
    font-weight: 500;
}

.small-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--muted-text);
}

@media (min-width: 768px) {
    .service-item {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
        align-items: center;
    }
}

/* =========================
   ABOUT PAGE
   ========================= */
.stat-card {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.03);
}

.stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stats-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.stats-list strong {
    font-weight: 600;
}

.value-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.value-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* =========================
   PROJECTS PAGE
   ========================= */
.project-grid {
    margin-top: 1.5rem;
}

.project-card {
    padding: 0;
}

.project-card .card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.project-card h2 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.project-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* Fix project card images so they don't stick past the card */
.project-card {
    padding: 0;
    overflow: hidden;
    /* keep everything inside the rounded card */
    border-radius: 0.75rem;
}

.project-card .card-image {
    margin: 0;
    /* remove the negative margins */
    border-radius: 0;
    /* card handles the radius */
}

.project-card .card-image img {
    width: 100%;
    height: 220px;
    /* or whatever height you like */
    object-fit: cover;
}


/* =========================
   CONTACT PAGE
   ========================= */
.contact-layout {
    display: grid;
    gap: 2rem;
}

.contact-form-wrap {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.03);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.required {
    color: var(--error-color);
    margin-left: 0.15rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #ffffff;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--error-color);
}

.error-message {
    min-height: 1rem;
    font-size: 0.8rem;
    color: var(--error-color);
    margin-top: 0.15rem;
}

.form-success {
    margin-top: 1rem;
    font-size: 0.9rem;
    background-color: var(--success-bg);
    border-left: 3px solid var(--success-border);
    padding: 0.75rem 0.75rem;
    border-radius: 0.5rem;
}

/* Contact details sidebar */
.contact-details h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--muted-text);
}

.contact-info-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.contact-info-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-info-list strong {
    font-weight: 600;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: flex-start;
    }
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 1rem;
}

.footer-brand {
    font-weight: 600;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-nav a {
    color: var(--footer-text);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    font-size: 0.83rem;
    color: #9ca3af;
}

.footer-credit {
    margin: 0;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}