/* ============================================================
   Espider Web Solutions — sitewide stylesheet
   Palette and components consolidated from the original pages.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:  #29ABE2;
    --dark:  #2E2E2E;
    --mid:   #555555;
    --light: #F7F9FC;
    --white: #ffffff;
    --border:#E2E8F0;
}

html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; color: var(--dark); line-height: 1.7; background: var(--white); }
img { max-width: 100%; height: auto; }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--blue); color: var(--white); padding: 0.6rem 1.2rem;
    border-radius: 0 0 4px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--blue); outline-offset: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header {
    background: var(--dark); padding: 1rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; position: sticky; top: 0; z-index: 100;
}
.brand { text-decoration: none; }
.site-header h2 { color: var(--white); font-size: 1.3rem; letter-spacing: 1px; }
.site-header h2 span { color: var(--blue); }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav ul li a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
nav ul li a:hover, nav ul li a.active { color: var(--blue); }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; flex-direction: column;
    justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--white); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--dark); color: var(--white); padding: 5rem 2rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero--tall { padding: 6rem 2rem 5rem; }
.hero--compact { padding: 4rem 2rem 3rem; }
.hero::before {
    content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 500px; height: 500px; border-radius: 50%;
    border: 1px solid rgba(41,171,226,0.12); pointer-events: none;
}
.hero--tall::before { width: 600px; height: 600px; }
.hero--tall::after {
    content: ''; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    width: 380px; height: 380px; border-radius: 50%;
    border: 1px solid rgba(41,171,226,0.08); pointer-events: none;
}
.hero-label {
    display: inline-block; background: rgba(41,171,226,0.15); color: var(--blue);
    font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase;
    padding: 0.3rem 1rem; border-radius: 2rem; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero--tall h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.hero--compact h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.hero h1 span { color: var(--blue); }
.hero p { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,0.7); font-size: 1.05rem; }
.hero--tall p { margin-bottom: 2rem; }
.hero--compact p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.hero .btn { margin-top: 1.5rem; }

.breadcrumb { position: relative; z-index: 1; margin-bottom: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-hidden] { margin: 0 0.35rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; background: var(--blue); color: var(--white);
    padding: 0.8rem 2rem; border: 0; border-radius: 4px; text-decoration: none;
    font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); margin-left: 1rem; }
.btn-outline:hover { background: var(--blue); color: var(--white); opacity: 1; }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { opacity: 0.9; }
.btn-block { display: block; width: 100%; text-align: center; padding: 0.85rem; font-size: 1rem; }

/* ---------- Layout / sections ---------- */
.container { max-width: 960px; margin: 0 auto; padding: 4rem 2rem; }
.container--narrow { max-width: 820px; }
.section-label {
    display: inline-block; color: var(--blue); font-size: 0.78rem; letter-spacing: 3px;
    text-transform: uppercase; font-weight: 700; margin-bottom: 0.8rem;
}
.section-title { font-size: 1.7rem; font-weight: 700; color: var(--dark); margin-bottom: 1.2rem; line-height: 1.3; }
.section-title span { color: var(--blue); }
.section-body { color: var(--mid); font-size: 1rem; max-width: 720px; }
.section-body + .section-body { margin-top: 1rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--blue); padding: 2rem; display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.stat { text-align: center; color: var(--white); }
.stat h3 { font-size: 2rem; font-weight: 700; }
.stat p { font-size: 0.85rem; opacity: 0.85; margin-top: 0.2rem; }

/* ---------- Trust bar (ESWAP) ---------- */
.trust-bar { background: var(--blue); padding: 1.5rem 2rem; display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; color: var(--white); }
.trust-item { font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.trust-item::before {
    content: '\2713'; background: rgba(255,255,255,0.2); width: 22px; height: 22px;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0;
}

/* ---------- Cards & grids ---------- */
.services-grid, .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.service-card, .feature-card { background: var(--light); border-left: 3px solid var(--blue); border-radius: 6px; padding: 1.5rem; }
.service-card h4, .feature-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--dark); }
.service-card h4 a { color: var(--dark); text-decoration: none; }
.service-card h4 a:hover { color: var(--blue); }
.service-card p, .feature-card p { font-size: 0.9rem; color: var(--mid); }
.tag {
    display: inline-block; background: rgba(41,171,226,0.12); color: var(--blue);
    font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 2rem;
    margin-top: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
}
.tag--lead { margin-top: 0; margin-bottom: 0.8rem; }

