/* ===== Variables ===== */
:root {
  --color-dark-blue: #001f3f;
  --color-orange: #ff7f27;
  --color-text-dark: #333333;
  --color-text-muted: #8892a0;
  --color-text-body: #4a4a4a;
  --color-white: #ffffff;
  --color-bg-subtle: #f8f8f8;
  --color-bg-ip: #fdf8f5;
  --color-bg-regulatory: #edf1f5;
  --radius-btn: 6px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-heading: "Poppins", var(--font-sans);
  --font-handwritten: "Caveat", cursive;
  /* One set = 5 cards (340px) + 4 gaps (24px) + padding 48px */
  --testimonial-set-width: 1844px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-body);
  background: linear-gradient(to bottom right, #ffffff, var(--color-bg-subtle));
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 90px;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-img {
  height: clamp(100px, 12vw, 140px);
  width: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

.logo-main {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  letter-spacing: -0.02em;
}

.w-orange {
  color: var(--color-orange);
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-dark-blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 8px 0;
  background: var(--color-white);
  border-radius: var(--radius-btn);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-subtle);
  color: var(--color-dark-blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-dark-blue);
  font-size: 1.35rem;
  cursor: pointer;
  border-radius: var(--radius-btn);
}

.btn-contact {
  background: var(--color-dark-blue);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.btn-contact:hover {
  background: #001528;
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 28px;
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-title-line {
  display: block;
  color: var(--color-dark-blue);
}

.hero-title-accent {
  color: var(--color-orange);
  text-shadow:
    0 0 30px rgba(255, 127, 39, 0.45),
    0 0 60px rgba(255, 127, 39, 0.25);
}

.hero-description {
  margin: 0 0 40px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--color-dark-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #001528;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn-accent:hover {
  background: #e67322;
  transform: translateY(-1px);
}

.hero-cta .btn-primary {
  box-shadow: 0 0 24px rgba(0, 31, 63, 0.35);
}

.hero-cta .btn-primary:hover {
  box-shadow: 0 0 32px rgba(0, 31, 63, 0.45);
}

.hero-cta .btn-accent {
  box-shadow: 0 0 24px rgba(255, 127, 39, 0.4);
}

.hero-cta .btn-accent:hover {
  box-shadow: 0 0 32px rgba(255, 127, 39, 0.55);
}

.btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== Services (two-column) ===== */
.services {
  padding: 80px 0 100px;
}

.services-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-card {
  padding: 48px clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card-ip {
  background: var(--color-bg-ip);
  padding-right: 16px;
}

.service-card-regulatory {
  background: var(--color-bg-regulatory);
  padding-left: 16px;
}

.service-card-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 20px;
}

.service-card-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  letter-spacing: -0.02em;
}

.service-card-title-ip {
  color: var(--color-orange);
}

.service-list {
  margin: 0 auto 32px;
  padding: 0;
  list-style: none;
  width: fit-content;
  text-align: left;
}

.service-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.service-list-ip li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}

.service-list-regulatory li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-dark);
}

.btn-explore {
  margin-top: auto;
}

.btn-explore .btn-chevron {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .services-inner {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 36px clamp(24px, 5vw, 48px);
  }
}

/* ===== Regulatory & Licensing (three cards) ===== */
.regulatory-offerings {
  background: var(--color-white);
  padding: 80px 24px 100px;
}

