/* ======================
   DESIGN TOKENS
===================== */
:root {
  --space-unit: 0.5rem;
  --space-xxs: calc(var(--space-unit) * 0.5);
  --space-xs: var(--space-unit);
  --space-sm: calc(var(--space-unit) * 2);
  --space-md: calc(var(--space-unit) * 3);
  --space-lg: calc(var(--space-unit) * 4);
  --space-xl: calc(var(--space-unit) * 6);
  --space-xxl: calc(var(--space-unit) * 8);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  --anim-fast: 150ms;
  --anim-medium: 300ms;
  --anim-slow: 600ms;

  --nav-height: 80px;
  --section-pad: clamp(4.5rem, 8vw, 6.5rem);
  --card-pad: clamp(1.5rem, 3vw, 2rem);
  --container-pad-mobile: 1.25rem;
}

/* ======================
   BASE RESET / GLOBAL
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-block-size: 100vh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background: #fff;
  color: #4a5560;
}

a {
  transition: color var(--anim-fast) ease;
}

/* ======================
   TYPOGRAPHY
===================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Gabarito", serif;
  margin-block-start: 0;
  margin-block-end: var(--space-md);
  line-height: 1.15;
  color: #1d232c;
}

p {
  color: #4a5560;
  line-height: 1.6;
  margin-block-start: 0;
  margin-block-end: var(--space-md);
}

ul,
ol {
  margin-block-start: 0;
  margin-block-end: var(--space-md);
  padding-inline-start: 1.25rem;
}

li {
  margin-block-end: var(--space-xs);
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-block-end: 0;
}

.text-accent {
  color: #FFC963;
}

/* ======================
   IMAGES / MEDIA
===================== */
img {
  max-inline-size: 100%;
  block-size: auto;
  display: block;
  object-fit: contain;
}

/* ======================
   NAVBAR
===================== */
.custom-navbar {
  background: rgba(2, 70, 112, 0.92) !important;
  backdrop-filter: blur(10px);
  padding-block: 0.9rem;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important;
}

.navbar .nav-link {
  font-weight: 500;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.navbar-logo {
  block-size: 50px;
  inline-size: auto;
  transition: block-size var(--anim-medium) var(--ease-standard);
}

.nav-link.active {
  color: #ff9800 !important;
  font-weight: 600;
  border-block-end: 2px solid #ff9800;
}

.nav-cta {
  font-weight: 700;
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ======================
   SECTIONS
===================== */
section {
  position: relative;
}

.section-shell {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section-shell + .section-shell {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.section-light {
  background: #f7f9fc;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b07a00;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.section-intro {
  font-size: 1.1rem;
  color: #5f6b76;
  max-width: 60ch;
}

#home {
  border-top: none;
}

/* ======================
   HERO
===================== */
.hero-section {
  overflow: hidden;
}

.video-wrapper {
  min-height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 20, 34, 0.92) 0%,
    rgba(2, 20, 34, 0.75) 50%,
    rgba(2, 20, 34, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  z-index: 2;
  max-width: 1200px;
  padding-inline: 1.5rem;
}

.hero-content .row {
  min-height: calc(100vh - var(--nav-height) - 4rem);
}

.hero-content .col-lg-7,
.hero-content .col-lg-5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content .col-lg-5 {
  align-items: flex-end;
}

.hero-eyebrow {
  letter-spacing: 0.12em;
  color: #ffcc66;
  font-weight: 700;
}

.hero-content .lead {
  max-width: 55ch;
}

#home,
#home h1,
#home h2,
#home p,
#home .lead,
#home .hero-eyebrow,
#home .hero-highlight-card,
#home .hero-highlight-card p,
#home .hero-highlight-card .small {
  color: #fff;
}

.hero-highlight-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(48px);
  margin-left: -2rem;
  position: relative;
}

.hero-highlight-card::before {
  content: "";
  position: absolute;
  inset: auto auto -18px 2rem;
  width: 120px;
  height: 2px;
  background: rgba(255, 204, 102, 0.7);
}

.hero-highlight-card p,
.hero-highlight-card .small {
  color: rgba(255, 255, 255, 0.85);
}

.case-logo {
  height: 1em;
  width: auto;
  display: inline-block;
}

.case-logo-hero {
  height: 42px;
  width: auto;
  display: block;
}

/* ======================
   PRODUCTS & SERVICES
===================== */
#products-services {
  background: #f7f9fc;
}

.products-services-layout {
  position: relative;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.service-grid {
  margin-top: 0.5rem;
}

.services-visual-wrap {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: stretch;
  margin-left: clamp(0.5rem, 1.5vw, 1.25rem);
}

.services-visual-placeholder {
  width: 100%;
  min-height: 640px;
  border-radius: 0.75rem;

  background:
    linear-gradient(rgba(6, 36, 58, 0.65), rgba(6, 36, 58, 0.75)),
    url("/images/product.jpeg");

  background-size: cover;
  background-repeat: no-repeat;

  /* THIS is the key part 👇 */
  background-position: right center;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 1;
  flex: 1 1 auto;
}

.services-visual-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 35%),
    radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.10), transparent 30%);
}