/* ---------- Service blocks (services page) ---------- */
.service-block { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; padding: 3rem 0; border-bottom: 1px solid var(--border); }
.service-block:last-of-type { border-bottom: none; }
.service-number { font-size: 3rem; font-weight: 700; color: var(--border); line-height: 1; }
.service-block h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.6rem; }
.service-block p { color: var(--mid); font-size: 0.95rem; }
.service-block ul { margin-top: 1rem; padding-left: 1.2rem; color: var(--mid); font-size: 0.9rem; }
.service-block ul li { margin-bottom: 0.3rem; }

/* ---------- ESWAP dark block ---------- */
.eswap-block { background: var(--dark); color: var(--white); border-radius: 8px; padding: 2.5rem; margin-top: 3rem; }
.eswap-block h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.eswap-block h3 span { color: var(--blue); }
.eswap-block p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 0.8rem; }
.eswap-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.eswap-feature { background: rgba(255,255,255,0.06); border-radius: 6px; padding: 1rem; border-left: 3px solid var(--blue); }
.eswap-feature strong { font-size: 0.9rem; color: var(--white); display: block; margin-bottom: 0.3rem; }
.eswap-feature span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.eswap-block .btn { margin-top: 1.5rem; }

.eswap-strip { background: var(--dark); color: var(--white); padding: 4rem 2rem; text-align: center; }
.eswap-strip .section-title { color: var(--white); }
.eswap-strip .section-body { color: rgba(255,255,255,0.7); margin: 0 auto 2rem; }

/* ---------- Steps (ESWAP how-it-works) ---------- */
.steps-wrap { background: var(--light); padding: 4rem 2rem; }
.steps-inner { max-width: 960px; margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.step-card { background: var(--white); border-radius: 6px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(41,171,226,0.12); color: var(--blue); font-weight: 700;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.step-card h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--dark); }
.step-card p { font-size: 0.88rem; color: var(--mid); }