.section-heading-line {
  font-family: var(--font-heading);
  margin: 0 auto 56px;
  max-width: 900px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.section-heading-line::before,
.section-heading-line::after {
  content: none;
  display: none;
}

.offering-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.offering-card {
  background: #fafafa;
  border-radius: var(--radius-btn);
  padding: 36px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.offering-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.offering-card-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}

.offering-card-desc {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

.offering-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.offering-cta:hover {
  color: var(--color-dark-blue);
}

@media (max-width: 768px) {
  .offering-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Intellectual Property (three cards) ===== */
.ip-offerings {
  background: #f5f5f5;
  padding: 80px 24px 100px;
}

.ip-section-title {
  font-family: var(--font-heading);
  margin: 0 auto 56px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ip-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ip-card {
  background: var(--color-white);
  border-radius: var(--radius-btn);
  padding: 36px 32px;
  border: 1px solid rgba(255, 127, 39, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(255, 127, 39, 0.15);
  border-color: rgba(255, 127, 39, 0.4);
}

.ip-card-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}

.ip-card-desc {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

.ip-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.ip-cta:hover {
  color: #e67322;
}

@media (max-width: 768px) {
  .ip-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== How We Work / Process ===== */
.process-section {
  background: var(--color-white);
  padding: 80px 24px 100px;
}

.process-page-steps {
  padding-top: 40px;
  padding-bottom: 80px;
}

.process-label {
  font-family: var(--font-heading);
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-title {
  margin: 0 0 56px;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-dark-blue);
}

.process-steps {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 40px;
  height: 1px;
  background: #e0e0e0;
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-num {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  font-family: var(--font-handwritten);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 20px;
}

.process-step-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}

.process-step-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-body);
}

/* ===== Testimonials Carousel ===== */
.testimonials-section {
  background: var(--color-bg-subtle);
  padding: 80px 0 100px;
  overflow: hidden;
}

.testimonials-section .process-label {
  margin-bottom: 8px;
}

.testimonials-section .process-title {
  margin-bottom: 48px;
}

.testimonials-carousel-wrap {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  width: max-content;
  animation: testimonials-scroll 60s linear infinite;
  will-change: transform;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonials-set {
  display: flex;
  flex: 0 0 var(--testimonial-set-width);
  width: var(--testimonial-set-width);
  min-width: var(--testimonial-set-width);
  gap: 24px;
  padding: 0 24px;
  box-sizing: border-box;
}

.testimonial-card {
  flex: 0 0 340px;
  min-width: 340px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.testimonial-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}

.testimonial-company {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.testimonial-stars {
  color: var(--color-orange);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.testimonial-stars .fa-star {
  margin: 0 1px;
}

.testimonial-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

@keyframes testimonials-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--testimonial-set-width)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
  }
}

@media (max-width: 768px) {
  :root {
    /* One set = 5 cards (300px) + 4 gaps (24px) + padding 48px */
    --testimonial-set-width: 1644px;
  }

  .testimonials-section {
    padding: 56px 0 72px;
  }

  .testimonials-section .process-title {
    margin-bottom: 32px;
  }

  .testimonial-card {
    flex: 0 0 300px;
    min-width: 300px;
    padding: 24px 20px;
  }
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-line {
    display: none;
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .process-num {
    margin-bottom: 20px;
  }

  .process-step-title {
    margin-bottom: 10px;
  }

  .process-step-desc {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 24px 100px;
  background: var(--color-bg-subtle);
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.contact-info {
  background: var(--color-dark-blue);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-info-title {
  margin: 0 0 16px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
}

.contact-info-desc {
  margin: 0 0 32px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a.contact-item:hover {
  opacity: 0.92;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  color: var(--color-white);
}

.contact-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.contact-form {
  background: var(--color-white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 16px;
}

.form-label:first-of-type {
  margin-top: 0;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: var(--radius-btn);
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-dark-blue);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A4A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  margin-top: 24px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-dark-blue);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.form-submit:hover {
  background: #001528;
  transform: translateY(-1px);
}

.form-privacy {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form {
    padding: 36px 24px;
  }
}

/* ===== Subpage layout (IP & Regulatory) ===== */
.page-hero {
  padding: 140px 24px 60px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-dark-blue);
}

.page-hero-desc {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

.section-pad {
  padding: 60px 24px;
}

.section-alt {
  background: var(--color-bg-subtle);
}

.page-content-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.page-content-reverse .page-content-text {
  order: 2;
}

.page-content-reverse .page-content-image {
  order: 1;
}

.page-content-text h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}

.page-content-text p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

.page-content-text p:last-child {
  margin-bottom: 0;
}

.page-content-image {
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.page-content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-cta {
  padding: 80px 24px;
}

.page-cta .page-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-white);
  padding: 48px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-cta-title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}

.page-cta-desc {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--color-text-body);
}

@media (max-width: 768px) {
  .page-content-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-content-reverse .page-content-text,
  .page-content-reverse .page-content-image {
    order: unset;
  }
}

/* ===== Blog listing ===== */
.blog-list {
  padding-top: 0;
}

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.blog-card-image-link {
  display: block;
  aspect-ratio: 600 / 320;
  overflow: hidden;
}

.blog-card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.blog-card-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card-title a {
  color: var(--color-dark-blue);
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--color-orange);
}

.blog-card-excerpt {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-orange);
  transition: color 0.2s ease;
}

.blog-card-link:hover {
  color: var(--color-dark-blue);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== Blog post (single) ===== */
.post-main {
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.post-article {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.post-header {
  padding: 40px 40px 24px;
}

.post-back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark-blue);
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.post-back:hover {
  color: var(--color-orange);
}

.post-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-dark-blue);
  line-height: 1.25;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.post-meta-sep {
  margin: 0 8px;
}

.post-featured-image {
  margin: 0 -40px 32px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.post-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 0 40px 48px;
}

.post-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 24px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-btn);
}

.post-toc-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-toc-nav a {
  font-size: 0.9rem;
  color: var(--color-text-body);
  transition: color 0.2s ease;
}

.post-toc-nav a:hover {
  color: var(--color-dark-blue);
}

.post-content {
  min-width: 0;
}

.post-content h2 {
  margin: 2em 0 0.75em;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}

.post-content h2:first-child {
  margin-top: 0;
}

.post-content p {
  margin: 0 0 1em;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-body);
}

.post-inline-image {
  margin: 2em 0;
}

.post-inline-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-btn);
}

.post-inline-image figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.post-share {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-share-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.post-share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-dark-blue);
  color: var(--color-white);
  font-size: 1.1rem;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.post-share-btn:hover {
  background: #001528;
  transform: scale(1.05);
}

.post-share-copy {
  border: none;
  cursor: pointer;
  font: inherit;
}

.post-footer-cta {
  margin-top: 2em;
}

