/* Softily 2026 redesign
/* ---------------------------------------------------------- */
/* Loaded AFTER css/styles.css (Bootstrap + legacy theme). All new components
   use the `sf-` prefix so they cannot collide with legacy class names. The
   legacy file is untouched; remove the <link> in index.html to roll back. */

:root {
    --sf-ink: #0b1220;
    --sf-ink-2: #334155;
    --sf-muted: #5b6b80;
    --sf-line: #e2e8f0;
    --sf-mist: #f6f8fc;
    --sf-navy: #0b1220;
    --sf-navy-2: #131d3b;
    --sf-brand: #4776e6;
    --sf-brand-strong: #2f55c7;
    --sf-brand-soft: #eef2fd;
    --sf-accent: #c32fe8;
    --sf-gradient: linear-gradient(120deg, #4776e6 0%, #c32fe8 100%);
    --sf-radius: 14px;
    --sf-radius-lg: 22px;
    --sf-shadow: 0 18px 40px -22px rgba(11, 18, 32, 0.35);
    --sf-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --bs-body-font-family: var(--sf-font);
    --bs-body-color: var(--sf-ink-2);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sf-font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--sf-ink-2);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

.sf-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.sf-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.sf-section--mist { background: var(--sf-mist); }

.sf h1, .sf h2, .sf h3, .sf h4 {
    font-family: var(--sf-font);
    color: var(--sf-ink);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.sf h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
}

.sf h3 { margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 650; line-height: 1.3; }

.sf p { margin: 0 0 1rem; }

.sf-lead {
    max-width: 58ch;
    color: var(--sf-muted);
    font-size: 1.15rem;
    line-height: 1.6;
}

.sf-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.sf a:focus-visible, .sf-btn:focus-visible, #mainNav a:focus-visible {
    outline: 3px solid rgba(71, 118, 230, 0.55);
    outline-offset: 3px;
    border-radius: 8px;
}

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

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--sf-font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.sf-btn:hover { transform: translateY(-1px); text-decoration: none; }
.sf-btn-sm { padding: 0.6rem 1.1rem; font-size: 0.95rem; }

.sf-btn-primary {
    color: #fff;
    background: var(--sf-gradient);
    box-shadow: 0 10px 24px -10px rgba(71, 118, 230, 0.8);
}
.sf-btn-primary:hover { color: #fff; box-shadow: 0 14px 28px -10px rgba(71, 118, 230, 0.9); }

.sf-btn-ghost { color: var(--sf-ink); border-color: #cbd5e1; background: #fff; }
.sf-btn-ghost:hover { color: var(--sf-brand-strong); border-color: var(--sf-brand); }

.sf-btn-light { color: var(--sf-navy); background: #fff; }
.sf-btn-light:hover { color: var(--sf-navy); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); }

.sf-btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.sf-btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.sf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Navigation (keeps Bootstrap markup + ids that scripts.js relies on)
/* ---------------------------------------------------------- */

#mainNav {
    padding: 0;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--sf-line);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
}

#mainNav .container { min-height: 72px; }

#mainNav .navbar-nav { align-items: center; gap: 0.25rem; }
#mainNav .nav-link, #mainNav .sf-btn { white-space: nowrap; }

#mainNav .navbar-nav .nav-item .nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    color: var(--sf-ink-2);
    font-size: 0.97rem;
    font-weight: 500;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
    color: var(--sf-brand-strong);
    background: var(--sf-brand-soft);
}

#mainNav .navbar-toggler {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    color: var(--sf-ink);
    font-weight: 600;
}

@media (max-width: 991.98px) {
    #mainNav .navbar-collapse { padding: 0.75rem 0 1.25rem; }
    #mainNav .navbar-nav { align-items: stretch; }
    #mainNav .sf-btn { width: 100%; margin-top: 0.5rem; }
}

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

.sf-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(48rem 26rem at 88% -8%, rgba(71, 118, 230, 0.16), transparent 62%),
        radial-gradient(36rem 20rem at 0% 100%, rgba(195, 47, 232, 0.08), transparent 60%),
        #fff;
}

.sf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(11, 18, 32, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 18, 32, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
    mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
    pointer-events: none;
}

.sf-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.sf-hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.sf-hero .sf-lead { margin-bottom: 2rem; }

.sf-hero-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sf-line);
    color: var(--sf-muted);
    font-size: 0.95rem;
}

