/* The header designs, the footer designs, and the ready content layouts a
   company's own site is built from.

   Every layout here carries its own padding, margins, type sizes and picture
   shapes. That is the point of a ready layout: the person filling the page in
   uploads words and pictures and never touches spacing, because the spacing is
   decided here and is built around the exact picture sizes
   easy_life_sites_backend/site_layouts.py declares -- 1920 by 600 for the
   opening banner, 1200 by 800 for a big tile and a side-by-side picture, 800
   by 600 for a small tile, 800 by 800 for a square one.

   There are no themes any more, and this file is the spacing that was in use
   when they went. Every measurement below is the one the business theme really
   had, kept to the pixel on instruction, so a page built before the themes
   were removed is laid out identically afterwards. What changed is only the
   gate: these rules used to apply to a site that had chosen that one theme,
   and they now apply to every site, because a site is one adjustable site.

   Which shapes these are, and why. Researched 2026-10-26 across three sites
   that really sell templates, taking the section shapes their own best-seller
   lists agree on: an opening banner, a set of feature tiles as a grid of
   panels of different sizes with the biggest carrying the most important
   thing, and a band pairing one picture with its words. That grid is the 2026
   default for a feature section rather than a passing fashion, which is why
   the feature layout is built that way instead of as three equal columns.

   The look is deliberately calm, because a page earns trust by being
   easy to read: generous space, one strong heading per band, a single accent
   colour, and no decoration competing with the words. Nothing here invents a
   colour -- every one comes from the variables the page already sets, so a
   company that picked Forest green gets a green page with nothing further
   to do.

   Picture shapes are held with aspect-ratio and object-fit: cover, so a
   picture at exactly the declared size fills its frame perfectly and the
   placeholder standing in before a real upload takes the identical space. The
   page therefore has its real shape from the first moment, which is what makes
   an unfinished page still read as a finished one. */

:root {
  /* The spacing scale every layout reads. One place, so every band agrees. */
  --design-band-y: 104px;
  --design-band-y-phone: 64px;
  --design-gap: 32px;
  --design-inner: 40px;
  --design-radius: 16px;
  --design-max: 1180px;
  --design-measure: 62ch;
}

/* ---------------------------------------------------------------- shared */

.design { padding: var(--design-band-y) 0; }
.design .bay {
  max-width: var(--design-max); margin: 0 auto; padding: 0 32px;
}
.design h2 {
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; font-weight: 760;
  letter-spacing: -0.03em; margin: 0 0 20px;
}
.design h3 {
  font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px;
}
.design p {
  margin: 0 0 18px; max-width: var(--design-measure); color: var(--muted); font-size: 17px;
}
.design p:last-child { margin-bottom: 0; }
.design-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent, #fff); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em; border: 1px solid var(--accent);
  transition: filter 0.18s, transform 0.18s;
}
.design-btn:hover {
  color: var(--on-accent, #fff); filter: brightness(1.08); transform: translateY(-1px);
}
/* The small uppercase line above a section heading takes the scheme's second
   colour. It appears on every band, so it is the clearest place to see one
   scheme differ from another. Falls back to the main accent for a page with no
   scheme in play. */
/* Written as p.design-eyebrow on purpose. The eyebrow really is a <p>, and
   `.design p` above sets color: var(--muted) at a higher specificity than a bare
   class, so a rule written as .design-eyebrow loses to it and the eyebrow comes
   out muted. It had been losing that way since the theme was written. */
/* Headings take the site's heading font; everything else inherits the body
   font from the page itself. Both fall back to the body font, so a site that
   has never chosen is drawn exactly as it was before this existed. */
.design h1,
.design h2,
.design h3,
.design h4,
.design-hero-words h1 {
  font-family: var(--font-heading, var(--font));
}

p.design-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2, var(--accent)); margin: 0 0 14px;
}

