/* ==========================================================
   DESIGN NOTES: Nova Strategies
   Source: Figma file "Nova Strategies — Website" (desktop, 1440px wide)
   Look things up here before writing CSS, so every section uses the same values.
   ========================================================== */

/* COLORS
   Page background ........ #FFF9EE  (warm off-white)
   White surface .......... #FFFFFF  (cards)
   Cream .................. #FDF0D5  (alternate sections, light text on dark)
   Navy ................... #003049  (main text, dark sections)
   Navy deep .............. #00243A  (darkest sections)
   Crimson ................ #C1121F  (buttons, accents)
   Maroon ................. #780000  (button hover)
   Steel blue ............. #669BBC  (accent on dark backgrounds)
   Muted text ............. #4A5D6B  (secondary text)
   Borders and rules ...... #E6D9BE
*/

/* FONT: Outfit only (Google Fonts, weights 400, 500, 600, 700)
   Style      Weight  Size   Line height  Letter spacing (assumed % of font size)
   Display h1   500   70px     1.04        -2%
   H2           500   48px     1.08        -1.5%
   H3           500   26px     1.22        -0.5%
   H4           500   20px     1.32        none
   Body L       400   19px     1.6         none   (hero intro)
   Body         400   17px     1.6         none
   Small        400   15px     1.5         none
   Button       500   16px     1.5         none
   Eyebrow      600   14px     1.5         16%    (small uppercase label)
   Label        600   13px     1.5         12%
*/

/* SPACING AND SHAPE
   Max content width ...... 1200px, centered (120px side padding on a 1440px screen)
   Section padding ........ about 112 to 120px top and bottom (desktop)
   Common gaps ............ 8, 12, 16, 24, 32, 40, 64px
   Corner radius .......... buttons 6px; cards and tiles 8, 12 or 20px
*/

/* BREAKPOINTS
   Mobile first: the base CSS is the small-screen design, and each media query is min-width only.
   Max two shared breakpoints for the whole site.
   1. 722px: the navigation links fit in a compact row; smaller screens use the menu control.
   2. 1000px: desktop. Headings grow to the Figma sizes and layouts spread out.
   (The Figma is desktop-only, so the mobile sizes are our own proposal. Adjust after testing.)
   Decision: the desktop layout breakpoint stays at 1000px. Between 1000px and about
   1100px the hero headline wraps onto 4 or 5 short lines. We checked it and accepted that.
*/

/* ==========================================================
   GLOBAL STYLES
   ========================================================== */

/* CSS variables: every color, font and repeated size from the design notes,
   written once here. Anywhere else we write var(--name) instead of the raw value,
   so changing a value in this one spot updates the whole site.
   :root means "the whole page", so every rule below can use these. */
:root {
  /* Colors */
  --color-page: #FFF9EE;
  --color-white: #FFFFFF;
  --color-cream: #FDF0D5;
  --color-navy: #003049;
  --color-navy-deep: #00243A;
  --color-crimson: #C1121F;
  --color-maroon: #780000;
  --color-steel: #669BBC;
  --color-muted: #4A5D6B;
  --color-border: #E6D9BE;

  /* Font */
  --font-main: "Outfit", sans-serif;

  /* Corner radius */
  --radius-button: 6px;
  --radius-card: 12px;

  /* Layout: the content column is 1200px wide, centered */
  --content-width: 1200px;
}

/* Reset: * means "every element". border-box makes padding and borders count inside
   an element's width (so boxes don't grow past the size we set), and margin: 0 removes
   the browser's built-in gaps so we control all spacing ourselves. */
* {
  box-sizing: border-box;
  margin: 0;
}

/* Body: the base text style for the whole page. Everything inside inherits the font,
   color and line height, so we only set them here once. 1.0625rem is the Figma's 17px. */
body {
  font-family: var(--font-main);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-navy);
  background-color: var(--color-page);
}

/* Headings: the shared settings, written once with a comma group (Figma weight 500).
   Headings get a tighter line height than body text, because big text looks loose otherwise. */
h1, h2, h3, h4 {
  font-weight: 500;
}

/* Mobile heading sizes (our proposal, since the Figma is desktop-only).
   Letter spacing in em scales with the font size, matching the Figma's percentages. */
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* Links: no underline, and the same color as the text around them,
   so each link can get its own color where it needs one. */
a {
  color: inherit;
  text-decoration: none;
}

/* Eyebrow: the small uppercase label above headings (CREDENTIALS, OUR APPROACH...).
   The card numbers (01, 02, 03) share the exact same look, so they join the same rule. */
.eyebrow, .service-card-number, .job-number, .cadence-label, .add-row-number {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-crimson);
}

/* Images: never wider than the box they sit in, so nothing overflows on a phone.
   height: auto keeps the picture's proportions when max-width shrinks it
   (without it the height attribute would squash the image). */
img {
  max-width: 100%;
  height: auto;
}

/* Desktop: from 1000px wide, headings grow to the Figma sizes (70px, 48px, 26px).
   Only the size and line height change here. The letter spacing is in em, so it scales by itself. */
@media (min-width: 1000px) {
  h1 {
    font-size: 4.375rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 3rem;
    line-height: 1.08;
  }

  h3 {
    font-size: 1.625rem;
    line-height: 1.22;
  }
}

/* ==========================================================
   REUSABLE PIECES (used on many pages)
   ========================================================== */

/* Button base: the shape and text shared by every button. The look (colors) comes from
   a second class, such as btn-primary, so we never repeat this part. Padding is in em
   so it grows with the text size. */
.btn {
  display: inline-block;
  padding: 0.9375em 1.75em;
  border-radius: var(--radius-button);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  border: 0;
}

/* Primary button: crimson with white text (the Figma's primary button), and the darker maroon when the mouse is over it */
.btn-primary {
  background-color: var(--color-crimson);
  color: var(--color-white);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-maroon);
}

/* Outline button for dark backgrounds: no fill, a cream border and cream text. */
.btn-outline-light {
  border: 1.5px solid var(--color-cream);
  color: var(--color-cream);
}

/* On hover or keyboard focus the outline button fills with cream and the text turns navy */
.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--color-cream);
  color: var(--color-navy);
}

/* Outline button for light backgrounds: the same idea, but navy */
.btn-outline-dark {
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
}

/* On hover or focus the dark outline button fills with navy and the text turns cream */
.btn-outline-dark:hover, .btn-outline-dark:focus {
  background-color: var(--color-navy);
  color: var(--color-cream);
}

/* Navy button: a solid navy fill with cream text, used on the crimson CTA band */
.btn-navy {
  background-color: var(--color-navy);
  color: var(--color-cream);
}

/* On hover or focus the navy button gets the even darker navy */
.btn-navy:hover, .btn-navy:focus {
  background-color: var(--color-navy-deep);
}

/* Container: keeps content at most 1200px wide and centered, so on a huge screen the text
   doesn't stretch from edge to edge. It goes inside a full-width band, so the band's
   background color still reaches both edges of the screen. */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Card: the box shared by the service cards and the work cards. It is a flex column, so a
   photo sits on top and the text below. Each kind of card adds its own colors and spacing. */
.card {
  display: flex;
  flex-direction: column;
}

/* ==========================================================
   NAV (the header at the top of every page)
   ========================================================== */

/* The header is the strip the floating nav sits in. It is the same navy as the hero below it,
   so the nav bar looks like it is floating on top of the hero. No bottom padding: the hero
   below adds its own space. */
.site-header {
  padding: 1rem 0.75rem 0;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

/* A page with a light (cream) hero uses this modifier, so the strip behind the floating nav matches the hero */
.site-header-light {
  background-color: var(--color-page);
}

/* The floating nav bar itself: a darker navy rounded bar with a soft shadow under it
   (box-shadow: right 0, down 10px, blur 15px, a see-through dark navy). The Figma also has a
   thin tan border on it, which we left out on purpose. The logo and Menu stay visible on small
   screens, and the links plus Get Started open in a separate panel. max-width plus margin: 0 auto centers it. */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 0.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.75rem;
  background-color: var(--color-navy-deep);
  border-radius: 8px;
  box-shadow: 0 10px 15px rgba(0, 26, 46, 0.22);
}

/* The logo: the icon and the text side by side. The footer reuses these same classes. */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* The two lines of the logo text (name on top, tagline under it) stacked in a column */
.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.nav-logo-tagline {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--color-steel);
}

/* The logo keeps its normal size and can share the top row with the Menu control. */
.nav .nav-logo {
  order: 0;
  flex: 1 1 auto;
}

/* The checkbox still controls the links, but stays invisible while remaining keyboard-operable.
   The label gets a visible focus style so keyboard users can see where they are. */
.nav-menu-toggle,
.nav-menu-label {
  order: 1;
}

.nav-menu-toggle {
  width: 1px;
  height: 1px;
  opacity: 0;
  justify-self: start;
  align-self: start;
  cursor: pointer;
}

.nav-menu-toggle:focus + .nav-menu-label {
  border-color: var(--color-steel);
}

.nav-menu-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9rem;
  height: 3rem;
  padding: 0.75em 0.875em;
  border: 1.5px solid var(--color-cream);
  border-radius: var(--radius-button);
  background-color: transparent;
  color: var(--color-cream);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

/* Only hover-capable devices get the cream-fill effect, so taps do not leave it stuck on. */
@media (hover: hover) {
  .nav-menu-label:hover {
    background-color: var(--color-cream);
    color: var(--color-navy);
  }
}

/* This light panel holds the stacked page links and Get Started button on small screens. */
.nav-dropdown {
  order: 2;
  display: none;
  flex: 0 0 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--color-page);
  color: var(--color-navy);
}

/* The page links stack vertically inside the dropdown panel. */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  font-size: 1rem;
  list-style: none;
}