/* ---------- Audience pills ---------- */
.audience-list { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.audience-pill {
    background: rgba(41,171,226,0.1); color: var(--dark);
    border: 1px solid rgba(41,171,226,0.3);
    font-size: 0.88rem; padding: 0.45rem 1.1rem; border-radius: 2rem;
}

/* ---------- Highlight / compliance boxes ---------- */
.highlight-box, .compliance-box {
    background: var(--light); border-left: 3px solid var(--blue);
    border-radius: 0 6px 6px 0; padding: 1.5rem; margin: 1rem 0;
}
.compliance-box { padding: 1.8rem; margin-top: 2rem; }
.highlight-box p, .compliance-box p { color: var(--mid); font-size: 0.95rem; margin-bottom: 0.6rem; }
.compliance-box p { font-size: 0.93rem; margin-bottom: 0.8rem; }
.highlight-box p:last-child, .compliance-box p:last-child { margin-bottom: 0; }
.highlight-box strong, .compliance-box strong { color: var(--dark); }
.compliance-box a { color: var(--blue); }

/* ---------- FAQ (details/summary) ---------- */
.faq-list { margin-top: 2rem; }
.faq-item { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.8rem; background: var(--white); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1rem 1.2rem;
    font-weight: 700; font-size: 0.97rem; color: var(--dark);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; font-weight: 700; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item div { padding: 0 1.2rem 1.1rem; color: var(--mid); font-size: 0.92rem; }

/* ---------- Work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.work-card {
    background: var(--light); border-radius: 8px; padding: 1.6rem;
    border-top: 3px solid var(--blue); display: flex; flex-direction: column; gap: 0.6rem;
}
.work-card .work-sector {
    font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--blue); font-weight: 700;
}
.work-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.work-card p { font-size: 0.9rem; color: var(--mid); flex: 1; }
.work-card a.work-link { color: var(--blue); text-decoration: none; font-weight: 700; font-size: 0.88rem; }
.work-card a.work-link:hover { text-decoration: underline; }

/* ---------- About page ---------- */
.about-strip { background: var(--light); padding: 4rem 2rem; }
.about-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-inner p { color: var(--mid); margin-top: 1rem; }
.about-card { background: var(--white); border-radius: 8px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.about-card-row { border-left: 3px solid var(--blue); padding-left: 1rem; margin-bottom: 1.2rem; }
.about-card-row:last-child { margin-bottom: 0; }
.about-card-row strong { font-size: 0.9rem; }
.about-card-row p { font-size: 0.85rem; color: var(--mid); margin-top: 0.3rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.team-card { background: var(--light); border-radius: 8px; padding: 1.8rem 1.5rem; text-align: center; }
.team-avatar {
    width: 60px; height: 60px; background: var(--dark); color: var(--blue);
    font-size: 1.4rem; font-weight: 700; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.team-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.team-card .role { font-size: 0.8rem; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; margin: 0.3rem 0 0.6rem; }
.team-card p { font-size: 0.85rem; color: var(--mid); }

.why-list { list-style: none; margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.why-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.why-icon {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
    background: rgba(41,171,226,0.12); color: var(--blue); font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.why-list li strong { display: block; font-size: 0.95rem; color: var(--dark); }
.why-list li div span { font-size: 0.85rem; color: var(--mid); }

/* ---------- Policy pages ---------- */
.policy-section { margin-bottom: 2.5rem; }
.policy-section h2 {
    font-size: 1.1rem; font-weight: 700; color: var(--dark);
    margin-bottom: 0.8rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--blue); display: inline-block;
}
.policy-section p { color: var(--mid); font-size: 0.95rem; margin-bottom: 0.8rem; }
.policy-section ul, .policy-section ol { padding-left: 1.2rem; color: var(--mid); font-size: 0.95rem; }
.policy-section ul li, .policy-section ol li { margin-bottom: 0.5rem; }
.policy-section a { color: var(--blue); }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.summary-card { background: var(--light); border-radius: 6px; padding: 1.2rem; border-top: 3px solid var(--blue); }
.summary-card strong { font-size: 0.85rem; display: block; color: var(--dark); margin-bottom: 0.4rem; }
.summary-card span { font-size: 0.82rem; color: var(--mid); }

/* ---------- Contact ---------- */
.contact-wrapper {
    max-width: 960px; margin: 0 auto; padding: 4rem 2rem;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start;
}
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-icon {
    width: 40px; height: 40px; background: rgba(41,171,226,0.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--blue); font-size: 1rem; font-weight: 700;
}
.contact-info-item strong { display: block; font-size: 0.85rem; color: var(--mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.2rem; }
.contact-info-item a { color: var(--dark); text-decoration: none; font-size: 0.95rem; }
.contact-info-item a:hover { color: var(--blue); }
.contact-info-item p { font-size: 0.95rem; color: var(--dark); }

.form-card { background: var(--light); border-radius: 8px; padding: 2rem; }
.form-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--dark); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 4px;
    font-size: 0.95rem; font-family: Arial, sans-serif; color: var(--dark);
    background: var(--white); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.92rem; font-weight: 700; }
.form-status--ok { background: #E6F7EE; color: #14794A; border: 1px solid #B8E6CE; }
.form-status--err { background: #FDECEC; color: #B3261E; border: 1px solid #F5C2C0; }

/* ---------- Map (click-to-load) ---------- */
.map-section { background: var(--light); padding: 3rem 2rem; }
.map-inner { max-width: 960px; margin: 0 auto; }
.map-inner h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.map-inner h2 span { color: var(--blue); }
.map-placeholder {
    position: relative; width: 100%; height: 400px; border-radius: 8px;
    background: var(--dark); color: var(--white);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; text-align: center; padding: 2rem; cursor: pointer; border: 0;
    font-family: Arial, sans-serif;
}
.map-placeholder p { font-size: 0.9rem; color: rgba(255,255,255,0.7); max-width: 380px; }
.map-inner iframe { width: 100%; height: 400px; border-radius: 8px; border: 0; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--blue); padding: 3.5rem 2rem; text-align: center; color: var(--white); }
.cta-strip h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.cta-strip p { opacity: 0.9; margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.6); text-align: center; padding: 1.5rem 2rem; font-size: 0.85rem; }
.site-footer a { color: rgba(255,255,255,0.6); text-decoration: none; margin: 0 0.5rem; }
.site-footer a:hover { color: var(--blue); }

/* ---------- Floating WhatsApp + back-to-top ---------- */
.wa-float {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25); transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.to-top {
    position: fixed; right: 1.35rem; bottom: 5.4rem; z-index: 90;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--dark); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2); transition: opacity 0.25s, transform 0.2s;
}
.to-top:hover { transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-wrap { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.error-wrap h1 { font-size: clamp(3rem, 10vw, 5rem); color: var(--blue); line-height: 1; }
.error-wrap p { color: var(--mid); margin: 1rem 0 1.8rem; max-width: 440px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
    .nav-toggle { display: flex; }
    #site-nav { display: none; width: 100%; }
    #site-nav.is-open { display: block; }
    #site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 0.3rem; }
    #site-nav ul li a { display: block; padding: 0.7rem 0.3rem; border-top: 1px solid rgba(255,255,255,0.08); }

    .stats-bar { gap: 2rem; }
    .trust-bar { gap: 0.8rem; flex-direction: column; align-items: center; }
    .about-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .service-block { grid-template-columns: 1fr; }
    .service-number { font-size: 2rem; }
    .btn-outline { margin-left: 0; margin-top: 0.5rem; }
}
