/* ===================================================================
   Global SMS — מדריכים / Guides section design system
   Editorial-tech layout in the Global SMS brand palette: black chrome
   (#000) carrying the white logo, purple #760682 as the accent on light
   surfaces, cyan #00ACE6 on dark ones, and #F12750 for conversion —
   the same base/second/third colors used across globalsms.co.il.
   Suez One carries the Hebrew display voice against Rubik for body/UI
   and JetBrains Mono for message metadata.
   =================================================================== */

:root {
    --ink: #131313;
    --ink-soft: #2A2A33;
    --paper: #F7F7FA;
    --paper-raised: #FFFFFF;
    --line: #E3E1EA;
    --muted: #63636F;

    /* Global SMS brand */
    --brand: #00ACE6;       /* secondColor — accents on dark */
    --brand-deep: #760682;  /* baseColor — accents on light */
    --cta: #F12750;         /* thirdColor — conversion */
    --cta-deep: #C71540;
    --blue: #03A9F4;

    --font-display: 'Suez One', 'Frank Ruhl Libre', serif;
    --font-body: 'Rubik', 'Arimo', 'Heebo', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.wrap-narrow {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 28px;
}

/* -------------------- Header (Global SMS black chrome) -------------------- */

.site-header {
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 168px;
    height: auto;
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--brand);
    border: 1px solid rgba(0,172,230,0.45);
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 15.5px;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}

.main-nav a:hover { border-color: var(--brand); color: var(--brand); }

/* The header CTA must never wrap — a squeezed flex row would otherwise break
   it across three lines and push it out of the 84px bar. */
.site-header .btn { white-space: nowrap; flex-shrink: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--cta); color: #fff; transform: translateY(-1px); }

.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-deep); color: #fff; transform: translateY(-1px); }

.btn-purple { background: var(--brand-deep); color: #fff; }
.btn-purple:hover { background: #5C0466; color: #fff; transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--paper); }

.btn-ghost-light {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
}
.btn-ghost-light:hover { border-color: var(--ink); }

.btn-lg { padding: 17px 34px; font-size: 17px; border-radius: 12px; }

/* -------------------- Hero (dark panel) -------------------- */

.hero {
    background: var(--ink);
    color: var(--paper);
    padding: 96px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 420px at 85% -10%, rgba(0,172,230,0.30), transparent 60%),
        radial-gradient(480px 380px at -5% 110%, rgba(118,6,130,0.40), transparent 60%);
    pointer-events: none;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
    position: relative;
}

.eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: #5FD2FF;
    background: rgba(0,172,230,0.18);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.eyebrow-tag .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand);
}

h1.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 68px;
    line-height: 1.12;
    margin: 0 0 26px;
    color: #fff;
    letter-spacing: .2px;
}

h1.hero-title .accent { color: var(--brand); }

.hero-sub {
    font-size: 21px;
    line-height: 1.6;
    color: #C9C9D2;
    max-width: 50ch;
    margin: 0 0 38px;
}

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

.hero-proof {
    display: flex;
    gap: 30px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.14);
    flex-wrap: wrap;
}

.hero-proof-item {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #9A9AA6;
}

.hero-proof-item b {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    color: #fff;
    margin-bottom: 2px;
}

/* Phone mockup */

.phone {
    background: #0B0B10;
    border-radius: 40px;
    padding: 16px;
    box-shadow: 0 40px 80px -24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    max-width: 340px;
    margin: 0 auto;
}

.phone-screen {
    background: var(--paper-raised);
    border-radius: 26px;
    padding: 22px 18px 18px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
}

.phone-bar {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 20px;
}

.bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 17px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.bubble-in {
    background: #ECECF1;
    color: var(--ink);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bubble-out {
    background: var(--brand);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    margin: 2px 4px 14px;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 4px;
}

.phone-counter {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 13px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
}

/* -------------------- Section headings -------------------- */

.section { padding: 96px 0; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: 76px 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.eyebrow-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--brand-deep);
    margin-bottom: 12px;
    display: block;
}

h2.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    margin: 0;
    line-height: 1.18;
}

.section-desc {
    color: var(--muted);
    font-size: 17.5px;
    max-width: 54ch;
    margin: 12px 0 0;
}

/* -------------------- How it works -------------------- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.step-card {
    background: var(--paper-raised);
    padding: 40px 34px;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--brand-deep);
    background: rgba(118,6,130,0.08);
    display: inline-block;
    padding: 5px 11px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 23px;
    margin: 0 0 12px;
}

.step-card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* -------------------- Guide list (editorial rows) -------------------- */

.guide-list { border-top: 1px solid var(--line); }

.guide-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}

.guide-row:hover .guide-row-title { color: var(--brand-deep); }

.guide-tag {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--brand-deep);
    background: rgba(118,6,130,0.07);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.guide-row-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 27px;
    margin: 0 0 8px;
    transition: color .2s ease;
    line-height: 1.25;
}

.guide-row-desc {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
    max-width: 64ch;
}

.guide-row-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.guide-row.is-soon { opacity: .48; }
.guide-row.is-soon .guide-tag { background: rgba(94,102,118,0.1); color: var(--muted); }

/* -------------------- Value strip -------------------- */

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
}

