@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* =========================
   Theme
========================= */

:root {
    --navy: #0B1220;
    --steel-blue: #1E3A5F;
    --accent: #2F80ED;
    --accent-hover: #1C64D1;

    --text-light: #F5F7FA;
    --text-muted: #AAB4C0;
    --body-text: #1E293B;
    --muted-dark: #64748B;

    --page-bg: #F5F7FA;
    --section-bg: #EEF2F7;
    --card-bg: #FFFFFF;
    --dark-card: #111A2E;

    --border: #334155;
    --light-border: #E2E8F0;
    --input-border: #CBD5E1;

    --success-bg: #E8F5E9;
    --success-text: #14532D;
    --success-border: #BBF7D0;

    --danger-bg: #FEE2E2;
    --danger-text: #991B1B;
    --danger-border: #FCA5A5;

    --warning-bg: #FFF7ED;
    --warning-text: #9A3412;
    --warning-border: #FED7AA;

    --shadow: 0 12px 32px rgba(11, 18, 32, 0.12);
    --shadow-strong: 0 16px 36px rgba(11, 18, 32, 0.16);
}

/* =========================
   Base
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--page-bg);
    color: var(--body-text);
}

h1,
h2,
h3,
.brand {
    font-family: 'Space Grotesk', sans-serif;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: 'Inter', sans-serif;
}

button {
    border: none;
    cursor: pointer;
}

label {
    display: block;
    margin-top: 0;
    font-size: 14px;
    color: var(--navy);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: #FFFFFF;
    outline: none;
    color: var(--navy);
    font-size: 14px;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.16);
}

/* =========================
   Header / Navigation
========================= */

.top-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 84px;
    padding: 0 44px;
    background: var(--navy);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 18px rgba(5, 10, 20, 0.22);
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.nav-logout-form {
    display: inline;
    margin: 0;
}

