/* ============================================================
   ICT Smart Public Stylesheet
   Brand Colors:
   - Primary accent: #b2dd4c (lime green)
   - Dark/text: #222222
   - Background: #ffffff
   - Secondary gray: #686868
   - Button dark: #32373c
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222222;
    background: #ffffff;
}

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

a {
    color: #32373c;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover, a:focus {
    color: #7ab800;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #b2dd4c;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.logo img {
    height: 45px;
    width: auto;
}

/* Navigation */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #222222;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link:focus {
    color: #7ab800;
}

.nav-cta {
    background: #b2dd4c;
    color: #222222 !important;
    border-radius: 5px;
    margin-left: 8px;
    font-weight: 600;
}

.nav-cta:hover {
    background: #9cc83e;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 280px;
    border: 1px solid #e5e5e5;
    border-top: 3px solid #b2dd4c;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    list-style: none;
    z-index: 100;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #222222;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown li a:hover {
    background: #f8fdf0;
    color: #7ab800;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #222222;
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #222222;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: #b2dd4c;
    color: #222222;
    border-color: #b2dd4c;
}

.btn-primary:hover {
    background: #9cc83e;
    border-color: #9cc83e;
    color: #222222;
}

.btn-outline {
    background: transparent;
    color: #32373c;
    border-color: #32373c;
}

.btn-outline:hover {
    background: #32373c;
    color: #ffffff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #32373c 0%, #1a1d20 100%);
    color: #ffffff;
    padding: 80px 0;
}

.hero-page {
    padding: 50px 0;
}

.hero h1 {
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.15em;
    color: #cccccc;
    max-width: 700px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero .btn-outline {
    color: #ffffff;
    border-color: #ffffff;
}

.hero .btn-outline:hover {
    background: #ffffff;
    color: #32373c;
}

/* ============================================================
   SUMMARY BOX
   ============================================================ */
.summary-section {
    padding: 40px 0;
    background: #f8fdf0;
}

.summary-box {
    border-left: 4px solid #b2dd4c;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 0 5px 5px 0;
    font-size: 1.05em;
    line-height: 1.7;
}

.summary-box .last-updated {
    display: block;
    margin-top: 12px;
    font-size: 0.85em;
    color: #686868;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section,
.steps-section,
.benefits-section,
.use-cases-section,
.comparison-section,
.guide-section,
.faq-section,
.trust-section,
.related-section,
.contact-section {
    padding: 50px 0;
}

.content-section:nth-child(even),
.steps-section:nth-child(even),
.benefits-section:nth-child(even),
.guide-section:nth-child(even) {
    background: #fafafa;
}

h2 {
    font-size: 1.7em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222222;
}

h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222222;
}

.section-intro {
    font-size: 1.05em;
    color: #686868;
    margin-bottom: 30px;
    max-width: 700px;
}

p + p {
    margin-top: 16px;
}

/* ============================================================
   CARD GRID (Services on homepage)
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 28px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #b2dd4c;
}

.card h3 {
    margin-bottom: 12px;
}

.card h3 a {
    color: #222222;
}

.card h3 a:hover {
    color: #7ab800;
}

.card p {
    color: #686868;
    font-size: 0.95em;
    margin-bottom: 16px;
}

.card-link {
    font-size: 0.9em;
    font-weight: 600;
    color: #7ab800;
}

.card-link:hover {
    color: #5a9400;
}

/* ============================================================
   STEPS LIST
   ============================================================ */
.steps-list {
    counter-reset: step;
    list-style: none;
    max-width: 800px;
}

.step-item {
    counter-increment: step;
    position: relative;
    padding: 16px 0 16px 56px;
    border-bottom: 1px solid #eee;
}

.step-item::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 14px;
    width: 36px;
    height: 36px;
    background: #b2dd4c;
    color: #222222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* ============================================================
   BENEFITS & USE CASES LIST
   ============================================================ */
.benefits-list,
.use-cases-list,
.trust-list {
    list-style: none;
    max-width: 800px;
}

.benefits-list li,
.use-cases-list li,
.trust-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid #f0f0f0;
}

.benefits-list li::before,
.use-cases-list li::before,
.trust-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #b2dd4c;
    font-weight: 700;
    font-size: 1.1em;
}

/* ============================================================
   USE CASE GRID (homepage)
   ============================================================ */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.use-case-item {
    background: #f8fdf0;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #b2dd4c;
}

.use-case-item h3 {
    margin-bottom: 8px;
}

.use-case-item p {
    color: #686868;
    font-size: 0.95em;
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-section {
    background: #fafafa;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trust-item {
    text-align: center;
    padding: 24px 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.trust-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #7ab800;
    line-height: 1;
    margin-bottom: 8px;
}

.trust-label {
    font-size: 0.9em;
    color: #686868;
    font-weight: 500;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

table th, table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

table thead th {
    background: #32373c;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

table tbody th {
    font-weight: 600;
    background: #f8fdf0;
}

table tbody tr:hover {
    background: #fafafa;
}

/* ============================================================
   BUYING GUIDE
   ============================================================ */
.guide-list {
    max-width: 800px;
    padding-left: 24px;
}

.guide-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-list {
    max-width: 800px;
}

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    background: #ffffff;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4em;
    font-weight: 300;
    color: #686868;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

details[open] .faq-question::after {
    content: '−';
}

details[open] .faq-question {
    border-bottom: 1px solid #e5e5e5;
    background: #f8fdf0;
}

.faq-answer {
    padding: 16px 20px;
    color: #444;
    line-height: 1.7;
}

.section-cta {
    margin-top: 24px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #32373c 0%, #1a1d20 100%);
    color: #ffffff;
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: #ffffff;
}

.cta-section p {
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 24px;
    font-size: 1.05em;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    color: #ffffff;
    border-color: #ffffff;
}

.cta-section .btn-outline:hover {
    background: #ffffff;
    color: #32373c;
}

/* ============================================================
   RELATED LINKS
   ============================================================ */
.related-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-list li a {
    display: block;
    padding: 10px 20px;
    background: #f8fdf0;
    border: 1px solid #b2dd4c;
    border-radius: 5px;
    font-weight: 500;
    color: #222222;
    transition: background 0.2s;
}

.related-list li a:hover {
    background: #b2dd4c;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    background: #f5f5f5;
    padding: 12px 0;
    font-size: 0.85em;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumbs li::after {
    content: '›';
    margin-left: 8px;
    color: #999;
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a {
    color: #686868;
}

.breadcrumbs a:hover {
    color: #7ab800;
}

.breadcrumbs [aria-current] {
    color: #222222;
    font-weight: 500;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-item h3 {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #686868;
    margin-bottom: 4px;
}

.contact-item a {
    color: #7ab800;
}

/* Contact form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.form-group .required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b2dd4c;
    box-shadow: 0 0 0 3px rgba(178,221,76,0.2);
}

/* Alert messages */
.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.95em;
    line-height: 1.6;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ============================================================
   TEXT LINK
   ============================================================ */
.text-link {
    color: #7ab800;
    font-weight: 500;
}

.text-link:hover {
    color: #5a9400;
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #222222;
    color: #cccccc;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #b2dd4c;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #cccccc;
    font-size: 0.9em;
}

.footer-col a:hover {
    color: #b2dd4c;
}

.footer-company {
    font-size: 0.85em;
    margin-top: 8px;
}

.contact-list li {
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 8px;
}

.contact-list strong {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 16px 0;
    text-align: center;
    font-size: 0.85em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 16px;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-top: none;
        padding-left: 20px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero-sub {
        font-size: 1em;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .related-list {
        flex-direction: column;
    }

    table {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