/* ------------------------------------------------- 1. the opening banner

   The picture is 1920 by 600. The band keeps a real minimum height and lets
   the picture cover it, which keeps the headline readable on a phone instead
   of squashing the band into a letterbox. The words sit over the middle, which
   is why the slot's own note asks for a picture with a fairly plain middle. */

.design-hero {
  position: relative; padding: 0; min-height: 460px; display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
}
.design-hero-pic {
  position: absolute; inset: 0; width: 100%; height: 100% !important;
  object-fit: cover; border-radius: 0; z-index: -2;
}
/* A readable wash over the picture, so the headline never fights it. */
.design-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,20,0.34) 0%, rgba(8,12,20,0.62) 100%);
}
.design-hero-words {
  position: relative; max-width: 820px; margin: 0 auto; padding: 96px 32px;
  text-align: center; color: #fff;
}
.design-hero-words h2 {
  font-size: clamp(34px, 5vw, 60px); color: #fff; margin-bottom: 18px;
}
.design-hero-words p {
  color: rgba(255,255,255,0.92); font-size: 19px; max-width: 56ch; margin: 0 auto 28px;
}

/* -------------------------------------------- 2. the feature tiles (bento)

   One big tile carrying the headline feature and three smaller ones under it,
   which is the pattern the best sellers settled on. The big tile holds a 1200
   by 800 picture and the small ones 800 by 600, and both ratios are held
   exactly: the size site_layouts.py declares, the size the upload enforces and
   the size that really appears on the page are one number.

   Why the big tile sits above the three rather than beside them. It was beside
   them, and the arithmetic does not work that way round. A big tile on the
   left is as tall as three small tiles stacked on the right, and three small
   tiles at 800 by 600 come to far more height than one 1200 by 800 picture and
   its words. The picture was given `flex: 1 1 auto` to swallow the difference,
   which beat its own aspect-ratio and cropped away about two thirds of every
   big picture. Letting the words take that space instead left roughly 890
   pixels of empty tile under them. Stacking the three across the full width
   removes the mismatch rather than hiding it, and the big picture gets wider
   in the bargain. */

.design-tiles-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--design-gap); align-items: stretch;
}
.design-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--design-radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.design-tile:hover {
  box-shadow: 0 18px 40px -24px rgba(8,12,20,0.4); transform: translateY(-2px);
}
.design img {
  height: auto;
  /* Shows through until a picture really loads, so a spot waiting for one
     reads as a reserved space rather than as a blank hole. */
  background: color-mix(in srgb, var(--accent) 7%, var(--border));
}
.design-tile:has(.design-tile-cover) { position: relative; }
.design-tile-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.design-tile img {
  width: 100%; height: auto; border-radius: 0; object-fit: cover;
}
.design-tile-lead img {
  /* Nothing may grow this. A flex-grow here wins over aspect-ratio and crops
     the picture, which is exactly the fault this layout was changed to fix. */
  aspect-ratio: 1200 / 800;
  flex: 0 0 auto;
}
.design-tile-small img { aspect-ratio: 800 / 600; }
.design-tile-words { padding: var(--design-inner); }
.design-tile-small .design-tile-words { padding: 24px 28px; }
/* The three small tiles take the third colour, so a scheme carrying three
   hues really shows all three on one page. */
.design-tile-small h3 {
  font-size: 18px; color: var(--accent-2, var(--accent));
}
.design-tile-small p { font-size: 15.5px; }
.design-tile-column {
  /* The three small tiles run across under the big one, equal width, each
     holding its 800 by 600 picture at its real shape. */
  display: grid; gap: var(--design-gap); grid-template-columns: repeat(3, 1fr);
}
.design-tiles-head { max-width: 720px; margin: 0 0 48px; }

/* ------------------------------------------- 3. the picture beside the words

   A 1200 by 800 picture on one side and the words on the other, centred
   against each other. Every second one of these bands on a page flips the
   picture to the other side on its own, so a page with three of them reads as
   a rhythm rather than a list. */