.nav-link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.cf-turnstile {
    margin: 18px 0;
    min-height: 65px;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.site-wordmark {
    display: block;
    width: 240px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.top-header nav {
    display: flex;
    gap: 26px;
    align-items: center;
}

.top-header nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.top-header nav a:hover {
    color: var(--accent);
}

/* =========================
   Buttons
========================= */

.primary-button,
.secondary-button,
.admin-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button,
.admin-button {
    background: var(--accent);
    color: var(--text-light);
}

.primary-button:hover,
.admin-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.secondary-button {
    background: var(--text-light);
    color: var(--navy);
    margin-top: 20px;
}

.secondary-button:hover {
    background: #E8EDF3;
}

.admin-button {
    width: 100%;
    margin-top: 22px;
}

/* =========================
   Welcome Page
========================= */

.hero {
    min-height: 620px;
    background:
        linear-gradient(rgba(11, 18, 32, 0.78), rgba(11, 18, 32, 0.78)),
        url("../images/image3.d8c85b50a526.jpg");
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 70px 48px;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.05;
    margin: 0 0 20px;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 20px;
    line-height: 1.65;
    margin-bottom: 34px;
    color: var(--text-muted);
}

.capabilities-band {
    padding: 84px 48px;
    background: var(--section-bg);
}

.capabilities-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.capabilities-visual {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    background-size: 36px 36px;
}

.capabilities-visual .capabilities-emblem {
    width: min(54%, 300px);
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.section-kicker,
.project-band > span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.capabilities-copy h2 {
    max-width: 560px;
    margin: 14px 0 18px;
    color: var(--navy);
    font-size: 43px;
    line-height: 1.12;
}

.capabilities-intro {
    max-width: 570px;
    margin: 0 0 30px;
    color: #475569;
    font-size: 17px;
    line-height: 1.65;
}

.capability-lines {
    margin-bottom: 30px;
    border-top: 1px solid #CBD5E1;
}

.capability-line {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 19px 0;
    border-bottom: 1px solid #CBD5E1;
}

.capability-line > span {
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.capability-line h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 20px;
}

.capability-line p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.5;
}

.project-band {
    padding: 48px;
    background: var(--steel-blue);
    color: var(--text-light);
    text-align: center;
}

.project-band > span {
    color: #BFDBFE;
}

.project-band h2 {
    margin: 14px auto 0;
    max-width: 1050px;
    color: var(--text-light);
    font-size: 29px;
    line-height: 1.5;
}

.project-band i {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 18px 5px;
    border-radius: 50%;
    background: #93C5FD;
}

.section {
    padding: 76px 48px;
    background: var(--card-bg);
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: -0.8px;
    color: var(--navy);
}

.card-grid,
.steps,
.value-grid {
    display: grid;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.card-grid,
.steps,
.value-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card,
.value-card,
.about-card,
.quote-card,
.estimate-card,
.portal-card,
.login-card,
.admin-empty {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
}

.card {
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card h3,
.card p {
    padding: 0 22px;
}

.card h3 {
    margin-top: 22px;
    color: var(--navy);
}

.card p {
    padding-bottom: 26px;
    color: #475569;
    line-height: 1.6;
}

.dark-section {
    background: var(--navy);
    color: var(--text-light);
    text-align: center;
}

.dark-section h2 {
    color: var(--text-light);
}

.steps {
    max-width: 1040px;
}

.steps div {
    padding: 28px 12px 10px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.steps span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-light);
    font-weight: 800;
    margin-bottom: 14px;
}

.steps h3 {
    color: var(--text-light);
}

.steps p {
    color: var(--text-muted);
    line-height: 1.6;
}

.site-footer {
    padding: 42px 48px;
    background: var(--navy);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px minmax(260px, 1fr) auto;
    gap: 42px;
    align-items: center;
}

.footer-brand {
    display: block;
}

.footer-brand img {
    display: block;
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.footer-copy {
    max-width: 540px;
}

.footer-copy p,
.footer-contact span {
    margin: 0;
    line-height: 1.6;
}

.footer-copy .footer-location {
    margin-bottom: 7px;
    color: var(--text-light);
    font-weight: 700;
}

.footer-contact {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.footer-contact span {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-contact a {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #93C5FD;
}

.footer-contact .footer-quote-link {
    margin-top: 8px;
    color: #93C5FD;
}

/* =========================
   Quote Page
========================= */

.quote-hero-bar,
.admin-hero {
    background: linear-gradient(135deg, var(--navy), var(--steel-blue));
    color: var(--text-light);
    padding: 38px 48px;
    border-bottom: 4px solid var(--accent);
}

.quote-hero-bar h1,
.admin-hero h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.8px;
}

.quote-hero-bar p,
.admin-hero p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 16px;
}

.quote-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 38px 48px;
    background: var(--section-bg);
}

.quote-card {
    padding: 28px;
    border-radius: 20px;
}

.section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -0.4px;
    color: var(--navy);
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--muted-dark);
    line-height: 1.5;
}

.section-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

#viewer {
    width: 100%;
    height: 420px;
    border: 1px solid var(--input-border);
    border-radius: 16px;
    background: #F1F5F9;
    overflow: hidden;
}

.viewer-message {
    margin: 12px 0 0;
    color: var(--muted-dark);
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.full-width {
    grid-column: 1 / -1;
}

.step-file-panel {
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    text-align: center;
    background: #F8FAFC;
    color: var(--navy);
}

.step-file-panel h3 {
    margin-top: 0;
    font-size: 26px;
}

.step-file-panel p {
    color: #475569;
    line-height: 1.6;
}

/* =========================
   Quote Choice / Idea Request
========================= */

.quote-choice-page,
.idea-request-section {
    min-height: calc(100vh - 180px);
    padding: 54px 48px;
}

.quote-choice-page {
    background:
        linear-gradient(rgba(11, 18, 32, 0.84), rgba(11, 18, 32, 0.84)),
        url("../images/image1.20c270eea32e.jpg");
    background-size: cover;
    background-position: center;
}

.quote-choice-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
    color: var(--text-light);
}