.sf-hero-proof img { width: 150px; height: auto; flex: none; }

@media (max-width: 991.98px) {
    .sf-hero-grid { grid-template-columns: 1fr; }
}

/* Hero visual: an AI agent answering from live Zoho data.
   One reveal on load, played once. Everything is visible without motion. */
/* ---------------------------------------------------------- */

.sf-agent {
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-lg);
    background: #fff;
    box-shadow: var(--sf-shadow);
    overflow: hidden;
}

.sf-agent-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sf-line);
}

.sf-agent-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--sf-gradient);
    color: #fff;
    font-size: 1.1rem;
}

.sf-agent-who { flex: 1; min-width: 0; line-height: 1.3; }
.sf-agent-name { display: block; color: var(--sf-ink); font-weight: 650; }
.sf-agent-meta { display: block; color: var(--sf-muted); font-size: 0.82rem; }

.sf-agent-note {
    flex: none;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--sf-brand-soft);
    color: var(--sf-brand-strong);
    font-size: 0.8rem;
    font-weight: 600;
}

.sf-agent-body { display: grid; gap: 0.9rem; padding: 1.25rem; }

.sf-msg {
    max-width: 88%;
    padding: 0.7rem 0.95rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.sf-msg--user {
    justify-self: end;
    border-bottom-right-radius: 5px;
    background: var(--sf-navy);
    color: #fff;
}

.sf-msg--agent {
    max-width: 100%;
    border-bottom-left-radius: 5px;
    background: var(--sf-mist);
    border: 1px solid var(--sf-line);
    color: var(--sf-ink-2);
}

.sf-chan { justify-self: end; margin-bottom: -0.45rem; color: var(--sf-muted); font-size: 0.78rem; }

.sf-crm {
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px -18px rgba(11, 18, 32, 0.45);
    overflow: hidden;
}

.sf-crm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.9rem;
    background: var(--sf-brand-soft);
    border-bottom: 1px solid var(--sf-line);
}
.sf-crm-title { color: var(--sf-brand-strong); font-size: 0.85rem; font-weight: 700; }
.sf-crm-made { display: inline-flex; align-items: center; gap: 0.35rem; color: #12805c; font-size: 0.8rem; font-weight: 600; }

.sf-crm-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.9rem;
    border-top: 1px solid var(--sf-line);
    font-size: 0.88rem;
}
.sf-crm-head + .sf-crm-row { border-top: 0; }
.sf-crm-row span { flex: none; color: var(--sf-muted); }
.sf-crm-row strong { color: var(--sf-ink); font-weight: 600; text-align: right; }
.sf-crm-row .sf-hot { color: #b4540a; }

.sf-msg-done { display: flex; align-items: flex-start; gap: 0.5rem; }
.sf-msg-done i { margin-top: 0.1rem; color: #12805c; font-size: 1.05rem; }

/* A typing indicator and the reply share one grid cell, so the layout never jumps. */
.sf-turn { display: grid; }
.sf-turn > * { grid-area: 1 / 1; }

.sf-typing {
    align-self: start;
    justify-self: start;
    display: flex;
    gap: 5px;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border-bottom-left-radius: 5px;
    background: var(--sf-mist);
    border: 1px solid var(--sf-line);
}
.sf-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: sf-blink 1s ease-in-out infinite;
}
.sf-typing span:nth-child(2) { animation-delay: 0.15s; }
.sf-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes sf-blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes sf-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes sf-flash { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }

.sf-r { animation: sf-show 0.35s ease-out both; animation-delay: var(--d, 0s); }
.sf-t { animation: sf-flash var(--len, 1.1s) ease-in-out both; animation-delay: var(--d, 0s); }

/* Proof strip under the hero
/* ---------------------------------------------------------- */

.sf-proofbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--sf-line);
}

.sf-proofbar li {
    margin: 0;
    padding: 1.5rem 1.75rem;
    border-left: 1px solid var(--sf-line);
}
.sf-proofbar li:first-child { border-left: 0; padding-left: 0; }

