/* ============================================================
   PAISIRUI CONSULTING — Global Styles
   California Minimalist B2B SaaS / Elite Advisory
   ============================================================ */

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

:root {
  /* Colors */
  --base-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --brand-navy: #003366;
  --accent-blue: #00A3E0;
  --border-light: #E2E8F0;
  --white: #FFFFFF;

  /* Dark gradient */
  --dark-grad-start: #0f172a;
  --dark-grad-end: #174260;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-accent: 0 8px 24px rgba(0, 163, 224, 0.15);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Container */
  --container-max: 1200px;
  --container-pad: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--base-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Dark Gradient Background ---------- */
.dark-gradient {
  background:
    radial-gradient(ellipse at top right, rgba(0, 163, 224, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #174260 100%);
  color: var(--white);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background:
    radial-gradient(ellipse at top right, rgba(0, 163, 224, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(23, 66, 96, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.navbar-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  white-space: nowrap;
}

.navbar-brand span {
  color: var(--accent-blue);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.navbar-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--white);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  background: var(--accent-blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.01em;
}

.navbar-cta:hover {
  background: #0091c9;
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-accent);
}

.navbar-cta:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: 16px;
  background: var(--accent-blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.25);
}

.btn-primary:hover {
  background: #0091c9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 163, 224, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}

.btn-outline-dark:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---------- Section Headings ---------- */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin-bottom: var(--space-5);
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: var(--white);
  font-size: 11px;
}

/* ---------- Check List ---------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}

.check-icon {
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
}

/* ---------- Footer ---------- */
.footer {
  background:
    radial-gradient(ellipse at top right, rgba(0, 163, 224, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #174260 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-9) 0 var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-brand h3 span { color: var(--accent-blue); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--accent-blue); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-compliance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-blue);
}

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(23, 66, 96, 0.8) 0%, rgba(15, 23, 42, 0) 55%),
    linear-gradient(135deg, #0f172a 0%, #174260 100%);
  overflow: hidden;
  color: var(--white);
}

/* Right-side blurred texture image layer (upload placeholder) */
.banner-texture-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  /* Background image placeholder — replace url() with actual image path */
  background-image: url("");
  background-size: cover;
  background-position: center right;
  filter: blur(9px) brightness(0.75) saturate(0.65);
  opacity: 0.55;
  /* Horizontal mask: soft fog-style fade-in from left edge of texture area */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 50%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0.42) 72%,
    black 80%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 50%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0.42) 72%,
    black 80%
  );
  pointer-events: none;
  z-index: 1;
}

/* Text content wrapper — sits above texture layer */
.banner-content-wrap {
  position: relative;
  z-index: 2;
}

.page-hero .section-title {
  color: var(--white);
  font-size: 52px;
  max-width: 720px;
}

.page-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 60%;
}

/* Animated divider line below page hero */
.title-divider-line {
  height: 4px;
  width: 200px;
  background-color: #003366;
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: drawLine 0.65s ease-out 0.2s forwards;
  margin: 48px 0 24px 0;
}

@keyframes drawLine {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-divider-line {
    animation: none !important;
    transform: scaleX(1) !important;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 56px;
  }
  .page-hero .section-title {
    font-size: 36px;
  }
  .banner-texture-img {
    width: 35%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
    mask-image: linear-gradient(to right, transparent 0%, black 35%);
  }
  .title-divider-line {
    width: 160px;
    animation-duration: 0.55s;
    margin: 32px 0 20px 0;
  }
}

/* ---------- Form Elements ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-textarea {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.12);
}

.form-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE — Tablet & Mobile
   ============================================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
  }

  .navbar-menu { display: none; }
  .hamburger { display: flex; }

  .navbar-brand { font-size: 15px; letter-spacing: 0.06em; }
  .navbar-inner { height: 64px; }
  .mobile-nav { top: 64px; }

  .section-title { font-size: 32px; }
  .section-subtitle { font-size: 16px; }

  .page-hero { padding: 120px 0 56px; }
  .page-hero .section-title { font-size: 36px; }
  .page-hero .section-subtitle { font-size: 16px; max-width: 90%; }

  .btn { height: 48px; padding: 0 24px; font-size: 15px; }

  .footer { padding: var(--space-7) 0 var(--space-5); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-title { font-size: 28px; }
}
