:root {
  --ink: #202426;
  --muted: #697276;
  --bg: #f6f7f5;
  --panel: #ffffff;
  --soft: #e7eeee;
  --teal: #205862;
  --teal-dark: #123f47;
  --red: #ef4f59;
  --red-dark: #cf333f;
  --line: #dfe5e3;
  --shadow: 0 18px 45px rgba(22, 38, 42, 0.1);
  --radius: 22px;
  --max: 1180px;

  /* Keeps official character/wordmark artwork away from card edges. */
  --artwork-safe-space: clamp(10px, 2vw, 18px);
}

/* ==================================================
   BASE
   ================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: auto;
  left: -999px;
  z-index: 10;
  padding: 10px;
  background: #fff;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
}

/* ==================================================
   HEADER AND NAVIGATION
   ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 245, 0.92);
  border-bottom: 1px solid rgba(32, 88, 98, 0.12);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 70px;
  height: 70px;
  border-radius: 999px;
}

.brand strong {
  display: block;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.primary-nav a {
  color: #293033;
}

.primary-nav a[aria-current="page"] {
  color: var(--red);
  font-weight: 700;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: #fff !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 999px;
}

.nav-cta:hover,
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  text-decoration: none;
}

.btn.secondary {
  color: var(--teal) !important;
  background: transparent;
  border-color: var(--teal);
}

.btn.secondary:hover {
  color: #fff !important;
  background: var(--teal);
}

.btn.dark {
  background: var(--teal);
  border-color: var(--teal);
}

.nav-toggle {
  display: none;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ==================================================
   HERO
   ================================================== */

.hero {
  position: relative;
  padding: 76px 0 56px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(32, 88, 98, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 8% 20%,
      rgba(239, 79, 89, 0.16),
      transparent 28%
    );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1,
.page-hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.45rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 650px;
  color: #465053;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  padding: 24px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

/*
 * Artwork clipping fix:
 * The image stays centered and retains a small internal safe area, preventing
 * the left side of the DoughBelly "D" from touching or crossing the card edge.
 */
.hero-card img {
  width: auto;
  max-width: calc(100% - (var(--artwork-safe-space) * 2));
  max-height: 370px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mini-grid span {
  padding: 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  background: var(--soft);
  border-radius: 14px;
}

/* ==================================================
   SECTIONS AND CONTENT CARDS
   ================================================== */

.section {
  padding: 72px 0;
}

.section.light {
  background: #fff;
}

.section.dark {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), #0f3036);
}

.section.dark .muted,
.section.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.muted {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(22, 38, 42, 0.05);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 900;
  background: var(--soft);
  border-radius: 14px;
}

.dark .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.dark .card p {
  color: rgba(255, 255, 255, 0.72);
}

.dark .icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 44px;
}

.split-visual {
  padding: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

/* Applies the same clipping protection to interior-page artwork. */
.split-visual img {
  width: auto;
  max-width: calc(100% - (var(--artwork-safe-space) * 2));
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--red);
  font-weight: 900;
  content: "✓";
}

/* ==================================================
   EXAMPLES
   ================================================== */

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.example {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0b2a30);
  border-radius: 24px;
}

.example:nth-child(2n) {
  background: linear-gradient(135deg, var(--red), #7d2630);
}

.example:nth-child(3n) {
  background: linear-gradient(135deg, #373c3f, var(--teal));
}

.example strong {
  font-size: 1.25rem;
}

.example span {
  opacity: 0.78;
}

.example img {
  width: 74px;
  margin-bottom: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

/* ==================================================
   PACKAGES AND PROCESS STEPS
   ================================================== */

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.package {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.package.featured {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.package h3 {
  margin: 0 0 10px;
}

.package ul {
  padding-left: 19px;
  color: var(--muted);
}

.price-note {
  margin-top: 18px;
  color: var(--teal);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: steps;
}

.step {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 900;
  content: counter(steps);
  background: var(--red);
  border-radius: 999px;
  counter-increment: steps;
}

/* ==================================================
   INTERIOR PAGES, FORMS, AND FAQ
   ================================================== */

.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.page-hero p {
  margin-inline: auto;
}

.content-narrow {
  max-width: 860px;
  margin-inline: auto;
}

.form-wrap {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  border: 1px solid #cfd8d6;
  border-radius: 14px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.notice {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
}

.notice.success {
  color: #174d31;
  background: #e8f6ee;
}

.notice.error {
  color: #7b1822;
  background: #ffe9eb;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.faq p {
  color: var(--muted);
}

/* ==================================================
   REUSABLE SITE-WIDE OFFICIAL ARTWORK PROTECTION
   ==================================================

   Add class="doughbelly-artwork" to an official character/wordmark image
   placed anywhere outside .hero-card or .split-visual. This makes future and
   existing interior pages use the same safe spacing without page-specific CSS.
 */

img.doughbelly-artwork {
  width: auto;
  max-width: calc(100% - (var(--artwork-safe-space) * 2));
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

/* ==================================================
   FOOTER
   ================================================== */

.site-footer {
  padding: 56px 0 26px;
  color: #fff;
  background: #222829;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 34px;
}

.footer-logo {
  max-width: 240px;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: center;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer h2 {
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fine-print {
  font-size: 0.9rem;
}

/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 86px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 44px;
  }
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 620px) {
  :root {
    --artwork-safe-space: 10px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand small {
    letter-spacing: 0.14em;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .card-grid,
  .examples-grid,
  .package-grid,
  .steps,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .footer-bottom {
    display: block;
  }
}

/* ==================================================
   DOUGHBELLY ENLARGED ARTWORK — EDGE CLIPPING FIX
   ================================================== */

.hero-art-frame,
.split-art-frame {
  width: calc(100% + 28px);
  margin-inline: -14px;
}

.hero-art-frame img,
.split-art-frame img {
  width: calc(200% - 56px) !important;
}