/* Get Started stays hidden with the panel until the Menu checkbox is selected. */
.nav-menu-toggle:checked ~ .nav-dropdown {
  display: flex;
}

/* The button keeps the same size as Menu and sits below the page links in the open panel. */
.nav-dropdown .btn {
  width: 9rem;
  height: 3rem;
  padding: 0.75em 0.875em;
  white-space: nowrap;
}

/* The short call-to-action label fits the small-screen button; the long one is hidden. */
.nav-btn-long {
  display: none;
}

/* From 722px upward, hide Menu and place the links and button in a compact inline row. */
@media (min-width: 722px) {
  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav-menu-toggle,
  .nav-menu-label {
    display: none;
  }

  .nav-logo {
    gap: 0.5rem;
  }

  .nav .nav-logo {
    width: auto;
    flex: 0 1 auto;
  }

  .nav-dropdown {
    order: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: auto;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    color: inherit;
  }

  .nav-logo-name {
    font-size: 1.1rem;
  }

  .nav-links {
    order: 0;
    flex-direction: row;
    gap: 0.625rem;
    flex: 0 0 auto;
    margin: 0 auto;
    width: auto;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .nav-dropdown .btn {
    order: 0;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    padding: 0.6em 0.75em;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

/* Desktop nav: everything fits on one row. order: 0 puts the links back between the logo
   and the button, width: auto lets them shrink to their content, and gap spaces them out.
   The button gets its normal padding and the full label back, and the short label is hidden. */
@media (min-width: 1000px) {
  .site-header {
    padding: 1.75rem 2.5rem 0;
  }

  .nav {
    padding: 1.0625rem 0.875rem 1.0625rem 2.5rem;
  }

  .nav-logo {
    gap: 0.75rem;
  }

  .nav-logo-name {
    font-size: 1.35rem;
  }

  .nav-dropdown .btn {
    order: 0;
    padding: 0.9375em 1.75em;
    font-size: 1rem;
  }

  .nav-btn-short {
    display: none;
  }

  .nav-btn-long {
    display: inline;
  }

  .nav-links {
    order: 0;
    gap: 2.5rem;
    font-size: 1rem;
  }
}

/* ==========================================================
   HERO (the big first section)
   ========================================================== */

/* The hero band: navy background with cream text, which every child inherits (including the h1).
   The band itself only has the color and padding. The layout lives on .hero-layout inside it. */
.hero {
  padding: 3rem 1.25rem 4rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

/* The hero layout is a column on mobile: words first, then the picture underneath */
.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* The left side (the words) is its own column, with 28px between each item like the Figma */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* The intro paragraph is slightly bigger than body text (Figma "Body L": 19px) */
.hero-intro {
  font-size: 1.1875rem;
}

/* The two buttons sit side by side and wrap onto two lines if the screen is too narrow */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* The three reassurance points: a wrapping row. The first gap number is the space between
   rows, the second is between points. list-style and padding remove the bullets and indent. */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

/* One point: the check icon and its text side by side, centered on the same line */
.hero-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* The picture centers itself under the text. It already has its own navy background baked in. */
.hero-image {
  align-self: center;
}

/* Desktop hero: words on the left, picture on the right (a row instead of a column).
   The text takes whatever space is left (flex: 1). The picture is about half the width but never
   bigger than its real size, and flex-shrink: 0 stops it from being squeezed. */
@media (min-width: 1000px) {
  .hero {
    padding: 4rem 2.5rem 7.5rem;
  }

  .hero-layout {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex-shrink: 0;
    width: 43%;
    max-width: 520px;
  }
}

/* ==========================================================
   TRUST BANNER (the credentials section)
   ========================================================== */

/* A cream band with the label and heading centered above the badges */
.trust {
  padding: 4rem 1.25rem;
  background-color: var(--color-cream);
}

/* Label and heading are centered. This heading is smaller than a normal h2: the Figma
   uses about 26px here (the h3 size), so we set it for this section only. */
.trust .eyebrow, .trust h2 {
  text-align: center;
}

.trust h2 {
  margin-top: 0.625rem;
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
}

/* The badge grid. auto-fit with minmax(200px, 1fr) means "fit as many columns as you can,
   each at least 200px wide, and stretch them to fill the row". That gives 1 column on a phone
   and about 5 on a wide screen, so no media query is needed. list-style and padding remove the bullets. */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* One badge: a white card with a thin border. The icon and the text sit side by side. */
.cert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* flex-shrink: 0 stops the icon from being squeezed when the text is long.
   The checkmark lists in the service cards need the same thing, so they share this rule. */
.cert img, .check-list img, .feature img, .offer-item img, .check-panel-list img {
  flex-shrink: 0;
}

/* The title and the issuer stack in a column: the title is bold-ish navy, the issuer is small and muted */
.cert-text {
  display: flex;
  flex-direction: column;
}

.cert-title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Desktop: the heading grows slightly to the Figma's 26px, and the band gets more padding.
   The badge grid needs no change, because auto-fit already gives 5 columns here. */
@media (min-width: 1000px) {
  .trust {
    padding: 4.5rem 2.5rem 5rem;
  }

  .trust h2 {
    font-size: 1.625rem;
  }
}

/* ==========================================================
   WHAT WE DO (the three service cards)
   ========================================================== */

/* A white band with padding above and below */
.services {
  padding: 4rem 1.25rem;
  background-color: var(--color-white);
}

/* The heading block: a centered column with the h2 and the intro paragraph. max-width keeps
   the lines from getting too long, and margin: 0 auto centers the block. */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header p {
  max-width: 620px;
  font-size: 1.1875rem;
  color: var(--color-muted);
}

/* The card grid: as many columns as fit, each at least 320px wide. That is 1 column on a
   phone and 3 on a wide screen, with no media query. */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* One service card: the page color with a thick crimson line on top (the .card class gives it the flex column) */
.service-card {
  background-color: var(--color-page);
  border-top: 4px solid var(--color-crimson);
}

/* The photo: always full card width and 220px tall. object-fit: cover crops it to fit
   instead of stretching it. */
.service-card-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* The text area: another column. flex: 1 makes it fill the card, so all three cards
   are the same height even when their text lengths differ. */
.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 2rem;
}

/* The description paragraph sits right after the h3, so the "+" sibling selector finds it
   without needing an extra class. */
.service-card-body h3 + p {
  color: var(--color-muted);
}

/* The checkmark list: a column of rows, each row an icon beside its text */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-weight: 500;
}

/* The "Learn more" link: margin-top: auto pushes it to the bottom of the card, so the three
   links line up even when the cards have different amounts of text. */
.card-link {
  margin-top: auto;
  padding-top: 0.375rem;
  font-weight: 500;
  color: var(--color-crimson);
}

/* Desktop: more padding on the band and more space under the heading block.
   The cards need no change, because auto-fit already gives 3 columns here. */
@media (min-width: 1000px) {
  .services {
    padding: 7.5rem 2.5rem;
  }

  .section-header {
    margin-bottom: 4rem;
  }
}

/* ==========================================================
   INDUSTRIES WE SERVE (the dark grid of trades)
   ========================================================== */

/* A very dark navy band. Setting the cream text color here once means the heading, paragraph
   and note inherit it, so only the label and the arrows need their own colors. */
.industries {
  padding: 4rem 1.25rem;
  background-color: var(--color-navy-deep);
  color: var(--color-cream);
}

/* The header on mobile: the heading block, then the paragraph, stacked in a column */
.industries-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto 3.5rem;
}

/* The label and heading stacked, with a small gap between them */
.industries-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* On a dark background the label is steel blue instead of crimson (crimson is hard to read on navy) */
.industries .eyebrow {
  color: var(--color-steel);
}

/* The > means "direct child only", so this bigger text size hits the paragraph
   and not the eyebrow label inside .industries-heading */
.industries-header > p {
  font-size: 1.1875rem;
}

/* The tile grid: as many columns as fit, each at least 150px wide. That is 2 columns on most
   phones and 1 on the very narrowest (320px), where two columns would be too tight for long words. */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* One tile: the trade name on the left and the arrow on the right. Black like the Figma shows. */
.industry-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 100%;
  padding: 1.125rem 1rem;
  background-color: #000000;
  border-radius: 6px;
  font-weight: 500;
  line-height: 1.3;
}

/* The arrow keeps its size and is crimson */
.industry-arrow {
  flex-shrink: 0;
  color: var(--color-crimson);
}

/* The closing line under the grid, with a crimson link */
.industries-note {
  max-width: var(--content-width);
  margin: 3.5rem auto 0;
}

.industries-note a {
  font-weight: 500;
  color: var(--color-crimson);
}

/* Desktop: more padding, the header becomes a row (heading left, paragraph right), and the grid
   switches from 2 fixed columns to auto-fit with tiles at least 170px wide. That gives 6 columns
   at 1200px like the Figma, and fewer columns on narrower screens so long names like
   "Basement Waterproofing" never get squeezed. */
@media (min-width: 1000px) {
  .industries {
    padding: 7.5rem 2.5rem;
  }

  .industries-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .industries-header > p {
    max-width: 460px;
  }

  .industry-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

/* ==========================================================
   RECENT WORK (three project cards)
   ========================================================== */

/* A band with padding. It has no background of its own, so it shows the page color. */
.work {
  padding: 4rem 1.25rem;
}

/* The header row: heading on the left, button on the right. flex-wrap lets the button drop
   under the heading when the screen is too narrow for both. */
.work-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto 3.5rem;
}

/* The card grid: as many columns as fit, each at least 300px wide (1 on a phone, 3 on a wide screen) */
.work-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* The soft shadow under each work card (box-shadow). The four values are: how far right (0),
   how far down (6px), how blurry (10px) and the shadow color. The color is a very see-through
   navy (rgba with 0.08 opacity), so the shadow looks gentle and not like a dark outline. */
.work-card {
  box-shadow: 0 6px 10px rgba(0, 31, 51, 0.08);
}

