:root {
    --navy: #212d45;
    --ink: #3a3a3a;
    --orange: #ff712b;
    --orange-dark: #e85d16;
    --gold: #f8b526;
    --paper: #f6f7f9;
    --line: #e6e8ee;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(33, 45, 69, 0.08);
    --header: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Open Sans", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { color: var(--orange-dark); text-decoration: none; }

a:hover { text-decoration: underline; }

h1, h2, h3, .btn, .site-nav, .brand {
    font-family: Montserrat, "Segoe UI", sans-serif;
}

h1, h2, h3 { color: var(--navy); line-height: 1.25; }

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow { width: min(820px, calc(100% - 32px)); }

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 12px;
    z-index: 20;
}

.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    min-height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand img { height: 58px; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.site-nav a.active { color: var(--orange); }

.header-phone {
    background: var(--orange);
    color: var(--white) !important;
    padding: 10px 16px;
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 8px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
}

.hero {
    position: relative;
    min-height: 560px;
    display: grid;
    align-items: end;
    color: var(--white);
    overflow: hidden;
    background: var(--navy);
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(33, 45, 69, 0.92) 0%, rgba(33, 45, 69, 0.55) 58%, rgba(33, 45, 69, 0.25) 100%);
}

.hero-copy {
    position: relative;
    padding: 88px 0 72px;
    max-width: 760px;
}

.hero h1, .page-intro h1 { color: var(--white); font-size: clamp(34px, 5vw, 56px); margin: 0 0 16px; }

.hero p { font-size: 18px; margin: 0 0 24px; max-width: 640px; }

.page-intro {
    background: var(--navy);
    color: var(--white);
    padding: 72px 0;
}

.page-intro h2, .page-intro h3, .page-intro p, .page-intro li { color: #f3f5f8; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--white);
    border: 0;
    border-radius: 4px;
    padding: 12px 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { background: var(--orange-dark); text-decoration: none; }

.btn-light { background: var(--white); color: var(--navy); }

.btn-light:hover { background: #fff4ea; }

.btn-dark { background: var(--navy); }

.section { padding: 72px 0; }

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 16px;
}

.section-lead, .about-copy p {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 28px;
}

.about-copy p { text-align: left; margin: 0 0 18px; }

.intro { background: var(--paper); }

.intro-grid, .contact-layout, .detail-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.intro img, .detail-block img, .project-card img, .service-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.card-grid, .reason-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.services-grid, .projects-grid { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }

.reason-grid { grid-template-columns: repeat(4, 1fr); }

.reason-grid.three { grid-template-columns: repeat(3, 1fr); }

.service-card, .project-card, .reason-card, .quote-card, .form-card, .info-stack article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.service-card div, .project-card div { padding: 16px 16px 20px; }

.service-card h3, .project-card h3, .reason-card h3, .info-stack h3 { margin: 0 0 8px; font-size: 18px; }

.service-card p, .project-card p, .reason-card p { margin: 0; font-size: 14px; }

.service-card a { display: inline-block; margin-top: 12px; font-weight: 700; }

.project-card p span { display: block; }

.services-home { background: var(--white); }

.clients { background: var(--paper); padding-top: 48px; padding-bottom: 48px; }

.logo-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: center;
}

.logo-row img {
    width: 100%;
    height: 78px;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
    padding: 8px;
}

.cta-band {
    background: var(--orange);
    color: var(--white);
    text-align: center;
    padding: 64px 0;
}

.cta-band h2 { color: var(--white); margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); }

.cta-band p { max-width: 720px; margin: 0 auto 22px; }

.testimonials { background: var(--paper); }

.quote-card { padding: 22px; margin: 0; }

.quote-card blockquote { margin: 0 0 16px; }

.quote-card figcaption { display: flex; flex-direction: column; }

.quote-card span { color: var(--orange-dark); font-size: 14px; }

.why { background: var(--white); }

.reason-card { padding: 22px; border-top: 4px solid var(--gold); }

