/* =========================================================
   4Front Marketing Services — brand stylesheet
   ========================================================= */

:root {
  --red: #E2211C;
  --red-dark: #B3181A;
  --orange: #F7941E;
  --gold: #C87F0A;
  --gradient: linear-gradient(90deg, var(--red) 0%, var(--orange) 55%, var(--gold) 100%);
  --ink: #221c1a;
  --gray: #5b5250;
  --gray-light: #8a807d;
  --bg: #ffffff;
  --bg-warm: #FFF8F2;
  --bg-dark: #211714;
  --border: #f0e3d8;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(178, 45, 20, 0.09);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 16px; color: var(--gray); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red-dark);
  background: #fdeee7;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-outline {
  background: transparent;
  border-color: var(--red);
  color: var(--red-dark);
}
.btn-outline:hover { background: #fdeee7; }

.btn-light {
  background: #fff;
  color: var(--red-dark);
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 40px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
}
nav.main-nav a:hover { color: var(--red); text-decoration: none; }
nav.main-nav a.active { color: var(--red-dark); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; color: var(--ink); font-size: 0.95rem; white-space: nowrap; }
.header-phone span { color: var(--red-dark); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 60px;
  background: radial-gradient(circle at 85% 10%, #fff3e9 0%, var(--bg) 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .sub {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 54ch;
  margin-bottom: 10px;
}
.hero .tagline2 {
  font-weight: 700;
  color: var(--red-dark);
  font-size: 1.05rem;
  margin-bottom: 26px;
}
.trust-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 8px; }
.trust-list li { font-weight: 600; color: var(--ink); }
.trust-list li::before { content: "✔"; color: var(--red); margin-right: 10px; font-weight: 800; }

.hero-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card img { border-radius: 8px; margin-bottom: 18px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--bg-dark); color: #f4ede9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #d8c9c3; }
.section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}
.card h3 { margin-bottom: 10px; }
.card .icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 16px;
}

/* ---------- Process steps ---------- */
.step-list { display: flex; flex-direction: column; gap: 22px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.98rem; }
.compare-table th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table thead th:first-child { background: #f4efec; color: var(--gray); }
.compare-table thead th:last-child { background: var(--gradient); color: #fff; }
.compare-table tbody td:first-child { color: var(--gray-light); }
.compare-table tbody td:last-child { font-weight: 700; color: var(--ink); background: #fff7f0; }
.compare-table tr:last-child td { border-bottom: none; }

/* ---------- Guarantee ---------- */
.guarantee-box {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius);
  padding: 46px;
  text-align: center;
}
.guarantee-box h2 { color: #fff; }
.guarantee-box p { color: #ffe9df; font-size: 1.1rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.testimonial p.quote { font-size: 1.12rem; color: var(--ink); font-style: italic; margin-bottom: 16px; }
.testimonial .who { font-weight: 700; color: var(--red-dark); }
.testimonial .who span { display: block; font-weight: 500; color: var(--gray-light); font-size: 0.9rem; }

.placeholder-note {
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--gray-light);
  font-size: 0.92rem;
  background: #fbfaf9;
}

/* ---------- FAQ ---------- */
details.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--red); font-weight: 400; }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius);
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #d8c9c3; font-size: 1.1rem; max-width: 620px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-dark);
  color: #cbb9b3;
  padding: 54px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: #cbb9b3; }
.footer-grid a:hover { color: #fff; }
.footer-logo img { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #9c8a84;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 52px 0 46px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray-light); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
form.roadmap-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
form.roadmap-form label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; margin-top: 16px; }
form.roadmap-form label:first-of-type { margin-top: 0; }
form.roadmap-form input, form.roadmap-form select, form.roadmap-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd0c8;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.98rem;
}
form.roadmap-form textarea { resize: vertical; min-height: 110px; }
form.roadmap-form button { margin-top: 22px; width: 100%; border: none; }

.contact-info-list { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* ---------- Learning center ---------- */
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-dark);
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; }
}

@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .header-phone { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 12px; }
}