/* The picture sits on a white frame: the padding is the white border around the mockup,
   and the top corners are rounded to match the card. */
.work-card-photo {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--color-white);
  border-radius: 4px 4px 0 0;
}

/* The caption bar: navy with cream text. The name and town are on the left and the arrow on the right.
   flex: 1 fills any spare height, so all three bars match even if one name wraps. */
.work-card-caption {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.375rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
  border-radius: 0 0 4px 4px;
}

/* The business name is smaller than the global h3 here (the Figma uses 20px).
   The approach step titles, the About feature titles and the Pricing offer titles use the exact same size, so they share this rule. */
.work-card-caption h2, .work-card-caption h3, .step h3, .feature h3, .offer-item h3, .next-item h3, .design-point h3, .timeline-step h3, .feature h4, .cadence-row h3, .link-step h3, .industry-job h3, .add-card h3, .better-job h3, .add-row h3, .win-item h3 {
  font-size: 1.25rem;
  line-height: 1.32;
  letter-spacing: 0;
}

/* The trade and town line: small and steel blue */
.work-card-caption p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-steel);
}

.work-card-arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

/* Desktop: more padding on the band (the Figma's 112px). The header already puts the heading
   and button side by side when there's room, and the cards already fill 3 columns,
   so nothing else changes. */
@media (min-width: 1000px) {
  .work {
    padding: 7rem 2.5rem;
  }
}

/* ==========================================================
   OUR APPROACH (four numbered steps)
   ========================================================== */

/* A white band with padding */
.approach {
  padding: 4rem 1.25rem;
  background-color: var(--color-white);
}

/* The heading: a small gap under the label, then a bigger gap before the steps */
.approach h2 {
  margin: 1rem 0 3.5rem;
}

/* The steps grid: as many columns as fit, each at least 240px wide. That is 1 column on a
   phone and 4 on a wide screen, with no media query. list-style and padding remove the
   browser's own numbers (so only our typed 01 to 04 show) and the indent. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding: 0;
  list-style: none;
}

/* One step: a column with 14px between the number, title and text */
.step {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* The big thin number. The line under it is its bottom border, with padding above the line
   to leave space. This is the "rule" from the design. */
.step-number {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-navy);
  font-size: 3.75rem;
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-steel);
}

/* The description sits right after the h3, so the "+" selector finds it without an extra class */
.step h3 + p {
  color: var(--color-muted);
}

/* Desktop: more padding on the band (the Figma's 112px). The steps grid already shows
   4 columns here, so nothing else changes. */
@media (min-width: 1000px) {
  .approach {
    padding: 7rem 2.5rem;
  }
}

/* ==========================================================
   FAQ (intro and open/close questions)
   ========================================================== */

/* A cream band with padding. The layout lives on .faq-layout inside it. */
.faq {
  padding: 4rem 1.25rem;
  background-color: var(--color-cream);
}

/* On mobile the intro sits above the list, so the layout is a column */
.faq-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* The intro: a column with 20px between the label, heading, text and button.
   align-items: flex-start stops the button from stretching to full width. */
.faq-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

/* One question: a thin navy line underneath separates it from the next one */
.faq-item {
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--color-navy);
}

/* The clickable question line: the text on the left and the + or minus on the right.
   display: flex also removes the browser's default triangle (the triangle only shows on
   list-item elements). cursor: pointer shows the hand so people know it is clickable. */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.32;
  cursor: pointer;
}

/* The two icons: the minus is hidden until the question is open */
.faq-icon-closed, .faq-icon-open {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-crimson);
}

.faq-icon-open {
  display: none;
}

/* When the details tag has the "open" attribute (the browser adds it on click), swap the icons.
   This is the attribute selector from your lessons, now used on a class. */
.faq-item[open] .faq-icon-open {
  display: inline;
}

.faq-item[open] .faq-icon-closed {
  display: none;
}

/* The answer text: muted color with a small gap under the question */
.faq-item p {
  margin-top: 0.75rem;
  color: var(--color-muted);
}

/* Desktop: the layout becomes a row. The intro keeps a fixed 400px column on the left
   (flex: 0 0 400px means don't grow, don't shrink, start at 400px) and the questions
   take all the remaining space on the right (flex: 1). */
@media (min-width: 1000px) {
  .faq {
    padding: 7rem 2.5rem;
  }

  .faq-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }

  .faq-intro {
    flex: 0 0 400px;
  }

  .faq-list {
    flex: 1;
  }
}

/* ==========================================================
   CTA BAND (the crimson closing banner)
   ========================================================== */

/* A crimson band with everything centered in a column. The cream text color is set once here
   and inherited by the heading and the paragraph. */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem 1.25rem;
  background-color: var(--color-crimson);
  color: var(--color-cream);
  text-align: center;
}

/* max-width keeps the heading and text from stretching too wide on big screens */
.cta-band h2 {
  max-width: 820px;
}

.cta-band p {
  max-width: 600px;
  font-size: 1.1875rem;
}

/* A little extra space above the button, like the Figma's 10px */
.cta-band .btn {
  margin-top: 0.625rem;
}

/* Desktop: more padding on the band (the Figma's 104px). Everything is already centered. */
@media (min-width: 1000px) {
  .cta-band {
    padding: 6.5rem 2.5rem;
  }
}

/* ==========================================================
   FOOTER (the bottom of every page)
   ========================================================== */

/* A navy band with small cream text. Set once here, so everything inside inherits it. */
.site-footer {
  padding: 3rem 1.25rem 2rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* The top and bottom parts are both kept to the content width and centered */
.footer-top, .footer-bottom {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* The top part: on mobile the logo block sits above the link columns */
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* The logo and description, stacked. The logo itself uses the nav-logo classes from the nav. */
.footer-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 360px;
}

/* The footer logo is the same markup as the nav logo but bigger in the Figma (mark 44px,
   name 25.5px). The tagline is a little bigger than the Figma's 9.35px so it stays readable.
   These rules only apply inside the footer, so the nav logo is untouched. */
.site-footer .nav-logo-mark {
  width: 44px;
  height: 44px;
}

.site-footer .nav-logo-name {
  font-size: 1.59rem;
}

.site-footer .nav-logo-tagline {
  font-size: 0.75rem;
}

/* The three link columns sit in a wrapping row, so on a narrow screen they drop to the next line */
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

/* One column: the label and then its list of links, 12px apart */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

/* The small steel-blue label above each column (PAGES, SERVICES, CONTACT) */
.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-steel);
}

/* The bottom strip: a thin cream line on top, then the copyright and the legal links.
   flex-wrap lets them stack on a narrow screen. */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-cream);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

/* Desktop: more padding on the band (80px above, 40px below, like the Figma). The top part
   becomes a row with the logo block on the left and the three link columns pushed to the right
   (space-between), and the columns get more space between them. */
