/* ==========================================================================
   OMOXIE — Consolidated Stylesheet
   Replaces 13 Tilda CSS files for omoxie.co
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #1a1b3b;
  --color-accent: #0056d3;
  --color-cta: #fa8669;
  --color-white: #ffffff;
  --color-light-gray: #f4f7f9;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-border: #e0e0e0;

  --font-family: 'Open Sans', sans-serif;

  --container-max: 1200px;
  --gutter: 20px;

  --radius: 4px;
  --radius-lg: 8px;

  --transition: 0.25s ease;

  --header-height: 72px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   3. Grid System — 12-column
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--gutter) * -0.5);
  margin-right: calc(var(--gutter) * -0.5);
}

.col {
  padding-left: calc(var(--gutter) * 0.5);
  padding-right: calc(var(--gutter) * 0.5);
  width: 100%;
}

.col-1  { width: 8.3333%; }
.col-2  { width: 16.6667%; }
.col-3  { width: 25%; }
.col-4  { width: 33.3333%; }
.col-5  { width: 41.6667%; }
.col-6  { width: 50%; }
.col-7  { width: 58.3333%; }
.col-8  { width: 66.6667%; }
.col-9  { width: 75%; }
.col-10 { width: 83.3333%; }
.col-11 { width: 91.6667%; }
.col-12 { width: 100%; }

.offset-1  { margin-left: 8.3333%; }
.offset-2  { margin-left: 16.6667%; }
.offset-3  { margin-left: 25%; }
.offset-4  { margin-left: 33.3333%; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background-color: var(--color-cta);
  color: var(--color-white);
  border: 2px solid var(--color-cta);
}

.btn-primary:hover {
  background-color: #e8734f;
  border-color: #e8734f;
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header .container {
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav > a {
  flex-shrink: 0;
}

.nav > a img {
  width: 110px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

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

.nav-cta {
  margin-left: 8px;
}

/* Hamburger toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Sections — shared
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section--gray {
  background-color: var(--color-light-gray);
}

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

.section--dark .section-title,
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 140px 0 80px;
  background-color: var(--color-white);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1 1 50%;
}

.hero-image {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}

.hero-image img,
.hero-image svg {
  max-width: 100%;
  height: auto;
}

.hero h1,
.hero-title {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.45;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. Card Grids
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 30px;
}

.card-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid-3,
.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(26, 27, 59, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.card-icon img,
.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.card-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* "Why OMOXIE?" — 4-column variant with light-gray bg */
.why-omoxie .card {
  text-align: center;
}

/* "Introducing MERIT App" — 3x2 grid of 6 feature cards */
.merit-features .card {
  border: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   9. Partners Logo Bar
   -------------------------------------------------------------------------- */
.partners {
  padding: 60px 0;
}

.partners .container {
  max-width: 1300px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 28px;
}

.partners-row img {
  height: 50px;
  width: auto;
  opacity: 0.55;
  transition: opacity var(--transition);
  filter: grayscale(100%);
}

.partners-row img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* --------------------------------------------------------------------------
   10. Roadmap Timeline
   -------------------------------------------------------------------------- */
.roadmap {
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 2px;
  background-color: var(--color-accent);
}

.timeline-entry {
  position: relative;
  margin-bottom: 40px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 2px solid var(--color-white);
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.timeline-content {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Email Signup Form
   -------------------------------------------------------------------------- */
.signup-section {
  text-align: center;
}

.signup-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.signup-form input[type="email"]::placeholder {
  color: #aaa;
}

.signup-form input[type="email"]:focus {
  border-color: var(--color-accent);
}

.signup-form .btn-primary {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 40px;
  font-size: 0.875rem;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  margin-bottom: 16px;
  max-width: 150px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: background-color var(--transition);
}

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

.footer-heading {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   13. White Paper — Article Page
   -------------------------------------------------------------------------- */
.article,
.article-content {
  padding: 80px 0;
}

.article-date {
  color: #a3a3a3;
  font-size: 0.875rem;
  margin-top: 40px;
}

/* Pages where <main> follows the header need top offset */
.header + main {
  padding-top: calc(var(--header-height) + 40px);
}

/* Form success/error messages */
.form-success {
  color: #2ecc71;
  font-weight: 600;
  padding: 16px;
}

.form-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 8px;
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.article-body,
.article-content {
  max-width: 66.6667%;   /* 8/12 columns */
  margin-left: 16.6667%; /* 2/12 offset  */
}

.article-body h1,
.article-content h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}

.article-body h2,
.article-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body h3,
.article-content h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p,
.article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-body ul,
.article-body ol,
.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body ul,
.article-content ul {
  list-style: disc;
}

.article-body ol,
.article-content ol {
  list-style: decimal;
}

.article-body li,
.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 16px 24px;
  margin: 24px 0;
  color: var(--color-text-muted);
  font-style: italic;
  background-color: var(--color-light-gray);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body img {
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.article-body th,
.article-body td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.article-body th {
  background-color: var(--color-light-gray);
  font-weight: 700;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   14. Temporary / Signup Landing Page
   -------------------------------------------------------------------------- */
.landing-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.landing-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 27, 59, 0.85) 0%,
    rgba(0, 86, 211, 0.7) 100%
  );
}

.landing-card {
  position: relative;
  z-index: 1;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.landing-card .site-logo {
  display: inline-block;
  margin-bottom: 24px;
}

.landing-card h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.landing-card p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.landing-card .signup-form {
  flex-direction: column;
}

.landing-card .signup-form input[type="email"] {
  width: 100%;
}

/* --------------------------------------------------------------------------
   15. 404 Page
   -------------------------------------------------------------------------- */
.page-404 {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--gutter);
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

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

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mt-5  { margin-top: 48px; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.mb-5  { margin-bottom: 48px; }

.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }

.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap     { flex-wrap: wrap; }
.gap-1         { gap: 8px; }
.gap-2         { gap: 16px; }
.gap-3         { gap: 24px; }

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

/* --------------------------------------------------------------------------
   17. Responsive — 1200px
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

/* --------------------------------------------------------------------------
   18. Responsive — 980px (nav breakpoint)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav-links.menu-open {
    transform: translateX(0);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive — 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .container {
    max-width: 100%;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-body {
    max-width: 83.3333%;   /* 10/12 */
    margin-left: 8.3333%;  /* 1/12  */
  }
}

/* --------------------------------------------------------------------------
   20. Responsive — 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .card-grid,
  .card-grid-3,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input[type="email"],
  .signup-form .btn-primary {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .partners-row {
    gap: 24px;
  }

  .partners-row img {
    height: 36px;
  }

  .article-body {
    max-width: 100%;
    margin-left: 0;
  }

  .timeline {
    padding-left: 32px;
  }
}

/* --------------------------------------------------------------------------
   21. Responsive — 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .card {
    padding: 24px 20px;
  }

  .landing-card {
    padding: 32px 24px;
    margin: 16px;
  }

  .page-404 h1 {
    font-size: 4rem;
  }
}