.value-item .value-icon {
    width: 48px; height: 48px;
    margin-bottom: 22px;
}

.value-item h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    margin: 0 0 12px;
}

.value-item p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

/* -------------------- Pull quote -------------------- */

.pull-quote {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.pull-quote p {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 34px;
    line-height: 1.45;
    color: var(--ink-soft);
    margin: 0;
}

.pull-quote span {
    display: block;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 22px;
}

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

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 2px;
    background: none;
    border: none;
    margin: 0;
    text-align: inherit;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 21px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color .2s ease;
}

.faq-question:hover { color: var(--brand-deep); }

.faq-question-text { flex: 1; }

.faq-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    position: relative;
    transition: transform .25s ease, border-color .25s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--ink-soft);
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .2s ease;
}

.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }

.faq-item.is-open .faq-icon {
    border-color: var(--brand);
    transform: rotate(135deg);
}

.faq-item.is-open .faq-question { color: var(--brand-deep); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-answer-inner {
    padding: 0 2px 28px;
    color: var(--muted);
    font-size: 16.5px;
    max-width: 66ch;
}

.faq-answer-inner a { color: var(--brand-deep); text-decoration: underline; }

/* -------------------- CTA banner -------------------- */

.cta-banner {
    background: var(--ink);
    color: var(--paper);
    border-radius: 22px;
    padding: 60px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 300px at 90% 0%, rgba(0,172,230,0.28), transparent 65%);
}

.cta-banner > * { position: relative; }

.cta-banner h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 32px;
    margin: 0 0 12px;
    color: #fff;
}

.cta-banner p { color: #C9C9D2; margin: 0; max-width: 50ch; font-size: 16.5px; }

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

.site-footer {
    background: var(--ink);
    color: #C9C9D2;
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 46px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #8C8C99;
    margin: 0 0 16px;
    font-weight: 500;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { text-decoration: none; color: #DEDEE5; font-size: 15px; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    color: #8C8C99;
    font-size: 13.5px;
    font-family: var(--font-mono);
    flex-wrap: wrap;
    gap: 10px;
}

/* -------------------- Article page -------------------- */

.article-header {
    background: var(--ink);
    color: #fff;
    padding: 68px 0 52px;
}

.article-meta {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: #5FD2FF;
    margin-bottom: 20px;
}

h1.article-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 46px;
    line-height: 1.24;
    margin: 0 0 20px;
    color: #fff;
}

.article-dek {
    font-size: 19px;
    color: #C9C9D2;
    max-width: 62ch;
}

.article-body { padding: 56px 0 20px; }

.article-body h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 28px;
    margin: 48px 0 18px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p { margin: 0 0 20px; color: var(--ink-soft); font-size: 17px; }

/* Matches the link colour used across globalsms.co.il (a {color:#760682}) */
.article-body a, .callout a { color: var(--brand-deep); }
.article-body a:hover, .callout a:hover { color: var(--brand); }

.article-body ul, .article-body ol {
    margin: 0 0 24px;
    padding-inline-start: 24px;
    color: var(--ink-soft);
    font-size: 17px;
}

.article-body li { margin-bottom: 11px; }

.callout {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--brand);
    border-radius: 6px;
    padding: 22px 26px;
    margin: 10px 0 32px;
}

.callout p { margin: 0; font-size: 16px; }
.callout p + p { margin-top: 10px; }

.callout-label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--brand-deep);
    margin-bottom: 9px;
    display: block;
}

/* `.article-body p` would otherwise out-rank this and render the legal
   disclaimer at full body size — keep it as fine print. */
.disclaimer,
.article-body p.disclaimer {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 44px;
}

.disclaimer a { color: var(--brand-deep); }

.inline-cta {
    background: var(--ink);
    color: var(--paper);
    border-radius: 16px;
    padding: 40px 42px;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}

.inline-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(360px 260px at 95% 0%, rgba(0,172,230,0.26), transparent 65%);
}

.inline-cta > * { position: relative; }

.inline-cta h2 { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 25px; margin: 0 0 12px; }
.inline-cta p { color: #C9C9D2; font-size: 16px; }
.inline-cta a.btn-cta { color: var(--ink); text-decoration: none; }

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

/* The header row needs ~1030px for brand + 5 nav links + CTA. Below that it
   drops the nav onto its own line, well before the flex row starts squeezing.
   This is deliberately a wider breakpoint than the general 960px one below. */
@media (max-width: 1060px) {
    .site-header .wrap {
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        flex-wrap: wrap;
        row-gap: 12px;
    }
    .main-nav {
        order: 3;
        width: 100%;
        gap: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav a { font-size: 14.5px; }
}

@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 50px; }
    .phone { max-width: 280px; }
    h1.hero-title { font-size: 44px; }
    .value-grid { grid-template-columns: 1fr; gap: 34px; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-logo { width: 140px; }
    .brand-tag { font-size: 11.5px; }
    .guide-row { grid-template-columns: 1fr; gap: 10px; }
    .guide-tag { justify-self: start; }
    h1.article-title { font-size: 32px; }
    .cta-banner { flex-direction: column; align-items: flex-start; }
    h2.section-title { font-size: 32px; }
    .pull-quote p { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
