/* ============================================
   WebStudio Pro — Public Site CSS
   ============================================ */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --dark: #0f172a;
    --gray: #64748b;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    margin: 0;
}

/* ---- Navbar ---- */
.navbar {
    padding: .8rem 0;
    background: transparent;
    transition: all .3s;
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: .5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.navbar-brand { font-size: 1.2rem; letter-spacing: -.02em; }
.navbar-brand i { color: var(--primary); }
.nav-link { font-weight: 500; font-size: .9rem; margin: 0 .25rem; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,.15), transparent 70%);
    right: -100px; top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}
.hero-badge {
    display: inline-block;
    background: rgba(59,130,246,.12);
    color: var(--primary);
    padding: .4rem 1rem;
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -.03em;
}
.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 550px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num { display: block; font-size: 1.5rem; font-weight: 700; }
.hero-stat-label { color: #64748b; font-size: .85rem; }

/* ---- Section ---- */
.section { padding: 5rem 0; }
.section-gray { background: var(--light-bg); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-badge {
    display: inline-block;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    padding: .3rem .9rem;
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .75rem;
}
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; letter-spacing: -.02em; }
.section-subtitle { color: var(--gray); font-size: 1.05rem; }

/* ---- Service Cards ---- */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all .2s;
}
.service-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.service-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.service-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.service-desc { color: var(--gray); font-size: .9rem; flex: 1; }
.service-price {
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
    margin: 1rem 0;
}
.service-features {
    list-style: none; padding: 0; margin: 0 0 1rem;
}
.service-features li {
    padding: .3rem 0;
    font-size: .85rem;
    color: #475569;
}
.service-features li i { color: #16a34a; margin-right: .4rem; }

/* ---- Portfolio Cards ---- */
.portfolio-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    transition: all .2s;
}
.portfolio-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.portfolio-img { width: 100%; height: 200px; object-fit: cover; }
.portfolio-img-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #94a3b8;
}
.portfolio-body { padding: 1.5rem; }
.portfolio-category {
    display: inline-block;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    padding: .2rem .6rem;
    border-radius: .25rem;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .5rem;
}
.portfolio-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.portfolio-desc { color: var(--gray); font-size: .85rem; }
.portfolio-tech { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.tech-badge {
    background: var(--light-bg);
    color: #475569;
    padding: .2rem .5rem;
    border-radius: .25rem;
    font-size: .75rem;
    font-weight: 500;
}
.portfolio-meta {
    display: flex; gap: 1rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--gray);
}
.portfolio-meta i { margin-right: .3rem; }

/* ---- Testimonial Cards ---- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: all .2s;
}
.testimonial-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.testimonial-stars { color: #f59e0b; margin-bottom: .75rem; font-size: .9rem; }
.testimonial-text { color: #475569; font-size: .95rem; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}

/* ---- Blog Cards ---- */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    transition: all .2s;
}
.blog-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-img-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #93c5fd;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-meta { display: flex; gap: 1rem; color: var(--gray); font-size: .8rem; margin-bottom: .75rem; }
.blog-card-meta i { margin-right: .2rem; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.blog-card-excerpt { color: var(--gray); font-size: .9rem; line-height: 1.6; }

/* ---- Contact Form ---- */
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
.form-control-lg, .form-select-lg {
    border-radius: .6rem;
    padding: .65rem 1rem;
    border-color: var(--border);
}
.form-control-lg:focus, .form-select-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 8rem 0 3rem;
}
.page-hero-sm { padding: 7rem 0 2.5rem; }
.page-hero-title { font-size: 2.2rem; font-weight: 800; }
.page-hero-subtitle { color: #94a3b8; font-size: 1.1rem; margin-top: .5rem; }
.page-hero-price { font-size: 1.3rem; font-weight: 700; color: #60a5fa; margin-top: 1rem; }
.breadcrumb-dark .breadcrumb-item a { color: #94a3b8; text-decoration: none; }
.breadcrumb-dark .breadcrumb-item.active { color: #cbd5e1; }
.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before { color: #475569; }

/* ---- Content ---- */
.content-html { font-size: 1rem; line-height: 1.8; color: #334155; }
.content-html h2, .content-html h3, .content-html h4 { margin-top: 1.5rem; margin-bottom: .75rem; color: #0f172a; }
.content-html p { margin-bottom: 1rem; }
.content-html img { max-width: 100%; height: auto; border-radius: .5rem; }
.content-html ul, .content-html ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-block { max-width: 100%; }
.blog-content { font-size: 1.05rem; }

/* ---- Sidebar ---- */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}
.sidebar-card.bg-primary { border: none; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .4rem 0; font-size: .9rem; display: flex; align-items: flex-start; gap: .5rem; }
.check-list li i { margin-top: .15rem; flex-shrink: 0; }

/* ---- Stages ---- */
.stages { counter-reset: stage; }
.stage-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.stage-item:last-child { border-bottom: none; }
.stage-num {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}
.footer-social {
    width: 40px; height: 40px;
    border: 1px solid #334155;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all .2s;
}
.footer-social:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: .5rem;
    font-weight: 600;
    transition: all .2s;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,.35); }
.btn-outline-primary { border-radius: .5rem; font-weight: 500; }
.btn-outline-light { border-radius: .5rem; font-weight: 500; }
.btn-lg { padding: .7rem 1.5rem; }

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-num { font-size: 1.2rem; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.6rem; }
    .contact-card { padding: 1.5rem; }
}
