/* ==========================================================================
   SL CREDIT PLUS — style.css
   Brand: logo-derived navy #1D4F91 / gray #58595B · Fonts: Cinzel + Source Sans 3
   ========================================================================== */

:root {
  --brand: #1D4F91;
  --brand-600: #173E74;
  --brand-700: #122F59;
  --ink: #1F2937;
  --muted: #5B6472;
  --line: #E3E8F0;
  --bg: #F6F8FB;
  --chip-bg: #EAF0FA;
  --wa: #22C15E;
  --wa-600: #1AA84F;
  --err: #C0392B;
  --shadow: 0 10px 30px rgba(16, 42, 84, .08);
  --shadow-lg: 0 18px 50px rgba(16, 42, 84, .16);
  --r: 16px;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%;
  display: block
}

a {
  color: var(--brand);
  text-decoration: none
}

ul {
  list-style: none
}

h1,
h2,
.stat__num,
.rate__num {
  font-family: 'Cinzel', Georgia, serif;
  line-height: 1.18;
  color: var(--ink)
}

h3,
h4 {
  font-weight: 700;
  line-height: 1.35
}

::selection {
  background: var(--brand);
  color: #fff
}

section {
  scroll-margin-top: calc(var(--nav-h) + 12px)
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto
}

.hp {
  position: absolute !important;
  left: -9999px !important
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0
}

.skip-link:focus {
  left: 0
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  font-family: inherit
}

.btn:hover {
  transform: translateY(-2px)
}

.btn:active {
  transform: translateY(0)
}

.btn--primary {
  background: var(--brand);
  color: #fff
}

.btn--primary:hover {
  background: var(--brand-600);
  box-shadow: 0 10px 24px rgba(29, 79, 145, .35)
}

.btn--wa {
  background: var(--wa);
  color: #fff
}

.btn--wa:hover {
  background: var(--wa-600);
  box-shadow: 0 10px 24px rgba(34, 193, 94, .35)
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .6);
  color: #fff
}

.btn--ghost:hover {
  background: #fff;
  color: var(--brand)
}

.text-link {
  font-weight: 600
}

.text-link:hover {
  text-decoration: underline
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--brand-700);
  color: #CFDCF3;
  font-size: .78rem
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  flex-wrap: wrap
}

.topbar__licence {
  letter-spacing: .01em
}

.topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto
}

.topbar a {
  color: #fff;
  font-weight: 600
}

.lang {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 2px
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #B9C8E4;
  font-weight: 700;
  font-size: .75rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit
}

.lang-btn.is-active {
  background: #fff;
  color: var(--brand-700)
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  transition: box-shadow .3s ease
}

.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(15, 34, 66, .12)
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: var(--nav-h)
}

.logo img {
  height: 70px;
  width: auto;
  transition: height .3s ease
}

.header.is-scrolled .logo img {
  height: 70px
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem
}

.nav__link {
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: .3rem 0;
  font-size: .95rem
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease
}

.nav__link:hover {
  color: var(--brand)
}

.nav__link:hover::after {
  transform: scaleX(1)
}

.header__cta {
  padding: .6rem 1.2rem;
  font-size: .88rem
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: var(--brand-700);
  border-radius: 2px;
  transition: transform .3s ease, top .3s ease
}

.nav-toggle span:first-child {
  top: 17px
}

.nav-toggle span:last-child {
  top: 25px
}

.nav-toggle.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg)
}

.nav-toggle.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg)
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 7rem 0 8rem;
  overflow: hidden
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(13, 30, 60, .95) 10%, rgba(23, 62, 116, .87) 55%, rgba(29, 79, 145, .72))
}

.hero__content {
  max-width: 680px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: .42rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(4px)
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  color: #fff;
  margin: 1.2rem 0 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25)
}

.hero__sub {
  color: #DBE6F6;
  font-size: 1.06rem;
  max-width: 560px
}

.hero__ctas {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem
}

.hero__chips {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 2.4rem
}

.chip {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #E8EEF9;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06)
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -3.4rem;
  padding-bottom: 0
}

.stats__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg)
}

.stat {
  background: #fff;
  padding: 1.7rem 1.4rem;
  text-align: center
}

.stat__num {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand)
}

