/* SalesPlug NG — Public Site Styles
   Brand colors kept, layout redesigned away from the boxy template look */

:root {
    --blue: #007BFF;
    --purple: #6F42C1;
    --green: #00E676;
    --charcoal: #222222;
    --gray-light: #F7F8FA;
    --border: #E7E9EE;
    --max-width: 1140px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--charcoal);
    background: #fff;
    line-height: 1.6;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; color: #444; }

/* ---------- Header / Nav ---------- */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    position: sticky; top: 0; background: #fff; z-index: 100;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 20px; color: var(--charcoal); }
.logo span { color: var(--blue); }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--charcoal); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--blue); }
.nav-cta {
    background: var(--blue); color: #fff !important; padding: 10px 20px;
    border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--purple); }

/* ---------- Mobile menu button ---------- */
.mobile-menu-btn {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 2px; background: var(--charcoal); border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.site-header.nav-open .mobile-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
.site-header.nav-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    padding: 90px 0 70px;
    background: linear-gradient(180deg, var(--gray-light) 0%, #fff 100%);
}
.hero .container { max-width: 780px; text-align: center; }
.hero h1 { margin-bottom: 20px; }
.hero .subtitle { font-size: 18px; color: #555; max-width: 600px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Two-column hero with image */
.hero-split {
    max-width: var(--max-width) !important; text-align: left !important;
    display: flex; align-items: center; gap: 50px;
}
.hero-text { flex: 1; }
.hero-text .subtitle { margin: 0 0 32px; }
.hero-text .hero-ctas { justify-content: flex-start; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 16px; display: block; }
@media (max-width: 900px) {
    .hero-split { flex-direction: column; text-align: center !important; }
    .hero-text .hero-ctas { justify-content: center; }
}
.btn {
    display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600;
    font-size: 15px; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--purple); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Stats ---------- */
.stats-band {
    background: var(--charcoal); color: #fff; padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid .num { font-size: 34px; font-weight: 800; color: var(--green); }
.stats-grid .label { font-size: 13px; color: #ccc; margin-top: 4px; }

/* ---------- Section generic ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
    color: var(--purple); font-weight: 700; font-size: 13px; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 10px; display: block;
}

/* ---------- Portfolio cards ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.portfolio-card {
    border: 1px solid var(--border); border-radius: 14px; padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.portfolio-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.portfolio-card .card-image {
    width: calc(100% + 56px); margin: -28px -28px 20px; border-radius: 14px 14px 0 0;
    max-height: 180px; object-fit: cover; display: block;
}
.portfolio-card .client-tag {
    font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px; display: block;
}
.portfolio-card h3 { margin-bottom: 10px; }
.portfolio-card .summary { color: #555; font-size: 15px; margin-bottom: 16px; }
.portfolio-card .result-line {
    font-size: 14px; font-weight: 600; color: var(--charcoal);
    border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px;
}
.portfolio-card .result-line span { color: var(--purple); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-light); padding: 50px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; }
.footer-grid a { display: block; color: #555; font-size: 14px; margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 20px; text-align: center;
    font-size: 13px; color: #888;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25); transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
@media (max-width: 768px) {
    .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; }

    .mobile-menu-btn { display: flex; }

    .main-nav {
        display: none; /* hidden until .nav-open is toggled */
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 0; box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }
    .site-header { position: sticky; } /* keep dropdown anchored correctly */
    .site-header.nav-open .main-nav { display: flex; }
    .main-nav a { padding: 14px 24px; border-bottom: 1px solid #f2f2f2; }
    .main-nav a.nav-cta { margin: 10px 24px; text-align: center; border-bottom: none; }
}