.quote-choice-header h1 {
    font-size: 44px;
    margin: 0 0 10px;
}

.quote-choice-header p {
    color: var(--text-muted);
    font-size: 18px;
    margin: 0;
}

.idea-request-section {
    background: var(--section-bg);
}

.quote-option-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.quote-option-card {
    min-height: 360px;
    padding: 34px;
    background: white;
    color: var(--navy);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
    border-top: 5px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quote-option-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.idea-quote-card {
    border-top-color: var(--steel-blue);
}

.quote-option-label {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #EFF6FF;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quote-option-card h2 {
    margin: 24px 0 12px;
    font-size: 31px;
    line-height: 1.15;
    color: var(--navy);
}

.quote-option-card p {
    margin: 0 0 30px;
    color: var(--muted-dark);
    line-height: 1.65;
}

.quote-choice-action {
    width: 100%;
    margin-top: auto;
    text-align: center;
    text-decoration: none !important;
}

.idea-quote-card .quote-choice-action {
    background: var(--steel-blue);
}

.idea-quote-card .quote-choice-action:hover {
    background: var(--navy);
}

.idea-request-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.idea-intro-panel {
    padding: 30px;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--navy), var(--steel-blue));
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.idea-intro-panel h2 {
    margin-top: 0;
    font-size: 31px;
}

.idea-intro-panel p {
    color: var(--text-muted);
    line-height: 1.7;
}

.idea-form-card .result {
    margin: 0 0 22px;
}

.idea-note p {
    margin-bottom: 0;
}

/* =========================
   Submission / Agreement
========================= */

.submission-banner {
    background: var(--navy);
    color: var(--text-light);
    padding: 34px 48px;
    border-top: 1px solid var(--border);
}

.submission-content {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 34px;
    align-items: center;
}

.submission-left h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--text-light);
}

.submission-left p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.submission-controls {
    background: var(--text-light);
    color: var(--navy);
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.agreement-dropdown {
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: #FFFFFF;
    margin-bottom: 20px;
    overflow: hidden;
}

.agreement-dropdown summary {
    cursor: pointer;
    padding: 15px 18px;
    font-weight: 800;
    color: var(--navy);
}

.agreement-dropdown summary:hover {
    background: #F1F5F9;
}

.agreement-content {
    padding: 0 18px 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.final-checkboxes {
    display: grid;
    gap: 12px;
    justify-content: center;
    text-align: left;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.checkbox-row input {
    width: auto;
    margin-top: 4px;
    box-shadow: none;
}

.checkbox-row label {
    margin: 0;
    font-weight: 500;
}

.centered-checkbox {
    max-width: 760px;
    margin: 0 auto;
}

.centered-checkbox label {
    color: #334155;
    line-height: 1.45;
}

#submitButton {
    max-width: 380px;
    width: 100%;
    display: block;
    margin: 24px auto 0;
    padding: 15px 24px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 800;
}

#submitButton:hover:not(:disabled) {
    background: var(--accent-hover);
}

#submitButton:disabled {
    background: #94A3B8;
    cursor: not-allowed;
}

.result {
    max-width: 1260px;
    margin: 24px auto 0;
    padding: 16px 18px;
    background: var(--success-bg);
    color: var(--success-text);
    border-radius: 12px;
    border: 1px solid var(--success-border);
}

/* =========================
   Estimate
========================= */

.estimate-section {
    background: var(--section-bg);
    padding: 38px 48px;
}

.estimate-card {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 30px;
}

.minimalist-estimate-card {
    max-width: 950px;
}

.estimate-card h2 {
    margin-top: 0;
    color: var(--navy);
}

.estimate-subtitle {
    color: var(--muted-dark);
    margin-top: -8px;
    margin-bottom: 24px;
}