@media (min-width: 1000px) {
  .site-footer {
    padding: 5rem 2.5rem 2.5rem;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-columns {
    gap: 5.5rem;
  }
}

/* ==========================================================
   PAGE HERO (the navy band at the top of inner pages)
   Used on the About page first, and reused on the other pages.
   ========================================================== */

/* A navy band with cream text. The container inside is a column with 24px between the
   label, heading and intro. align-items: flex-start keeps everything left-aligned. */
.page-hero {
  padding: 3rem 1.25rem 4rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* On a dark band the label is steel blue, like the Industries section on the home page */
.page-hero .eyebrow {
  color: var(--color-steel);
}

/* The intro paragraph: 19px, and max-width stops the lines from getting too long */
.page-hero-intro {
  max-width: 660px;
  font-size: 1.1875rem;
}

/* Desktop: more padding (the nav sits above, so the top is smaller than the bottom),
   and the heading is kept to 900px wide so it breaks into two nice lines. */
@media (min-width: 1000px) {
  .page-hero {
    padding: 4.25rem 2.5rem 6.5rem;
  }

  .page-hero h1 {
    max-width: 900px;
  }

  /* The industry pages allow a slightly wider heading (the Figma's 960px), so their longer headings fit on two lines */
  .page-hero-industry h1 {
    max-width: 960px;
  }
}

/* ==========================================================
   ABOUT: WHY WE STARTED (the story)
   ========================================================== */

/* A white band. On mobile the heading sits above the story, so the layout is a column. */
.about-story {
  padding: 4rem 1.25rem;
  background-color: var(--color-white);
}

.about-story-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* The label and big heading, stacked with a small gap */
.about-story-heading {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* The story: a column of paragraphs with 24px between them. The > means only the direct
   paragraphs get the bigger 19px text, so the pull quote (inside its own div) is not affected. */
.about-story-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-story-text > p {
  font-size: 1.1875rem;
}

/* The pull quote: a thick crimson line down the left (border-left) with the text beside it.
   It is the size of an h3 and has a larger gap before the author line. */
.pull-quote {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-crimson);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.pull-quote p + p {
  margin-top: 1.5rem;
}

/* Desktop: more padding, and the layout becomes a row. The heading keeps a fixed 380px column
   on the left (flex: 0 0 380px) and the story takes the rest (flex: 1), like the FAQ. The quote grows to 26px. */
@media (min-width: 1000px) {
  .about-story {
    padding: 7.5rem 2.5rem;
  }

  .about-story-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }

  .about-story-heading {
    flex: 0 0 380px;
  }

  .about-story-text {
    flex: 1;
  }

  .pull-quote {
    font-size: 1.625rem;
  }
}

/* ==========================================================
   ABOUT: MANIFESTO (five beliefs)
   ========================================================== */

/* A navy band with cream text, and a gap under the heading */
.manifesto {
  padding: 4rem 1.25rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

.manifesto h2 {
  margin-bottom: 3rem;
}

/* The list: a thin cream line closes it off at the bottom. Each belief has its own line on top. */
.beliefs {
  padding: 0;
  border-bottom: 1px solid var(--color-cream);
  list-style: none;
}

/* One belief: on mobile the number, title and text stack in a column */
.belief {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-cream);
}

/* The big crimson number, the same size as the h3 titles beside it (the Figma's 26px, 22px on mobile) */
.belief-number, .design-number, .link-step-number, .industry-job-number {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--color-crimson);
}

.belief p:last-child {
  font-size: 1.1875rem;
}

/* Desktop: more padding, and each belief becomes a row of three grid columns: the number (80px),
   the title and the text. 6fr and 7fr share the leftover space in a 6 to 7 ratio, which matches the Figma
   at 1200px (480px and 560px) and shrinks smoothly on narrower screens. The number grows to 26px. */
@media (min-width: 1000px) {
  .manifesto {
    padding: 7.5rem 2.5rem;
  }

  .belief {
    display: grid;
    grid-template-columns: 80px 6fr 7fr;
    align-items: start;
    gap: 2.5rem;
  }

  .belief-number, .design-number, .link-step-number, .industry-job-number {
    font-size: 1.625rem;
  }
}

/* ==========================================================
   ABOUT: WHO WE ARE (photo and feature points)
   ========================================================== */

/* A cream band. On mobile the photo sits above the text, so the layout is a column. */
.about-team {
  padding: 4rem 1.25rem;
  background-color: var(--color-cream);
}

.about-team-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* The photo: full width and a fixed height. object-fit: cover crops it to fit instead of stretching it. */
.about-team-photo {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

/* The text side: a column with 24px between the label, heading, paragraph and list */
.about-team-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* The paragraph right after the h2 is slightly bigger and muted (the "+" selector, no extra class needed) */
.about-team-text h2 + p {
  font-size: 1.1875rem;
  color: var(--color-muted);
}

/* The feature list: a column of rows, each row an icon beside its title and sentence */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 0;
  list-style: none;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
}

.feature h3 + p, .feature h4 + p {
  margin-top: 0.375rem;
  color: var(--color-muted);
}

/* Desktop: more padding, and the layout becomes a row with the photo on the left and the text on
   the right, centered vertically. The photo takes 45% of the width and is 600px tall, and the text
   takes the rest (flex: 1). The 6rem gap is the Figma's 96px. */
@media (min-width: 1000px) {
  .about-team {
    padding: 7.5rem 2.5rem;
  }

  .about-team-layout {
    flex-direction: row;
    align-items: center;
    gap: 6rem;
  }

  .about-team-photo {
    flex-shrink: 0;
    width: 45%;
    height: 600px;
  }

  .about-team-text {
    flex: 1;
  }
}


/* ==========================================================
   PRICING PAGE
   ========================================================== */

/* Centered hero: the same page-hero band, with the text centered (used on the Pricing page) */
.page-hero-centered .container {
  align-items: center;
  text-align: center;
}

/* Desktop: the centered heading may be 960px wide, so it stays on one line like the Figma */
@media (min-width: 1000px) {
  .page-hero-centered h1 {
    max-width: 960px;
  }
}

/* ---- Pieces used more than once on this page ---- */

/* A price: the big number and its small unit sit side by side on the same text baseline
   (align-items: baseline). The amount is 64px on mobile, and the unit is small and muted. */
.price {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}

.price-amount {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-muted);
}

/* Desktop: the price grows to the Figma's 88px */
@media (min-width: 1000px) {
  .price-amount {
    font-size: 5.5rem;
  }
}

/* The small uppercase label above each price panel (THE BUILD, WHAT YOU GET...) */
.plan-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-crimson);
}

/* Plain crimson underlined text for emphasis. It is not a link. */
.text-accent {
  color: var(--color-crimson);
  text-decoration: underline;
}

/* ---- Early customer offer ---- */

/* A band with space above the card (the card sits on the page color) */
.early-offer {
  padding: 3rem 1.25rem 0;
}

/* The navy card. max-width and margin: 0 auto keep it centered and not too wide. The corners are
   rounded on the pieces inside (banner on top, dark panel at the bottom). */
.offer-card {
  max-width: 1040px;
  margin: 0 auto;
  background-color: var(--color-navy);
  color: var(--color-cream);
  border-radius: 8px;
}

/* The crimson banner: on a phone the two lines stack in a column. Top corners are rounded. */
.offer-banner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1.5rem;
  background-color: var(--color-crimson);
  border-radius: 8px 8px 0 0;
}

.offer-banner p:first-child {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.32;
}

/* The two panels stack in a column on a phone */
.offer-body {
  display: flex;
  flex-direction: column;
}

/* Left panel: the price, a heading, text and the button, in a column with 16px between items */
.offer-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1.5rem;
}

.offer-price .price-amount {
  color: var(--color-cream);
}

.offer-price .price-unit {
  color: var(--color-steel);
}

/* The h2 here is the size of an h3 in the Figma (22px on mobile), so we set it for this panel only */
.offer-price h2 {
  font-size: 1.375rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

/* The button and its small note, 12px apart, with a little space above */
.offer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.offer-note {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-steel);
}

/* Right panel: darker navy. The bottom corners are rounded because it is the last piece on a phone. */
.offer-includes {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem 1.5rem;
  background-color: var(--color-navy-deep);
  border-radius: 0 0 8px 8px;
}

/* On a dark panel the label is steel blue instead of crimson */
.offer-includes .plan-label {
  color: var(--color-steel);
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 0;
  list-style: none;
}

/* One item: the check icon beside a title and a short sentence */
.offer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.offer-item h3 + p {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-steel);
}

/* Desktop: more space above the card. The banner becomes a row (one line of text on each side),
   and the two panels sit side by side. flex: 15 and flex: 11 share the width in a 15 to 11 ratio, which
   is the Figma's 600px and 440px at 1040px wide. The panels get the Figma's 48px of padding, and the
   dark panel's rounded corner moves to the bottom right. */
@media (min-width: 1000px) {
  .early-offer {
    padding: 6rem 2.5rem 0;
  }

  .offer-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 3rem;
  }

  .offer-banner p:first-child {
    font-size: 1.25rem;
  }

  .offer-banner p:last-child {
    font-size: 1.1875rem;
  }

  .offer-body {
    flex-direction: row;
  }

  .offer-price {
    flex: 15;
    padding: 3rem;
  }

  .offer-price h2 {
    font-size: 1.625rem;
  }

  .offer-includes {
    flex: 11;
    padding: 3rem;
    border-radius: 0 0 8px 0;
  }
}

/* ---- Standard pricing card ---- */

.pricing {
  padding: 3.5rem 1.25rem 3rem;
}

/* The heading is an h2 but only the size of an h3 in the Figma, so we set it here. Centered. */
.pricing-heading {
  margin-bottom: 2rem;
  font-size: 1.375rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
  text-align: center;
}

/* The white card with a soft shadow (0 right, 16px down, 40px blur, very see-through navy).
   The plans stack in a column on a phone. */
.pricing-card {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 31, 51, 0.1);
}

/* One plan: a column with 16px between items */
.pricing-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1.5rem;
}

/* The free build plan has the cream background, and its top corners are rounded to match the card */
.pricing-plan-build {
  background-color: var(--color-cream);
  border-radius: 8px 8px 0 0;
}

.pricing-plan h3 + p {
  color: var(--color-muted);
}

/* Extra space above the checklist and the button (the check-list itself is the shared class from the Home page) */
.pricing-plan .check-list {
  padding-top: 0.25rem;
}

.pricing-plan .btn {
  margin-top: 0.75rem;
}

/* Desktop: more padding on the band and a bigger heading (26px). The plans sit side by side in a
   15 to 11 ratio like the offer card (the free build is the narrower panel on the left), with
   48px of padding, and the cream panel's rounded corners move to its left side. */
@media (min-width: 1000px) {
  .pricing {
    padding: 5.5rem 2.5rem 6rem;
  }

  .pricing-heading {
    margin-bottom: 2.5rem;
    font-size: 1.625rem;
  }

  .pricing-card {
    flex-direction: row;
  }

  .pricing-plan {
    flex: 15;
    padding: 3rem;
  }

  .pricing-plan-build {
    flex: 11;
    border-radius: 8px 0 0 8px;
  }
}

/* ---- Good to know ---- */

.good-to-know {
  padding: 0 1.25rem 4rem;
}

/* Three facts: as many columns as fit, each at least 240px wide (1 on a phone, 3 on a wide screen) */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding: 0;
  list-style: none;
}

/* One fact: a thin navy line on top, then the title and text with a small gap */
.fact {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border-top: 1px solid var(--color-navy);
}

.fact-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.32;
}

.fact p:last-child {
  color: var(--color-muted);
}

/* Desktop: more space below the band (the Figma's 112px). The facts already show as 3 columns. */
@media (min-width: 1000px) {
  .good-to-know {
    padding: 0 2.5rem 7rem;
  }
}

/* ==========================================================
   OUR WORK PAGE
   ========================================================== */

/* The band under the hero: page color with space above and below the cards */
.work-projects {
  padding: 3rem 1.25rem 4rem;
}

/* The project grid: as many columns as fit, each at least 280px wide (1 on a phone, 3 on a wide screen).
   The element also has the .container class, which keeps it centered and at most 1200px wide. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* On this page the caption is a column (name and town on top, the visit link underneath)
   instead of the home page's row with an arrow. align-items: flex-start keeps the link from stretching. */
.work-card-caption-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
}

/* The name and the town line sit 4px apart (the Figma's gap) */
.work-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* The "Visit website" link: the text and the small arrow icon side by side */
.work-card-visit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* Desktop: more padding on the band (the Figma's 96px above and 120px below). The grid already
   shows 3 columns here through auto-fit, and the hero already switched to its desktop size,
   so nothing else changes. */
@media (min-width: 1000px) {
  .work-projects {
    padding: 6rem 2.5rem 7.5rem;
  }
}

/* ==========================================================
   GET STARTED PAGE (the form)
   ========================================================== */

/* The band under the hero: page color. On a phone the form card sits above "what happens next" in a column. */
.get-started {
  padding: 2.5rem 1.25rem 4rem;
}

.get-started-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* The form card: white with a soft shadow, and a column of fields with 24px between them */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 31, 51, 0.08);
}