.contact-panel { background: var(--navy); color: #f4f6fa; padding: 72px 0; }

.contact-panel h2, .contact-panel h3 { color: var(--white); }

.eyebrow {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.info-stack { display: grid; gap: 14px; }

.info-stack article { padding: 16px 18px; background: rgba(255, 255, 255, 0.06); border-color: transparent; }

.info-stack p { margin: 0; }

.info-stack a, .whatsapp-link { color: var(--white); }

.whatsapp-link {
    display: inline-flex;
    margin-top: 8px;
    background: #25D366;
    color: #08301a;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
}

.form-card { padding: 22px; display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }

.field label { font-weight: 600; color: var(--navy); }

.field input, .field textarea {
    width: 100%;
    border: 1px solid #d5d8e0;
    border-radius: 6px;
    padding: 12px;
    font: inherit;
}

.field textarea { min-height: 120px; resize: vertical; }

.validation-message { color: #b42318; font-size: 13px; }

.success-card h3 { margin-top: 0; }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.text-button {
    background: none;
    border: 0;
    color: var(--orange-dark);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.center-link { text-align: center; margin: 28px 0 0; }

.detail-block { margin: 28px 0; align-items: start; }

.detail-block:nth-child(even) img { order: 2; }

.detail-block ul { margin: 0; padding-left: 18px; }

.detail-block { scroll-margin-top: 100px; }

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
    font-family: Montserrat, sans-serif;
}

.faq p { margin: 10px 0 0; }

.plain-list { padding-left: 18px; }

.site-footer {
    background: #172033;
    color: #d7dce6;
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr;
    gap: 28px;
}

.footer-logo {
    height: 64px;
    width: auto;
    background: var(--white);
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 14px;
}

.site-footer h2 {
    color: var(--white);
    font-size: 18px;
    text-transform: capitalize;
    margin: 0 0 12px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 0 0 8px; }

.site-footer a { color: #d7dce6; }

.footer-bottom {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0 22px;
    font-size: 14px;
}

.chat-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    background: #25D366;
    color: #08301a;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

.chat-button:hover { text-decoration: none; filter: brightness(0.95); }

#blazor-error-ui {
    background: #fff4ea;
    color: var(--navy);
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 980px) {
    .services-grid, .projects-grid, .reason-grid, .reason-grid.three, .footer-grid, .logo-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-grid, .contact-layout, .detail-block { grid-template-columns: 1fr; }

    .detail-block:nth-child(even) img { order: 0; }
}

.brand-text { font-weight: 800; color: var(--navy); }

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--paper);
    color: var(--ink);
}

.admin-nav {
    background: var(--navy);
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav a, .admin-brand {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
}

.admin-nav a.active, .admin-nav a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }

.admin-brand { font-weight: 800; margin-bottom: 12px; }

.admin-main { padding: 32px 28px 64px; }

.admin-main h1 { margin-top: 0; }

.admin-form, .admin-card .admin-form { display: grid; gap: 8px; max-width: 760px; }

.admin-form h2 { margin: 22px 0 4px; }

.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    border: 1px solid #d5d8e0;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
}

.admin-form textarea { min-height: 90px; }

.admin-card, .login-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
}

.admin-card summary { cursor: pointer; font-weight: 700; color: var(--navy); }

.admin-toolbar, .item-actions, .paragraph-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.paragraph-row textarea { flex: 1; }

.save-status { color: #067647; font-weight: 700; }

.text-button.danger, .admin-main .danger { color: #b42318; }

.admin-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.admin-links a {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    color: var(--navy);
    text-decoration: none;
}

.admin-links span { color: var(--ink); font-size: 14px; }

.image-field img, .image-library img { width: 160px; height: 110px; object-fit: cover; border-radius: 6px; background: white; }

.image-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.image-library article { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }

.image-library p { font-size: 12px; word-break: break-all; }

.login-card { max-width: 460px; margin: 48px auto; }

@media (max-width: 760px) {
    .menu-toggle { display: inline-block; }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--line);
        gap: 12px;
    }

    .site-nav.open { display: flex; }

    .services-grid, .projects-grid, .reason-grid, .reason-grid.three, .footer-grid, .logo-row, .card-grid {
        grid-template-columns: 1fr;
    }

    .hero { min-height: 460px; }

    .section, .contact-panel { padding: 48px 0; }

    .admin-shell, .admin-links { grid-template-columns: 1fr; }

    .admin-main { padding: 20px 16px 48px; }
}
