/* =========================================================
   Capital Service Consulting — Custom styles
   Layered on top of Tailwind utility classes.
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #0a1a3c;
  color: #d4af37;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
#site-header {
  background: transparent;
}
#site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(10, 26, 60, 0.15);
}
#site-header.header-scrolled #brand-name {
  color: #0a1a3c;
}
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #c9a24b;
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: #c9a24b;
}
.nav-link:hover::after {
  width: 100%;
}
.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid rgba(10, 26, 60, 0.06);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #0a1a3c;
  margin: 2.5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e0c26a, #c9a24b 55%, #a8823a);
  color: #0a1a3c;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 10px 30px -10px rgba(201, 162, 75, 0.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px -10px rgba(201, 162, 75, 0.6);
}
.btn-gold:active {
  transform: translateY(0);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0a1a3c;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 10px 30px -12px rgba(10, 26, 60, 0.5);
}
.btn-navy:hover {
  transform: translateY(-2px);
  background: #152a56;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero-gradient {
  background: radial-gradient(120% 120% at 15% 10%, #152a56 0%, #0a1a3c 45%, #060f24 100%);
}
.hero-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
}
.gold-text-gradient {
  background: linear-gradient(135deg, #f5ecc9, #d4af37 45%, #e0c26a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero illustration ---------- */
.hero-illustration {
  background: linear-gradient(155deg, #1a2e5c 0%, #0e1e40 55%, #060f24 100%);
}
.hero-illustration-glow {
  background:
    radial-gradient(60% 45% at 50% 38%, rgba(224, 194, 106, 0.22) 0%, rgba(224, 194, 106, 0) 70%),
    radial-gradient(80% 40% at 50% 100%, rgba(201, 162, 75, 0.12) 0%, rgba(201, 162, 75, 0) 70%);
}
.dial-arc {
  transform-origin: 100px 100px;
  animation: dial-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes dial-in {
  from { stroke-dashoffset: 515; }
}
.key-float {
  animation: key-bob 5s ease-in-out infinite;
  transform-origin: 230px 52px;
}
@keyframes key-bob {
  0%, 100% { transform: translate(230px, 52px) rotate(-18deg) translateY(0); }
  50% { transform: translate(230px, 52px) rotate(-18deg) translateY(-6px); }
}

/* ---------- Glass cards ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  box-shadow: 0 20px 45px -20px rgba(10, 26, 60, 0.35);
}
.glass-card-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
}

/* ---------- Trust bar ---------- */
.trust-logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #152a56;
  font-size: 1.05rem;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.trust-logo:hover {
  opacity: 1;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #243c72;
  background: #eef1f8;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8823a;
  background: #fbf7ea;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.eyebrow-light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ecda9c;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(236, 218, 156, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.section-heading {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: #0a1a3c;
  line-height: 1.2;
}
.section-sub {
  color: #4b5876;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Feature / service cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid #eef1f8;
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -20px rgba(10, 26, 60, 0.2);
  border-color: rgba(201, 162, 75, 0.35);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #eef1f8, #fbf7ea);
  color: #243c72;
  margin-bottom: 1.25rem;
}
.feature-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0a1a3c;
  margin-bottom: 0.6rem;
}
.feature-text {
  color: #5d6a8c;
  font-size: 0.925rem;
  line-height: 1.65;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 162, 75, 0.4);
}
.feature-icon-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(201, 162, 75, 0.12);
  color: #e0c26a;
  margin-bottom: 1.25rem;
}
.service-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.service-text {
  color: #b7c0d8;
  font-size: 0.925rem;
  line-height: 1.65;
  min-height: 4.5rem;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #e0c26a;
  transition: gap 0.25s ease;
}
.service-cta:hover {
  gap: 0.65rem;
}

