/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1f3a5f;
    --secondary-color: #2f5d50;
    --accent-color: #CE8C8C;
    --text-color: #1A1A1A;
    --light-bg: #E6E6E6;
    --white: #ffffff;
    --gray: #6A6A6A;
    --border-color: #dee2e6;
    --charcoal: #1A1A1A;
    --soft-gray: #E6E6E6;
    --slate-gray: #6A6A6A;
}

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;600;700&family=Segoe+UI:wght@400;500;600&display=swap');

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 2000;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.skip-link:focus {
    top: 10px;
}

h1, h2 {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    color: var(--primary-color);
}

h3 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Prefers reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: padding 0.25s ease, box-shadow 0.25s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.25s ease;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
    transition: font-size 0.25s ease;
}

header.is-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

header.is-scrolled .logo img {
    height: 38px;
}

header.is-scrolled .logo h1 {
    font-size: 1.2rem;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 0.3rem;
    text-decoration-thickness: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.22;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-copy h2,
.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-copy p,
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.hero-note {
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
}

.hero-visual-placeholder {
    min-height: 280px;
    border-color: rgba(255, 255, 255, 0.42);
    color: var(--white);
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.12) 14px,
        rgba(255, 255, 255, 0.08) 14px,
        rgba(255, 255, 255, 0.08) 28px
    );
}

.hero-visual-placeholder img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button.btn-primary {
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

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

.feature-card {
    background-color: var(--soft-gray);
    padding: 24px 32px;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.page-header p {
    font-size: 1.1rem;
}

/* Content Sections */
.content {
    padding: 4rem 2rem;
}

.about-section {
    margin-bottom: 3rem;
}

.section-intro {
    max-width: 820px;
    margin-bottom: 2rem;
}

.about-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.about-section li {
    margin-bottom: 0.75rem;
}

.author-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.author-section p {
    margin-bottom: 0.8rem;
}

.blog-mapping-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.blog-mapping-table th,
.blog-mapping-table td {
    border: 1px solid var(--border-color);
    padding: 0.7rem;
    text-align: left;
    vertical-align: top;
}

.blog-mapping-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.content-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 14px;
}

.callout {
    margin: 1.25rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--accent-color);
    background-color: var(--soft-gray);
    border-radius: 10px;
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
}

.trust-strip {
    margin: 2rem 0;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: linear-gradient(90deg, #f3f6fa 0%, #edf3f2 100%);
}

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

.kpi-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

.kpi-card strong {
    display: block;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.visual-placeholder {
    border: 2px dashed #aac0d4;
    border-radius: 14px;
    min-height: 180px;
    background: repeating-linear-gradient(
        45deg,
        #f6f9fc,
        #f6f9fc 14px,
        #eef4fa 14px,
        #eef4fa 28px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
}

.list-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.list-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--white);
    padding: 1rem 1.1rem;
}

.list-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.45rem;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.98rem;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid var(--border-color);
    padding: 0.7rem;
    text-align: left;
    vertical-align: top;
}

.matrix-table th {
    background-color: #f2f5f8;
    color: var(--primary-color);
}

.legacy-post-shell {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    background-color: var(--white);
}

.legacy-post-content {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.legacy-post-content h1,
.legacy-post-content h2,
.legacy-post-content h3,
.legacy-post-content h4,
.legacy-post-content h5,
.legacy-post-content h6 {
    color: var(--primary-color) !important;
    margin-top: 1.4rem;
    margin-bottom: 0.85rem;
}

.legacy-post-content h1 span,
.legacy-post-content h2 span,
.legacy-post-content h3 span,
.legacy-post-content h4 span,
.legacy-post-content h5 span,
.legacy-post-content h6 span {
    color: inherit !important;
}

.legacy-post-content table,
.legacy-post-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.2rem 0 !important;
    border: 1px solid var(--border-color) !important;
}

.legacy-post-content td,
.legacy-post-content th,
.legacy-post-table td,
.legacy-post-table th {
    border: 1px solid var(--border-color) !important;
    padding: 0.65rem !important;
    text-align: left;
    vertical-align: top;
    color: var(--text-color) !important;
    background: var(--white) !important;
}

.legacy-post-content tr.legacy-header-row td,
.legacy-post-content tr.legacy-header-row th,
.legacy-post-table tr.legacy-header-row td,
.legacy-post-table tr.legacy-header-row th {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    font-weight: 700;
}

.legacy-post-content img {
    max-width: 100%;
    height: auto;
}

.roadmap {
    border-left: 3px solid var(--primary-color);
    margin: 1rem 0;
    padding-left: 1rem;
}

.roadmap-step {
    margin-bottom: 1rem;
}

.roadmap-step h4 {
    color: var(--primary-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 24px 32px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form,
.contact-info {
    background-color: var(--white);
}

.contact-form h3,
.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    padding: 24px 32px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: box-shadow 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.tag-chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.thought-tools {
    margin-bottom: 2rem;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: var(--soft-gray);
}

.thought-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
}

.thought-tools input,
.thought-tools select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
}

.thought-tools input:focus,
.thought-tools select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.thought-shelf {
    margin-bottom: 1.5rem;
}

.featured-card {
    border-left: 4px solid var(--accent-color);
}

.featured-label {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--secondary-color);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

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

.pillar-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
}

.pillar-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.back-to-blog-wrap {
    margin-top: 1.5rem;
    text-align: left;
}

.back-to-blog-btn {
    display: inline-block;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.back-to-blog-btn:hover,
.back-to-blog-btn:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    text-decoration: none;
}

.hero .read-more {
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-links {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 0.35rem;
}

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

.form-note {
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.legal-links {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.legal-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 0.35rem;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-copy h2,
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy h2,
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-copy p,
    .hero-content p {
        font-size: 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .thought-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 2rem 1rem;
    }
    
    .content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .hero-copy h2,
    .hero-content h2 {
        font-size: 1.25rem;
    }

    .hero-visual-placeholder {
        min-height: 210px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .service-card,
    .blog-card {
        padding: 16px 20px;
    }
}
