/* ============================================
   PORTAL CSS - Base Styles
   ============================================ */

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

:root {
    --color-primary: #2563eb;
    --color-secondary: #64748b;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-width: 1200px;
    --spacing: 1rem;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: block;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

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

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    background: var(--color-bg-light);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-text-light);
}

.breadcrumbs li:last-child {
    color: var(--color-text);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    min-height: 60vh;
    padding: 3rem 0;
}

/* ============================================
   StreamField Content
   ============================================ */
.streamfield-content {
    max-width: 800px;
}

.streamfield-content h1,
.streamfield-content h2,
.streamfield-content h3,
.streamfield-content h4 {
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.streamfield-content h1 { font-size: 2.5rem; }
.streamfield-content h2 { font-size: 2rem; }
.streamfield-content h3 { font-size: 1.5rem; }
.streamfield-content h4 { font-size: 1.25rem; }

.streamfield-content p {
    margin-bottom: 1.5rem;
}

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

.streamfield-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.streamfield-content img {
    margin: 2rem 0;
    border-radius: 8px;
}

/* ============================================
   Article List (Section Page)
   ============================================ */
.section-header {
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-text-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-card .article-image img {
    width: 100%;
    display: block;
}

.article-card .article-content {
    padding: 1.5rem;
}

.article-card .article-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-card .article-title a {
    color: var(--color-text);
}

.article-card .article-lead {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ============================================
   Article Page
   ============================================ */
.article-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
}

.article-category {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-lead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    border-radius: 50%;
}

.article-cover-image {
    margin: 2rem 0;
}

.article-body {
    margin-bottom: 3rem;
}

.article-tags {
    margin: 2rem 0;
}

.tag {
    display: inline-block;
    background: var(--color-bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.author-bio {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.author-info {
    display: flex;
    gap: 1.5rem;
}

.author-avatar-large {
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    margin: 3rem 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.pagination a,
.pagination span {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.pagination .current span {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-content h3,
.footer-content h4 {
    margin-bottom: 1rem;
}

.footer-content address {
    font-style: normal;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--color-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--color-text-light);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   LANDING PAGE BLOCKS - Animations & Styles
   ============================================ */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* Common Section Styles */
section {
    padding: 5rem 0;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    text-decoration: none;
}

.btn-white {
    background: white;
    color: var(--color-primary);
}

.btn-white:hover {
    background: var(--color-bg-light);
    text-decoration: none;
}

.btn-outline-white {
    background: transparent;
    border-color: white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--color-primary);
    text-decoration: none;
}

/* Hero Block */
.hero-block {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subheading {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust-line {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Features Block */
.features-block {
    background: var(--color-bg-light);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Problem-Solution Block */
.problem-solution-block {
    background: white;
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ps-column-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ps-item {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
}

.ps-problems .ps-item {
    border-left-color: #ef4444;
}

.ps-solutions .ps-item {
    border-left-color: #10b981;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
}

.service-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.service-description ul {
    list-style: none;
    padding-left: 0;
}

.service-description li::before {
    content: "✓ ";
    color: var(--color-primary);
    font-weight: bold;
}

/* Testimonials Block */
.testimonials-block {
    background: var(--color-bg-light);
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--color-text);
}

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

.author-photo img {
    border-radius: 50%;
}

.author-name {
    display: block;
    font-weight: 600;
}

.author-title {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Process Block */
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.process-arrow {
    font-size: 2rem;
    color: var(--color-primary);
    align-self: center;
}

/* Pricing Block */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card-highlighted {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-bg-light);
}

/* FAQ Block */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--color-bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Lead Form Block */
.lead-form-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.lead-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.lead-form-content {
    text-align: center;
    margin-bottom: 2rem;
}

.lead-form-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lead-form-description {
    font-size: 1.125rem;
    opacity: 0.95;
}

.lead-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
}

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

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 1rem;
}

/* CTA Section Block */
.cta-section-block {
    text-align: center;
    color: white;
    padding: 6rem 0;
}

.cta-bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-bg-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.cta-bg-light {
    background: var(--color-bg-light);
    color: var(--color-text);
}

.cta-heading {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subheading {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-footer-text {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .hero-subheading {
        font-size: 1.125rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .ps-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-heading {
        font-size: 2rem;
    }
}