/* The two h2s on this page (the form title and "What happens next") are the size of an h3 in the Figma.
   They share this rule. */
.lead-form-heading h2, .next-steps h2 {
  font-size: 1.375rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.lead-form-heading {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.lead-form-heading p, .form-note {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* A row of fields: a column on a phone, so each field gets the full width */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* One field: the label on top and the box under it, 8px apart */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

/* The text box: a 1.5px navy border, 6px corners and comfortable padding. font: inherit makes it
   use our font and size, because inputs have their own font by default. */
.form-field input {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-navy);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-navy);
}

/* When someone clicks into a box (or tabs to it), the border turns crimson */
.form-field input:focus {
  border-color: var(--color-crimson);
}

/* The submit button stretches the full width of the card */
.lead-form .btn {
  width: 100%;
}

/* ---- What happens next ---- */

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* The three steps: a column, each step a row with a number circle and its text */
.next-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 0;
  list-style: none;
}

.next-item {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
}

/* The crimson number circle: a 40px square with border-radius: 50% makes it round, and flex centers the number */
.next-number {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-crimson);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.32;
  color: var(--color-white);
}

.next-item h3 + p {
  margin-top: 0.25rem;
  color: var(--color-muted);
}

/* The navy reminder box: a column with 10px between lines. The link is crimson (the Figma's color). */
.pricing-reminder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 1.75rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
  border-radius: 8px;
}

.pricing-reminder-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.32;
}

.pricing-reminder a {
  font-weight: 500;
  color: var(--color-crimson);
}

/* Desktop: more padding on the band, and the layout becomes a row with the form on the left and
   "what happens next" on the right. flex: 9 and flex: 5 share the width in a 9 to 5 ratio, which is close
   to the Figma's 720px and 416px at full width and shrinks smoothly on narrower screens. The form card
   gets 48px of padding, the two-up rows become real rows, and both headings grow to 26px. */
@media (min-width: 1000px) {
  .get-started {
    padding: 5rem 2.5rem 7.5rem;
  }

  .get-started-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .lead-form {
    flex: 9;
    padding: 3rem;
  }

  .next-steps {
    flex: 5;
    padding-top: 1rem;
  }

  .lead-form-heading h2, .next-steps h2 {
    font-size: 1.625rem;
  }

  .form-row {
    flex-direction: row;
    gap: 1.25rem;
  }

  .form-row .form-field {
    flex: 1;
    min-width: 0;
  }
}

/* ==========================================================
   SERVICE PAGE: CUSTOM WEB DESIGN
   ========================================================== */

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

/* A navy band. On a phone the words come first and the photo sits under them (a column). */
.service-hero {
  padding: 3rem 1.25rem 4rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

.service-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* The words: a column with 24px between the breadcrumb, heading, intro and buttons (Layout D's hero text shares this) */
.service-hero-text, .checklist-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.breadcrumb {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.service-hero-intro {
  font-size: 1.1875rem;
}

.service-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding-top: 0.5rem;
}

/* The photo: full width, a fixed height, cropped with object-fit: cover. The crimson block behind it is a
   box-shadow with no blur: 12px right, 12px down, 0 blur, solid crimson. It looks like a second box
   peeking out from behind the photo. */
.service-hero-photo {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  box-shadow: 12px 12px 0 var(--color-crimson);
}

/* Desktop: more padding (the nav sits above, so the top is smaller). The layout becomes a row with the
   words taking the leftover space (flex: 1) and the photo on the right, 43% wide up to 500px and 400px tall.
   The shadow block grows to the Figma's 20px, and the heading is 60px here (the Figma's hero size for service pages). */
@media (min-width: 1000px) {
  .service-hero {
    padding: 3.75rem 2.5rem 6.5rem;
  }

  .service-hero-layout {
    flex-direction: row;
    align-items: center;
    gap: 4.5rem;
  }

  .service-hero-text {
    flex: 1;
  }

  .service-hero h1 {
    font-size: 3.75rem;
    line-height: 1.06;
  }

  .service-hero-photo {
    flex-shrink: 0;
    width: 43%;
    max-width: 500px;
    height: 400px;
    box-shadow: 20px 20px 0 var(--color-crimson);
  }
}

/* ---- What's included ---- */

.included {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-page);
}

.included h2 {
  margin-bottom: 2.5rem;
}

/* The six features: one column on a phone (the .feature pattern itself comes from the About page) */
.included-list {
  display: grid;
  gap: 2.5rem;
  padding: 0;
  list-style: none;
}

/* The button with a short line of text beside it. flex-wrap lets the text drop below the button on a phone. */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.inline-cta p {
  color: var(--color-muted);
}

/* Desktop: more padding, and the six features sit in two equal columns (repeat(2, 1fr)) with 40px between
   rows and 60px between columns. The button row gets more space above it. */
@media (min-width: 1000px) {
  .included {
    padding: 7rem 2.5rem;
  }

  .included h2 {
    margin-bottom: 3.5rem;
  }

  .included-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3.75rem;
  }

  .inline-cta {
    margin-top: 4.5rem;
  }
}

/* ---- How we design ---- */

.design-split {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
}

.design-split-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* The photo with a steel-blue block peeking out to the bottom left: -12px left, 12px down, no blur */
.design-split-photo {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  box-shadow: -12px 12px 0 var(--color-steel);
}

.design-split-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.design-split-intro {
  font-size: 1.1875rem;
  color: var(--color-muted);
}

/* The three points: a column, each a row with a crimson number beside its title and text */
.design-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.75rem 0 0;
  list-style: none;
}

.design-point {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

/* min-width keeps the three numbers the same width, so the titles beside them line up
   (digits are different widths in this font, so "01" is narrower than "02") */
.design-number {
  flex-shrink: 0;
  min-width: 2rem;
}

.design-point h3 + p {
  margin-top: 0.375rem;
  color: var(--color-muted);
}

/* Desktop: more padding, and the layout becomes a row with the photo on the left, centered vertically.
   The photo is 43% wide up to 520px and 440px tall. margin-left leaves room for the steel-blue block, which
   now sticks out 20px to the left, so the block lines up with the edge of the page content. */
@media (min-width: 1000px) {
  .design-split {
    padding: 7rem 2.5rem;
  }

  .design-split-layout {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .design-split-photo {
    flex-shrink: 0;
    width: 43%;
    max-width: 520px;
    height: 440px;
    margin-left: 1.25rem;
    box-shadow: -20px 20px 0 var(--color-steel);
  }

  .design-split-text {
    flex: 1;
  }
}

/* ---- Every page has a job ---- */

/* A navy band with cream text */
.page-jobs {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

.page-jobs-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.page-jobs-header p {
  font-size: 1.1875rem;
}

/* The six cards: one column on a phone */
.job-cards {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

/* One card: a darker navy box with a thin steel-blue border and rounded corners */
.job-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  background-color: var(--color-navy-deep);
  border: 1px solid var(--color-steel);
  border-radius: 8px;
}

/* Desktop: more padding. The header becomes a row (the heading takes the leftover space, the paragraph is at most
   471px wide and lines up with the bottom). The six cards sit in three equal columns. */
@media (min-width: 1000px) {
  .page-jobs {
    padding: 7rem 2.5rem;
  }

  .page-jobs-header {
    flex-direction: row;
    align-items: flex-end;
    gap: 5rem;
    margin-bottom: 3.5rem;
  }

  .page-jobs-header h2 {
    flex: 1;
  }

  .page-jobs-header p {
    max-width: 471px;
  }

  .job-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- From form to launch ---- */

.timeline {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
}

/* The heading block is centered */
.timeline-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* The four steps: one column on a phone */
.timeline-steps {
  display: grid;
  gap: 2.5rem;
  padding: 0;
  list-style: none;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* The row with the numbered circle (and, on desktop, the line that joins it to the next step) */
.timeline-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* A 56px navy circle (border-radius: 50%) with the number centered in it */
.timeline-number {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-navy);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.32;
  color: var(--color-cream);
}

/* The last step ("Launch") has a crimson circle. :last-child picks the final item in the list. */
.timeline-step:last-child .timeline-number {
  background-color: var(--color-crimson);
}

/* The joining line is hidden on a phone, where the steps are stacked */
.timeline-line {
  display: none;
}

.timeline-step h3 + p {
  color: var(--color-muted);
}

/* Desktop: more padding, and the four steps sit in four equal columns. The line that joins each circle to the
   next step appears: flex: 1 stretches it to fill the rest of the row, and it is 2px tall in the border color. */
@media (min-width: 1000px) {
  .timeline {
    padding: 7rem 2.5rem;
  }

  .timeline-header {
    margin-bottom: 4rem;
  }

  .timeline-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .timeline-line {
    display: block;
    flex: 1;
    height: 2px;
    background-color: var(--color-border);
  }
}

/* ==========================================================
   SERVICE PAGE: HOSTING & MAINTENANCE
   ========================================================== */

/* ---- Hero (stacked version) ---- */

/* No space under the words' band: the photo sits flush on the bottom of the navy */
.service-hero-stacked {
  padding-bottom: 0;
}

/* The words and the photo stack in a column. The words are centered and kept to 860px wide. */
.service-hero-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-hero-stacked .service-hero-text {
  align-items: center;
  align-self: center;
  max-width: 860px;
  text-align: center;
}

/* On this page the breadcrumb is steel blue, and the intro and buttons are centered */
.service-hero-stacked .breadcrumb {
  color: var(--color-steel);
}

.service-hero-stacked .service-hero-intro {
  max-width: 720px;
}

.service-hero-stacked .service-hero-buttons {
  justify-content: center;
}

/* The wide photo: full width, cropped with object-fit: cover, and only the top corners rounded
   (the bottom edge meets the next section) */
.service-banner-photo {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* Desktop: more space between the words and the photo, and a taller photo (440px). padding-bottom: 0 is repeated
   here because the desktop service-hero padding earlier in the file would otherwise put the space back. */
@media (min-width: 1000px) {
  .service-hero-stacked {
    padding-bottom: 0;
  }

  .service-hero-stack {
    gap: 4rem;
  }

  .service-banner-photo {
    height: 440px;
  }
}

/* ---- What's included (two cards) ---- */

.covered {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-page);
}

.covered h2 {
  margin-bottom: 2.5rem;
}

/* The two cards stack in one column on a phone */
.covered-cards {
  display: grid;
  gap: 1.5rem;
}

/* One card: white, rounded, with a column of bar, title and list */
.covered-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.75rem 1.5rem;
  background-color: var(--color-white);
  border-radius: 8px;
}

/* The short colored bar above each title: steel blue on the first card, crimson on the last */
.covered-accent {
  width: 60px;
  height: 4px;
  background-color: var(--color-steel);
}

.covered-card:last-child .covered-accent {
  background-color: var(--color-crimson);
}

/* The feature rows themselves come from the .feature rules (first built for the About page) */
.covered-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

/* Desktop: more padding, and the two cards sit side by side in two equal columns (repeat(2, 1fr)) with 32px between them.
   The cards get the Figma's 40px of padding. Grid rows stretch, so both cards are the same height. */
@media (min-width: 1000px) {
  .covered {
    padding: 7rem 2.5rem;
  }

  .covered h2 {
    margin-bottom: 3.5rem;
  }

  .covered-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .covered-card {
    padding: 2.5rem;
  }
}

/* ---- How it runs ---- */

.cadence {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
}

/* On a phone the intro sits above the list */
.cadence-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.cadence-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cadence-intro h2 + p {
  font-size: 1.1875rem;
  color: var(--color-muted);
}

/* The list: a thin line closes it at the bottom, and each row has its own line on top (the same idea as the About manifesto) */
.cadence-list {
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  list-style: none;
}

/* One row: on a phone the label sits above the title and text */
.cadence-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
}

.cadence-row h3 + p {
  margin-top: 0.5rem;
  color: var(--color-muted);
}

/* Desktop: more padding, and the layout becomes a row. flex: 5 and flex: 9 share the width in a 5 to 9 ratio, which is the
   Figma's 400px intro and 704px list at full width. Each row also becomes a row: a fixed 200px label (flex: 0 0 12.5rem)
   and the title and text taking the rest. */
@media (min-width: 1000px) {
  .cadence {
    padding: 7rem 2.5rem;
  }

  .cadence-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }

  .cadence-intro {
    flex: 5;
  }

  .cadence-list {
    flex: 9;
  }

  .cadence-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 1.75rem 0;
  }

  .cadence-label {
    flex: 0 0 12.5rem;
  }
}

