/* ============================================================
   ABTEDO WordPress Theme — Main Stylesheet
   Primary:  #3abdc4 | Hover:  #60ccaf
   Dark:     #0a0f29 | Text:   #172242
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #111827;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Accessibility ---------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #3abdc4;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 0.25rem 0.25rem;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---- Layout ---------------------------------------------- */
.container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ---- Navigation ------------------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.nav-logo a { display: flex; align-items: center; }
.nav-logo img { height: 56px; width: auto; }

/* Custom logo from WordPress */
.nav-logo .custom-logo-link img { height: 56px; width: auto; }

/* Primary nav list */
.nav-links { display: none; }

@media (min-width: 768px) {
    .nav-links { display: block; }
    .nav-menu-list {
        display: flex;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .nav-menu-list li a {
        color: #4b5563;
        font-size: 1.125rem;
        font-weight: 500;
        transition: color 0.2s;
        display: block;
    }
    .nav-menu-list li a:hover,
    .nav-menu-list li.current-menu-item > a,
    .nav-menu-list li.current_page_item > a {
        color: #3abdc4;
    }
}

/* Mobile nav open state */
.nav-links.is-open {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #f3f4f6;
}

.nav-links.is-open .nav-menu-list {
    flex-direction: column;
    gap: 0;
}

.nav-links.is-open .nav-menu-list li a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Mobile toggle button */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #374151;
    border-radius: 0.375rem;
    transition: background 0.2s;
}
.mobile-menu-toggle:hover { background: #f3f4f6; }

@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
}

/* ---- Buttons --------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: 2px solid #3abdc4;
    outline-offset: 2px;
}

.btn-primary { background: #3abdc4; color: #ffffff; }
.btn-primary:hover { background: #60ccaf; color: #ffffff; }

.btn-white { background: #ffffff; color: #3abdc4; }
.btn-white:hover { background: #f3f4f6; color: #3abdc4; }

.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* ---- Hero Section ---------------------------------------- */
.hero {
    position: relative;
    background: #0a0f29;
    min-height: 85vh;
    overflow: hidden;
}

.hero-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-animation svg { width: 100%; height: 100%; }