#estimateChart {
    max-height: 320px;
    margin: 18px 0 28px;
}

.cost-estimate-box {
    margin: 20px auto 28px;
    padding: 22px;
    max-width: 520px;
    text-align: center;
    background: #F8FAFC;
    border: 1px solid var(--light-border);
    border-radius: 16px;
}

.cost-estimate-box span {
    display: block;
    color: var(--muted-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cost-estimate-box strong {
    display: block;
    color: var(--navy);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 10px;
}

.cost-estimate-box p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.5;
    font-size: 14px;
}

.estimate-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.estimate-summary-grid div {
    background: #F8FAFC;
    border: 1px solid var(--light-border);
    border-radius: 14px;
    padding: 16px;
}

.estimate-summary-grid span {
    display: block;
    color: var(--muted-dark);
    font-size: 13px;
    margin-bottom: 6px;
}

.estimate-summary-grid strong {
    color: var(--navy);
}

.estimate-warning {
    margin-top: 24px;
    padding: 16px;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 12px;
    color: var(--warning-text);
    line-height: 1.6;
}

/* =========================
   Modal
========================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    width: 90%;
    max-width: 520px;
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.28);
    text-align: center;
}

.modal-box h2 {
    margin-top: 0;
    color: var(--navy);
    font-size: 30px;
}

.modal-box p {
    color: #475569;
    line-height: 1.6;
}

.modal-box button {
    width: auto;
    padding: 11px 24px;
    margin-top: 14px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--text-light);
    font-weight: 700;
}

.modal-box button:hover {
    background: var(--accent-hover);
}

/* =========================
   Portfolio Page
========================= */

.portfolio-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 190px);
    padding: 72px 48px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.portfolio-page::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -24px;
    background: url("../images/image2.94aeac3e827c.jpg") center / cover no-repeat;
    filter: blur(10px);
    transform: scale(1.05);
}

.portfolio-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(5, 10, 20, 0.72);
}

.portfolio-content {
    max-width: 720px;
}

.portfolio-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #93C5FD;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portfolio-content h1 {
    margin: 0 0 18px;
    font-size: 58px;
}

.portfolio-rule {
    width: 72px;
    height: 3px;
    margin: 0 auto 24px;
    background: var(--accent);
}

.portfolio-content p {
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.7;
}

/* Legacy About Page */

.about-hero {
    min-height: 360px;
    background:
        linear-gradient(rgba(11, 18, 32, 0.8), rgba(11, 18, 32, 0.8)),
        url("../images/image2.94aeac3e827c.jpg");
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 64px 48px;
}

.about-hero-content {
    max-width: 760px;
}

.about-hero h1 {
    font-size: 50px;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.about-hero p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
}

.about-section,
.founder-section {
    padding: 76px 48px;
    background: white;
}

.about-layout,
.founder-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 38px;
    align-items: start;
}

.about-layout {
    grid-template-columns: 1.4fr 0.8fr;
}

.founder-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 54px;
    align-items: center;
}

.about-section h2,
.founder-text h2 {
    margin-top: 0;
    color: var(--navy);
}

.about-section h2 {
    font-size: 36px;
}

.about-section p,
.founder-text p {
    color: #475569;
    line-height: 1.7;
    font-size: 16px;
}

.about-card,
.value-card {
    padding: 30px;
}

.about-card h3,
.value-card h3 {
    margin-top: 0;
    color: var(--navy);
}

.about-card ul {
    padding-left: 20px;
    line-height: 1.8;
    color: #475569;
}

.light-section {
    background: #F1F5F9;
}

.cta-section {
    padding: 76px 48px;
    background: var(--navy);
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-top: 0;
    color: var(--text-light);
}