/* ---- Price band ---- */

/* A dark navy band with cream text. On a phone the message sits above the price card. */
.price-band {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-navy-deep);
  color: var(--color-cream);
}

.price-band-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.price-band-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.price-band-text p {
  font-size: 1.1875rem;
}

/* The cream price card. The $50 uses the same .price classes as the Pricing page, but this one is medium weight, not bold,
   and the unit is a little bigger, so we adjust them for this card only. */
.price-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background-color: var(--color-cream);
  color: var(--color-navy);
  border-radius: 8px;
}

.price-card .price-amount {
  font-size: 3.5rem;
  font-weight: 500;
}

.price-card .price-unit {
  font-size: 1.1875rem;
  font-weight: 400;
}

/* The "Free to build" line sits right after the price (the "+" selector), muted. The button is full width. */
.price-card .price + p {
  color: var(--color-muted);
}

.price-card .btn {
  width: 100%;
}

/* Desktop: more padding, and the layout becomes a row with the message taking the leftover space and the price card a fixed
   420px (flex: 0 0 420px), centered vertically. The card gets 40px of padding and the price grows to the Figma's 70px.
   The selector is repeated with the card name because it has to beat the earlier price size rules. */
@media (min-width: 1000px) {
  .price-band {
    padding: 7rem 2.5rem;
  }

  .price-band-layout {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .price-band-text {
    flex: 1;
  }

  .price-card {
    flex: 0 0 420px;
    padding: 2.5rem;
  }

  .price-card .price-amount {
    font-size: 4.375rem;
  }
}

/* ==========================================================
   SERVICE PAGE: BACKLINK BUILDING
   ========================================================== */

/* ---- Hero (light version) ---- */

/* A band in the page color (no background of its own) with navy text. On a phone the words come first,
   then the photo, in a column. The words reuse the other service pages' .service-hero-text rules. */
.backlink-hero {
  padding: 3rem 1.25rem 4rem;
}

.backlink-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* On this light hero the breadcrumb is crimson and the intro is the muted color */
.backlink-hero .breadcrumb {
  color: var(--color-crimson);
}

.backlink-hero .service-hero-intro {
  color: var(--color-muted);
}

/* The photo and the note card are a column. The photo is 88% wide and pushed to the right (align-self: flex-end),
   which leaves room on the left for the note card to hang out past the photo's edge. */
.backlink-hero-media {
  display: flex;
  flex-direction: column;
}

.backlink-hero-photo {
  align-self: flex-end;
  width: 88%;
  height: 18rem;
  object-fit: cover;
  border-radius: 8px;
}

/* The note card overlaps the photo using a NEGATIVE top margin: margin-top: -4rem pulls the card 64px up
   over the bottom of the photo. Both are flex items, and the later one (the card) is drawn on top. */
.backlink-note {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 17.5rem;
  max-width: 100%;
  margin-top: -4rem;
  padding: 1.5rem;
  background-color: var(--color-navy);
  border-radius: 8px;
  color: var(--color-cream);
}

.backlink-note-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-steel);
}

/* Desktop: more padding, and the layout becomes a row with the words on the left (taking the leftover space) and the
   photo and note card on the right (45% wide, up to 540px). The heading is 60px, like the other service pages.
   The photo is 500px tall, and the note card's negative margin grows to -8.75rem (140px) so it overlaps the photo
   by the same amount as the Figma. */
@media (min-width: 1000px) {
  .backlink-hero {
    padding: 3.75rem 2.5rem 7rem;
  }

  .backlink-hero-layout {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .backlink-hero h1 {
    font-size: 3.75rem;
    line-height: 1.06;
  }

  .backlink-hero-media {
    flex: 0 0 45%;
    max-width: 540px;
  }

  .backlink-hero-photo {
    width: 93%;
    height: 500px;
  }

  .backlink-note {
    margin-top: -8.75rem;
  }
}

/* ---- Statement band ---- */

/* A navy band with cream text. The h2 is the big display size here (40px on a phone). */
.statement {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

.statement h2 {
  max-width: 1000px;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* The two paragraphs stack in a column on a phone */
.statement-columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.1875rem;
}

/* Desktop: more padding, and the heading grows to the Figma's 70px. The two paragraphs sit in two equal columns
   (each p gets flex: 1) with 64px between them. */
@media (min-width: 1000px) {
  .statement {
    padding: 7rem 2.5rem;
  }

  .statement h2 {
    margin-bottom: 3rem;
    font-size: 4.375rem;
  }

  .statement-columns {
    flex-direction: row;
    gap: 4rem;
  }

  .statement-columns p {
    flex: 1;
  }
}

/* ---- From links to leads ---- */

.link-steps {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
}

.link-steps-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* The four steps stack in a column on a phone, so the small arrows between them are hidden for now */
.link-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.link-step-arrow {
  display: none;
}

/* One step card: the page color with rounded corners, and a column of number, title and text */
.link-step-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 2rem 1.75rem;
  background-color: var(--color-page);
  border-radius: 8px;
}

.link-step h3 + p {
  color: var(--color-muted);
}

/* The last step is the goal, so it is crimson with cream text. :last-child picks the final list item. */
.link-step:last-child .link-step-card {
  background-color: var(--color-crimson);
  color: var(--color-cream);
}

.link-step:last-child .link-step-number {
  color: var(--color-cream);
}

.link-step:last-child h3 + p {
  color: inherit;
}

/* Desktop: more padding, and the four steps sit in a row. Each step (the card and the arrow after it) shares the width
   equally (flex: 1), the arrow is crimson and shown at last, and the card stretches to the full height so all four match. */
@media (min-width: 1000px) {
  .link-steps {
    padding: 7rem 2.5rem;
  }

  .link-steps-header {
    margin-bottom: 3.5rem;
  }

  .link-steps-list {
    flex-direction: row;
    gap: 0.75rem;
  }

  .link-step {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
  }

  .link-step-card {
    flex: 1;
    align-self: stretch;
  }

  .link-step-arrow {
    display: block;
    flex-shrink: 0;
    font-size: 1.625rem;
    font-weight: 500;
    color: var(--color-crimson);
  }
}

/* ---- Real links from real places ---- */

.link-sources {
  padding: 3.5rem 1.25rem;
}

.link-sources h2 {
  margin-bottom: 2.5rem;
}

/* The two cards stack in one column on a phone */
.sources-cards {
  display: grid;
  gap: 1.5rem;
}

.sources-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.75rem 1.5rem;
  background-color: var(--color-white);
  border-radius: 8px;
}

/* The second card is cream and has a slightly smaller gap */
.sources-card-alt {
  gap: 1.25rem;
  background-color: var(--color-cream);
}

/* The four points reuse the .feature rules from the About page */
.sources-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.sources-intro {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* The name boxes: 2 equal columns on a phone with 14px between them */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  padding: 0;
  list-style: none;
}

