/* ============================================
   HTMLforme - Base Styles
   ============================================ */

/* ============================================
   ADDITIVE COLOR VARIABLES (NON-DESTRUCTIVE)
   ============================================ */
:root {
    --brand-primary: #2563eb;
    --brand-primary-dark: #1e40af;

    --accent-copper: #b87333;
    --accent-copper-soft: #f6ede4;

    --bg-soft-blue: #f5f8fc;
    --text-muted: #64748b;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f8f9fa;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
    margin-top: 0;
    line-height: 1.3;
    color: #1a1a2e;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
    margin: 0 0 1rem 0;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* ============================================
   Brand / Logo
   ============================================ */

.brand-logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.brand-html {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #2563eb;
}

.brand-script {
    font-family: 'Pacifico', cursive;
    color: #b87333;
}

.footer-logo {
    font-size: 1rem;
}

.code {
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Header
   ============================================ */

header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Navigation */
.nav {
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2563eb;
}

.nav-menu a.active {
    border-bottom: 2px solid var(--accent-copper);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
        flex-direction: column;
        gap: 0;
        min-width: 200px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   Main Content
   ============================================ */

main {
    min-height: calc(100vh - 200px);
}

.page-section {
    padding: 3rem 0;
}

.page-section.alt {
    background: var(--bg-soft-blue);
}

/* ============================================
   Cards
   ============================================ */

.card,
.page-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-card h1:first-child,
.page-card h2:first-child,
.page-card h3:first-child {
    margin-top: 0;
}

.page-card:last-child {
    margin-bottom: 0;
}

/* USP grid cards should not be constrained */
.usp-item.page-card {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    margin-bottom: 3rem;
    padding: 4rem 3rem;
    border-radius: 16px;
    background:
        linear-gradient(
            rgba(10, 25, 60, 0.75),
            rgba(10, 25, 60, 0.75)
        ),
        url('/assets/hero-blueprint.jpg') center / cover no-repeat;
    background-color: #1a1a2e;
    color: #ffffff;
}

.hero-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-section h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent-copper);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.hero-intro {
    max-width: 820px;
    font-size: 1.125rem;
    line-height: 1.7;
}

.hero-intro .brand-html {
    color: #60a5fa;
}

.hero-intro .brand-script {
    color: #b87333;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-cta .cta-button {
        text-align: center;
    }
}

/* ============================================
   About Hero (Inner Page)
   ============================================ */

.about-hero {
    background:
        linear-gradient(
            rgba(10, 25, 60, 0.8),
            rgba(10, 25, 60, 0.8)
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.03) 40px,
            rgba(255, 255, 255, 0.03) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.03) 40px,
            rgba(255, 255, 255, 0.03) 41px
        );
    background-color: #1a1a2e;
    padding: 4rem 0;
    margin-bottom: 0;
}

.about-hero h1 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
    max-width: 600px;
}

.about-hero h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent-copper);
    margin-top: 1rem;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .about-hero {
        padding: 3rem 0;
    }

    .about-hero h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Pricing Signal (Homepage)
   ============================================ */

.pricing-signal {
    margin-bottom: 3rem;
}

.pricing-signal .card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.pricing-signal h3 {
    color: #0369a1;
}