.sf-proofbar strong { display: block; color: var(--sf-ink); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.sf-proofbar span { display: block; margin-top: 0.15rem; color: var(--sf-muted); font-size: 0.92rem; line-height: 1.45; }

@media (max-width: 991.98px) {
    .sf-proofbar { grid-template-columns: repeat(2, 1fr); }
    .sf-proofbar li { padding: 1.1rem 1rem; border-left: 0; border-top: 1px solid var(--sf-line); }
    .sf-proofbar li:nth-child(-n+2) { border-top: 0; }
    .sf-proofbar li:nth-child(odd) { padding-left: 0; }
    .sf-proofbar li:nth-child(even) { border-left: 1px solid var(--sf-line); }
}

/* Logo marquee
/* ---------------------------------------------------------- */

.sf-logos { padding: 2.25rem 0 2.5rem; border-bottom: 1px solid var(--sf-line); }

.sf-logos-title { margin: 0 0 1.5rem; text-align: center; color: var(--sf-muted); font-size: 0.98rem; font-weight: 500; }

.sf-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.sf-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: sf-marquee 45s linear infinite;
}

.sf-marquee:hover .sf-track { animation-play-state: paused; }

.sf-track img {
    height: 36px;
    width: auto;
    margin: 0 2.25rem;
    filter: grayscale(1);
    opacity: 0.7;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.sf-track img:hover { filter: none; opacity: 1; }

@keyframes sf-marquee { to { transform: translateX(-50%); } }

/* Outcomes
/* ---------------------------------------------------------- */

.sf-outcomes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--sf-line);
}

.sf-outcome { padding: 2rem 2rem 0.5rem 0; }
.sf-outcome + .sf-outcome { padding-left: 2rem; border-left: 1px solid var(--sf-line); }
.sf-outcome h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.sf-outcome p { color: var(--sf-muted); }

@media (max-width: 767.98px) {
    .sf-outcomes { grid-template-columns: 1fr; }
    .sf-outcome, .sf-outcome + .sf-outcome { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--sf-line); }
}

/* Services
/* ---------------------------------------------------------- */

.sf-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.sf-service {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-service:hover { border-color: #b9c7ec; box-shadow: var(--sf-shadow); }

.sf-service-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background: var(--sf-brand-soft);
    color: var(--sf-brand-strong);
    font-size: 1.25rem;
}

.sf-service p { margin: 0; color: var(--sf-muted); font-size: 0.98rem; }

.sf-service--feature {
    grid-column: span 2;
    justify-content: space-between;
    padding: 2rem;
    border: 0;
    border-radius: var(--sf-radius-lg);
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(28rem 16rem at 100% 0%, rgba(195, 47, 232, 0.4), transparent 65%),
        linear-gradient(140deg, var(--sf-navy) 0%, #1b2a6b 100%);
}

.sf-service--feature:hover { border: 0; }
.sf-service--feature h3 { color: #fff; font-size: 1.7rem; letter-spacing: -0.02em; }
.sf-service--feature p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; max-width: 46ch; }
.sf-service--feature .sf-service-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }

.sf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }

.sf-chip {
    margin: 0;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    background: #fff;
    color: var(--sf-ink-2);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.sf-service--feature .sf-chip { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #fff; }

.sf-apps { margin-top: 3rem; }
.sf-apps h3 { font-size: 1.05rem; color: var(--sf-muted); font-weight: 500; }

@media (max-width: 991.98px) {
    .sf-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-service--feature { grid-column: span 2; }
}
@media (max-width: 575.98px) {
    .sf-services { grid-template-columns: 1fr; }
    .sf-service--feature { grid-column: auto; }
}

/* Process (a real sequence, so the numbering carries information)
/* ---------------------------------------------------------- */

.sf-process { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.sf-process-intro { position: sticky; top: 7rem; }

.sf-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }

.sf-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    margin: 0;
    padding: 0 0 2rem;
    counter-increment: step;
}

.sf-step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--sf-brand);
    border-radius: 50%;
    background: #fff;
    color: var(--sf-brand-strong);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.sf-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--sf-line);
}

.sf-step h3 { margin-top: 0.4rem; }
.sf-step p { margin: 0; color: var(--sf-muted); }

@media (max-width: 991.98px) {
    .sf-process { grid-template-columns: 1fr; }
    .sf-process-intro { position: static; }
}

/* Case studies band
/* ---------------------------------------------------------- */