.hero-content {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-text { max-width: 42rem; }

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.hero h1 .accent { color: #3abdc4; }

.hero p {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 42rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #3abdc4;
    margin-bottom: 0.25rem;
}
.stat-label { color: #9ca3af; font-size: 0.9375rem; }

/* ---- Section Commons ------------------------------------- */
.section { padding: 5rem 0; }
.section-sm { padding: 4rem 0; }

.section-dark    { background: #0a0f29; }
.section-white   { background: #ffffff; }
.section-gray    { background: #f3f4f6; }
.section-teal    { background: #3abdc4; }

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #172242;
}
.section-title--white { color: #ffffff; }
.section-title--dark  { color: #172242; }

/* ---- Icon Wrappers --------------------------------------- */
.icon-box {
    background: rgba(58, 189, 196, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    display: inline-flex;
    margin-bottom: 1rem;
    color: #3abdc4;
}
.icon-circle {
    background: rgba(58, 189, 196, 0.1);
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #3abdc4;
}

/* ---- Service Cards (Home — light bg) --------------------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #172242;
}

.service-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.service-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
}
.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3abdc4;
    flex-shrink: 0;
}

/* ---- Service Cards (Services page — dark bg) ------------- */
.services-grid-dark {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px)  { .services-grid-dark { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid-dark { grid-template-columns: repeat(3, 1fr); } }

.service-card-dark {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s, background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.service-card-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.service-card-dark h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1rem 0 0.5rem;
}
.service-card-dark p { color: #d1d5db; margin-bottom: 1rem; }

.service-features-dark {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-features-dark li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    font-size: 0.9375rem;
}
.service-features-dark li svg { color: #3abdc4; flex-shrink: 0; }

/* ---- Impact / Metrics ------------------------------------ */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px)  { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}
.metric-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #3abdc4;
    margin-bottom: 0.5rem;
}
.metric-label { color: #d1d5db; }

/* ---- Technology Marquee ---------------------------------- */
.marquee-section {
    padding: 4rem 0;
    background: #ffffff;
    overflow: hidden;
}
.marquee-section .section-title { margin-bottom: 3rem; }

.marquee-wrapper { position: relative; overflow: hidden; }
.marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track img { height: 5rem; width: auto; object-fit: contain; }

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- CTA Section ----------------------------------------- */
.cta-section { text-align: center; padding: 4rem 0; }
.cta-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Footer ---------------------------------------------- */
.site-footer {
    background: #0a0f29;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo-img { margin-bottom: 1rem; }

.footer-desc { color: #9ca3af; font-size: 0.9375rem; }

.footer-heading {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: #9ca3af;
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #3abdc4; }

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ---- Page Hero (inner pages) ----------------------------- */
.page-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: #0a0f29;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.page-hero p {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 0 auto;
}

/* ---- Features Grid (service sub-pages) ------------------- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-item { text-align: center; }
.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #172242;
}
.feature-item p { color: #4b5563; }

/* ---- Process Section ------------------------------------- */
.process-step {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .process-step { flex-direction: row; align-items: center; }
}

.process-text { flex: 1; }
.process-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #172242;
}
.process-text p { color: #4b5563; }

.process-list-card {
    flex: 1;
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
}
.process-list-card li {
    color: #4b5563;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.process-list-card li:last-child { border-bottom: none; }

/* Process step — alternating layout */
.process-step.reverse { flex-direction: column; }
@media (min-width: 768px) {
    .process-step.reverse { flex-direction: row-reverse; }
}

/* ---- Why Choose Us (3-col) ------------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-item { text-align: center; }
.why-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #172242;
    margin-bottom: 0.5rem;
}
.why-item p { color: #4b5563; }

/* ---- About Page ------------------------------------------ */
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 768px) {
    .story-grid { grid-template-columns: repeat(2, 1fr); }
}

.story-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #172242;
    margin-bottom: 1.5rem;
}
.story-text p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats-box {
    background: rgba(58, 189, 196, 0.1);
    padding: 2rem;
    border-radius: 0.75rem;
}
.about-stats-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.about-stat { text-align: center; }
.about-stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #3abdc4;
}
.about-stat-label { color: #4b5563; font-size: 0.9375rem; }

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}
.value-item { text-align: center; }
.value-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #172242;
    margin-bottom: 0.5rem;
}
.value-item p { color: #4b5563; }

/* ---- Contact Page ---------------------------------------- */
.contact-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: #f3f4f6;
}
.contact-hero-inner { text-align: center; }
.contact-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #172242;
    margin-bottom: 1rem;
}
.contact-hero p { font-size: 1.25rem; color: #4b5563; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-form-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3abdc4;
    box-shadow: 0 0 0 3px rgba(58, 189, 196, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #9ca3af; }
.form-textarea { min-height: 8rem; resize: vertical; }

/* Form messages */
.form-message {
    display: none;
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}
.form-message.success {
    display: block;
    background: rgba(58, 189, 196, 0.1);
    color: #2a8a8f;
    border: 1px solid #3abdc4;
}
.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid #ef4444;
}

/* Contact info panel */
.contact-info-panel h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #172242;
    margin-bottom: 1.5rem;
}
.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-info-icon {
    color: #3abdc4;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.contact-info-item h3 {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}
.contact-info-item p { color: #4b5563; font-size: 0.9375rem; }

.map-container {
    height: 16rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #e5e7eb;
    margin-top: 2rem;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ---- 404 Page -------------------------------------------- */
.error-404 {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
}
.error-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: #3abdc4;
    margin-bottom: 0;
}
.error-404 h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #172242;
    margin-bottom: 1rem;
}
.error-404 p {
    color: #4b5563;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ---- Blog / Archive / Single ----------------------------- */
.blog-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
    background: #0a0f29;
    text-align: center;
}
.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.blog-hero p { color: #d1d5db; }

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 0;
}
@media (min-width: 768px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.post-card-thumbnail img { width: 100%; height: 13rem; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-card-date { font-size: 0.8125rem; color: #9ca3af; margin-bottom: 0.5rem; }
.post-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #172242;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}
.post-card:hover .post-card-title { color: #3abdc4; }
.post-card-excerpt { color: #4b5563; font-size: 0.9375rem; }

.single-post {
    padding-top: 8rem;
    padding-bottom: 4rem;
}
.single-post-inner { max-width: 48rem; margin: 0 auto; }
.single-post h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #172242;
    margin-bottom: 1rem;
}
.single-post .entry-content {
    color: #374151;
    line-height: 1.75;
    margin-top: 2rem;
}
.single-post .entry-content h2,
.single-post .entry-content h3 { color: #172242; margin: 1.5rem 0 0.75rem; }
.single-post .entry-content p  { margin-bottom: 1rem; }
.single-post .entry-content a  { color: #3abdc4; text-decoration: underline; }

/* ---- Utility spacers ------------------------------------- */
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* ---- WordPress alignment classes ------------------------- */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter, .alignwide, .alignfull { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image img { border-radius: 0.5rem; }