.cta-section p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.founder-photo-wrap {
    background: linear-gradient(135deg, var(--navy), var(--steel-blue));
    padding: 14px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.founder-photo {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.founder-text .eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin-bottom: 12px;
}

.founder-text h2 {
    font-size: 38px;
    line-height: 1.15;
    margin: 0 0 22px;
    letter-spacing: -0.8px;
}

.founder-text .primary-button {
    margin-top: 12px;
}

/* =========================
   Login Pages
========================= */

.login-page,
.combined-login-page {
    min-height: calc(100vh - 72px);
    padding: 54px 48px;
    background:
        linear-gradient(rgba(11, 18, 32, 0.84), rgba(11, 18, 32, 0.84)),
        url("../images/image1.20c270eea32e.jpg");
    background-size: cover;
    background-position: center;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 34px;
}

.combined-login-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
    color: var(--text-light);
}

.combined-login-header h1 {
    font-size: 44px;
    margin: 0 0 10px;
}

.combined-login-header p {
    color: var(--text-muted);
    font-size: 18px;
    margin: 0;
}

.combined-login-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.combined-login-grid .login-card {
    max-width: none;
}

.customer-login-card {
    border-top: 5px solid var(--accent);
}

.admin-login-card {
    border-top: 5px solid var(--steel-blue);
}

.login-card h1,
.login-card h2 {
    margin-top: 0;
    color: var(--navy);
}

.login-card h2 {
    font-size: 28px;
}

.login-card p {
    color: var(--muted-dark);
    line-height: 1.5;
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--danger-border);
}

.login-card-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #EFF6FF;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-label {
    color: var(--steel-blue);
}

.login-card-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--light-border);
}

.login-card-footer p {
    margin: 0 0 8px;
    color: var(--muted-dark);
    font-size: 14px;
}

.login-card-footer a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.login-card-footer a:hover {
    text-decoration: underline;
}

.admin-login-button {
    background: var(--steel-blue);
}

.admin-login-button:hover {
    background: var(--navy);
}

/* =========================
   Admin / Customer Portal
========================= */

.admin-dashboard,
.portal-detail-section {
    padding: 38px 48px;
    background: var(--section-bg);
    min-height: calc(100vh - 180px);
    display: grid;
    gap: 18px;
}

.admin-feature-bar,
.admin-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    text-decoration: none;
    background: white;
    color: var(--navy);
    padding: 24px 28px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-feature-bar:hover,
.admin-file-row:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-strong);
}

.admin-feature-bar h2 {
    margin: 0 0 6px;
    color: var(--navy);
}

.admin-feature-bar p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.5;
}

.admin-feature-bar span,
.admin-file-row strong {
    background: var(--accent);
    color: white;
    padding: 9px 14px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 14px;
}

.admin-file-row span {
    font-weight: 700;
}

.disabled-feature {
    opacity: 0.65;
    cursor: not-allowed;
}

.disabled-feature:hover {
    transform: none;
    border-color: var(--light-border);
}

.disabled-feature span {
    background: #94A3B8;
}

.admin-empty {
    padding: 28px;
}

.admin-empty h2 {
    margin-top: 0;
    color: var(--navy);
}

.admin-empty p {
    color: var(--muted-dark);
}

.portal-card {
    padding: 28px;
}

.portal-card h2 {
    margin-top: 0;
    color: var(--navy);
}

.portal-admin-link-section {
    padding: 24px 48px 0;
    background: var(--section-bg);
    text-align: right;
}

.customer-record-section {
    padding-top: 0;
}

.customer-link-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--light-border);
}

.archive-action-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--light-border);
}

.archive-button {
    width: 100%;
    margin-top: 0;
    padding: 14px 28px;
    border-radius: 10px;
    background: #64748B;
    color: white;
    font-weight: 800;
}

.archive-button:hover {
    background: #475569;
}

.archived-row {
    opacity: 0.78;
}

.admin-return-button {
    margin-top: 0;
}

.chat-project-list {
    display: grid;
    gap: 14px;
}