.services-overlay-card {
  position: absolute;
  top: 0;
  left: -3rem;
  margin-top: 3.5rem;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.products-services-layout .row.align-items-stretch > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.service-box {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition:
    transform var(--anim-medium) var(--ease-standard),
    box-shadow var(--anim-medium) var(--ease-standard),
    border-color var(--anim-medium) var(--ease-standard);
}

.service-grid .service-box {
  min-height: 190px;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #c9d7e3;
}

.service-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-showcase {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #06243a 0%, #0a3b5e 100%);
  color: #fff;
}

.product-showcase h2,
.product-showcase h3,
.product-showcase strong {
  color: #fff;
}

.product-showcase p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
}

.product-subtitle {
  font-size: 1.1rem;
  color: #ffcc66;
}

.product-feature-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.feature-list {
  padding-left: 0;
}

.feature-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.feature-list li:last-child {
  border-bottom: 0;
}

.product-showcase .btn {
  margin-top: var(--space-sm);
}

/* ======================
   ABOUT
===================== */
#about .lead,
#about p {
  max-width: 60ch;
}
#about .col-lg-7 {
  padding-left: 2.5rem;
}

.about-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.founder-media {
  background: linear-gradient(135deg, #0a3b5e, #024670);
  border-radius: .75rem;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.founder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-point {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 0.85rem;
  padding: 1rem;
  height: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* ======================
   CONTACT
===================== */
.contact-section {
  position: relative;
  background: #f7f9fc;
  padding-bottom: clamp(5rem, 10vw, 7rem);
}

.contact-hero-bg {
  width: 100%;
  background:
    linear-gradient(rgba(6, 36, 58, 0.65), rgba(6, 36, 58, 0.75)),
    url("../images/talk.jpeg") center/cover no-repeat;

  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(7rem, 10vw, 9rem);
}

.contact-hero-content {
  max-width: 600px;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}

.contact-intro {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1.6;
}

.contact-cards-wrap {
  margin-top: -5rem;
  position: relative;
  z-index: 2;
}

.contact-info-card,
.contact-form-card {
  background: #fff;
  border-radius: 1.0rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.contact-section::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

/* ======================
   SHARED CARD PADDING
===================== */
.contact-info-card,
.contact-form-card,
.hero-highlight-card,
.product-feature-card,
.services-overlay-card {
  padding: var(--card-pad);
}

/* ======================
   BUTTONS
===================== */
.btn {
  padding-block: var(--space-xs);
  padding-inline: var(--space-md);
  transition:
    transform var(--anim-fast) var(--ease-standard),
    box-shadow var(--anim-fast) var(--ease-standard);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-warning {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-outline-light {
  border-width: 2px;
}

/* ======================
   FADE-IN ANIMATION
===================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--anim-slow) var(--ease-decelerate),
    transform var(--anim-slow) var(--ease-decelerate);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   FOOTER
===================== */
footer {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  background-color: rgb(24, 24, 24);
  padding-block: var(--space-lg);
  color: white;
}

footer img {
  max-block-size: 40px;
}

footer .copyright {
  font-size: 0.7rem;
}

/* ======================
   RESPONSIVE
===================== */
@media (max-width: 1199px) {
  .hero-highlight-card {
    margin-left: 0;
    transform: translateY(24px);
  }
}

@media (max-width: 991px) {
  .section-shell {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-content {
    padding-inline: 1.25rem;
  }

  .hero-content .row {
    min-height: auto;
  }

  .hero-highlight-card {
    margin-left: 0;
    transform: none;
    margin-top: 1.5rem;
  }

  .hero-highlight-card::before {
    display: none;
  }

  .services-visual-wrap {
    margin-left: 0;
    min-height: 420px;
    margin-top: 1.5rem;
  }

  .services-overlay-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: -2rem auto 0;
  }

  .founder-media {
    min-height: 300px;
  }

  .contact-hero-bg {
    padding-bottom: 6rem;
  }

  .contact-cards-wrap {
    margin-top: -3rem;
  }

  .contact-title {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .navbar-logo {
    block-size: 35px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: var(--container-pad-mobile);
    padding-right: var(--container-pad-mobile);
  }

  .hero-content .display-3 {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
  }

  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.75rem);
  }

  .contact-hero-bg {
    padding: 2rem 0 5rem;
  }

  .contact-cards-wrap {
    margin-top: -2rem;
  }

  .service-box,
  .contact-info-card,
  .contact-form-card,
  .hero-highlight-card,
  .services-overlay-card,
  .product-feature-card,
  .mini-point {
    padding: 1.25rem;
  }
}