.section-tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
/* ============================================
   Pricing Tiers (Services Page)
   ============================================ */

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-tier {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.pricing-tier h3 {
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.pricing-tier .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.pricing-tier ul {
    margin-top: 1rem;
    padding-left: 1.25rem;
}

.pricing-tier li {
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
}

.pricing-note {
    font-size: 0.9375rem;
    color: #64748b;
    margin-top: 1.5rem;
}

/* ============================================
   Back-End Services Grid
   ============================================ */

.backend-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.backend-category {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
}

.backend-category h3 {
    font-size: 1rem;
    color: #1e40af;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-copper);
}

.backend-category ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.backend-category li {
    font-size: 0.9375rem;
    color: #374151;
    padding: 0.375rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.backend-category li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .backend-services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .backend-services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   USP Grid (Differentiators)
   ============================================ */

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.usp-item {
    margin-bottom: 0;
}

.usp-item h4 {
    color: #1e40af;
}

/* ============================================
   Fit Assessment Grid
   ============================================ */

.fit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.fit-grid h4 {
    margin-bottom: 0.75rem;
}

/* ============================================
   Process Steps
   ============================================ */

.process-card {
    text-align: center;
}

.process-card h3 {
    margin-bottom: 2rem;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(50% + 30px);
    width: calc(100% - 20px);
    height: 2px;
    background: #e5e7eb;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.step-text {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9375rem;
}

@media (max-width: 600px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .process-step {
        flex-direction: row;
        max-width: none;
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* ============================================
   Project Cards (Portfolio)
   ============================================ */

.project-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.project-card.page-card {
    position: relative;
}

.project-image-wrapper {
    flex-shrink: 0;
}

.project-preview {
    width: 100%;
    max-width: 320px;
    height: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    object-fit: cover;
}

.project-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.project-content {
    display: flex;
    flex-direction: column;
}

.project-label {
    display: inline-block;
    background: var(--accent-copper-soft);
    color: var(--accent-copper);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.project-type {
    color: #64748b;
    font-size: 0.9375rem;
    font-style: italic;
    margin: 0.25rem 0 0.75rem;
}

.project-details {
    list-style: none;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.project-details li {
    margin-bottom: 0.375rem;
}

.project-card h2 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-preview {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   CTA Buttons
   ============================================ */

.cta-button,
.btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border: 2px solid transparent;
}

.cta-button:hover,
.btn-primary:hover {
    background: #1d4ed8;
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-button-secondary {
    background: transparent;
    color: var(--accent-copper);
    border: 2px solid var(--accent-copper);
}

.cta-button-secondary:hover {
    background: var(--accent-copper-soft);
}

.cta-section {
    text-align: center;
    padding: 3rem 0;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form-card {
    max-width: 640px;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.required {
    color: #dc2626;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: #1a1a2e;
    color: #9ca3af;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    text-align: center;
}

footer .brand-html {
    color: #60a5fa;
}

footer .brand-script {
    color: #fff;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .card,
    .page-card {
        padding: 1.5rem;
    }

    .pricing-tiers {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button,
    .btn-primary {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .card,
    .page-card {
        padding: 1.25rem;
    }
}

/* ============================================
   Credibility Section
   ============================================ */

.credibility-section {
    text-align: center;
    padding: 2rem 0;
}

.credibility-section p {
    color: #64748b;
    font-size: 1.125rem;
}

/* ============================================
   Inner Page Hero (legacy support)
   ============================================ */

.hero.inner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.hero.inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
}

.hero-overlay h1 {
    color: #fff;
    margin: 0;
}

.hero-section h1 {
    color: #ffffff;
}
/* ============================================
   About Hero (Inner Page)
   ============================================ */
.about-hero,
.contact-hero,
.blog-hero {
    background:
        linear-gradient(
            rgba(10, 25, 60, 0.8),
            rgba(10, 25, 60, 0.8)
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.03) 40px,
            rgba(255, 255, 255, 0.03) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.03) 40px,
            rgba(255, 255, 255, 0.03) 41px
        );
    background-color: #1a1a2e;
    padding: 4rem 0;
    margin-bottom: 0;
}

.about-hero h1,
.contact-hero h1,
.blog-hero h1 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
    max-width: 600px;
}

.about-hero h1::after,
.contact-hero h1::after,
.blog-hero h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent-copper);
    margin-top: 1rem;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .about-hero,
    .contact-hero,
    .blog-hero {
        padding: 3rem 0;
    }
    .about-hero h1,
    .contact-hero h1,
    .blog-hero h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Audit Page Additions
   Add these to your style.css
   ============================================ */

/* Audit Grid Layout */
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .audit-grid {
        grid-template-columns: 1fr;
    }
}

/* Audit Checklist */
.audit-checklist {
    list-style: none;
    padding-left: 0;
}

.audit-checklist li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.audit-checklist li:last-child {
    border-bottom: none;
}

/* Audit Note Box */
.audit-note {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--brand-primary);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.audit-note p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.form-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.form-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Button disabled state */
.cta-button:disabled,
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog List (Index Page) */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.blog-card h2 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.blog-card h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--brand-primary);
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-date {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-copper);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.read-more {
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Post (Single Article) */
.blog-post .page-card:first-child {
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.blog-post .blog-content {
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.blog-post .page-card:last-child {
    border-radius: 0 0 12px 12px;
    margin-top: 0;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-meta a {
    color: var(--brand-primary);
    text-decoration: none;
}

.blog-meta a:hover {
    text-decoration: underline;
}

/* Blog Content Styling */
.blog-content {
    max-width: 720px;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.blog-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1e40af;
}

.blog-content p {
    margin-bottom: 1.25rem;
    color: #374151;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.blog-content li {
    margin-bottom: 0.625rem;
    color: #374151;
}

.blog-content strong {
    color: #1a1a2e;
}

/* Blog CTA Box */
.blog-cta {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2.5rem;
}

.blog-cta p {
    margin: 0;
    color: #0369a1;
}

.blog-cta a {
    color: var(--brand-primary);
    font-weight: 600;
}

/* ============================================
   Owners Not Renters Section
   ============================================ */

.owners-section {
    text-align: center;
    padding: 3rem 0;
}

.owners-section h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.owners-tagline {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.owners-stat {
    margin-top: 2rem;
    font-size: 1rem;
    color: #6b7280;
}

.owners-stat strong {
    color: var(--accent-copper);
    font-size: 1.25rem;
}

.client-favicons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-favicons img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.client-favicons img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .client-favicons {
        gap: 1.5rem;
    }

    .client-favicons img {
        width: 40px;
        height: 40px;
    }
}

/* Visually Hidden (for accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer Links */
.footer-links {
    margin-top: 0.75rem !important;
    font-size: 0.875rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }

    .blog-content h2 {
        margin-top: 2rem;
    }

    .blog-content h3 {
        margin-top: 1.5rem;
    }
}

/* ============================================
   Live Chat Widget
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: inherit;
}

/* Chat Toggle Button */
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.chat-toggle .chat-close-icon {
    display: none;
}

.chat-widget.open .chat-toggle .chat-icon {
    display: none;
}

.chat-widget.open .chat-toggle .chat-close-icon {
    display: block;
}

/* Unread Badge */
.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.chat-badge:empty {
    display: none;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 48px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.open .chat-window {
    display: flex;
}

/* Chat Header */
.chat-header {
    background: var(--brand-primary);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.chat-header-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.chat-header-info p {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.9;
}

/* Chat Body */
.chat-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8f9fa;
}

.chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.visitor {
    background: var(--brand-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.admin {
    background: #fff;
    color: #1a1a2e;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-message-time {
    font-size: 0.6875rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Chat Welcome Message */
.chat-welcome {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
}

.chat-welcome p {
    margin: 0.5rem 0;
    font-size: 0.9375rem;
}

/* Chat Input Area */
.chat-input-area {
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--brand-primary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--brand-primary-dark);
}

.chat-send-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Chat Pre-chat Form */
.chat-prechat {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
}

.chat-prechat h4 {
    margin: 0;
    font-size: 1rem;
    color: #1a1a2e;
}

.chat-prechat .form-group {
    margin-bottom: 0;
}

.chat-prechat .form-group label {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.chat-prechat .form-group input {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
}

.chat-prechat .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

/* Chat Mobile adjustments */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        bottom: 68px;
    }

    .chat-toggle {
        width: 54px;
        height: 54px;
    }
}

/* ============================================
   Email Capture Modal
   ============================================ */

.resource-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.resource-modal-overlay.open {
    display: flex;
}

.resource-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    position: relative;
}

.resource-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.resource-modal-close:hover {
    background: #f3f4f6;
}

.resource-modal-close svg {
    width: 20px;
    height: 20px;
    fill: #6b7280;
}

.resource-modal-header {
    padding: 2rem 2rem 0;
    text-align: center;
}

.resource-modal-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #1a1a2e;
}

.resource-modal-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.resource-modal-body {
    padding: 1.5rem 2rem 2rem;
}

.resource-modal-body .form-group {
    margin-bottom: 1.25rem;
}

.resource-modal-body .cta-button {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.resource-modal-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

.resource-modal-footer p {
    margin: 0;
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* Resource Preview */
.resource-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-soft-blue);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.resource-preview-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-preview-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.resource-preview-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #1a1a2e;
}

.resource-preview-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Success State */
.resource-modal-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.resource-modal-success.show {
    display: block;
}

.resource-modal-form.hide {
    display: none;
}

.resource-modal-success svg {
    width: 64px;
    height: 64px;
    fill: #22c55e;
    margin-bottom: 1rem;
}

.resource-modal-success h3 {
    margin: 0 0 0.5rem;
    color: #1a1a2e;
}

.resource-modal-success p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

/* Modal Mobile adjustments */
@media (max-width: 480px) {
    .resource-modal-overlay {
        padding: 16px;
    }

    .resource-modal-header,
    .resource-modal-body,
    .resource-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ============================================
   Founder Section
   ============================================ */

.founder-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.founder-photo {
    width: 220px;
    height: 320px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.founder-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.founder-info h2 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.founder-title {
    color: var(--accent-copper);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.founder-info p {
    color: #374151;
}

@media (max-width: 600px) {
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-photo,
    .founder-photo-placeholder {
        margin: 0 auto 1rem;
    }

    .founder-info h2 {
        margin-bottom: 0.25rem;
    }
}