.design-split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.design-split-grid img {
  width: 100%; height: auto; aspect-ratio: 1200 / 800; object-fit: cover;
  border-radius: var(--design-radius); border: 1px solid var(--border);
}
.design-split-flip .design-split-pic { order: 2; }
.design-split-words p:last-of-type { margin-bottom: 24px; }

/* A quiet tint behind every second band, so a page has real sections rather
   than one long scroll. */
.design-tint {
  /* The quiet wash behind every second band is mixed from the third colour,
     so even the background carries a hint of the scheme. */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-2, var(--accent)) 6%, var(--bg)) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ----------------------------------------------------- getting in touch

   One section holding the contact form, with the newsletter signup inside the
   same section rather than in one of its own -- and able to be left off
   entirely, since a company with nothing to send should not ask anybody to
   sign up for it. Three shapes to choose from. */

.design-contact-head { max-width: 680px; margin: 0 0 40px; }
.design-form { display: grid; gap: 16px; }
.design-field { display: grid; gap: 7px; }
.design-field label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--text);
}
.design-field input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text); font: inherit; font-size: 16px;
}
.design-field textarea {
  width: 100%; min-height: 132px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text); font: inherit; font-size: 16px;
}
.design-field textarea { min-height: 132px; resize: vertical; }
.design-field input:focus,
.design-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px; border-color: var(--accent);
}
.design-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--design-radius); padding: var(--design-inner);
}
.design-news {
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.design-news-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch;
}
.design-news-row input {
  flex: 1 1 240px; height: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text); font: inherit; font-size: 16px;
}
/* The signup button is exactly the same height as the box beside it, set here
   rather than left to the browser, which gives controls in one row different
   heights and makes it read as two things that nearly line up. */
.design-news-row .design-btn { min-height: 48px; }

/* One column down the middle. */
.design-contact-stacked .design-contact-head,
.design-contact-stacked .design-news { text-align: center; }
.design-contact-stacked .design-contact-head { margin: 0 auto 40px; }
.design-contact-stacked .design-inner { max-width: 640px; margin: 0 auto; }
.design-contact-stacked p { margin-left: auto; margin-right: auto; }
.design-contact-stacked .design-news-row { justify-content: center; }

/* The form beside a picture. */
.design-contact-split .design-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.design-contact-split .design-contact-grid img {
  width: 100%; height: auto; aspect-ratio: 1200 / 800; object-fit: cover;
  border-radius: var(--design-radius); border: 1px solid var(--border);
  position: sticky; top: 96px;
}

/* Two cards side by side. */
.design-contact-cards .design-contact-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--design-gap); align-items: start;
}
.design-contact-cards .design-news {
  margin-top: 0; padding-top: 0; border-top: 0;
}

/* ------------------------------------------------------------- phone

   One column everywhere, less space above and below each band, and the picture
   back above its words. The picture ratios are left exactly as they are,
   because they are the sizes the pictures really were uploaded at. */

@media (max-width: 860px) {
  .design { padding: var(--design-band-y-phone) 0; }
  .design .bay { padding: 0 20px; }
  .design-tiles-grid,
  .design-split-grid,
  .design-contact-split .design-contact-grid,
  .design-contact-cards .design-contact-grid {
    grid-template-columns: 1fr; gap: var(--design-gap);
  }
  .design-tile-column { grid-template-columns: 1fr; }
  .design-split-flip .design-split-pic { order: 0; }
  .design-contact-split .design-contact-grid img { position: static; }
  .design-hero { min-height: 380px; }
  .design-hero-words { padding: 64px 20px; }
  .design-tile-words { padding: 28px; }
  .design-tiles-head { margin-bottom: 32px; }
}

/* ===================================================================
   The header designs.

   The bar itself -- its height, its brand, its menu -- is drawn by the
   page's own stylesheet, because every design shares it. What is here is
   only what each design does differently, keyed on the design the site
   has chosen. A site on the first design is therefore drawn by exactly
   the rules it was drawn by before there was a choice.
   =================================================================== */

