/* ============================================
   Build Offsite — Shared Stylesheet
   ============================================ */

:root {
  --maroon-dark: #5e1433;
  --maroon: #7a1c40;
  --maroon-light: #9c3c5e;
  --pink: #f2c9d6;
  --pink-soft: #f8dfe8;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.25);
  --shadow: rgba(0, 0, 0, 0.2);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section[id],
footer[id] {
  scroll-margin-top: 76px;
}

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: var(--maroon);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--maroon-dark);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text .accent { color: var(--pink); }

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a.active {
  border-color: var(--pink);
  color: var(--pink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--pink);
  color: var(--white);
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--pink); }

.hero p {
  font-size: 1.1rem;
  color: var(--pink-soft);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--pink);
  color: var(--maroon-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--pink);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section {
  padding: 70px 0;
}

section.alt {
  background: var(--maroon-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--pink-soft);
}

/* ---------- Cards / Grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 26px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.card .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--maroon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--pink-soft);
  font-size: 0.95rem;
}

/* ---------- Stats ---------- */

.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: center;
}

.stats .stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--pink);
}

.stats .stat span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink-soft);
}

/* ---------- Process list ---------- */

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process .step {
  position: relative;
  padding: 30px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.process .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--maroon-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process h3 {
  font-size: 1.05rem;
  margin: 10px 0 8px;
}

.process p {
  color: var(--pink-soft);
  font-size: 0.9rem;
}

/* ---------- Pricing-ish include list ---------- */

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--pink-soft);
}

.check-list li::before {
  content: "✓";
  color: var(--pink);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- "We…" timeline (About section) ---------- */

.we-block {
  max-width: 640px;
  margin: 0 auto;
}

.we-heading {
  font-size: clamp(2.2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 40px;
}

.we-list {
  list-style: none;
  position: relative;
}

.we-list::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 17px;
  width: 2px;
  background: linear-gradient(to bottom, var(--pink), var(--line));
  opacity: 0.55;
}

.we-list li {
  position: relative;
  padding-left: 56px;
  margin-bottom: 34px;
}

.we-list li:last-child {
  margin-bottom: 0;
}

.we-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--maroon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--maroon-dark);
}

.we-list h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  padding-top: 4px;
}

.we-list p {
  color: var(--pink-soft);
  font-size: 0.95rem;
}

/* ---------- Examples page ---------- */

.example-block {
  margin-bottom: 70px;
}

.example-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.example-header .tag {
  display: inline-block;
  background: var(--pink);
  color: var(--maroon-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.example-header h2 {
  font-size: 1.6rem;
}

.example-header p {
  color: var(--pink-soft);
  font-size: 0.92rem;
  max-width: 480px;
}

.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px var(--shadow);
  background: #1c1c1c;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #2a2a2a;
}

.browser-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.browser-bar .url {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  flex: 1;
  max-width: 320px;
}

.frame-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.browser-frame iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
  background: var(--white);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--maroon-dark);
  border-top: 1px solid var(--line);
  padding: 56px 0 26px;
}

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

.footer-grid h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink);
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a {
  color: var(--pink-soft);
  font-size: 0.92rem;
}

.footer-grid ul { list-style: none; display: grid; gap: 10px; }

.footer-grid ul a:hover { color: var(--pink); }

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

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-row a:hover {
  background: var(--pink);
  color: var(--maroon-dark);
  border-color: var(--pink);
}

.contact-list { display: grid; gap: 12px; }

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--pink-soft);
}

.contact-list .label {
  color: var(--white);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--maroon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 8px 24px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3, .process { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .process { grid-template-columns: 1fr; }
  /* Once the menu list goes position:fixed, its <nav> wrapper collapses to
     zero width but still counts as a flex item in .nav-wrap, which pushes
     the hamburger button away from the true right edge. display:contents
     removes that empty wrapper from the flex layout so the button sits
     flush right. Scoped to mobile only — desktop nav is untouched. */
  nav { display: contents; }
  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--maroon-dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav ul.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .stats { gap: 30px; }
  /* Example iframe scaling for this breakpoint is handled in script.js
     (scaleExampleFrames) — it shrinks the full desktop layout down to fit
     instead of letting it reflow into cramped, disorganized narrow columns. */
}
