/* ============================================
   BarnOwl - Construction PM Landing Page CSS
   GEO/AEO/XSO Optimized
   ============================================ */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa;
    color: #2c3e50;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER & NAVIGATION */
header {
    background: #08111f;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #c9a84c;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #c9a84c;
}

.cta-button {
    background-color: #c9a84c;
    color: #08111f !important;
    padding: 0.6rem 1.1rem !important;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #e8c97a;
    transform: translateY(-1px);
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.primary-cta {
    background-color: #c9a84c;
    color: #08111f;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.primary-cta:hover {
    background-color: #e8c97a;
    transform: translateY(-2px);
    color: #08111f;
}

.primary-cta.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.secondary-cta {
    background-color: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
}

.secondary-cta:hover {
    background-color: white;
    color: #2c3e50;
}

.secondary-cta.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #c9a84c;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* PROBLEM SECTION */
.problem-section {
    background-color: #fff;
    padding: 4rem 2rem;
}

.problem-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.problem-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.problem-quote {
    background-color: #ecf0f1;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid #3498db;
    max-width: 800px;
    margin: 0 auto;
}

.problem-quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.problem-quote cite {
    color: #7f8c8d;
    font-weight: bold;
    display: block;
    text-align: right;
}

/* SOLUTION SECTION */
.solution-section {
    background-color: #fff;
    padding: 4rem 2rem;
    border-top: 1px solid #ecf0f1;
}

.solution-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.solution-definition {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid #27ae60;
}

.solution-definition h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #27ae60;
}

.solution-definition p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.solution-definition strong {
    color: #2c3e50;
}

.solution-visual {
    max-width: 800px;
    margin: 0 auto;
}

.architecture-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

.arch-box {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    text-align: center;
    min-width: 150px;
    font-weight: 500;
}

.arch-box.input {
    background-color: #27ae60;
}

.arch-box.process {
    background-color: #3498db;
}

.arch-box.output {
    background-color: #f39c12;
}

.arch-box.blocked {
    background-color: #e74c3c;
    opacity: 0.6;
}

.arch-arrow {
    font-size: 1.5rem;
    color: #c9a84c;
    font-weight: bold;
}

.arch-cross {
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: bold;
}

.arch-label {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
}

/* FEATURES SECTION */
.features-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.feature-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    color: #2c3e50;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.expert-insight {
    background-color: #fff9e6;
    padding: 1rem;
    border-left: 3px solid #f39c12;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

.expert-insight strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.3rem;
}

/* USE CASES SECTION */
.usecases-section {
    background-color: #fff;
    padding: 4rem 2rem;
    border-top: 1px solid #ecf0f1;
}

.usecases-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.usecase-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid #9b59b6;
    transition: transform 0.3s;
}

.usecase-card:hover {
    transform: translateY(-3px);
}

.usecase-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.usecase-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.usecase-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* COMPARISON SECTION */
.comparison-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.comparison-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    color: #555;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.comparison-table th {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
    text-align: center;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tr:hover {
    background-color: #ecf0f1;
}

.comparison-table td strong {
    color: #2c3e50;
}

.comparison-table .check {
    color: #27ae60;
    font-weight: bold;
}

.comparison-table .cross {
    color: #e74c3c;
    font-weight: bold;
}

.comparison-table .partial {
    color: #f39c12;
    font-weight: bold;
}

.comparison-verdict {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid #27ae60;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comparison-verdict h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #27ae60;
}

.comparison-verdict p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.comparison-verdict strong {
    color: #2c3e50;
}

/* ROI SECTION */
.roi-section {
    background-color: #fff;
    padding: 4rem 2rem;
    border-top: 1px solid #ecf0f1;
}

.roi-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.roi-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.roi-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.roi-formula {
    margin-bottom: 1.5rem;
}

.formula-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.formula {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.formula strong {
    color: #27ae60;
    font-size: 1.1rem;
}

.roi-highlight {
    background-color: #27ae60;
    color: white;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    margin-top: 1.5rem;
}

.roi-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.roi-unit {
    font-size: 0.95rem;
    opacity: 0.9;
}

.roi-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.roi-stat:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #555;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
}

.roi-note {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 1rem;
}

/* EXPERT INSIGHTS SECTION */
.insights-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

.insights-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.insight-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
}

.insight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.insight-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-card strong {
    color: #2c3e50;
}

.insight-source {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
    border-top: 1px solid #ecf0f1;
    padding-top: 0.75rem;
    margin-top: 1rem;
}

/* IMPLEMENTATION SECTION */
.implementation-section {
    background-color: #fff;
    padding: 4rem 2rem;
    border-top: 1px solid #ecf0f1;
}

.implementation-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.implementation-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.week {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.week-header {
    background-color: #3498db;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.week-number {
    background-color: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.week-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.week-tasks {
    list-style: none;
    padding: 1.5rem;
}

.week-tasks li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #ecf0f1;
}

.week-tasks li:last-child {
    border-bottom: none;
}

.week-tasks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* FAQ SECTION */
.faq-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.faq-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.faq-item strong {
    color: #2c3e50;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #08111f 0%, #112240 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cta-section .primary-cta {
    background-color: #c9a84c;
    color: #08111f;
}

.cta-section .primary-cta:hover {
    background-color: #e8c97a;
}

.cta-section .secondary-cta {
    border-color: white;
    color: white;
}

.cta-section .secondary-cta:hover {
    background-color: white;
    color: #08111f;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* RELATED RESOURCES SECTION */
.related-section {
    background-color: #fff;
    padding: 4rem 2rem;
    border-top: 1px solid #ecf0f1;
}

.related-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #ecf0f1;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: inherit;
}

.related-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.related-card p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
}

/* FOOTER */
footer {
    background-color: #08111f;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: #7a8ba8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c9a84c;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #7a8ba8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #c9a84c;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #c9a84c;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #c9a84c;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-bottom a {
    color: #c9a84c;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-cta, .secondary-cta {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    header .container {
        justify-content: center;
    }
    
    .problem-grid,
    .features-grid,
    .usecase-grid,
    .roi-grid,
    .insights-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .roi-number {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .primary-cta.large,
    .secondary-cta.large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* FOCUS STATES */
a:focus,
button:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    header,
    footer,
    .cta-section,
    .hero-cta {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
    }
}