/* One box: white with a thin border, the name centered both ways (flex), at least 84px tall */
.source-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.25rem;
  padding: 0.5rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

/* Desktop: more padding, and the two cards sit side by side in two equal columns with 32px between them. The cards get
   40px of padding, and the name boxes go to 3 columns like the Figma. */
@media (min-width: 1000px) {
  .link-sources {
    padding: 7rem 2.5rem;
  }

  .link-sources h2 {
    margin-bottom: 3.5rem;
  }

  .sources-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .sources-card {
    padding: 2.5rem;
  }

  .sources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================
   INDUSTRY PAGES: LAYOUT A (Electricians, Plumbers, HVAC, Roofing, Water & Fire Restoration, Mold Remediation)
   The hero, the "what we add" features and the CTA band reuse styles from other pages.
   ========================================================== */

/* A large heading size used by the industry pages (the Figma's "H2 Large": 56px on desktop, 36px on a phone) */
.heading-large {
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* Desktop: the large heading grows to the Figma's 56px */
@media (min-width: 1000px) {
  .heading-large {
    font-size: 3.5rem;
  }
}

/* ---- How we build ---- */

.industry-build {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
}

/* On a phone the heading sits above the text (a column) */
.industry-build-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.industry-build-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.1875rem;
}

/* The first paragraph is the dark navy and the second is the softer muted color, like the Figma */
.industry-build-text p:last-child {
  color: var(--color-muted);
}

/* Desktop: more padding, and the layout becomes a row. flex: 2 and flex: 3 share the width in a 2 to 3 ratio, which is
   the Figma's 440px heading and 664px text at full width, and it shrinks smoothly on narrower screens. */
@media (min-width: 1000px) {
  .industry-build {
    padding: 7rem 2.5rem;
  }

  .industry-build-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }

  .industry-build-layout h2 {
    flex: 2;
  }

  .industry-build-text {
    flex: 3;
  }
}

/* ---- Built for better jobs ---- */

/* A navy band with cream text. The label is steel blue on the dark background. */
.industry-jobs {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

.industry-jobs .eyebrow {
  color: var(--color-steel);
}

.industry-jobs-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* The three columns stack in one column on a phone */
.industry-jobs-list {
  display: grid;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.industry-job {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* The number is crimson (it shares the crimson number rule with the other pages) and has a thin cream line
   under it, drawn with a bottom border like the steps on the home page */
.industry-job-number {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-cream);
}

/* Desktop: more padding, and the three columns sit side by side (repeat(3, 1fr)) with 48px between them */
@media (min-width: 1000px) {
  .industry-jobs {
    padding: 7rem 2.5rem;
  }

  .industry-jobs-header {
    margin-bottom: 3rem;
  }

  .industry-jobs-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* ==========================================================
   INDUSTRY PAGES: LAYOUT B (Foundation Repair, Basement Waterproofing, Garage Doors, Pest Control, Landscaping, Lawn Care)
   The light hero reuses the Backlink Building styles. These are the new pieces.
   ========================================================== */

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

/* The exported schedule graphic. On a phone it is as wide as the column but never bigger than its real size,
   and height: auto keeps its shape. */
.industry-hero-graphic {
  width: 100%;
  max-width: 536px;
  height: auto;
}

/* Desktop: the graphic is the right-hand column, 45% of the row (at most its real size), next to the words */
@media (min-width: 1000px) {
  .industry-hero-graphic {
    flex: 0 0 45%;
  }
}

/* ---- What we add (navy band with six cards) ---- */

.whats-added {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-navy);
  color: var(--color-cream);
}

.whats-added h2 {
  text-align: center;
}

/* The grid fits as many 280px-minimum columns as there is room for: one column on a phone */
.add-grid {
  display: grid;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  list-style: none;
}

/* One card: a darker navy box. The short crimson bar at the top is a background gradient of one color,
   sized 40px by 3px and placed 2rem in from the corner. The extra top padding makes room for it. */
.add-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 3.0625rem 2rem 2rem;
  background: var(--color-navy-deep) linear-gradient(var(--color-crimson), var(--color-crimson)) no-repeat 2rem 2rem / 2.5rem 3px;
  border-radius: 8px;
}

.add-card p {
  font-size: 1.0625rem;
}

/* Desktop: more padding, and the six cards sit in three equal columns (two rows of three) */
@media (min-width: 1000px) {
  .whats-added {
    padding: 7rem 2.5rem;
  }

  .add-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
  }
}

/* ---- How we build (white band, centered) ---- */

/* The container is a centered column, and each text box has a maximum width so the lines stay a readable length */
.how-we-build {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
  text-align: center;
}

.how-we-build .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.how-we-build h2, .how-we-build-lead {
  max-width: 820px;
}

.how-we-build p {
  max-width: 720px;
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* The first paragraph is larger and navy, and a little wider (Layout C's split section uses the same lead paragraph) */
.how-we-build .how-we-build-lead, .build-split .how-we-build-lead {
  max-width: 820px;
  font-size: 1.125rem;
  color: var(--color-navy);
}

/* Desktop: more padding and slightly larger paragraphs (19px and 17px in the Figma) */
@media (min-width: 1000px) {
  .how-we-build {
    padding: 7rem 2.5rem;
  }

  .how-we-build .how-we-build-lead, .build-split .how-we-build-lead {
    font-size: 1.1875rem;
  }
}

/* ---- Built for better jobs (three white cards) ---- */

.better-jobs {
  padding: 3.5rem 1.25rem;
}

.better-jobs h2 {
  max-width: 860px;
  margin-top: 1rem;
}

.better-jobs-list {
  display: grid;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  list-style: none;
}

/* One card: white with a thick crimson top edge, a big crimson number, a title and a muted paragraph */
.better-job {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 2.25rem 2rem;
  background-color: var(--color-white);
  border-top: 4px solid var(--color-crimson);
}

.better-job-number {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--color-crimson);
}

.better-job p:last-child {
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* Desktop: more padding, a 48px heading, three equal columns, and the card numbers grow to 48px */
@media (min-width: 1000px) {
  .better-jobs {
    padding: 7rem 2.5rem;
  }

  .better-jobs h2 {
    font-size: 3rem;
    line-height: 1.08;
  }

  .better-jobs-list {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3.5rem;
  }

  .better-job-number {
    font-size: 3rem;
  }
}

/* ==========================================================
   INDUSTRY PAGES: LAYOUT C (Tree Service, Painting, Kitchen & Bath, General Contractors, Concrete & Paving, Fencing)
   Reuses the navy page hero (centered), the .feature pattern and the CTA band. These are the new pieces.
   ========================================================== */

/* ---- Hero: the breadcrumb is steel blue, and the buttons are centered ---- */

.offer-hero .breadcrumb {
  color: var(--color-steel);
}

.offer-hero .service-hero-buttons {
  justify-content: center;
}

/* ---- Offer strip: three facts under the buttons ---- */

/* A thin steel line across the top. The items stack on a phone, with a thin line between them
   (the adjacent sibling selector + puts the line on every item that comes right after another item).
   width: 100% is needed because the hero container centers its children and would otherwise shrink the list. */
.offer-strip {
  width: 100%;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-steel);
  text-align: center;
}

.offer-strip-item {
  padding: 1.75rem 0;
}

.offer-strip-item + .offer-strip-item {
  border-top: 1px solid var(--color-steel);
}

.offer-strip-title {
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--color-cream);
}

.offer-strip-item p:last-child {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--color-steel);
}

/* Desktop: the strip sits at the very bottom of the hero (no padding under it), a little further below the buttons.
   The three items become three equal columns (repeat(3, 1fr)). The top line between items on a phone is replaced
   by a thin vertical line on the left of the 2nd and 3rd items. The intro is a bit wider (720px, like the Figma). */
@media (min-width: 1000px) {
  .offer-hero {
    padding-bottom: 0;
  }

  .offer-hero .page-hero-intro {
    max-width: 720px;
  }

  .offer-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4.5rem;
  }

  .offer-strip-item {
    padding: 2.25rem 0 2.5rem;
  }

  .offer-strip-item + .offer-strip-item {
    border-top: 0;
    border-left: 1px solid var(--color-steel);
  }
}

/* ---- How we build (graphic and text) ---- */

.build-split {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
}

/* On a phone the graphic sits above the text (a column) */
.build-split-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* The graphic fills the column but never grows past its real size */
.build-graphic {
  width: 100%;
  max-width: 540px;
  height: auto;
}