.stat__label {
  display: block;
  margin-top: .3rem;
  font-size: .85rem;
  color: var(--muted)
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0
}

.section--alt {
  background: var(--bg)
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.6rem
}

.kicker {
  display: block;
  color: var(--brand);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .6rem
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: .8rem
}

.lead {
  font-size: 1.05rem
}

p {
  color: var(--muted)
}

p+p {
  margin-top: .8rem
}

h2+p {
  color: var(--muted)
}

.center-note {
  margin-top: 2rem;
  text-align: center;
  font-size: .9rem
}

.about__grid p {
  color: var(--muted)
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.2rem;
  align-items: start
}

.about__media img {
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4;
  object-fit: cover;
  width: 100%
}

.vals {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.8rem
}

.val {
  display: flex;
  gap: .95rem;
  align-items: flex-start
}

.val__icon {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--brand);
  display: grid;
  place-items: center
}

.val__icon.wa-icon {
  background: #E7F8EE;
  color: var(--wa-600)
}

.val h3 {
  font-size: 1.02rem;
  margin-bottom: .15rem
}

.val p {
  font-size: .93rem
}

.facts {
  margin-top: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff
}

.facts__title {
  background: var(--chip-bg);
  color: var(--brand-700);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 1.2rem
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .92rem
}

.fact dt {
  color: var(--muted)
}

.fact dd {
  font-weight: 700;
  text-align: right
}

/* ---------- Cards / Products ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .25s ease, box-shadow .25s ease
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg)
}

.card__rate {
  align-self: flex-start;
  background: var(--chip-bg);
  color: var(--brand);
  font-weight: 700;
  font-size: .82rem;
  padding: .32rem .8rem;
  border-radius: 999px
}

.card h3 {
  font-size: 1.25rem;
  font-family: 'Cinzel', Georgia, serif;
  color: var(--ink)
}

.card p {
  flex: 1;
  font-size: .95rem
}

.card__btn {
  align-self: flex-start;
  margin-top: .4rem;
  padding: .62rem 1.3rem
}

/* ---------- Rates ---------- */
.rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem
}

.rate {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: transform .25s ease, box-shadow .25s ease
}

.rate:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg)
}

.rate__num {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--brand)
}

.rate__num small {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 600
}

.rate__name {
  font-weight: 600
}

.rates__note {
  margin-top: 1.8rem;
  font-size: .92rem;
  max-width: 780px
}

.strip {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--chip-bg);
  border: 1px solid #CFDCF0;
  border-left: 4px solid var(--brand);
  padding: 1.15rem 1.4rem;
  border-radius: 12px;
  color: var(--brand-700);
  font-weight: 600;
  font-size: .95rem
}

.strip svg {
  flex: 0 0 auto;
  margin-top: .1rem
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: none
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.7rem;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg)
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: .4rem
}

.step p {
  font-size: .92rem
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 38px;
  right: -1.35rem;
  width: 1.3rem;
  border-top: 2px dashed #C7D3E6
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem
}

.gallery__item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .45s ease
}

.gallery__item:hover img {
  transform: scale(1.05)
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.2rem;
  align-items: start
}

.info-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: .9rem;
  transition: border-color .25s ease, transform .25s ease
}

.info-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px)
}

.info-card h3 {
  font-size: .98rem;
  margin-bottom: .15rem
}

.info-card p {
  font-size: .92rem
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: var(--shadow)
}

.form h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: var(--ink)
}

.form__sub {
  font-size: .9rem;
  margin: .3rem 0 1.4rem
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.field {
  margin-bottom: 1rem
}

label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .35rem
}

input,
select,
textarea {
  width: 100%;
  padding: .72rem .9rem;
  border: 1px solid #C9D3E2;
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  background: #FBFCFE;
  transition: border-color .2s ease, box-shadow .2s ease;
  color: var(--ink)
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 79, 145, .14)
}

textarea {
  resize: vertical
}

.is-invalid {
  border-color: var(--err) !important
}

.err {
  display: none;
  color: var(--err);
  font-size: .78rem;
  margin-top: .3rem;
  font-weight: 600
}

.err.show {
  display: block
}

.form__actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: .4rem
}

.form__actions .btn {
  flex: 1;
  min-width: 200px
}

