/*
  ResolveIT marketing page: positioning sections + spacing fixes.
  Loaded after app.css and inquiry.css. Everything is scoped to .marketing-page
  so the internal workspace that shares app.css is unaffected.
  No existing transitions, hover lifts, sticky behaviour or smooth scrolling are removed.
*/

/* ---------- Shared rhythm ---------- */
.marketing-page {
  --section-gap: 18px;
  --section-pad: 38px;
  --section-radius: 34px;
  --eyebrow-gap: 12px;
}

/* Header sat 86px above the hero; tighten so the hero reads as the first thing */
.marketing-page .site-header {
  padding-bottom: 32px;
}

/* The homepage uses /site/logo.png: the wordmark already trimmed from the 1024x1024 square logo
   (about 5 KB instead of 127 KB). Widths keep the wordmark the same size it was before. */
.marketing-page .brand-logo {
  width: clamp(150px, 10.7vw, 187px);
  height: auto;
}

/* Menu button only shows on phones */
.marketing-page .nav-toggle {
  display: none;
}

/* Menu pills sit closer together so all seven links fit beside the logo on desktop */
.marketing-page .site-nav {
  gap: 6px;
}

.marketing-page .site-nav a {
  padding: 11px 15px;
}

/* Every band uses the same gap, padding and radius */
.marketing-page .process-band,
.marketing-page .story-band,
.marketing-page .sticky-systems-band,
.marketing-page .services-section,
.marketing-page .industries-section,
.marketing-page .compliance-section,
.marketing-page .proof-section,
.marketing-page .why-story-band,
.marketing-page .founders-band,
.marketing-page .inquiry-band {
  margin-top: var(--section-gap);
  margin-bottom: 0;
}

.marketing-page .process-band,
.marketing-page .story-band,
.marketing-page .sticky-systems-band,
.marketing-page .services-section,
.marketing-page .industries-section,
.marketing-page .compliance-section,
.marketing-page .why-story-band,
.marketing-page .founders-band,
.marketing-page .inquiry-band {
  padding: var(--section-pad);
  border-radius: var(--section-radius);
}

/* Anchor jumps land with breathing room above the section */
.marketing-page main > section {
  scroll-margin-top: 20px;
}

/* ---------- Eyebrow labels were touching their headings (0px gap) ---------- */
.marketing-page .eyebrow + h1,
.marketing-page .eyebrow + h2 {
  margin-top: var(--eyebrow-gap);
}

.marketing-page .section-heading {
  gap: var(--eyebrow-gap);
}

.marketing-page .section-heading .eyebrow + h2 {
  margin-top: 0;
}

/* Services heading was capped at 12ch, which cramped longer headings */
.marketing-page .section-heading-tight h2 {
  max-width: 22ch;
}

/* ---------- Nav "Start a Project" lost its green styling to a more specific rule ---------- */
.marketing-page .site-nav a.nav-cta {
  background: #248000;
  border-color: #248000;
  color: #ffffff;
}

.marketing-page .site-nav a.nav-cta:hover {
  background: #1d6b00;
  border-color: #1d6b00;
}

/* ---------- Hero headline: was capped at 11 characters wide, which stacked it into six huge lines ---------- */
.marketing-page .landing-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
  line-height: 0.98;
}

.marketing-page .hero-copy .lede {
  max-width: 46ch;
  font-size: 1.12rem;
}

/* ---------- Hero buttons: doubled gap (12px gap + 10px margin) and mismatched shapes ---------- */
.marketing-page .hero-actions .primary-cta {
  margin-right: 0;
}

.marketing-page .hero-actions .ghost {
  padding: 13px 22px;
  border-radius: 999px;
  font-size: inherit;
  font-weight: 700;
}

/* ---------- Process rows: default paragraph margins pushed text off-centre ---------- */
.marketing-page .process-card p {
  margin: 0;
}

/* ---------- Story / proof / why copy: consistent paragraph rhythm ---------- */
.marketing-page .story-copy p,
.marketing-page .why-story-copy p {
  margin: 16px 0 0;
}

.marketing-page .story-copy h2 + p,
.marketing-page .why-story-copy h2 + p {
  margin-top: 20px;
}

/* ---------- Service cards: pillar tag ---------- */
.marketing-page .service-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.marketing-page .service-card h3 {
  margin: 0;
}

.marketing-page .service-card p {
  margin: 0;
}

