/* =============================================================
   MyDataHub — Shared Stylesheet
   MyWaypoint Technologies Inc.
   No external fonts. No third-party dependencies.
   ============================================================= */

/* Custom Properties */
:root {
  --brand-blue:        #1b4f8a;
  --brand-blue-dark:   #0f3560;
  --brand-blue-light:  #e8f0fb;
  --brand-teal:        #0b776d;
  --brand-teal-dark:   #08574e;
  --brand-teal-light:  #e0f4f1;
  --color-text:        #1a2336;
  --color-text-medium: #4a5568;
  --color-text-light:  #718096;
  --color-bg:          #ffffff;
  --color-bg-subtle:   #b9daf5c9;
  --color-bg-alt:      #eef3fc;
  --color-border:      #e2e8f0;
  --color-border-mid:  #cbd5e0;
  --color-badge-bg:    #f3f4f6;
  --color-badge-text:  #6b7280;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
          Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 6px;
  --radius:    10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-hover: 0 10px 28px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --max-width: 1200px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--brand-blue-dark); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: clamp(1.875rem, 4vw, 2.875rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: clamp(1.0625rem, 2vw, 1.3125rem); }

p { line-height: 1.7; }
ul { list-style: none; }

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

/* =============================================================
   Header & Navigation
   ============================================================= */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  max-width: 200px;
}

/* Desktop nav — hidden on mobile, shown on desktop */
.nav-menu {
  display: none;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
}
@media (min-width: 641px) {
  .nav-menu { display: flex; }
}

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-medium);
  text-decoration: none;
  padding: 0.5rem 0.6875rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-menu a:hover {
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  text-decoration: none;
}
.nav-menu a[aria-current="page"] {
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.nav-lang-link {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--brand-teal);
  padding: 0.3125rem 0.625rem;
  border: 1.5px solid var(--brand-teal);
  border-radius: var(--radius-sm);
  background: transparent;
  letter-spacing: 0.03em;
  margin-left: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-lang-link:hover {
  background: var(--brand-teal);
  color: white;
  text-decoration: none;
}

/* Hamburger — shown on mobile, hidden on desktop */
.nav-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  color: var(--color-text);
  transition: background 0.15s;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle:hover { background: var(--color-bg-subtle); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
@media (min-width: 641px) {
  .nav-toggle { display: none; }
}

/* Mobile nav drawer — block-level sibling to nav-container */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 0.5rem 1rem 0.75rem;
  background: var(--color-bg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.6875rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-medium);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:hover {
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}
.mobile-nav .nav-lang-link {
  display: inline-block;
  margin-top: 0.5rem;
  margin-left: 0.75rem;
}

/* =============================================================
   Hero
   ============================================================= */

.hero {
  background: linear-gradient(160deg, var(--color-bg-subtle) 0%, var(--color-bg-alt) 100%);
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-teal);
  background: var(--brand-teal-light);
  padding: 0.3125rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1.125rem; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-medium);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   Buttons
   ============================================================= */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  min-width: 140px;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
}
.btn-primary:hover {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(27, 79, 138, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-secondary:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  text-decoration: none;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-teal);
  border: 1.5px solid var(--brand-teal);
  padding: 0.4375rem 0.9375rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-card:hover {
  background: var(--brand-teal);
  color: white;
  text-decoration: none;
}

/* =============================================================
   Sections
   ============================================================= */

.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-bg-subtle); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  color: var(--color-text-medium);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* =============================================================
   Product Grid & Cards
   ============================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: rgb(245, 245, 245);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand-red);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.product-card--soon { border-top-color: var(--color-border-mid); }

.product-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-status {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  border: 1px solid var(--color-border-mid);
}

.product-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.5rem;
  padding-right: 5rem;
}
.product-card--soon .product-card-tag { color: var(--color-text-light); }

.product-card h3 {
  font-size: 1.3125rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.625rem;
  letter-spacing: -0.015em;
}

.product-card p {
  color: var(--color-text-medium);
  font-size: 0.9375rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.product-card-footer { margin-top: auto; }

.product-card-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
}