/* ---------- Credit Sweep panel ---------- */
.sweep-panel {
  border: 1px solid rgba(201, 162, 75, 0.35);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 1.75rem;
  padding: 2.25rem 1.75rem;
}
@media (min-width: 768px) {
  .sweep-panel {
    padding: 3rem;
  }
}
.sweep-panel-grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .sweep-panel-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.sweep-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e0c26a;
  margin-bottom: 1rem;
}
.sweep-list {
  display: grid;
  gap: 0.65rem;
  color: #dbe2f2;
  font-size: 0.9rem;
}
.sweep-list-two-col {
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
}
.sweep-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.sweep-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e0c26a;
  flex-shrink: 0;
}
.sweep-panel-footer {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.sweep-disclaimer {
  font-size: 0.75rem;
  color: #93a1c4;
  max-width: 26rem;
}

/* ---------- Pricing ---------- */
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid #eef1f8;
  border-radius: 1.75rem;
  padding: 2.5rem 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
}
.pricing-card-highlight {
  border: 2px solid #c9a24b;
  box-shadow: 0 30px 60px -20px rgba(201, 162, 75, 0.35);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 2rem;
  background: linear-gradient(135deg, #e0c26a, #c9a24b);
  color: #0a1a3c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.pricing-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.pricing-item::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #c9a24b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Timeline ---------- */
.timeline-line {
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #c9a24b, #d6ddec);
}
.timeline-step {
  position: relative;
  display: flex;
  gap: 1.75rem;
  padding-bottom: 3rem;
}
.timeline-step:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #0a1a3c;
  color: #d4af37;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(10, 26, 60, 0.4);
}
.timeline-content {
  padding-top: 0.5rem;
}
.timeline-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0a1a3c;
  margin-bottom: 0.4rem;
}
.timeline-text {
  color: #5d6a8c;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 32rem;
}

/* ---------- Info cards (why credit matters) ---------- */
.info-card {
  background: linear-gradient(160deg, #fff, #f7f9fd);
  border: 1px solid #eef1f8;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(10, 26, 60, 0.18);
}
.info-title {
  font-weight: 700;
  color: #0a1a3c;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}
.info-text {
  color: #5d6a8c;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Stats ---------- */
.stat-number {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3rem);
  color: #f5ecc9;
}
.stat-label {
  color: #9fb0d1;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid #eef1f8;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -22px rgba(10, 26, 60, 0.2);
}
.stars {
  color: #d4af37;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}
.testimonial-text {
  color: #4b5876;
  font-size: 0.925rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.testimonial-score {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a1a3c;
  border-top: 1px solid #eef1f8;
  padding-top: 1rem;
}
.testimonial-score span {
  color: #a8823a;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid #eef1f8;
  border-radius: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: #0a1a3c;
  gap: 1rem;
}
.faq-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #c9a24b;
  transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: #5d6a8c;
  font-size: 0.925rem;
  line-height: 1.7;
}
.faq-answer p {
  padding-bottom: 1.35rem;
}

/* ---------- Form ---------- */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #152a56;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.7rem;
  padding: 0.75rem 1rem;
  color: #0a1a3c;
  font-size: 0.925rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.form-input:focus {
  outline: none;
  border-color: #c9a24b;
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.25);
}
.form-input.input-error {
  border-color: #e0575b;
  box-shadow: 0 0 0 3px rgba(224, 87, 91, 0.2);
}

/* ---------- Honeypot (spam trap, hidden from real visitors) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.footer-heading {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d6ddec;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.social-icon:hover {
  background: #c9a24b;
  color: #0a1a3c;
  transform: translateY(-2px);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #0a1a3c;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(10, 26, 60, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: #152a56;
}

/* ---------- Chat widget ---------- */
.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  z-index: 45;
}
.chat-toggle-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0c26a, #c9a24b);
  color: #0a1a3c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px -10px rgba(201, 162, 75, 0.6);
  transition: transform 0.25s ease;
}
.chat-toggle-btn:hover {
  transform: scale(1.06);
}
.chat-panel {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  width: min(340px, 88vw);
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(10, 26, 60, 0.45);
  border: 1px solid #eef1f8;
}
.chat-header {
  background: linear-gradient(135deg, #152a56, #0a1a3c);
  padding: 1rem 1.25rem;
}
.chat-body {
  padding: 1rem 1.1rem;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #f7f9fd;
}
.chat-bubble-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #eef1f8;
  color: #26314f;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem 0.9rem 0.9rem 0.2rem;
  max-width: 85%;
}
.chat-bubble-user {
  align-self: flex-end;
  background: #0a1a3c;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem 0.9rem 0.2rem 0.9rem;
  max-width: 85%;
}
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #eef1f8;
}
.chat-input {
  flex: 1;
  border: 1px solid #eef1f8;
  border-radius: 0.7rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}
.chat-input:focus {
  outline: none;
  border-color: #c9a24b;
}
.chat-send-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: #0a1a3c;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
::selection {
  background: rgba(201, 162, 75, 0.35);
  color: #0a1a3c;
}