/* The one button some designs put on the end of the menu. It is a real link
   to wherever the owner pointed it, and it is the same height as the menu so
   the row reads as one line rather than parts that nearly match. */
.header-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent, #fff);
  font-weight: 700; font-size: 14.5px; border: 1px solid var(--accent);
  white-space: nowrap;
}
.header-button:hover { color: var(--on-accent, #fff); filter: brightness(1.08); }

/* Logo in the middle, menu underneath. Two rows, both centred, so the bar
   grows to whatever those two rows really need instead of being held at the
   one-row height. */
:root[data-header="logo-centred"] .site-head .bay {
  height: auto; flex-direction: column; gap: 10px; padding-top: 16px; padding-bottom: 14px;
}
:root[data-header="logo-centred"] .site-nav { margin-left: 0; justify-content: center; flex-wrap: wrap; }
:root[data-header="logo-centred"] .nav-toggle { margin-left: 0; }

/* Tall banner. The header stops following the page down, because a tall one
   would cover the words as somebody reads; it takes the header picture the
   owner already set in the builder, and everything in it is centred over that
   picture with a wash behind so the words really read. */
:root[data-header="banner"] .site-head {
  /* Relative rather than sticky: a tall header that followed the page down
     would cover the words somebody is reading. Relative is also what the wash
     below needs to sit inside it. */
  position: relative; border-bottom: 0; backdrop-filter: none;
  background: var(--card); isolation: isolate;
}
:root[data-header="banner"] .site-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,20,0.30) 0%, rgba(8,12,20,0.58) 100%);
}
:root[data-header="banner"] .site-head .bay {
  height: auto; min-height: 300px; flex-direction: column; justify-content: center;
  gap: 14px; padding-top: 48px; padding-bottom: 40px; text-align: center;
}
:root[data-header="banner"] .brand,
:root[data-header="banner"] .brand-name,
:root[data-header="banner"] .brand-tagline-inline { color: #fff; }
:root[data-header="banner"] .site-nav { margin-left: 0; justify-content: center; flex-wrap: wrap; }
:root[data-header="banner"] .site-nav a { color: rgba(255,255,255,0.88); }
:root[data-header="banner"] .site-nav a:hover,
:root[data-header="banner"] .site-nav a.is-active { color: #fff; }
:root[data-header="banner"] .nav-toggle { margin-left: 0; }

/* ===================================================================
   The footer designs.

   The footer's parts are drawn into it by the page: the copyright line, the
   menu, the contact details, and the owner's own footer words. Which parts a
   design asks for is decided there; the shape they sit in is decided here.
   =================================================================== */

/* The copyright line. Every design has one, and it is a row of its own, so
   the one-line design is that row and the taller ones put it underneath
   whatever else they show. */
.foot-line {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; width: 100%;
}

.foot-columns { display: grid; gap: var(--design-gap); }
.foot-columns h4 {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); margin: 0 0 12px; font-family: var(--font-heading, var(--font));
}
.foot-columns ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-columns p { margin: 0; max-width: 42ch; }
.foot-brand-name { font-size: 19px; font-weight: 700; color: var(--text); }

/* Three columns: the menu, the contact details and the footer words beside
   each other, with the copyright line under them. */
:root[data-footer="three-columns"] .foot-inner {
  display: block; padding-top: 48px; padding-bottom: 32px;
}
:root[data-footer="three-columns"] .foot-columns { grid-template-columns: repeat(3, 1fr); }
:root[data-footer="three-columns"] .foot-line {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}

/* Tall: the name and the footer words across the top, the menu and the
   contact details in columns under them, the copyright line at the bottom. */
:root[data-footer="tall"] .foot-inner {
  display: block; padding-top: 64px; padding-bottom: 32px;
}
:root[data-footer="tall"] .foot-top { max-width: 52ch; margin: 0 0 44px; }
:root[data-footer="tall"] .foot-columns { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
:root[data-footer="tall"] .foot-line {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
}

/* ===================================================================
   The content layouts added when the themes were removed. Every one of
   them reads the same spacing scale as the three above, so a page that
   mixes old and new bands has one rhythm rather than two.
   =================================================================== */

/* Words down the middle. One narrow column, because a line of words a reader
   has to track all the way across a wide screen is the hardest thing to
   read on a page. */
.design-middle { max-width: var(--design-measure); margin: 0 auto; text-align: center; }
.design-middle p { margin-left: auto; margin-right: auto; }
.design-middle p:last-of-type { margin-bottom: 28px; }

/* Three cards in a row, each holding its own 800 by 600 picture. */
.design-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--design-gap); }
.design-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--design-radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.design-card img { width: 100%; height: auto; aspect-ratio: 800 / 600; object-fit: cover; border-radius: 0; }
.design-card-words { padding: 28px; }
.design-card-words h3 { color: var(--accent-2, var(--accent)); font-size: 18px; }
.design-card-words p { font-size: 15.5px; }

