/* ===== Design Tokens ===== */
:root {
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-navy: #113362;
  --color-light-blue: #94AED0;
  --color-pale-blue: #DAE3EF;
  --color-cream: #E0DCCD;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --header-height: 57px;
}

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

html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

/* Remove default outline for non-keyboard interactions */
:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== Focus Styles ===== */
*:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
}

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

.btn-secondary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-black);
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex: 1;
}

.logo img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-black);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-navy);
}

.main-nav a[aria-current="page"] {
  color: var(--color-navy);
  font-weight: 700;
}

.nav-login,
.nav-logout {
  margin-left: 8px;
  padding: 8px 20px;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  font-weight: 600;
}

.nav-login:hover,
.nav-logout:hover {
  background: var(--color-black);
  color: var(--color-white) !important;
}

/* ===== Header Action Buttons (logged-out) ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.header-actions .btn-sign-in {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--color-navy);
  background: none;
  transition: background 0.15s, color 0.15s;
}

.header-actions .btn-sign-in:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.header-actions .btn-buy-now {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 999px;
  background: var(--color-navy);
  transition: opacity 0.15s;
}

.header-actions .btn-buy-now:hover {
  opacity: 0.85;
}

/* ===== Header Icons ===== */
.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-black);
  padding: 12px;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
}

.icon-btn:hover {
  color: var(--color-navy);
}

.icon-btn.profile-trigger {
  min-width: 44px;
  min-height: 44px;
}

/* ===== Mobile Menu Button ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-black);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  color: var(--color-navy);
}

/* ===== Profile Dropdown ===== */
.profile-menu {
  position: relative;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  min-width: 240px;
  padding: 8px 0;
  z-index: 1000;
}

.profile-dropdown.open {
  display: block;
}

.profile-dropdown-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-pale-blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar svg {
  color: var(--color-navy);
  opacity: 0.5;
  width: 22px;
  height: 22px;
  margin-top: -2px;
}

.profile-avatar.profile-avatar-upload {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity 0.15s;
}

.profile-avatar.profile-avatar-upload:hover {
  opacity: 0.75;
}

.profile-avatar.profile-avatar-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-user-info {
  display: flex;
  flex-direction: column;
}

.profile-user-info strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.profile-user-info span {
  font-size: 0.8rem;
  color: #6b7280;
}

.profile-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-black);
  font-size: 0.95rem;
  font-weight: 400;
  transition: background 0.1s;
}

.profile-dropdown-item:hover {
  background: #f3f4f6;
}

.profile-dropdown-item svg {
  color: #6b7280;
  flex-shrink: 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 12px 0;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-light-blue);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: rgba(255,255,255,0.4);
}

.breadcrumb a {
  color: var(--color-light-blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-white);
}

/* ===== Hero (old — kept for interior pages using .hero) ===== */
.hero {
  text-align: center;
  padding: 100px 0 80px;
  background: var(--color-pale-blue);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #4b5563;
  margin-bottom: 36px;
}

/* ===== Home Hero ===== */
.home-hero {
  background: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

.home-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.home-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  max-width: 640px;
  margin-left: auto;
}

.home-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.home-hero-subtitle {
  font-size: 1.05rem;
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 36px;
}

.home-hero-buttons {
  display: flex;
  gap: 12px;
}

.btn-secondary-dark {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary-dark:hover {
  background: var(--color-white);
  color: var(--color-black);
  opacity: 1;
}

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

.btn-primary-dark:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  opacity: 1;
}

.home-hero-image {
  position: relative;
  overflow: hidden;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Testimonial Banner ===== */
.testimonial-banner {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}

.testimonial-quote p {
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 20px;
}

.testimonial-quote footer {
  font-size: 1rem;
  font-style: normal;
  color: #b0c4de;
}

/* ===== Values Section ===== */
.values-section {
  background: var(--color-cream);
  padding: 72px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.value-icon {
  margin-bottom: 16px;
  color: var(--color-black);
}

.value-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* ===== Full Footer ===== */
.site-footer-full {
  background: #1a1a1a;
  color: var(--color-white);
  padding-top: 56px;
}

.site-footer-full *:focus-visible {
  outline-color: var(--color-light-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h3,
.footer-col h4,
.footer-about h3,
.footer-about h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #c0c5cc;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: #c0c5cc;
  font-size: 0.8rem;
}

.footer-center a {
  color: #9ca3af;
  text-decoration: underline;
  font-size: 0.8rem;
}

.footer-center a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #9ca3af;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.footer-social a:hover {
  color: var(--color-white);
}

/* ===== Page Hero (interior pages) ===== */
.page-hero {
  text-align: center;
  padding: 36px 0;
  background: var(--color-pale-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-hero .hero-subtitle {
  margin-bottom: 0;
}

/* ===== Steps (How It Works) ===== */
.steps {
  padding: 64px 0;
}

.step {
  margin-bottom: 48px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.step p {
  color: #4b5563;
  padding-left: 64px;
}

.cta-section {
  padding: 0 0 80px;
}

/* ===== Pricing ===== */
.pricing-section {
  padding: 64px 0 80px;
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid var(--color-navy);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
}

.pricing-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  padding-left: 24px;
  position: relative;
  color: #374151;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-navy);
  font-weight: 700;
}

.pricing-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 64px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 36px;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: #4b5563;
}

/* ===== Contact ===== */
.contact-section {
  padding: 64px 0 80px;
}

.contact-section .container {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.contact-card {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 32px 40px;
  min-width: 240px;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--color-navy);
}

/* ===== Content Sections (About, Examples) ===== */
.content-section {
  padding: 64px 0;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.content-section p {
  color: #374151;
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.content-section a {
  color: var(--color-navy);
  font-weight: 500;
}

.narrow {
  max-width: 720px;
}

/* ===== Examples Grid ===== */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.example-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.example-card-image {
  background: var(--color-pale-blue);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.9rem;
}

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

.example-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.example-card-body .example-mission {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.example-card-body p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

/* ===== Minimal Footer (legacy) ===== */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 32px 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

/* ===== Responsive: Mobile Nav ===== */
@media (max-width: 834px) {
  .mobile-menu-btn { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 100;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
  }
  .main-nav a:last-child { border-bottom: none; }
  .site-header .header-inner { position: relative; }
  .breadcrumb { padding: 8px 0; }
  .header-actions .btn-buy-now { display: none; }
  .header-actions .btn-sign-in {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .skip-link { transition: none; }
}
