/* ============================================================
   Magic Materials — Main Stylesheet
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --dark:    #1A2E35;
  --teal:    #028090;
  --seafoam: #02C39A;
  --light:   #E8F4F6;
  --mid:     #4A6B72;
  --muted:   #8AADB4;
  --white:   #FFFFFF;
  --red:     #E05A4B;

  --font-head: 'Trebuchet MS', Tahoma, Geneva, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow:    0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);

  --transition: .2s ease;
  --max-w: 1080px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--seafoam); }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--mid); }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-alt {
  background: var(--light);
  padding: 80px 0;
}
.section-alt .section { padding-top: 0; padding-bottom: 0; }
.section-dark {
  background: var(--dark);
  padding: 80px 0;
}
.section-dark .section { padding-top: 0; padding-bottom: 0; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--muted); }

.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--seafoam);
  margin-bottom: 12px;
}
.section-intro {
  max-width: 640px;
  font-size: 1.05rem;
  margin-top: 16px;
  color: var(--mid);
}
.text-center { text-align: center; }
.text-center .section-intro { margin: 16px auto 0; }

/* ── Grid helpers ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media(max-width:900px){ .grid-4 { grid-template-columns: 1fr 1fr; } }
@media(max-width:700px){
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--seafoam);
  color: var(--dark);
  border-color: var(--seafoam);
}
.btn-primary:hover {
  background: transparent;
  color: var(--seafoam);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: transparent;
  color: var(--teal);
}

/* ── Navigation ─────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 3px solid var(--teal);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: .02em;
}
.nav-logo span { color: var(--seafoam); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted) !important;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.07);
}
.nav-cta {
  margin-left: 8px;
  padding: 9px 18px;
  background: var(--seafoam);
  color: var(--dark) !important;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
}
.nav-cta:hover {
  background: #03d9ab;
  color: var(--dark) !important;
}
/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
@media(max-width:760px){
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 3px solid var(--teal);
  }
  .nav-links.open { display: flex; }
  .nav-link, .nav-cta { width: 100%; text-align: left; }
  .nav-cta { margin-left: 0; }
}

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  background: var(--dark);
  border-top: 3px solid var(--teal);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 10px;
  max-width: 280px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--seafoam); }
.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--seafoam); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
@media(max-width:760px){
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media(max-width:480px){
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Hero (homepage) ────────────────────────────────────── */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 96px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,192,154,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; right: 80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,128,144,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(2,195,154,.15);
  color: var(--seafoam);
  border: 1px solid rgba(2,195,154,.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  max-width: 680px;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--seafoam); }