.sf-results {
    color: rgba(255, 255, 255, 0.8);
    background:
        radial-gradient(40rem 22rem at 100% 0%, rgba(195, 47, 232, 0.28), transparent 60%),
        radial-gradient(36rem 20rem at 0% 100%, rgba(71, 118, 230, 0.4), transparent 60%),
        linear-gradient(160deg, var(--sf-navy) 0%, var(--sf-navy-2) 100%);
}

.sf-results h2 { color: #fff; }
.sf-results .sf-lead { color: rgba(255, 255, 255, 0.78); }

.sf-results-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }

.sf-results .sf-chip { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 1rem; padding: 0.5rem 1rem; }
.sf-results .sf-chips { margin: 0; }

@media (max-width: 991.98px) { .sf-results-grid { grid-template-columns: 1fr; } }

/* Testimonials
/* ---------------------------------------------------------- */

.sf-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.sf-quote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 1.75rem;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    background: #fff;
}

.sf-quote--feature { grid-column: 1 / -1; padding: clamp(1.75rem, 4vw, 3rem); border: 0; background: var(--sf-mist); border-radius: var(--sf-radius-lg); }

.sf-quote blockquote {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
    color: var(--sf-ink);
    font-size: 1.05rem;
    line-height: 1.6;
}

.sf-quote--feature blockquote { max-width: 40ch; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }

.sf-quote figcaption { display: flex; align-items: center; gap: 0.9rem; }
.sf-quote img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.sf-quote-name { display: block; color: var(--sf-ink); font-weight: 600; line-height: 1.3; }
.sf-quote-role { display: block; color: var(--sf-muted); font-size: 0.92rem; }

@media (max-width: 767.98px) { .sf-quotes { grid-template-columns: 1fr; } }

/* Final CTA
/* ---------------------------------------------------------- */

.sf-cta {
    padding: clamp(2.5rem, 6vw, 4.5rem);
    border-radius: 28px;
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(34rem 18rem at 100% 0%, rgba(195, 47, 232, 0.45), transparent 62%),
        radial-gradient(30rem 18rem at 0% 100%, rgba(71, 118, 230, 0.5), transparent 62%),
        linear-gradient(150deg, var(--sf-navy) 0%, #1b2a6b 100%);
}

.sf-cta h2 { max-width: 20ch; color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.sf-cta .sf-lead { color: rgba(255, 255, 255, 0.78); margin-bottom: 2rem; }
.sf .sf-cta-contact { margin: 1.75rem 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.98rem; }
.sf-cta-contact a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

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

.sf-footer { padding: 4.5rem 0 0; color: rgba(255, 255, 255, 0.7); background: var(--sf-navy); font-size: 0.98rem; }

.sf-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.sf-footer-logo { width: 140px; height: auto; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.sf-footer-brand p { max-width: 34ch; margin-bottom: 1.25rem; }
.sf-footer-badge { width: 190px; height: auto; border-radius: 8px; background: #fff; padding: 6px 10px; }

.sf-footer h3 { margin: 0 0 1rem; color: #fff; font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.sf-footer ul { margin: 0; padding: 0; list-style: none; }
.sf-footer li { margin: 0 0 0.6rem; padding: 0; }
.sf-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.sf-footer a:hover { color: #fff; text-decoration: none; }

.sf-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.sf-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; font-size: 1.05rem; }
.sf-social a:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.sf-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1.5rem 0 2rem; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }
.sf-footer-base a { color: rgba(255, 255, 255, 0.6); }

@media (max-width: 991.98px) { .sf-footer-grid { grid-template-columns: 1fr 1fr; } .sf-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .sf-footer-grid { grid-template-columns: 1fr; } }

/* Contact modal: match the new look without touching its markup
/* ---------------------------------------------------------- */

#contactModal .modal-content { border: 0; border-radius: var(--sf-radius-lg); overflow: hidden; }
#contactModal .modal-header { background: var(--sf-navy) !important; border: 0; } /* legacy .bg-gradient-primary-to-secondary uses !important */
#contactModal .form-control { border-radius: 12px; border-color: #cbd5e1; }
#contactModal .form-control:focus { border-color: var(--sf-brand); box-shadow: 0 0 0 4px rgba(71, 118, 230, 0.18); }
#contactModal #submitButton { background: var(--sf-gradient); border: 0; font-weight: 600; }

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sf-track { animation: none; }
    .sf-r, .sf-t, .sf-typing span { animation: none; }
    .sf-t { display: none; }
    .sf-btn:hover { transform: none; }
}
