/* ContractWiser – brand styles (navy + gold, taken from the logo) */
:root {
  --cw-navy: #0e1f45;
  --cw-navy-2: #16295a;
  --cw-ink: #1d2433;
  --cw-gold: #b8862b;
  --cw-gold-2: #d4a447;
  --cw-cream: #f7f3ea;
  --cw-line: #e6dfcf;
  --cw-muted: #5d6576;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-sans); color: var(--cw-ink); background: #fff; line-height: 1.7; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--cw-navy); }
a { color: var(--cw-gold); }
a:hover { color: var(--cw-navy); }

/* Buttons */
.btn-gold { background: var(--cw-gold); border: 1px solid var(--cw-gold); color: #fff; font-weight: 600; letter-spacing: .02em; border-radius: 2px; padding-inline: 1.4rem; }
.btn-gold:hover, .btn-gold:focus { background: var(--cw-navy); border-color: var(--cw-navy); color: #fff; }
.btn-outline-light { border-radius: 2px; font-weight: 600; }
.btn-whatsapp { background: #1fa855; color: #fff; border: 0; font-weight: 700; border-radius: 2px; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #178a45; color: #fff; }

/* Top bar */
.topbar { background: var(--cw-navy); color: #cdd4e4; font-size: .85rem; padding: .45rem 0; }
.topbar a { color: #cdd4e4; text-decoration: none; }
.topbar a:hover { color: var(--cw-gold-2); }
.topbar i { color: var(--cw-gold-2); margin-right: .3rem; }

/* Navbar */
.navbar { background: #fff; box-shadow: 0 1px 0 var(--cw-line); padding: .6rem 0; transition: box-shadow .3s, padding .3s; }
.navbar.scrolled { box-shadow: 0 6px 24px rgba(14, 31, 69, .08); padding: .3rem 0; }
.navbar-brand img { height: 62px; width: auto; transition: height .3s; }
.navbar.scrolled .navbar-brand img { height: 50px; }
.navbar .nav-link { color: var(--cw-navy); font-weight: 600; font-size: .92rem; padding: .5rem .85rem !important; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--cw-gold); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--cw-gold); }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--cw-navy); }
.navbar-toggler:focus { box-shadow: none; }

/* Hero carousel */
#heroCarousel .carousel-item { height: min(86vh, 760px); min-height: 520px; background: var(--cw-navy); }
#heroCarousel .hero-img { width: 100%; height: 100%; object-fit: cover; }
#heroCarousel .carousel-item::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10, 22, 50, .92) 0%, rgba(10, 22, 50, .7) 40%, rgba(10, 22, 50, .15) 75%); }
#heroCarousel .carousel-item.active .hero-img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
#heroCarousel .carousel-caption { z-index: 2; text-align: left; left: 0; right: 0; top: 50%; bottom: auto; transform: translateY(-50%);
  max-width: 1320px; margin: 0 auto; padding: 0 calc(var(--bs-gutter-x, 1.5rem) + 1rem); }
#heroCarousel .carousel-caption > * { max-width: 640px; }
#heroCarousel h1, #heroCarousel h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.12; margin: .8rem 0 1.2rem; }
#heroCarousel h1 em, #heroCarousel h2 em { color: var(--cw-gold-2); }
#heroCarousel .carousel-caption p { font-size: 1.15rem; color: #dfe4ef; margin-bottom: 1.8rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: var(--cw-gold-2); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--cw-gold-2); }
#heroCarousel .carousel-item.active .carousel-caption > * { animation: rise .9s both; }
#heroCarousel .carousel-item.active .carousel-caption > *:nth-child(2) { animation-delay: .12s; }
#heroCarousel .carousel-item.active .carousel-caption > *:nth-child(3) { animation-delay: .24s; }
#heroCarousel .carousel-item.active .carousel-caption > *:nth-child(n+4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
#heroCarousel .carousel-indicators { z-index: 3; margin-bottom: 2rem; }
#heroCarousel .carousel-indicators [data-bs-target] { width: 34px; height: 3px; background: #fff; border: 0; opacity: .45; }
#heroCarousel .carousel-indicators .active { background: var(--cw-gold-2); opacity: 1; }
#heroCarousel .carousel-control-prev, #heroCarousel .carousel-control-next { z-index: 3; width: 6%; }

/* Stats */
.stats { background: var(--cw-navy); color: #fff; border-top: 3px solid var(--cw-gold); }
.stat { padding: 1.8rem 1rem; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 2.3rem; color: var(--cw-gold-2); line-height: 1.1; }
.stat span:not(.counter) { font-size: .85rem; color: #c3cbdc; }

/* Sections */
.section { padding: 100px 0; }
.section-eyebrow { display: inline-block; color: var(--cw-gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; margin-bottom: .8rem; }
.section-title { font-size: clamp(1.9rem, 3.3vw, 2.7rem); line-height: 1.2; margin-bottom: 1.2rem; }
.section-head { max-width: 680px; }
.section-head p { color: var(--cw-muted); }
.lead { font-size: 1.2rem; color: var(--cw-navy); }
.signature { font-family: var(--font-serif); font-style: italic; color: var(--cw-gold); font-size: 1.2rem; border-left: 3px solid var(--cw-gold); padding-left: 1rem; margin-top: 1.8rem; }
.small-muted { font-size: .9rem; color: var(--cw-muted); margin-bottom: 0; }

/* About features */
.feature-stack { display: grid; gap: 1.25rem; }
.feature { display: flex; gap: 1.25rem; padding: 1.6rem; background: var(--cw-cream); border-left: 3px solid var(--cw-gold); }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { margin-bottom: .5rem; }
.feature-icon { flex: 0 0 52px; height: 52px; display: grid; place-items: center; background: var(--cw-navy); color: var(--cw-gold-2); font-size: 1.4rem; }

/* Vision & mission */
.vm { background: var(--cw-cream); padding: 80px 0; }
.vm-card { position: relative; background: #fff; padding: 2.6rem 2.2rem; height: 100%; border-top: 3px solid var(--cw-navy); box-shadow: 0 12px 40px rgba(14, 31, 69, .06); overflow: hidden; }
.vm-card h3 { font-size: 1.6rem; }
.vm-card h3 i { color: var(--cw-gold); margin-right: .4rem; }
.vm-card p { margin: 0; color: var(--cw-muted); font-size: 1.05rem; }
.vm-num { position: absolute; right: 1.2rem; top: .2rem; font-family: var(--font-serif); font-size: 5.5rem; color: rgba(184, 134, 43, .12); line-height: 1; }

/* Services */
.service-card { position: relative; height: 100%; padding: 2rem 1.6rem 1.8rem; border: 1px solid var(--cw-line); background: #fff; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14, 31, 69, .1); border-color: var(--cw-gold); }
.service-card i { font-size: 1.8rem; color: var(--cw-gold); display: block; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.08rem; line-height: 1.45; margin: 0; }
.service-card .num { position: absolute; top: 1rem; right: 1.2rem; font-weight: 700; font-size: .8rem; color: var(--cw-muted); letter-spacing: .1em; }

/* Agreements (dark) */
.dark { background: linear-gradient(160deg, var(--cw-navy) 0%, #0a1733 100%); color: #d6dcea; }
.text-light-50 { color: #b9c2d6; }
.agreement-accordion .accordion-item { background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.agreement-accordion .accordion-button { background: transparent; color: #fff; font-family: var(--font-serif); font-size: 1.12rem; padding: 1.15rem .25rem; box-shadow: none; }
.agreement-accordion .accordion-button .idx { color: var(--cw-gold-2); font-family: var(--font-sans); font-weight: 700; font-size: .85rem; width: 2.6rem; flex-shrink: 0; }
.agreement-accordion .accordion-button::after { filter: invert(1) sepia(1) saturate(4) hue-rotate(5deg); }
.agreement-accordion .accordion-button:not(.collapsed) { color: var(--cw-gold-2); }
.agreement-accordion .accordion-body { padding: 0 .25rem 1.3rem 2.85rem; color: #c3cbdc; }
.agreement-accordion .chip { display: inline-block; border: 1px solid rgba(212, 164, 71, .45); color: #f0dcb1; padding: .25rem .8rem; margin: 0 .4rem .5rem 0; font-size: .85rem; border-radius: 40px; }
.agreement-accordion .ask-link { color: var(--cw-gold-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.agreement-accordion .ask-link:hover { color: #fff; }

/* Who we serve */
.client-card { height: 100%; padding: 2rem 1.6rem; background: var(--cw-cream); transition: background .3s, color .3s; }
.client-card i { font-size: 2rem; color: var(--cw-gold); }
.client-card h3 { font-size: 1.15rem; margin: 1rem 0 .6rem; transition: color .3s; }
.client-card p { font-size: .93rem; color: var(--cw-muted); margin: 0; transition: color .3s; }
.client-card:hover { background: var(--cw-navy); }
.client-card:hover h3 { color: #fff; }
.client-card:hover p { color: #c3cbdc; }

/* Values */
.values { background: var(--cw-cream); }
.value-card { height: 100%; background: #fff; padding: 2rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; border-bottom: 3px solid transparent; transition: border-color .3s; }
.value-card:hover { border-color: var(--cw-gold); }
.value-card span { grid-row: span 2; font-family: var(--font-serif); font-size: 2.6rem; color: var(--cw-gold); line-height: 1; }
.value-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.value-card p { margin: 0; color: var(--cw-muted); font-size: .95rem; }

/* Inquiry */
.inquiry-wrap { box-shadow: 0 30px 70px rgba(14, 31, 69, .14); }
.inquiry-side { background: var(--cw-navy); color: #c9d1e2; padding: 3rem 2.6rem; position: relative; overflow: hidden; }
.inquiry-side::after { content: ""; position: absolute; width: 280px; height: 280px; border: 40px solid rgba(212, 164, 71, .08); border-radius: 50%; right: -110px; bottom: -110px; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.3rem; }
.contact-list i { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(212, 164, 71, .5); color: var(--cw-gold-2); font-size: 1.1rem; }
.contact-list small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: #8f9ab3; }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--cw-gold-2); }
.tagline { font-family: var(--font-serif); font-style: italic; color: var(--cw-gold-2); margin: 0; }
.inquiry-form { background: #fff; padding: 3rem 2.6rem; }
.form-label { font-weight: 600; font-size: .9rem; color: var(--cw-navy); }
.req { color: var(--cw-gold); }
.form-control, .form-select { border-radius: 2px; border-color: #d7d2c4; padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--cw-gold); box-shadow: 0 0 0 .2rem rgba(184, 134, 43, .18); }
.form-note { font-size: .82rem; color: var(--cw-muted); text-align: center; margin: .8rem 0 0; }
.invalid-feedback.d-block-when-invalid { display: none; }
.was-validated #description:invalid ~ div .d-block-when-invalid,
#description.is-invalid ~ div .d-block-when-invalid { display: block; }

/* Map */
.map-section { position: relative; height: 460px; background: #e9e5dc; }
.map-section iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map-card { position: absolute; z-index: 2; top: 50%; left: max(1.5rem, calc((100vw - 1296px) / 2)); transform: translateY(-50%); background: #fff; padding: 1.8rem 2rem; max-width: 330px; border-top: 3px solid var(--cw-gold); box-shadow: 0 18px 45px rgba(14, 31, 69, .2); }
.map-card h3 { font-size: 1.35rem; }
.map-card p { margin-bottom: .6rem; color: var(--cw-muted); font-size: .95rem; }
.map-card i { color: var(--cw-gold); margin-right: .3rem; }

/* Footer */
.footer { background: #0a1733; color: #9ea9c2; padding: 60px 0 28px; }
.footer-logo { display: inline-block; background: #fff; padding: .6rem 1rem; }
.footer-logo img { height: 60px; width: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; justify-content: flex-lg-end; }
@media (min-width: 992px) { .footer-links { justify-content: flex-end; } }
.footer a { color: #cfd6e6; text-decoration: none; }
.footer a:hover { color: var(--cw-gold-2); }
.footer hr { border-color: rgba(255, 255, 255, .12); margin: 2rem 0 1.4rem; opacity: 1; }

/* Floating actions */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1030; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(0, 0, 0, .22); animation: pulse 2.4s infinite; }
.wa-float:hover { color: #fff; background: #1fa855; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top { position: fixed; right: 30px; bottom: 94px; z-index: 1030; width: 42px; height: 42px; border: 0; background: var(--cw-navy); color: var(--cw-gold-2); display: none; }
.to-top:hover { background: var(--cw-gold); color: #fff; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  #heroCarousel .carousel-item.active .hero-img,
  #heroCarousel .carousel-item.active .carousel-caption > *,
  .wa-float { animation: none; }
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0; }
  .navbar .nav-link::after { display: none; }
  .section { padding: 72px 0; }
  .inquiry-side, .inquiry-form { padding: 2.4rem 1.6rem; }
  .map-section { height: auto; }
  .map-section iframe { height: 360px; display: block; }
  .map-card { position: static; transform: none; max-width: none; box-shadow: none; }
}
@media (max-width: 575.98px) {
  .navbar-brand img { height: 48px; }
  #heroCarousel .carousel-item { min-height: 560px; }
  #heroCarousel .carousel-item::before { background: rgba(10, 22, 50, .78); }
  .stat:nth-child(2) { border-right: 0; }
  .stat strong { font-size: 1.9rem; }
}
