/*
Theme Name: Megastore Partner
Theme URI: https://megastore.com.mt/
Author: dofollow
Author URI: https://dofollow.nl/
Description: Single-page partner waitlist landing for Megastore.com.mt. 
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: megastore-partner
*/

:root {
  --accent: #FFC700;
  --accent-dark: #E6B400;
  --ink: #2B2B2B;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --rule: rgba(43,43,43,0.14);
  --ink-70: rgba(43,43,43,0.78);
  --ink-60: rgba(43,43,43,0.62);
  --ink-50: rgba(43,43,43,0.5);
  --ink-40: rgba(43,43,43,0.38);
  --error: #D32F2F;
  --font-sans: Arial, Helvetica, "Helvetica Neue", sans-serif;
  --font-display: "Open Sans", sans-serif;
  --font-mono: "Open Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
section[id] { scroll-margin-top: 76px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 900px) {
  .container { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 700;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { padding: 16px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--rule); background: var(--bg-alt); }
.btn:focus,
.btn:focus-visible,
.btn:active {
  outline: none;
  box-shadow: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img { height: 44px; width: auto; display: block; }
.nav-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-60);
  text-transform: uppercase;
  font-weight: 700;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-70);
  font-weight: 600;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav-tag { display: none; }
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero-copy { padding-top: 16px; }
.hero h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  margin: 18px 0 22px;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-meta {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hero-meta-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.hero-meta-item p {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.45;
}
.hero-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.55;
}
.hero-note strong { color: var(--ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Form card ---------- */
.form-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.form-card-header {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.form-card-header h3 {
  font-size: 22px;
  margin: 8px 0 6px;
}
.form-card-header p {
  font-size: 13px;
  color: var(--ink-60);
}
.form-grid {
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field label .req { color: var(--error); }
.form-field label .opt { color: var(--ink-40); font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--bg);
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 4px;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--ink); }
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%232B2B2B' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-consent {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-70);
  line-height: 1.5;
  margin: 18px 0;
}
.form-consent input { margin-top: 2px; flex-shrink: 0; }
.form-footnote {
  font-size: 12px;
  color: var(--ink-50);
  text-align: center;
  margin-top: 14px;
}
.form-footnote a { color: var(--ink-70); }

.form-card .btn-block { margin-top: 18px; }

.form-success {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.form-success-tick {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { font-size: 14px; color: var(--ink-70); line-height: 1.55; }
.form-success a { color: var(--ink); font-weight: 700; }

.form-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(211,47,47,0.08);
  color: var(--error);
  font-size: 13px;
  line-height: 1.45;
  display: none;
}
.form-error.is-visible { display: block; }

/* ---------- Generic section ---------- */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.section-head {
  margin-bottom: 40px;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  margin-top: 12px;
}

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
}
.audience-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  padding: 3px 8px;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 16px;
  border-radius: 2px;
}
.audience-card h3 { font-size: 19px; margin-bottom: 8px; }
.audience-card p { font-size: 14px; color: var(--ink-70); line-height: 1.55; }

/* ---------- Why ---------- */
.why { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }
.why-aside h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
}
@media (max-width: 700px) { .why-list { grid-template-columns: 1fr; } }
.why-item {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.why-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-item h4 { font-size: 16px; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--ink-70); line-height: 1.55; }

/* ---------- How ---------- */
.how {
  background: var(--ink);
  color: #fff;
}
.how h2 { color: #fff; max-width: 22ch; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  padding: 22px 22px 22px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
}
.how-step:last-child { border-right: none; }
.how-step + .how-step { padding-left: 22px; }
@media (max-width: 900px) {
  .how-step { padding: 22px; }
  .how-step:nth-child(2) { border-right: none; }
  .how-step:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.18); }
}
.how-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.how-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.how-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.how-step:first-child .how-step-dot { background: var(--accent); }
.how-step h4 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.how-step p { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.55; }

/* ---------- Categories ---------- */
#categories.section { background: var(--ink); color: #fff; }
#categories .eyebrow { color: rgba(255,255,255,0.6); }
#categories h2 { color: #fff; }
.cats-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 36px;
}
@media (max-width: 900px) { .cats-head { grid-template-columns: 1fr; gap: 20px; } }
.cats-head p { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.6; }
.cats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 900px) { .cats-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cats-list { grid-template-columns: 1fr; } }
.cats-item {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #fff;
}
.cats-list .cats-item:nth-child(4n) { border-right: none; }
@media (max-width: 900px) {
  .cats-list .cats-item { border-right: 1px solid rgba(255,255,255,0.18); }
  .cats-list .cats-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 540px) {
  .cats-list .cats-item { border-right: none; }
}
.cats-item + .cats-item:not(:nth-child(4n+1)) { padding-left: 16px; }
.cats-name { font-size: 15px; font-weight: 700; color: #fff; }
.cats-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg-alt); border-top: 1px solid var(--rule); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }
.faq-aside h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.faq-list {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.faq-q:hover,
.faq-q:focus,
.faq-q:active,
.faq-q:focus-visible {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}
.faq-q-icon {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-50);
  flex-shrink: 0;
  font-weight: 400;
}
.faq-a {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-70);
  padding: 0 22px 22px;
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q-icon::before { content: "−"; }
.faq-item:not(.open) .faq-q-icon::before { content: "+"; }

/* ---------- CTA Form section ---------- */
.cta-section {
  background: var(--accent);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 56px; } }
.cta-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin: 16px 0 18px;
}
.cta-copy p {
  font-size: 16px;
  color: rgba(43,43,43,0.78);
  line-height: 1.6;
  max-width: 480px;
}
.cta-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(43,43,43,0.2);
  font-size: 13px;
  color: rgba(43,43,43,0.78);
  line-height: 1.55;
}
.cta-meta strong { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  background: #FFFFFF;
  color: rgba(43,43,43,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  padding: 56px 0 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-wrap {
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  margin-bottom: 16px;
}
.footer-logo-wrap img { height: 40px; width: auto; display: block; }
.footer p { font-size: 13px; line-height: 1.6; max-width: 360px; color: var(--ink-70); }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
  font-weight: 700;
}