.form__privacy {
  font-size: .8rem;
  margin-top: 1.1rem
}

.form__privacy a {
  text-decoration: underline
}

.map {
  margin-top: 2.4rem;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow)
}

.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block
}

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-700);
  color: #C9D6EE;
  font-size: .92rem
}

.footer a {
  color: #fff
}

.footer a:hover {
  text-decoration: underline
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr;
  gap: 2.2rem;
  padding: 3.5rem 0 2.6rem
}

.logo-chip {
  background: #fff;
  border-radius: 12px;
  padding: .6rem .9rem;
  display: inline-block;
  margin-bottom: 1rem
}

.logo-chip img {
  height: 96px;
  width: auto
}

.footer__blurb {
  color: #AEBFE0;
  font-size: .9rem
}

.footer h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 1rem;
  letter-spacing: .03em
}

.footer li {
  margin-bottom: .55rem;
  color: #AEBFE0
}

.footer li a {
  font-weight: 600
}

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 1.4rem 0;
  font-size: .78rem;
  color: #9FB2D4
}

.footer__legal p+p {
  margin-top: .35rem
}

.footer--slim .footer__grid {
  display: none
}

/* ---------- Floating / toast ---------- */
.wa-fab,
.top-btn {
  position: fixed;
  right: 1.1rem;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease
}

.wa-fab {
  bottom: 1.1rem;
  background: var(--wa);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28)
}

.wa-fab:hover {
  background: var(--wa-600)
}

.top-btn {
  bottom: 5rem;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow)
}

.wa-fab.show,
.top-btn.show {
  opacity: 1;
  transform: none;
  pointer-events: auto
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 20px);
  background: var(--brand-700);
  color: #fff;
  padding: .9rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  z-index: 90;
  max-width: 92%;
  text-align: center;
  font-size: .92rem
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0s)
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ---------- Privacy page ---------- */
.page-hero {
  background: linear-gradient(100deg, var(--brand-700), var(--brand));
  color: #fff;
  padding: 3.5rem 0
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem)
}

.page-hero p {
  color: #C9D6EE;
  margin-top: .4rem;
  font-size: .95rem
}

.pn-wrap {
  max-width: 860px;
  padding: 2.5rem 0 4rem
}

.pn {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line)
}

.pn--last {
  border-bottom: 0
}

.pn h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: .45rem
}

.pn p {
  line-height: 1.75;
  font-size: .97rem
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--bg)
}

.error-card {
  background: #fff;
  padding: 3.5rem 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 480px;
  width: 92%
}

.error-card img {
  margin: 0 auto 1.5rem;
  height: 56px;
  width: auto
}

.error-card h1 {
  font-size: 4rem;
  color: var(--brand)
}

.error-card p {
  margin-bottom: 1.8rem
}

/* ---------- Responsive ---------- */
@media (max-width:1020px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: .6rem 4% 1.2rem;
    box-shadow: 0 18px 30px rgba(15, 34, 66, .14);
    display: none;
    animation: slideDown .25s ease
  }

  .nav.is-open {
    display: flex
  }

  .nav__link {
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem
  }

  .nav__link::after {
    display: none
  }

  .nav-toggle {
    display: block;
    margin-left: auto
  }

  .header__cta {
    display: none
  }

  .header__inner {
    justify-content: space-between
  }

  .cards,
  .rates,
  .steps {
    grid-template-columns: repeat(2, 1fr)
  }

  .step:not(:last-child)::after {
    display: none
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px)
    }

    to {
      opacity: 1;
      transform: none
    }
  }
}

@media (max-width:640px) {
  .topbar__licence {
    font-size: .68rem
  }

  .topbar a[data-tel] {
    display: none
  }

  .section {
    padding: 4rem 0
  }

  .hero {
    padding: 5rem 0 6rem
  }

  .stats__card {
    grid-template-columns: repeat(2, 1fr)
  }

  .cards,
  .rates,
  .steps,
  .gallery {
    grid-template-columns: 1fr
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .form {
    padding: 1.5rem
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem
  }

  .map iframe {
    height: 320px
  }

  .logo img {
    height: 58px
  }
  
  .header.is-scrolled .logo img {
    height: 58px
  }
  
    .logo-chip img {
    height: 120px
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }
}