.build-split-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.build-split-text p:last-child {
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* Desktop: more padding, and the layout becomes a row with the graphic on the left (45% wide, so 540px) and the
   text taking the leftover space, centered vertically */
@media (min-width: 1000px) {
  .build-split {
    padding: 7rem 2.5rem;
  }

  .build-split-layout {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .build-graphic {
    flex: 0 0 45%;
  }

  .build-split-text {
    flex: 1;
  }
}

/* ---- What we add (three columns of features) ---- */

/* The three lists stack on a phone, with the same space between lists as between features */
.included-columns {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.included-column {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding: 0;
  list-style: none;
}

/* Desktop: the three lists sit side by side as equal columns with 48px between them
   (the band's padding and heading size come from the Layout A "included" rules) */
@media (min-width: 1000px) {
  .included-columns {
    flex-direction: row;
    gap: 3rem;
  }

  .included-column {
    flex: 1;
  }
}

/* ---- Built for better jobs (three numbered rows) ---- */

.job-rows {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
}

.job-rows-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.job-rows-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* A thin line above each row, and one under the last row */
.job-rows-list {
  padding: 0;
  list-style: none;
}

.job-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.job-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

/* The big crimson number: 48px on a phone */
.job-row-number {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--color-crimson);
}

.job-row h3 + p {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* Desktop: more padding. The layout becomes a row: the heading is a 400px column on the left and the rows take the
   rest. Each row is also a row, with the number in a 110px box (70px type) beside the title and text. */
@media (min-width: 1000px) {
  .job-rows {
    padding: 7rem 2.5rem;
  }

  .job-rows-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }

  .job-rows-header {
    flex: 0 0 400px;
  }

  .job-rows h2 {
    font-size: 3rem;
    line-height: 1.08;
  }

  .job-rows-list {
    flex: 1;
  }

  .job-row {
    flex-direction: row;
    gap: 2rem;
    padding: 2rem 0;
  }

  .job-row-number {
    flex: 0 0 110px;
    font-size: 4.375rem;
  }

  .job-row > div {
    padding-top: 0.625rem;
  }

  .job-row h3 {
    font-size: 1.625rem;
    line-height: 1.22;
  }
}

/* ==========================================================
   INDUSTRY PAGES: LAYOUT D (Decks & Patios, Gutters, Windows & Doors, Siding, Insulation, Solar)
   Reuses the navy page hero, the pull quote from the About page and the CTA band. These are the new pieces.
   ========================================================== */

/* ---- Hero: words, then a cream checklist panel ---- */

/* More space between the words and the panel. The selector has two classes so it beats the page-hero container's own gap. */
.checklist-hero .checklist-hero-layout {
  gap: 2.5rem;
}

/* The panel: cream with a thick crimson top edge, and navy text (the hero's own text color is cream).
   align-self: stretch makes it as wide as the column, because the hero container lines its children up to the left. */
.check-panel {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  align-self: stretch;
  padding: 2.25rem 1.5rem;
  background-color: var(--color-cream);
  border-top: 6px solid var(--color-crimson);
  color: var(--color-navy);
}

/* The label is crimson again (the hero normally makes labels steel blue) */
.check-panel .eyebrow {
  color: var(--color-crimson);
}

.check-panel-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.check-panel-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.32;
}

/* Desktop: the hero becomes a row, with the words taking the leftover space and the panel a fixed 440px column,
   both centered vertically. The panel gets its full 36px side padding and its text grows to 20px. */
@media (min-width: 1000px) {
  .checklist-hero .checklist-hero-layout {
    flex-direction: row;
    align-items: center;
    gap: 4.5rem;
  }

  .checklist-hero-text {
    flex: 1;
  }

  .check-panel {
    flex: 0 0 440px;
    align-self: auto;
    padding: 2.25rem;
  }

  .check-panel-list li {
    font-size: 1.25rem;
  }
}

/* ---- How we build (heading, pull quote and paragraph) ---- */

.quote-split {
  padding: 3.5rem 1.25rem;
}

.quote-split-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote-split-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* The pull quote's own top margin isn't needed here */
.quote-split-text .pull-quote {
  margin-top: 0;
}

.quote-split-text > p {
  font-size: 1.125rem;
  color: var(--color-muted);
}

/* Desktop: more padding, and the layout becomes a row: the heading is a fixed 400px column on the left and the quote
   and paragraph take the rest. The pull quote's own size and padding come from the About page's rules. */
@media (min-width: 1000px) {
  .quote-split {
    padding: 7rem 2.5rem;
  }

  .quote-split-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }

  .quote-split-layout h2 {
    flex: 0 0 400px;
  }

  .quote-split-text {
    flex: 1;
    gap: 1.75rem;
  }

  .quote-split-text > p {
    font-size: 1.1875rem;
  }
}

/* ---- What we add (six numbered rows) ---- */

.add-rows {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-white);
}

.add-rows h2 {
  margin-bottom: 2.5rem;
}

/* A thin line above each row and one under the last row. On a phone the number, title and text stack in a column. */
.add-rows-list {
  padding: 0;
  list-style: none;
}

.add-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.add-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.add-row p:last-child {
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* Desktop: more padding. Each row becomes a row of three boxes with 40px between them: a 48px number, a 380px title
   and the description taking the rest, all lined up in the middle of the row. */
@media (min-width: 1000px) {
  .add-rows {
    padding: 7rem 2.5rem;
  }

  .add-rows h2 {
    margin-bottom: 3rem;
  }

  .add-row {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .add-row-number {
    flex: 0 0 48px;
  }

  .add-row h3 {
    flex: 0 0 380px;
  }

  .add-row p:last-child {
    flex: 1;
    font-size: 1.0625rem;
  }
}

/* ---- Built for better jobs (dark band with a graphic) ---- */

.win-split {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-navy-deep);
  color: var(--color-cream);
}

/* On a phone the text comes first and the graphic sits below it */
.win-split-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.win-split-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* The label is steel blue on the dark band */
.win-split .eyebrow {
  color: var(--color-steel);
}

.win-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.win-item {
  display: flex;
  gap: 1.25rem;
}

/* The number sits in a 44px crimson square with rounded corners */
.win-item-number {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  height: 44px;
  background-color: var(--color-crimson);
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 500;
}

.win-item h3 + p {
  margin-top: 0.375rem;
  font-size: 1.0625rem;
}

/* The graphic fills the column but never grows past its real size, and is centered */
.win-graphic {
  align-self: center;
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* Desktop: more padding, a 48px heading, and the layout becomes a row: the text takes the leftover space and the
   graphic is a fixed 460px column on the right, both centered vertically */
@media (min-width: 1000px) {
  .win-split {
    padding: 7rem 2.5rem;
  }

  .win-split-layout {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .win-split-text {
    flex: 1;
  }

  .win-split h2 {
    font-size: 3rem;
    line-height: 1.08;
  }

  .win-graphic {
    flex: 0 0 460px;
  }
}

/* ==========================================================
   INDUSTRY PAGES: LAYOUT E (Pressure Washing, Septic, Chimney, Epoxy & Garage Floors, Pool & Spa, Handyman)
   Reuses the navy hero from Layout D (with a graphic instead of the panel), the Layout B cards, the .feature pattern and the CTA band.
   These are the new pieces.
   ========================================================== */

/* ---- Built for better jobs: the same cards as Layout B, but with a thick navy edge on the LEFT ---- */

/* The section itself is white here (Layout B's is cream), so the cream cards show up against it */
.better-jobs-white {
  background-color: var(--color-white);
}

/* The modifier class. It sits next to .better-job on the same element, comes later in the file, and so wins where they overlap.
   The card is the cream page color (the section behind it is white), and the top edge is switched off. */
.better-job-side {
  padding: 2rem;
  background-color: var(--color-page);
  border-top: 0;
  border-left: 4px solid var(--color-navy);
}

/* The "Step 01" label is a small crimson label here, not the big number the Layout B cards have */
.better-job-side .better-job-number {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- What we add: heading column, then a list of six features ---- */

/* Cream band (the page color). The container becomes a column on a phone: the text block, then the list. */
.add-split {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-page);
}

.add-split-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* The text block: heading, one muted line and the button, stacked. align-items: flex-start keeps the button as wide as its words. */
.add-split-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.add-split-text p {
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* The list: no bullets, no indent. Each feature gets a thin line under it, except the last one. */
.add-split-list {
  padding: 0;
  list-style: none;
}

.add-split-list .feature {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.add-split-list .feature:last-child {
  border-bottom: 0;
}

/* Desktop: more padding, and the container becomes a row. The text block is a fixed 420px column on the left (the Figma's width),
   the list takes the rest (flex: 1), and the 6rem gap is the Figma's 96px. */
@media (min-width: 1000px) {
  .add-split {
    padding: 7rem 2.5rem;
  }

  .add-split-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }

  .add-split-text {
    flex: 0 0 420px;
  }

  .add-split-list {
    flex: 1;
  }
}

/* ---- How we build: navy band, heading, then two paragraphs ---- */

.build-columns {
  padding: 3.5rem 1.25rem;
  background-color: var(--color-navy-deep);
  color: var(--color-cream);
}

/* The two paragraphs: stacked on a phone, with space between them */
.build-columns-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 1.1875rem;
}

/* Desktop: more padding. The heading stops at 860px wide (the Figma's width), and the two paragraphs sit side by side,
   each taking half the row (flex: 1) with a 4rem gap (64px). */
@media (min-width: 1000px) {
  .build-columns {
    padding: 7rem 2.5rem;
  }

  .build-columns h2 {
    max-width: 860px;
  }

  .build-columns-text {
    flex-direction: row;
    gap: 4rem;
    margin-top: 2.5rem;
  }

  .build-columns-text p {
    flex: 1;
  }
}

/* ==========================================================
   HOVER AND FOCUS STATES (details for links, tiles and cards)
   :hover is when the mouse is over something. :focus is when someone tabs to it with the
   keyboard. Giving both the same style means keyboard users see the same feedback as mouse users.
   ========================================================== */

/* Text links get an underline. Nav links, footer links, the "Learn more" links
   and the closing line link in the Industries section all share one rule. */
.nav-links a:hover, .nav-links a:focus,
.site-footer a:hover, .site-footer a:focus,
.card-link:hover, .card-link:focus,
.work-card-visit:hover, .work-card-visit:focus,
.pricing-reminder a:hover, .pricing-reminder a:focus,
.industries-note a:hover, .industries-note a:focus {
  text-decoration: underline;
}

/* The transition makes each change fade in over 0.2 seconds instead of snapping */
.industry-tile, .work-card, .cert, .faq-item summary {
  transition: all 0.2s;
}

/* Industry tiles: from black to navy */
.industry-tile:hover, .industry-tile:focus {
  background-color: var(--color-navy);
}

/* Linked work and certificate cards grow slightly on hover or keyboard focus (104% of normal size). */
a.work-card:hover, a.work-card:focus,
a.cert:hover, a.cert:focus {
  transform: scale(1.04);
}

/* FAQ questions: the text turns crimson */
.faq-item summary:hover, .faq-item summary:focus {
  color: var(--color-crimson);
}
