/* ===================================
   BASE STYLES - Shared across all pages
   =================================== */

/* Global Reset & Typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo-main {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #0f172a;
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: #64748b;
  margin-top: 4px;
}

/* Desktop Navigation */
nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: #475569;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a:hover,
nav a.active {
  color: #0369a1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: #0f172a;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 34px 0;
  margin-top: 88px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* Page Hero (for sub-pages) */
.page-hero {
  padding: 100px 0 70px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.page-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  color: #0f172a;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.35em;
  color: #0369a1;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: #475569;
  font-size: 18px;
  margin-top: 18px;
}

/* Section Styles */
section {
  padding: 80px 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-30 {
  margin-top: 30px;
}

.button-wrapper {
  text-align: center;
  margin-top: 30px;
}

.label {
  font-size: 13px;
  letter-spacing: 0.35em;
  color: #0369a1;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.muted {
  color: #64748b;
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn-primary {
  background: #0284c7;
  color: #fff;
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Media Queries */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide default navigation, show as mobile menu */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
  }

  nav a:last-child {
    border-bottom: none;
  }

  /* Overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1140px, calc(100% - 32px));
  }

  section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 76px 0 56px;
  }

  .page-hero h1 {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.2;
  }

  .lead,
  .muted {
    font-size: 15px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 13px;
  }

  .logo-main {
    font-size: 26px;
  }

  .logo-sub {
    letter-spacing: 0.25em;
  }

  /* Mobile menu adjustments for smaller screens */
  nav {
    width: 100%;
    right: -100%;
  }

  nav.active {
    right: 0;
  }
}