.marketing-page .service-tag {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(126, 211, 33, 0.14);
  border: 1px solid rgba(126, 211, 33, 0.24);
  color: var(--warm-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Photos (stock, from Unsplash) ---------- */
/* Service and industry cards: photo runs edge to edge across the top of the card */
.marketing-page .card-photo {
  position: relative;
  margin: -22px -22px 6px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(145deg, #dfe9d9, #cfdcc8);
}

.marketing-page .card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A soft brand-green wash at the bottom ties the photos to the page colours */
.marketing-page .card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(31, 36, 33, 0) 55%, rgba(31, 36, 33, 0.28) 100%),
    linear-gradient(160deg, rgba(126, 211, 33, 0.1), rgba(126, 211, 33, 0) 45%);
}

/* Hero tiles (Operate / Secure / Grow): photo fills the shape, label sits on a frosted pill */
.marketing-page .shape-portrait.has-photo {
  overflow: hidden;
  isolation: isolate;
  background: #cfdcc8;
}

.marketing-page .portrait-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketing-page .shape-portrait.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31, 36, 33, 0) 45%, rgba(31, 36, 33, 0.45) 100%);
}

.marketing-page .shape-portrait.has-photo span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
}

/* ---------- Who We Serve ---------- */
.marketing-page .industries-section {
  background: linear-gradient(180deg, #dce6d5 0%, #d4dfce 100%);
  border: 1px solid rgba(126, 211, 33, 0.12);
}

.marketing-page .industries-section .section-heading h2 {
  max-width: 30ch;
}

.marketing-page .industries-lede {
  max-width: 70ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.marketing-page .industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.marketing-page .industry-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.marketing-page .industry-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.marketing-page .industry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Compliance ---------- */
.marketing-page .compliance-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 243, 0.98));
  border: 1px solid rgba(126, 211, 33, 0.12);
  box-shadow: var(--shadow);
}

.marketing-page .compliance-section .section-heading h2 {
  max-width: 24ch;
}

.marketing-page .compliance-lede {
  max-width: 70ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.marketing-page .compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.marketing-page .compliance-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.marketing-page .compliance-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.marketing-page .compliance-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.marketing-page .compliance-tag {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #243125;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.marketing-page .compliance-note {
  max-width: 80ch;
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--warm);
  border-radius: 0 14px 14px 0;
  background: rgba(126, 211, 33, 0.08);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.marketing-page .faq-list a {
  color: var(--warm-dark);
  font-weight: 700;
}

/* ---------- FAQ: articles had 20px padding but no visible box, so text looked indented ---------- */
.marketing-page .faq-list article {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.marketing-page .faq-list h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.marketing-page .faq-list p {
  margin: 0;
}

/* ---------- Inquiry: match the rest of the page's headings and band shape ---------- */
.marketing-page .inquiry-intro h2 {
  margin: var(--eyebrow-gap) 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.marketing-page .inquiry-intro p:last-child {
  margin: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .marketing-page .site-header {
    padding-bottom: 32px;
  }

  /* The 140px top/bottom padding only exists for the sticky effect, which turns off here */
  .marketing-page .scrolling-copy {
    padding: 0;
  }

  .marketing-page .industry-grid,
  .marketing-page .compliance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 780px) {
  .marketing-page {
    --section-gap: 14px;
    --section-pad: 22px;
    --section-radius: 26px;
  }

  .marketing-page .site-header {
    padding-bottom: 22px;
  }

  /* Phones: logo and menu button on one row; the links open in a panel under them */
  .marketing-page .brand-logo {
    width: 134px;
  }

  .marketing-page .landing-hero h1 {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .marketing-page .hero-copy .lede {
    font-size: 1rem;
  }

  /* The three hero boxes repeat what the page says below; on phones they just add scrolling */
  .marketing-page .hero-metrics {
    display: none;
  }

  .marketing-page .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .marketing-page .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(31, 36, 33, 0.1);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 26px rgba(22, 25, 23, 0.08);
    cursor: pointer;
  }

  .marketing-page .nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .marketing-page .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .marketing-page .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .marketing-page .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .marketing-page .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 22px;
  }

  .marketing-page .site-header.nav-open .site-nav {
    display: flex;
  }

  .marketing-page .site-nav a {
    padding: 13px 16px;
    font-size: 1rem;
    text-align: center;
  }

  .marketing-page .proof-panel,
  .marketing-page .faq-panel {
    padding: var(--section-pad);
    border-radius: var(--section-radius);
  }

  .marketing-page .industry-grid,
  .marketing-page .compliance-grid {
    grid-template-columns: 1fr;
  }

  .marketing-page .inquiry-form {
    padding: 20px 16px;
  }

  .marketing-page .inquiry-intro h2 {
    font-size: 1.7rem;
  }
}