/* Numbered steps. The number is drawn here rather than typed in, so the
   order is right however the words are edited. */
.design-steps { display: grid; gap: var(--design-gap); grid-template-columns: repeat(2, 1fr); }
.design-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--design-radius); padding: 28px;
}
.design-step-number {
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent, #fff);
  font-weight: 800; font-size: 19px; font-family: var(--font-heading, var(--font));
}
.design-step h3 { margin-bottom: 8px; }
.design-step p { font-size: 15.5px; }

/* Questions and answers. Each question opens and closes on its own, because a
   page of every answer at once is a wall of words. */
.design-questions { display: grid; gap: 14px; max-width: 820px; }
.design-question {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--design-radius); padding: 22px 26px;
}
.design-question summary {
  cursor: pointer; font-weight: 700; font-size: 17.5px; color: var(--text);
  font-family: var(--font-heading, var(--font)); list-style: none;
}
.design-question summary::-webkit-details-marker { display: none; }
.design-question summary::after {
  content: "+"; float: right; color: var(--accent); font-weight: 700; margin-left: 16px;
}
.design-question[open] summary::after { content: "\2013"; }
.design-question p { margin-top: 14px; font-size: 16px; }

/* A row of square pictures, each 800 by 800, with its own line under it. */
.design-pictures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--design-gap); }
.design-picture img {
  /* Written as the slot's own numbers rather than 1 / 1, so the shape here and
     the size the upload enforces are visibly the same figures. */
  width: 100%; height: auto; aspect-ratio: 800 / 800; object-fit: cover;
  border-radius: var(--design-radius); border: 1px solid var(--border);
}
.design-picture p { margin: 14px 0 0; font-size: 15px; }

/* Prices side by side. Each column is a real card with its own button, and
   the price itself is the biggest thing in it, because that is what somebody
   came to this part of the page to read. */
.design-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--design-gap); align-items: start; }
.design-price {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--design-radius); padding: var(--design-inner);
  display: flex; flex-direction: column; gap: 14px;
}
.design-price h3 { margin: 0; }
.design-price-amount {
  font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); font-family: var(--font-heading, var(--font));
}
.design-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.design-price li {
  color: var(--muted); font-size: 15.5px; padding-left: 22px; position: relative;
}
.design-price li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.design-price .design-btn { margin-top: auto; }

/* ------------------------------------------------------------- phone */

@media (max-width: 860px) {
  :root[data-header="banner"] .site-head .bay { min-height: 220px; padding-top: 32px; padding-bottom: 28px; }
  :root[data-footer="three-columns"] .foot-columns,
  :root[data-footer="tall"] .foot-columns { grid-template-columns: 1fr; }
  .design-cards-grid,
  .design-steps,
  .design-pictures,
  .design-prices { grid-template-columns: 1fr; }
}
