/* ==========================================================================
   Insight-Pro Solutions — site.css
   Light, calm, one-accent design. Mobile-first.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
ul, ol { list-style: none; }

:root {
    --accent: #0f766e;
    --accent-dark: #115e59;
    --accent-soft: #f0fdfa;
    --accent-border: #99f6e4;
    --text: #0f172a;
    --muted: #475569;
    --faint: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Layout helpers ---------- */

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }

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

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }

.section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover { border-color: var(--faint); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent-border);
    outline-offset: 2px;
}

/* ---------- Navbar ---------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.navbar-logo { width: 40px; height: 42px; border-radius: 8px; }

.navbar-brand-text { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

.navbar-nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover { color: var(--text); background: var(--bg-alt); }

.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.navbar-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-phone:hover { color: var(--accent); }

/* Mobile menu */

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.6rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.mobile-menu.active { display: block; }

.mobile-nav { padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }

.mobile-nav .nav-link { padding: 0.85rem 1rem; }

.mobile-nav .btn { margin-top: 0.5rem; }

/* ---------- Hero ---------- */

.hero {
    padding: 10.5rem 0 6rem;
    background:
        radial-gradient(ellipse 60% 50% at 85% 8%, var(--accent-soft) 0%, transparent 70%),
        var(--bg);
    text-align: center;
}

.hero-inner { max-width: 780px; margin: 0 auto; }

.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.hero h1 em { font-style: normal; color: var(--accent); }

.hero .lede {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 2.25rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 1.4rem;
    color: var(--faint);
    font-size: 0.9rem;
}

.hero-note i { color: var(--accent); margin-right: 0.3rem; }

/* ---------- Cards (services / work) ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 2x2 layout for the four work cards */
.card-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.card .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }

.card p { color: var(--muted); font-size: 0.97rem; }

/* Work / portfolio cards */

.work-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.work-card img { width: 100%; }

.work-card .work-body { padding: 1.5rem 1.6rem 1.75rem; }

.work-tag {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.work-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }

.work-card p { color: var(--muted); font-size: 0.95rem; }

.work-note {
    text-align: center;
    color: var(--faint);
    font-size: 0.92rem;
    margin-top: 2rem;
}

/* ---------- About ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-photo img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.about-copy h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.about-copy > p { color: var(--muted); margin-bottom: 1.1rem; }

.about-points { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1.1rem; }

.about-points li { display: flex; gap: 0.9rem; }

.about-points i {
    color: var(--accent);
    font-size: 1.05rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.about-points strong { display: block; margin-bottom: 0.15rem; }

.about-points p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Process steps ---------- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}

.step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card.featured { border: 2px solid var(--accent); }

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    border-radius: 99px;
    white-space: nowrap;
}

.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; }

.pricing-for { color: var(--faint); font-size: 0.9rem; margin-bottom: 1rem; }

.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.15rem; }

.price small { font-size: 0.9rem; font-weight: 500; color: var(--faint); }

.price-from { color: var(--faint); font-size: 0.85rem; margin-bottom: 1.25rem; }

.pricing-card ul { margin-bottom: 1.75rem; flex: 1; }

.pricing-card ul li {
    padding: 0.4rem 0 0.4rem 1.6rem;
    color: var(--muted);
    font-size: 0.95rem;
    position: relative;
}

.pricing-card ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.pricing-note {
    text-align: center;
    color: var(--faint);
    font-size: 0.92rem;
    margin-top: 2rem;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-list details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.faq-list summary {
    padding: 1.15rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.faq-list summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--faint);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
    padding: 0 1.5rem 1.25rem;
    color: var(--muted);
    font-size: 0.97rem;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.15rem; }

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text);
    padding: 0.75rem 0.9rem;
    font-size: 0.97rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-control::placeholder { color: #94a3b8; }

.form-control.is-invalid { border-color: #dc2626; }

.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

textarea.form-control { resize: vertical; min-height: 110px; }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path fill="%2364748b" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 10px;
    padding-right: 2.5rem;
}

.form-captcha { margin: 1.25rem 0; }

.form-status {
    display: none;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.form-status.success {
    display: block;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-dark);
}

.form-status.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.form-privacy {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--faint);
}

/* Contact sidebar */

.contact-aside { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item > div { min-width: 0; }

.contact-item strong { display: block; font-size: 0.95rem; }

.contact-item a, .contact-item span {
    color: var(--muted);
    font-size: 0.93rem;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-item a:hover { color: var(--accent); }

/* ---------- Footer ---------- */

footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }

.footer-brand img { width: 32px; height: 34px; border-radius: 6px; }

.footer-tagline { color: var(--faint); font-size: 0.9rem; margin-top: 0.5rem; max-width: 320px; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--faint);
    font-size: 0.87rem;
}

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-photo { max-width: 260px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar-nav, .navbar-cta { display: none; }
    .mobile-toggle { display: flex; }
    section { padding: 3.5rem 0; }
    .hero { padding: 8.5rem 0 4rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
