/* ClauseMesh — custom.css
   Template: 2130_waso_strategy (Bootstrap 5, FA4)
   Accent: #6366f1
*/

/* ===================== CSS Variables ===================== */
:root {
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --accent-light: #e0e7ff;
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface2: #f0f2f5;
    --text: #1e293b;
    --text-muted: #4a5568;
    --border: rgba(0,0,0,0.08);
    --radius: 12px;
    --gap: 28px;
    --nav-height: 70px;
    --bg-rgb: 248,249,250;
}

/* ===================== Base ===================== */
body {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text);
    background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--text);
}

p { color: var(--text); }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ===================== Logo ===================== */
.site-logo {
    height: 40px;
    width: auto;
}

/* ===================== Navigation ===================== */
.navbar {
    min-height: var(--nav-height);
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text) !important;
    padding: 8px 14px !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent) !important;
}

/* R77: Nav cleanup */
.nav-item {
    margin-bottom: 0 !important;
    background-image: none !important;
}
.site-logo {
    max-width: none !important;
}
.btn-accent, .cta-primary, .cta-secondary {
    white-space: nowrap;
}

/* Nav CTA */
.nav-cta .nav-link {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 7px 18px !important;
    margin-left: 8px;
}
.nav-cta .nav-link:hover {
    background: var(--accent-dark) !important;
}

/* Site header bar - hide or simplify */
.site-header {
    background: var(--accent-dark);
    padding: 8px 0;
    font-size: 14px;
}
.site-header .bi-clock,
.site-header .bi-telephone {
    font-size: 14px;
}

/* ===================== Buttons ===================== */
.btn-accent, .btn-primary-cm {
    display: inline-block;
    background: var(--accent);
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: background 0.2s, border-color 0.2s;
}
.btn-accent:hover, .btn-primary-cm:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff !important;
}

/* R-BTN: Outline on light bg */
.btn-outline-cm {
    display: inline-block;
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-outline-cm:hover {
    background: var(--accent-light);
    color: var(--accent-dark) !important;
}

/* R-BTN: Outline on dark bg */
.section-dark .btn-outline-cm,
.cta-dark .btn-outline-cm,
.hero-section .btn-outline-cm {
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.65) !important;
    background: transparent !important;
}
.section-dark .btn-outline-cm:hover,
.cta-dark .btn-outline-cm:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: #ffffff !important;
}

/* Template custom-btn override */
.custom-btn {
    background: var(--accent) !important;
    color: #ffffff !important;
    border: 2px solid var(--accent) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
}
.custom-btn:hover {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: #ffffff !important;
}

/* ===================== Hero Section ===================== */
.hero-section {
    min-height: 620px;
    background: #0f172a;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    position: relative;
}

.hero-section .section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px !important;
    margin-bottom: 16px;
}

.hero-section h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-section p.hero-lead {
    font-size: 20px;
    line-height: 1.75;
    color: #c8d6e5;
    max-width: 600px;
    margin-bottom: 36px;
}

.hero-btn-gap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* R79: Hero container transparent */
.header-thumb {
    background: transparent !important;
    border: none !important;
}

/* R89: Template overlay must not block clicks */
.tm-bg-overlay,
[class*="overlay"] {
    pointer-events: none !important;
}

/* Template carousel hero override */
.hero .carousel-caption {
    position: static;
    transform: none;
    text-align: left;
    padding: 0;
    color: #ffffff;
}
.hero .carousel-caption h1 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}
.hero .small-title {
    color: #c8d6e5;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px !important;
}

/* ===================== Section Labels ===================== */
.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px !important;
    margin-bottom: 12px;
}

/* ===================== Page Hero ===================== */
.page-hero {
    background: #0f172a;
    padding: 80px 0 60px;
    text-align: center;
}
.page-hero h1 {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}
.page-hero p {
    font-size: 20px;
    color: #c8d6e5;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================== Sections ===================== */
.section-padding {
    padding: 90px 0;
}

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

.section-white {
    background: var(--surface);
}

.section-dark {
    background: #0f172a;
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #e2e8f0;
}
.section-dark p,
.section-dark li {
    color: #c8d6e5;
}
.section-dark .text-muted {
    color: #8fabc4 !important;
}

.section-accent {
    background: var(--accent);
}

/* Section titles */
.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* ===================== Feature Cards ===================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 40px;
}

@media (max-width: 991px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* R87: Feature card internal layout uniform */
.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.12);
}

.feature-card .card-icon {
    display: block;
    height: 48px;
    margin-bottom: 16px;
}
.feature-card .card-icon .fa {
    font-size: 32px;
    color: var(--accent);
}

/* R81: Force accent color on all icons */
.feature-icon .fa, .card-icon .fa, .step-icon .fa {
    color: var(--accent) !important;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    flex: 1;
}

/* ===================== Steps / How It Works ===================== */
/* R80: CSS grid, NOT Bootstrap col-md-* */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-top: 40px;
}
.steps-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 40px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
}