@media (max-width: 900px) {
  .post-body {
    grid-template-columns: 1fr;
    padding: 0 24px 40px;
  }

  .post-toc {
    position: static;
    margin-bottom: 24px;
  }

  .post-header {
    padding: 32px 24px 20px;
  }

  .post-featured-image {
    margin: 0 -24px 24px;
  }
}

@media (max-width: 600px) {
  .post-main {
    padding: 100px 16px 60px;
  }

  .post-header,
  .post-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .post-featured-image {
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* ===== Floating contact (chat bubble) ===== */
.contact-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  font-family: var(--font-sans);
}

.contact-float-panel {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 12px;
  padding: 10px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.contact-float-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-float-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.contact-float-btn:hover {
  background: var(--color-bg-subtle);
  color: var(--color-dark-blue);
}

.contact-float-btn .fa-brands {
  font-size: 1.4rem;
  width: 1.4rem;
  text-align: center;
}

.contact-float-whatsapp:hover {
  color: #25d366;
}

.contact-float-telegram:hover {
  color: #0088cc;
}

.contact-float-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-dark-blue);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 31, 63, 0.4);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.contact-float-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid var(--color-dark-blue);
  animation: contact-float-pulse 1.5s ease-in-out infinite;
}

@keyframes contact-float-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.85;
  }
}

.contact-float-toggle:hover {
  background: #001528;
  transform: scale(1.05);
}

.contact-float-toggle .fa-solid {
  font-size: 1.5rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 24px 24px;
  text-align: center;
  background: var(--color-bg-subtle);
}

.footer-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.footer-quick-links a {
  font-size: 0.9rem;
  color: var(--color-text-body);
  transition: color 0.2s ease;
}

.footer-quick-links a:hover {
  color: var(--color-dark-blue);
}

.footer-copy {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--color-text-body);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(136, 146, 160, 0.4);
  font-size: 1.2rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-social-link:hover {
  transform: scale(1.08);
}

.footer-social-link:first-of-type:hover {
  background: #25d366;
  color: var(--color-white);
  border-color: #25d366;
}

.footer-social-link:last-of-type:hover {
  background: #0088cc;
  color: var(--color-white);
  border-color: #0088cc;
}

/* ===== Mobile responsive ===== */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .navbar-inner {
    padding: 0 16px;
  }

  .nav-links {
    position: fixed;
    top: calc(90px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    display: none;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .nav-links > a,
  .nav-dropdown {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-links > a:last-of-type {
    border-bottom: none;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 8px 0 0 16px;
    margin-bottom: 0;
    min-width: 0;
  }

  .nav-dropdown-trigger::after {
    display: none;
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
  }

  .btn-contact {
    justify-content: flex-start;
    padding: 14px 0;
    background: transparent;
    color: var(--color-dark-blue) !important;
  }

  .btn-contact:hover {
    background: var(--color-bg-subtle);
    color: var(--color-dark-blue) !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 72px;
  }

  .navbar.nav-open .nav-links {
    top: calc(72px + env(safe-area-inset-top, 0px));
  }

  .nav-links {
    top: calc(72px + env(safe-area-inset-top, 0px));
    max-height: calc(100vh - 72px - env(safe-area-inset-top, 0px));
  }

  .hero {
    padding: 160px 28px 80px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.75rem);
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .services {
    padding: 48px 0 64px;
  }

  .service-card-ip,
  .service-card-regulatory {
    padding-left: 20px;
    padding-right: 20px;
  }

  .regulatory-offerings,
  .ip-offerings,
  .process-section {
    padding: 48px 20px 64px;
  }

  .section-heading-line {
    margin-bottom: 32px;
    font-size: 0.75rem;
  }

  .offering-card,
  .ip-card {
    padding: 28px 20px;
  }

  .ip-section-title {
    font-size: 0.75rem;
    margin-bottom: 32px;
  }

  .process-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .contact-section {
    padding: 48px 20px 64px;
  }

  .contact-info,
  .contact-form {
    padding: 32px 20px;
  }

  .contact-info-title {
    font-size: 1.4rem;
  }

  .page-hero {
    padding: 108px 20px 40px;
  }

  .page-hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .page-hero-desc {
    font-size: 1rem;
  }

  .section-pad {
    padding: 40px 20px;
  }

  .page-content-text h2 {
    font-size: 1.3rem;
  }

  .page-cta .page-cta-inner {
    padding: 36px 20px;
  }

  .page-cta-title {
    font-size: 1.4rem;
  }

  .site-footer {
    padding: 20px 16px;
  }

  .footer-copy {
    margin-bottom: 16px;
    font-size: 0.85rem;
  }

  .footer-social {
    margin-top: 16px;
  }

  .contact-float {
    bottom: 16px;
    right: 16px;
  }

  .contact-float-toggle {
    width: 52px;
    height: 52px;
  }

  .contact-float-dot {
    width: 10px;
    height: 10px;
    top: 5px;
    right: 5px;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .hero {
    padding: 140px 24px 64px;
  }

  .regulatory-offerings,
  .ip-offerings,
  .process-section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-wrapper {
    border-radius: 8px;
  }
}

/* ===== Entrance animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