/* =============================================================
   Features Section
   ============================================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-item {
  padding: 1.625rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--color-border);
}
.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--brand-blue);
}
.feature-item p {
  color: var(--color-text-medium);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* =============================================================
   Privacy Banner Section
   ============================================================= */

.privacy-banner {
  background: var(--brand-blue);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.privacy-banner h2 { color: white; margin-bottom: 0.875rem; }
.privacy-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
}
.privacy-banner p:last-child { margin-bottom: 0; }

.privacy-pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  padding: 0;
  list-style: none;
}
.privacy-pill-list li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3125rem 0.875rem;
  border-radius: 100px;
}
.privacy-banner a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.privacy-banner a:hover { color: white; }

/* =============================================================
   CTA Section
   ============================================================= */

.cta-section { padding: 4.5rem 0; text-align: center; }
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p {
  color: var(--color-text-medium);
  font-size: 1.0625rem;
  margin: 0 auto 2rem;
  max-width: 520px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   Inner Page Header
   ============================================================= */

.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}
.page-header h1 { margin-bottom: 0.625rem; }
.page-header .page-lead {
  font-size: 1.0625rem;
  color: var(--color-text-medium);
  max-width: 560px;
  line-height: 1.75;
}

/* =============================================================
   About Page
   ============================================================= */

.about-content { max-width: 720px; }
.about-content p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  color: var(--color-text-medium);
  line-height: 1.8;
}
.about-content p:last-child { margin-bottom: 0; }
.about-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.about-content a { color: var(--brand-teal); }
.about-content a:hover { color: var(--brand-teal-dark); }

/* =============================================================
   Contact Page
   ============================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 0.875rem; font-size: 1.1875rem; }
.contact-info p {
  color: var(--color-text-medium);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.contact-info p:last-child { margin-bottom: 0; }

.contact-email-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--brand-teal);
  word-break: break-all;
  margin-top: 0.25rem;
}
.contact-email-link:hover { color: var(--brand-teal-dark); }

.contact-form {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}
.form-group .optional-label {
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--color-text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 138, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit-row {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* =============================================================
   Privacy Policy Page
   ============================================================= */

.policy-content { max-width: 760px; }
.policy-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.policy-section { margin-bottom: 2.5rem; }
.policy-section h2 {
  font-size: 1.1875rem;
  margin-bottom: 0.875rem;
}
.policy-section p {
  color: var(--color-text-medium);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.875rem;
}
.policy-section p:last-child { margin-bottom: 0; }

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.policy-list li {
  position: relative;
  padding-left: 1.375rem;
  color: var(--color-text-medium);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.4375rem;
}
.policy-list li::before {
  content: '\2014'; /* em dash */
  position: absolute;
  left: 0;
  color: var(--brand-teal);
  font-weight: 700;
}

/* =============================================================
   Footer
   ============================================================= */

.site-footer {
  flex-shrink: 0;
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 2.25rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-logo {
  font-size: 0.9375rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.footer-logo:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-tagline { font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.125rem 0.25rem;
}
.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.footer-nav a:hover { color: white; text-decoration: none; }
.footer-sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; padding: 0 0.125rem; }
.footer-lang-link {
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 4px !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 0.1875rem 0.5rem !important;
}
.footer-lang-link:hover {
  border-color: rgba(255,255,255,0.5) !important;
  color: white !important;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================================
   Responsive — Tablet (max 900px)
   ============================================================= */

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; width: 100%; }
}

/* =============================================================
   Responsive — Mobile (max 640px)
   ============================================================= */

@media (max-width: 640px) {
  :root { --nav-height: 56px; }

  /* Hero */
  .hero { padding: 3.25rem 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  /* Grids */
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  /* Sections */
  .section { padding: 3rem 0; }
  .privacy-banner { padding: 3rem 0; }
  .cta-section { padding: 3rem 0; }
  .page-header { padding: 2.5rem 0 1.75rem; }

  /* Contact form */
  .contact-form { padding: 1.5rem; }
  .form-submit-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .form-submit-row .btn { width: 100%; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-copy { text-align: left; }
}
