/* Zaseeta.com Global Styles */

/*
 * Brand color alias block — SINGLE definition site for the whole site.
 * DraftWriter's page CSS (src/draftwriter/css/style.css) intentionally does
 * NOT redefine these; it inherits them from here because the global
 * stylesheet is loaded first (see partials/head.njk). This removes the
 * cross-file duplicate :root token definitions (requirement 3.5).
 *
 * The brand hex values below (#0181E3, #01477D, #FFBF00, #FF4900, #2c3e50,
 * #ecf0f1, #f8f9fa, #e0e0e0) have NO exact equivalent in the canonical
 * design-system tokens (src/css/tokens.css). Reconciling these brand values
 * to the DS semantic.primary scale is owned by the downstream
 * `consistency-refinement` spec — DS tokens.css is immutable here. They are
 * therefore kept as literals so the rendered colors stay identical (no visual
 * change). Only values with an EXACT canonical match are referenced via
 * var(--color-...) below.
 */
:root {
  /* --primary-blue / --primary-dark now reference the canonical DS semantic
   * primary scale. Via the consistency-refinement DS swap (task 1.1),
   * --color-semantic-primary-600-light = #0181E3 and -800-light = #01477D,
   * so these resolve to the EXACT same brand hex as before (zero visual change). */
  --primary-blue: var(--color-semantic-primary-600-light); /* = #0181E3 (brand blue) */
  --primary-dark: var(--color-semantic-primary-800-light); /* = #01477D (brand blue dark) */
  --secondary-yellow: #FFBF00; /* brand value, no DS equivalent — literal */
  --secondary-red: #FF4900; /* brand value, no DS equivalent — literal */
  --text-dark: #2c3e50; /* brand value, no DS equivalent — literal */
  --text-light: #ecf0f1; /* brand value, no DS equivalent — literal */
  --bg-light: var(--color-base-white-light); /* exact canonical match for #ffffff */
  --bg-gray: #f8f9fa; /* brand value, no value-identical DS gray — literal */
  --border-color: #e0e0e0; /* brand value, no value-identical DS gray — literal */
}

/*
 * Compat alias layer (consistency-refinement task 2.1, design Component C2).
 *
 * These custom properties used to live in the legacy `css/design-tokens.css`,
 * which is no longer loaded by any page. The migrated DraftWriter
 * (src/draftwriter/css/style.css) and DraftCamera (src/DraftCamera/css/style.css)
 * stylesheets — plus a few rules in this file — still reference them. Because
 * this global stylesheet is loaded FIRST (tokens.css -> style.css -> extraStyles,
 * see partials/head.njk), defining them once here makes every var() resolve
 * for all downstream product CSS, eliminating the dangling references that were
 * falling back to CSS initial values in dist/ (broken typography / spacing /
 * shadows / tap-area).
 *
 * VALUE SOURCE: every value below is the ORIGINAL literal from the legacy
 * `css/design-tokens.css` (the single source of truth). No approximation — the
 * goal is zero visual change. A canonical DS token is referenced via var()
 * ONLY where its value is byte-identical to the original (font weights below).
 * `css/design-tokens.css` itself is NOT revived into src/ (Req 2.3); it is a
 * read-only value source. Reconciling these to the DS scale is future work for
 * the consistency-refinement spec.
 */
:root {
  /* Font family */
  --font-primary: Helvetica, Arial, sans-serif;

  /* Font sizes (original rem values — do NOT shrink to px DS tokens) */
  --font-size-h1: 2.5rem;      /* 40px */
  --font-size-h2: 2rem;        /* 32px */
  --font-size-h3: 1.5rem;      /* 24px */
  --font-size-body: 1rem;      /* 16px */
  --font-size-small: 0.875rem; /* 14px */

  /* Line height */
  --line-height-base: 1.6;

  /* Font weights — value-identical to canonical DS tokens, so referenced */
  --font-weight-semibold: var(--font-weight-600); /* 600 */
  --font-weight-bold: var(--font-weight-700);     /* 700 */

  /* Spacing scale (original rem values) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */

  /* Layout constants */
  --container-max-width: 1200px;
  --container-padding: 2rem;

  /* Component sizing */
  --min-tap-area: 44px;        /* iOS guideline (Req 4.1) */
  --border-radius: 8px;
  --border-radius-small: 4px;

  /* State / surface colors */
  --color-info: #e8f4fd;
  --color-info-text: #2b6cb0;
  --color-success: #48bb78;
  --color-warning: #f57c00;
  --text-muted: #7f8c8d;
  --bg-gray-dark: #e9ecef;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 0 0 3px rgba(1, 129, 227, 0.3); /* brand focus ring */

  /* Transition */
  --transition-base: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}



nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-image {
  height: 40px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: var(--min-tap-area);
}

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

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-gray-dark) 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Buttons - using design-tokens.css definition */

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* Projects Grid */
.projects {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-blue);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  padding: 2.5rem;
  background-color: var(--bg-light);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
}

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

.project-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.project-icon img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.project-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.project-card p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  min-height: var(--min-tap-area);
}

.footer-links a:hover {
  color: var(--secondary-yellow);
}

/* about */
.about-section {
  background-color: var(--bg-gray);
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.2rem;
}

.coming-soon {
  opacity: 0.5;
  border-style: dashed;
}

/* ===================================
   Page Content Layout (root-level pages)
   =================================== */

.page-content {
  max-width: 800px;
}

.page-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-blue);
}

.page-content h3 {
  margin-top: 1.5rem;
  color: var(--primary-dark);
}

.page-content ul,
.page-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* ===================================
   Legal Content Styles (privacy-policy, term-of-use)
   =================================== */

.legal-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-blue);
}

.legal-content h3 {
  margin-top: 2rem;
  color: var(--primary-dark);
}

.legal-content h4 {
  margin-top: 1.5rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.legal-content p {
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

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

.founder-image {
  max-width: 256px;
  height: auto;
  border-radius: 8px;
  margin: 2rem auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