.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-divider {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--seafoam);
  display: block;
}
.hero-stat-label { color: var(--muted); font-size: .88rem; }

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,192,154,.12) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-top: 10px; }
.page-hero p  { color: var(--muted); font-size: 1.05rem; margin-top: 14px; max-width: 600px; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 1px solid rgba(2,128,144,.1);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-accent {
  border-top: 4px solid var(--teal);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p  { font-size: .95rem; }

/* ── Feature list (icon + text rows) ───────────────────── */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-dot {
  width: 10px; height: 10px;
  background: var(--seafoam);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p  { font-size: .92rem; }

/* ── Stat row ───────────────────────────────────────────── */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.stat-block { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--seafoam);
  display: block;
  line-height: 1;
}
.stat-label { color: var(--mid); font-size: .88rem; margin-top: 6px; display: block; }

/* ── Tables ─────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th {
  background: var(--dark);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.data-table th.teal { background: var(--teal); }
.data-table td {
  padding: 13px 18px;
  color: var(--mid);
  border-bottom: 1px solid var(--light);
}
.data-table tr:nth-child(even) td { background: var(--light); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--dark); font-weight: 600; }
.check  { color: var(--seafoam); font-weight: 700; font-size: 1.1rem; }
.cross  { color: var(--red); font-size: 1.1rem; }
.badge-progress {
  display: inline-block;
  background: rgba(245,166,35,.15);
  color: #b8840f;
  border: 1px solid rgba(245,166,35,.4);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-good {
  display: inline-block;
  background: rgba(2,195,154,.12);
  color: #017a58;
  border: 1px solid rgba(2,195,154,.35);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
}

/* ── Process steps ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(2,128,144,.08);
}
.step-header {
  background: var(--teal);
  color: var(--white);
  padding: 14px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-body { padding: 22px; }
.step-body p { font-size: .92rem; }
@media(max-width:700px){ .steps { grid-template-columns: 1fr; } }

/* ── Callout box ────────────────────────────────────────── */
.callout {
  background: var(--teal);
  border-radius: var(--radius);
  padding: 36px 40px;
  color: var(--white);
}
.callout h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.callout p  { color: rgba(255,255,255,.8); }
.callout-dark {
  background: var(--dark);
  border-left: 5px solid var(--seafoam);
}

/* ── Product card ───────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(2,128,144,.1);
}
.product-card-header {
  background: var(--dark);
  padding: 40px 36px 32px;
  position: relative;
  overflow: hidden;
}
.product-card-header::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,192,154,.2) 0%, transparent 70%);
}
.product-card-header h2 { color: var(--white); }
.product-card-header .section-label { margin-bottom: 8px; }
.product-card-body { padding: 36px; }
.spec-row {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px solid var(--light);
  font-size: .92rem;
  gap: 16px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--mid); font-weight: 600; min-width: 160px; flex-shrink: 0; }
.spec-value { color: var(--dark); }

/* ── Comparison pill ────────────────────────────────────── */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pill {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 700;
}
.pill-green { background: rgba(2,195,154,.12); color: #017a58; border: 1px solid rgba(2,195,154,.3); }
.pill-red   { background: rgba(224,90,75,.1);  color: #a33; border: 1px solid rgba(224,90,75,.25); }
.pill-amber { background: rgba(245,166,35,.12); color: #8a5e00; border: 1px solid rgba(245,166,35,.3); }

/* ── Certification status table ─────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
  margin-top: 32px;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--teal);
}
.cert-card h4 { font-size: 1rem; margin-bottom: 6px; }
.cert-card .standard { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.cert-card p { font-size: .9rem; }
@media(max-width:640px){ .cert-grid { grid-template-columns: 1fr; } }

/* ── FAQ accordion ──────────────────────────────────────── */
.faq { border-top: 1px solid var(--light); }
.faq-item { border-bottom: 1px solid var(--light); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { color: var(--teal); }
.faq-q .chevron {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  font-size: .75rem;
}
.faq-q.open .chevron { transform: rotate(180deg); background: var(--teal); color: white; }
.faq-a {
  display: none;
  padding-bottom: 20px;
  color: var(--mid);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-a.open { display: block; }

/* ── About founder card ─────────────────────────────────── */
.founder-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid rgba(2,128,144,.1);
}
.founder-left {
  background: var(--dark);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.founder-avatar {
  width: 96px; height: 96px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.founder-name { color: var(--white); font-size: 1.2rem; text-align: center; }
.founder-title { color: var(--muted); font-size: .85rem; text-align: center; }
.founder-right { padding: 40px; }
.founder-right h3 { margin-bottom: 14px; }
.founder-cred {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.founder-cred-dot {
  width: 6px; height: 6px;
  background: var(--seafoam);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.founder-cred p { font-size: .92rem; }
@media(max-width:700px){
  .founder-card { grid-template-columns: 1fr; }
  .founder-left { padding: 32px; }
}

/* ── Contact ────────────────────────────────────────────── */
.contact-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.contact-method {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(2,128,144,.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.contact-method:hover { box-shadow: var(--shadow); }
.contact-icon {
  width: 52px; height: 52px;
  background: var(--light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.contact-method h3 { margin-bottom: 10px; font-size: 1.1rem; }
.contact-method h4 { margin-bottom: 4px; }
.contact-method p { font-size: .9rem; color: var(--mid); line-height: 1.65; }
@media(max-width:640px){ .contact-methods { grid-template-columns: 1fr; } }

/* ── Form (placeholder) ─────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .9rem;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d0dee2;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(2,128,144,.1);
}

/* ── Misc ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--light); margin: 0; }
.highlight { color: var(--teal); }
.tag {
  display: inline-block;
  background: var(--light);
  color: var(--mid);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: .78rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 4px;
}
.wsu-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 24px;
  border-left: 4px solid var(--teal);
  font-size: .9rem;
  color: var(--mid);
}
.wsu-badge strong { color: var(--dark); }