.process-step .step-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.process-step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 991px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid-3 { grid-template-columns: 1fr; }
}

/* ===================== Blog Grid ===================== */
/* R78: Fixed 3-col CSS grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

@media (max-width: 991px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
}
.blog-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body time {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

/* R-IMG: Article image sizing */
.img-fluid,
.blog-hero-img,
.article-thumbnail img,
.article-thumbnail,
article img,
.post-content img,
.container-narrow img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px;
    margin: 24px 0;
}

/* ===================== Container Narrow ===================== */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

/* ===================== Team Cards ===================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 40px;
}
@media (max-width: 767px) {
    .team-grid { grid-template-columns: 1fr; }
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px 28px;
    height: 100%;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
    border: 3px solid var(--accent-light);
}

.team-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.team-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px !important;
    margin-bottom: 14px;
}

.team-bio {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

/* ===================== Pricing ===================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    align-items: start;
    margin-top: 40px;
}
@media (max-width: 767px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 12px 40px rgba(99,102,241,0.15);
    transform: scale(1.03);
}

.pricing-card .badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px !important;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.pricing-card .price {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-card .price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .price-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}
.pricing-card .features li {
    font-size: 15px;
    color: var(--text-muted);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pricing-card .features li::before {
    content: '\f00c';
    font-family: FontAwesome;
    color: var(--accent);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===================== FAQ Accordion ===================== */
.faq-section {
    padding: 80px 0;
    background: var(--bg);
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    padding: 18px 24px;
}
.accordion-button:not(.collapsed) {
    background: var(--accent-light);
    color: var(--accent-dark);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent);
}

.accordion-body {
    font-size: 16px;
    color: var(--text-muted);
    background: var(--surface);
    padding: 16px 24px 20px;
    line-height: 1.75;
}

/* ===================== Contact ===================== */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 17px;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.contact-list .fa {
    color: var(--accent);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-form .form-control {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text);
    background: var(--surface);
    margin-bottom: 16px;
}
.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* ===================== Stats / Counter ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    text-align: center;
    margin-top: 40px;
}
@media (max-width: 767px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-item .stat-number {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: block;
}
.stat-item .stat-label {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* ===================== Values Cards ===================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 40px;
}
@media (max-width: 767px) {
    .values-grid { grid-template-columns: 1fr; }
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.value-card .fa {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}
.value-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}
.value-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

/* ===================== CTA Section ===================== */
.cta-section {
    background: #0f172a;
    padding: 90px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 38px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 18px;
    color: #c8d6e5;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn-gap {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-section .btn-outline-cm {
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    background: transparent !important;
}
.cta-section .btn-outline-cm:hover {
    background: rgba(255,255,255,0.1) !important;
}

/* ===================== Footer ===================== */
.site-footer-custom {
    background: #0a0e1a;
    padding: 70px 0 30px;
    color: #c8d6e5;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 15px;
    color: #8fabc4;
    line-height: 1.7;
}
.footer-address {
    font-size: 14px;
    color: #8fabc4;
    margin-top: 12px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px !important;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    font-size: 15px;
    color: #8fabc4;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 14px;
    color: #8fabc4;
    margin: 0;
}

/* ===================== Cookie Banner ===================== */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 680px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    z-index: 9999;
    padding: 20px 24px;
}
.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.cookie-text p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
#cookie-decline {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}
#cookie-accept {
    background: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
}
#cookie-accept:hover { background: var(--accent-dark); }

/* ===================== R99: Typography Contrast ===================== */
.text-muted { color: var(--text-muted) !important; }

/* ===================== Utility ===================== */
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-dark-custom { background: #0f172a; }

/* R88: Text + image in separate containers */
.image-section {
    padding: 0;
}
.image-section .container img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ===================== Responsive Typography ===================== */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 40px; }
    .section-title { font-size: 32px; }
    .page-hero h1 { font-size: 34px; }
    body { font-size: 16px; }
}
@media (max-width: 480px) {
    .hero-section h1 { font-size: 34px; }
    .section-title { font-size: 28px; }
}

/* ===================== Template overrides ===================== */
/* Ensure template small-title class doesn't conflict */
.small-title {
    font-size: 12px;
    color: var(--text-muted);
}

/* Template about-thumb override */
.about-thumb {
    border-radius: var(--radius);
}

/* Template waso yellow accent override to our indigo */
.text-warning { color: var(--accent) !important; }
.bg-warning { background: var(--accent) !important; }
.custom-bg-primary { background: var(--accent-dark) !important; }

/* ===================== Navbar scroll state ===================== */
.header.active,
.navbar.sticky,
.navbar.is-sticky {
    background-color: rgba(255,255,255,0.98) !important;
}
.header.active .navbar-nav > li > a,
.navbar.sticky .nav-link {
    color: #1e293b !important;
}