.project-chat-row span {
    display: grid;
    gap: 5px;
    background: transparent;
    color: var(--navy);
    padding: 0;
    border-radius: 0;
    white-space: normal;
}

.project-chat-row span strong {
    background: transparent;
    color: var(--navy);
    padding: 0;
    border-radius: 0;
    font-size: 16px;
}

.project-chat-row small {
    color: var(--muted-dark);
    font-weight: 500;
}

/* =========================
   Chat
========================= */

.chat-box {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.chat-message {
    padding: 14px 16px;
    border-radius: 14px;
    max-width: 760px;
}

.chat-message.admin {
    background: #E0F2FE;
    border: 1px solid #BAE6FD;
}

.chat-message.customer {
    background: #F8FAFC;
    border: 1px solid var(--light-border);
}

.chat-message strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy);
}

.chat-message p {
    margin: 0 0 6px;
    color: #334155;
}

.chat-message span {
    font-size: 12px;
    color: var(--muted-dark);
}

.chat-form textarea {
    margin-bottom: 12px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1050px) {
    .quote-shell,
    .submission-content,
    .card-grid,
    .steps,
    .capabilities-inner,
    .about-layout,
    .value-grid,
    .founder-layout,
    .combined-login-grid,
    .quote-option-grid,
    .idea-request-layout {
        grid-template-columns: 1fr;
    }

    .capabilities-inner {
        gap: 42px;
    }

    .capabilities-visual {
        min-height: 440px;
    }

    .quote-shell,
    .submission-banner,
    .estimate-section {
        padding: 26px;
    }

    #viewer {
        height: 360px;
    }

    .founder-photo {
        height: 420px;
    }
}

@media (max-width: 800px) {
    .estimate-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .top-header {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 16px;
    }

    .top-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .site-wordmark {
        width: 210px;
        height: 70px;
    }

    .site-footer {
        padding: 38px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        justify-items: center;
        text-align: center;
    }

    .footer-contact {
        justify-items: center;
    }

    .hero {
        min-height: 520px;
        padding: 50px 26px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 17px;
    }

    .section,
    .capabilities-band,
    .project-band,
    .portfolio-page,
    .about-section,
    .founder-section,
    .cta-section,
    .quote-hero-bar,
    .quote-choice-page,
    .idea-request-section,
    .admin-hero,
    .admin-dashboard,
    .portal-detail-section,
    .login-page,
    .combined-login-page {
        padding: 28px 24px;
    }

    .capabilities-visual {
        min-height: 340px;
    }

    .capabilities-copy h2 {
        font-size: 34px;
    }

    .project-band h2 {
        font-size: 23px;
    }

    .project-band i {
        display: block;
        margin: 12px auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .quote-hero-bar h1,
    .admin-hero h1 {
        font-size: 30px;
    }

    .about-hero {
        padding: 54px 26px;
    }

    .about-hero h1 {
        font-size: 38px;
    }

    .about-hero p {
        font-size: 17px;
    }

    .portfolio-content h1 {
        font-size: 42px;
    }

    .founder-text h2 {
        font-size: 30px;
    }

    .founder-photo {
        height: 360px;
    }

    .combined-login-header h1 {
        font-size: 34px;
    }

    .admin-feature-bar,
    .admin-file-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-admin-link-section {
        padding: 20px 24px 0;
        text-align: center;
    }
}
/* =========================
   Login Form Visibility Fix
========================= */

.estimate-card form {
    display: block;
}

.estimate-card .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 24px;
}

.estimate-card .full-width {
    display: block;
    width: 100%;
}

.estimate-card label {
    display: block;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.estimate-card input[type="text"],
.estimate-card input[type="email"],
.estimate-card input[type="password"],
.estimate-card input[type="number"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--navy);
    font-size: 15px;
    opacity: 1;
    visibility: visible;
}

.estimate-card input::placeholder {
    color: #94A3B8;
}

.estimate-card #submitButton {
    margin-top: 28px;
}
