/* ==========================================================================
   Bizwise Solutions – Global Stylesheet
   Order: Base → Tokens → Typography → Layout → Components → Footer → Dark Mode
   ========================================================================== */

/* === Base / Reset === */
html, body { height: 100%; }
* { box-sizing: border-box; }

/* === Design Tokens === */
:root {
  /* Brand */
  --brand: #0d6efd;

  /* Typography */
  --font-sans: "Source Sans Pro", system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Divider */
  --divider-color: #b3ecff; /* light mode: light cyan */
}

/* === Typography === */
html { font-size: 100%; } /* Base 16px */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

/* Headings also use sans */
h1, h2, h3, h4, h5, h6, .display-5 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1, .display-5 {
  font-size: clamp(2rem, 1.1rem + 3.2vw, 2.625rem); /* ~32→42px */
}
h2 {
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2rem);  /* ~26→32px */
}
h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 1.02rem + 0.8vw, 1.5rem); /* ~20→24px */
}
.section-title {
  font-weight: 700;
  letter-spacing: .003em;
}

p { margin-bottom: .9rem; }
small, .small { font-size: .925rem; line-height: 1.5; }

/* UI text */
.navbar .nav-link { font-weight: 500; letter-spacing: .02em; }
.btn { font-weight: 600; letter-spacing: .015em; }

/* Hero lead paragraph */
.hero .lead {
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.7;
  max-width: 65ch;
}

/* === Layout (Sticky Footer) === */
body { display: flex; flex-direction: column; }
main { flex: 1; }

/* === Global Aesthetics === */
header { backdrop-filter: saturate(140%) blur(6px); }

/* Navbar logo */
.logo-img { height: 55px; width: auto; }

/* Hero background */
.hero {
  background:
    radial-gradient(1000px 400px at 10% 10%, rgba(13,110,253,.12), transparent),
    linear-gradient(180deg, rgba(13,110,253,.06), transparent 60%);
}

/* Cards (default) */
.card {
  border: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

/* === Services (Cards with Icons & Hover) === */
.service-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  background: var(--bs-body-bg);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  outline: none;
}
/* Accent stripe on top */
.service-card::before {
  content: "";
  display: block;
  height: 4px;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
}
.service-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(var(--bs-primary-rgb), .08);
  margin-bottom: .75rem;
}
.service-icon { font-size: 1.4rem; color: var(--bs-primary); }
.card-title { margin-top: .25rem; margin-bottom: .25rem; font-weight: 600; }

/* === Carousel === */
.carousel-img {
  height: 420px;              /* Adjust 360–520px if needed */
  object-fit: cover;          /* Fill frame without distortion */
}
.carousel-item { position: relative; }
/* Overlay for readability */
.carousel-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.carousel-caption { z-index: 2; }
/* Extra contrast for captions in dark */
[data-bs-theme="dark"] .carousel-caption {
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

/* === Footer (Multi-column) === */
.site-footer { background: var(--bs-body-bg); }
.site-footer .footer-top { padding: 2.5rem 0 1.5rem; }
.site-footer .footer-brand { display: flex; align-items: center; gap: .5rem; }
.site-footer .footer-brand img { height: 40px; width: auto; border-radius: .5rem; }
.site-footer .footer-links a {
  display: block; margin-bottom: .35rem; text-decoration: none;
}
.site-footer .footer-links a:hover { text-decoration: underline; }
.site-footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(0,0,0,.05);
  margin-right: .4rem; text-decoration: none;
  transition: transform .2s ease;
}
.site-footer .social a:hover { transform: translateY(-2px); }
.site-footer .footer-bottom {
  border-top: 1px solid var(--bs-border-color);
  padding: 1rem 0;
  font-size: .875rem;
}

/* === Dark Mode Polish === */
[data-bs-theme="dark"] {
  --bs-body-bg: #0f1115;
  --bs-body-color: #e9eef3;
  --bs-secondary-color: #b9c3cc;
  --bs-border-color: rgba(233,238,243,.14);

  --bs-link-color: #8ab4ff;
  --bs-link-hover-color: #b3ceff;

  --bs-card-bg: #151821;
  --bs-card-border-color: rgba(233,238,243,.12);
  --bs-body-bg-rgb: 15,17,21;
  --bs-emphasis-color: #fff;
}

/* Navbar in dark mode */
[data-bs-theme="dark"] .navbar {
  background-color: #0f1115 !important;
  border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .navbar .nav-link {
  color: var(--bs-body-color);
  opacity: .9;
}
[data-bs-theme="dark"] .navbar .nav-link.active,
[data-bs-theme="dark"] .navbar .nav-link:hover { opacity: 1; }

/* Footer in dark mode */
[data-bs-theme="dark"] .site-footer { background: #0f1115; }
[data-bs-theme="dark"] .site-footer .footer-top,
[data-bs-theme="dark"] .site-footer .footer-bottom {
  border-top-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .site-footer .social a { background: rgba(255,255,255,.08); }

/* Cards in dark */
[data-bs-theme="dark"] .card {
  background: var(--bs-card-bg);
  border-color: var(--bs-card-border-color);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

/* Service icon chip in dark */
[data-bs-theme="dark"] .service-icon-wrap { background: rgba(138,180,255,.12); }
[data-bs-theme="dark"] .service-icon { color: #8ab4ff; }

/* Buttons outline in dark */
[data-bs-theme="dark"] .btn-outline-secondary {
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background: rgba(255,255,255,.06);
}

/* Carousel overlay + caption text in dark */
[data-bs-theme="dark"] .carousel-overlay { background: rgba(0,0,0,.55); }
[data-bs-theme="dark"] .carousel-caption h5,
[data-bs-theme="dark"] .carousel-caption p {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}

/* Forms in dark */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #0f1115;
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(233,238,243,.6);
}

/* Slightly wider tracking for readability */
[data-bs-theme="dark"] body { letter-spacing: .003em; }

/* === Utilities === */
.object-fit-cover { object-fit: cover; }

/* === Section Dividers === */
.wave-divider {
  display: block;
  width: 100%;
  height: clamp(100px, 12vw, 180px);
  margin-bottom: -1px;
}
.wave-flip { transform: rotate(180deg); display: block; }
.hero { position: relative; overflow: hidden; }
.hero svg { position: relative; bottom: -1px; }

/* Divider color per theme */
[data-bs-theme="dark"] {
  --divider-color: rgba(255, 255, 255, 0.08);
}

/* === Fade-in Animation === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

