/* ==========================================================================
   De La Terre Floral

   Layout and type are measured from the live Divi site, not invented — the
   numbers below (container width, section/row padding, column percentages,
   gutters, per-module font sizes and colours) were read off the rendered
   page and the WordPress export. Keep them as-is unless the design changes
   on purpose; they are what make the site feel like itself.
   ========================================================================== */

:root {
  /* Brand palette, as used by the Divi modules */
  --terracotta: #AA6A3C;   /* testimonial names, small accents */
  --sand:       #B5A68F;   /* "Testimonials" eyebrow */
  --slate:      #4f6064;   /* About headline, Packages headings */
  --grey:       #969696;   /* Portfolio eyebrow */
  --cream:      #F5F3EF;
  --cream-alt:  #f2f1ef;
  --ink:        #000000;
  --body-grey:  #666666;   /* Divi's default body colour */
  --white:      #FFFFFF;
  --card-line:  #b3a184;   /* testimonial card hairline */
  --btn-sand:   #f1f0ee;   /* inquiry submit pill */

  /* Type roles, one per job — matching the live site rather than
     collapsing everything into a single display face. */
  /* elaine is the original site's face; Classico stands in until its file
     is added. Both are self-hosted, so Georgia is the only real fallback —
     Cormorant used to sit in between but could never be reached. */
  --f-display:  'elaine', 'Classico', Georgia, serif;
  --f-headline: 'Italiana', Georgia, serif;                       /* section headlines */
  --f-eyebrow:  'Abhaya Libre', Georgia, serif;                   /* small caps labels */
  --f-label:    'Roboto', system-ui, sans-serif;                  /* names, meta */
  --f-package:  'Belleza', 'Josefin Sans', sans-serif;            /* package titles */
  --f-script:   'Dancing Script', cursive;                        /* signature */
  --f-body:     'Work Sans', 'Open Sans', system-ui, sans-serif;
  --f-quote:    'Open Sans', system-ui, sans-serif;
  --f-josefin:  'Josefin Sans', system-ui, sans-serif;

  /* Divi's grid, measured */
  --row-width: 80%;
  --row-max: 1080px;
  --gutter: 5.5%;
}

/* The original site's display face. Drop 4597Elaine.woff2 in as
   assets/fonts/elaine.woff2 and it takes over with no other change. */
@font-face {
  font-family: 'elaine';
  src: url('/assets/fonts/elaine.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Stand-in until elaine is present. Bold-only file, so the range keeps the
   browser from synthesising a second bold on top of it. */
@font-face {
  font-family: 'Classico';
  src: url('/assets/fonts/classico-bold.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

[id] { scroll-margin-top: 112px; }

body {
  margin: 0;
  /* Divi's base: Open Sans 14px / 1.7, #666, weight 500 */
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7em;
  font-weight: 500;
  color: var(--body-grey);
  background: var(--cream-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* Divi heading defaults; modules override per section below. */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding-bottom: 10px;
  font-weight: 500;
  line-height: 1em;
  color: var(--ink);
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { padding-bottom: 1em; margin: 0; }
p:last-of-type { padding-bottom: 0; }

/* Browsers indent blockquote by default, which would inset the testimonial
   quotes from their column. */
blockquote, figure { margin: 0; }

ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .25em; }

/* Pages that open on a hero or banner handle their own clearance; one that
   starts straight into an article has to make room for the fixed bar. */
main > .article:first-child,
main > .section:first-child:not(.hero):not(.page-banner):not(.banner-strip) { padding-top: 132px; }

/* ------------------------------------------------- Divi layout system --- */

.section { position: relative; padding: 4% 0; background-color: var(--cream-alt); }

.row {
  width: var(--row-width);
  max-width: var(--row-max);
  margin: auto;
  padding: 2% 0;
  position: relative;
  display: flex;
  /* Column widths plus gutters come to exactly 100%, so wrapping is left
     off here — sub-pixel rounding would otherwise drop the last column of a
     four-column row onto its own line. Columns stack at 980px instead. */
  flex-wrap: nowrap;
  align-items: flex-start;
}

/* Column widths are Divi's gutter-3 values. flex-shrink is left on so a
   rounding hair narrows the columns imperceptibly rather than overflowing. */
.col { flex: 0 1 auto; min-width: 0; margin-right: var(--gutter); }
.col:last-child, .col.is-last { margin-right: 0; }

.c-4_4 { width: 100%;      margin-right: 0; }
.c-3_5 { width: 57.8%; }
.c-2_5 { width: 36.7%; }
.c-1_2 { width: 47.25%; }
.c-1_3 { width: 29.6667%; }
.c-1_4 { width: 20.875%; }

/* Divi spaces stacked modules by a percentage of the column width, so the
   rhythm scales with column size rather than being uniform. */
.c-4_4 > * + * { margin-top: 2.75%; }
.c-3_5 > * + * { margin-top: 4.758%; }
.c-2_5 > * + * { margin-top: 7.493%; }
.c-1_2 > * + * { margin-top: 5.82%; }
.c-1_3 > * + * { margin-top: 9.27%; }
.c-1_4 > * + * { margin-top: 13.174%; }

.section--cream { background-color: var(--cream); }

/* --------------------------------------------------------- typography --- */

.eyebrow {
  font-family: var(--f-eyebrow);
  font-size: 16px;
  line-height: 1.7em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Section headlines — Italiana 55px on the live site. */
.headline {
  font-family: var(--f-headline);
  font-size: 55px;
  line-height: 1.1em;
  color: var(--ink);
}

/* Display headlines — the custom face, 57px. */
.display {
  font-family: var(--f-display);
  font-size: 57px;
  line-height: 1.1em;
  letter-spacing: .02em;
}

.body-copy { font-family: var(--f-body); font-size: 16px; line-height: 1.8em; color: var(--ink); }

.center { text-align: center; }

/* ------------------------------------------------------------- header --- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 10px 5%;
  /* Padding is deliberately not transitioned: animating it relayouts the bar's
     contents every frame for the whole 300ms. The fade is what reads anyway,
     and the 6px shrink lands in one step. */
  transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 18px rgba(0, 0, 0, .07);
  padding-block: 4px;
}

/* The wordmark PNG is drawn in the slate brand ink, which is right for every
   page but the homepage, where the bar floats over a dark photo and both the
   mark and the links have to be knocked out to white. */
.site-logo img {
  width: auto;
  object-fit: contain;
  transition: filter .3s ease;
}

.site-header--overlay:not(.is-stuck) .site-logo img { filter: brightness(0) invert(1); }

.site-logo--bar { display: none; }
.site-logo--bar img { max-width: 170px; max-height: 56px; object-position: left center; }
.site-logo--inline img { max-width: 230px; max-height: 76px; }

.nav { display: flex; align-items: center; justify-content: center; gap: 30px; }

.nav a {
  font-family: var(--f-eyebrow);
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}

.site-header--overlay:not(.is-stuck) .nav a { color: var(--white); }

/* The wordmark sits in the run of links but is not one of them. */
.nav a.site-logo { padding-block: 0; border-bottom: 0; }

.nav a:hover, .nav a:focus-visible { border-bottom-color: currentColor; }
.nav a.site-logo:hover, .nav a.site-logo:focus-visible { border-bottom-color: transparent; }
.site-header.is-stuck .nav a { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.site-header--overlay:not(.is-stuck) .nav-toggle { color: var(--white); }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------ 1. hero --------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: calc(24vw + 50px) 0 calc(21.6vw + 50px);   /* live measurement, +100px */
  /* Anchored to the top so the chapel and its arch stay in frame; anchoring
     to the bottom crops them away. */
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .26) 1%, rgba(0, 0, 0, .25) 99%);
}

.hero .row { position: relative; padding: 0; }

.hero__eyebrow {
  font-family: var(--f-eyebrow);
  font-size: 19px;
  line-height: 1.5em;
  color: var(--white);
  padding-bottom: 2px;
}

.hero__title { font-family: var(--f-display); font-size: 48px; line-height: 1.15em; color: var(--white); letter-spacing: .012em; word-spacing: .16em; }

/* Arched images. Radii of 999px are clamped by the browser to half the box
   width, which is exactly the semicircular cap the live site uses. */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }

/* ------------------------------------------------- 2. portfolio --------- */
/* Asymmetric 3/5 + 2/5: heading and two images left, two images right,
   then a single full-width image beneath. */

.portfolio { padding: 0 0 8px; }
.portfolio .row { padding-top: 61px; }
.portfolio__eyebrow { font-family: var(--f-eyebrow); font-size: 14px; line-height: 1.7em; color: var(--grey); text-transform: uppercase; letter-spacing: .18em; padding-bottom: 10px; }
.portfolio__title { font-family: var(--f-headline); font-size: 55px; line-height: 1.2em; color: var(--ink); padding-bottom: 18px; }
.portfolio .row--wide { padding-top: 0; padding-bottom: 47px; }

/* --------------------------------------------------- 3. gif banner ------ */

.banner-strip {
  position: relative;
  overflow: hidden;
  padding-top: 126px;
  /* The clip is 600x338. Matching its 16:9 exactly is the one height at which
     nothing is cropped — shorter trims the top and bottom, taller trims the
     sides. */
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.banner-strip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) { .banner-strip video { display: none; } }

/* ------------------------------------------------------- 4. about ------- */

.about { padding: 36px 0 0; }

/* Wider than the standard row — measured off the live section. The
   testimonials row below it keeps the usual 1080. */
.about > .row:not(.row--testimonials) { width: 82%; max-width: 1180px; padding-bottom: 76px; }
.about .arch { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.about__title { font-family: var(--f-display); font-size: 57px; line-height: 1.1em; color: var(--slate); }
.about__body { font-family: var(--f-body); font-size: 16px; line-height: 1.6em; color: var(--ink); }
.about__signature { font-family: var(--f-script); font-size: 25px; line-height: 1.4em; color: var(--ink); }
.about__ps { font-family: var(--f-body); font-size: 14px; line-height: 1.8em; color: var(--slate); }
.about__mark { width: 26%; max-width: 220px; margin-inline: auto; }
.about .center .about__body { max-width: 42ch; margin-inline: auto; }

/* Testimonials sit in a four-column row with the heading in column one. */
.testimonials__eyebrow { font-family: var(--f-eyebrow); font-size: 14px; line-height: 1.7em; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); padding-bottom: 8px; }
.testimonials__title { font-family: var(--f-headline); font-size: 55px; line-height: 1.2em; color: var(--ink); }
/* Cards alternate their arch: the outer two are square-topped and curve
   away at the foot, the middle one arches over the top and sits lower.
   The cards run wider and tighter than the site's four-column default, and
   stretch so all three share a height whatever the quote length. */
.row--testimonials { align-items: stretch; --gutter: 2.1%; }
.row--testimonials .testimonial { width: 23.9%; }
.row--testimonials .testimonials__intro { width: 22%; }

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--card-line);
  padding: 32px 24px 58px;
  border-radius: 0 0 50% 50% / 0 0 21% 21%;
}

.testimonial:nth-of-type(even) {
  margin-top: 18px;
  padding: 66px 24px 30px;
  border-radius: 50% 50% 0 0 / 21% 21% 0 0;
}

.testimonial img {
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial__name { font-family: var(--f-label); font-size: 13px; font-weight: 500; line-height: 1.7em; letter-spacing: .22em; text-transform: uppercase; color: var(--terracotta); padding: 20px 0 12px; }
.testimonial__quote { font-family: var(--f-quote); font-size: 14px; line-height: 1.8em; color: var(--ink); }

/* The 13.174% stacking rhythm is for bare columns, not the padded card. */
.testimonial > * + * { margin-top: 0; }

/* ----------------------------------------------------- 5. gallery ------- */

.gallery { padding: 0 0 2px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.gallery__grid a { display: block; position: relative; overflow: hidden; }
.gallery__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.gallery__grid a::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.13); opacity: 0; transition: opacity .3s ease; }
.gallery__grid a:hover img { transform: scale(1.04); }
.gallery__grid a:hover::after { opacity: 1; }

/* ---------------------------------------------------- 6. packages ------- */

.packages { padding: 30px 0 22px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.packages__eyebrow { font-family: var(--f-josefin); font-size: 15px; letter-spacing: .52em; text-indent: .52em; text-transform: uppercase; color: var(--slate); }
.packages__title { font-family: var(--f-display); font-size: 55px; line-height: 1.1em; color: var(--slate); }
.packages__intro { font-family: var(--f-body); font-size: 15px; font-weight: 400; line-height: 1.85em; color: var(--body-grey); max-width: 850px; margin-inline: auto; }
.package img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.package__name {
  font-family: var(--f-package);
  font-size: 20px;
  line-height: 1.4em;
  color: var(--ink);
  padding: 18px 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
  margin-bottom: 14px;
}
.package__for { font-family: var(--f-body); font-size: 13px; font-weight: 400; font-style: italic; line-height: 1.8em; color: var(--slate); }
.package ul { font-family: var(--f-body); font-size: 13px; font-weight: 400; line-height: 1.85em; color: var(--body-grey); }
.package__price { font-family: var(--f-body); font-size: 15px; font-style: italic; color: var(--terracotta); }

/* ----------------------------------------------------- 7. contact ------- */

.contact { padding: 25px 0 110px; background-color: var(--white); }
.contact__title { font-family: var(--f-display); font-size: 42px; line-height: 1.2em; color: var(--ink); }
.contact__body { font-family: var(--f-body); font-size: 16px; line-height: 1.9em; color: var(--ink); }
.contact__signature { font-family: var(--f-display); font-size: 25px; line-height: 1.4em; color: var(--ink); }
.contact__form-title { font-family: var(--f-display); font-size: 42px; line-height: 1.2em; color: var(--ink); padding-bottom: 14px; }

.field { display: flex; flex-direction: column; margin-bottom: 10px; }

/* The live form carries its labels as placeholder text. They stay in the
   markup for screen readers and for the case where the field is filled. */
.field label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Name and Email share one row. */
.field-pair { display: flex; gap: 10px; }
.field-pair .field { flex: 1 1 0; min-width: 0; }

.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.field ::placeholder { color: var(--body-grey); opacity: 1; }
.field select:invalid, .field select option[value=""] { color: var(--body-grey); }

.field textarea { min-height: 104px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  border-color: transparent;
}

.field .req { color: var(--terracotta); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: .12em;
  padding: 14px 34px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--btn-sand);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.btn:hover, .btn:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* The inquiry form right-aligns its submit. */
#inquiry-form .form-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.form-status { margin-top: 12px; font-family: var(--f-body); font-size: 15px; min-height: 1.6em; }
.form-status.is-ok { color: var(--terracotta); }
.form-status.is-error { color: #a4342b; }

/* -------------------------------------------------- 8/9. blog ----------- */

.page-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 0 6px;
  background-position: center;
  background-size: cover;
}

.contact { padding: 25px 0 110px; background-color: var(--white); }
.contact__title { font-family: var(--f-display); font-size: 42px; line-height: 1.3em; color: var(--ink); }
.contact__body { font-family: var(--f-body); font-size: 16px; line-height: 1.8em; color: var(--ink); max-width: 700px; }
.contact__signature { font-family: var(--f-display); font-size: 25px; line-height: 1.8em; color: var(--ink); }
.contact__form-title { font-family: var(--f-display); font-size: 42px; line-height: 1.3em; color: var(--ink); padding-bottom: 14px; }

/* -------------------------------------------------- 8/9. blog ----------- */

.page-banner .row { position: relative; padding-block: 20px 40px; }
main > .page-banner:first-child .row { padding-block: 140px 56px; }
.page-banner__eyebrow { font-family: var(--f-body); font-size: 12px; line-height: 1.7em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding-bottom: 10px; }
.page-banner__title { font-family: var(--f-headline); font-size: 80px; line-height: 1.05em; color: var(--ink); }

.blog-feed { padding: 0 0 4%; background-position: center top; background-size: contain; background-repeat: no-repeat; }

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

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .3s ease; }
.post-card:hover img { opacity: .88; }

/* Title above the date, as the live feed orders them. */
.post-card__body { padding: 16px 0 0; display: flex; flex-direction: column; flex: 1; }
.post-card__title { order: 1; font-family: var(--f-display); font-size: 21px; line-height: 1.3em; color: var(--ink); padding-bottom: 10px; }
.post-card time { order: 2; font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--ink); }
.post-card .read-more { order: 3; margin-top: auto; padding-top: 12px; font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Article body — narrower than the site grid so running text stays readable. */
.article { padding: 5% 0; }
.article .row { flex-direction: column; }
.row--narrow { max-width: 760px; }
.article .post-grid { grid-template-columns: repeat(2, 1fr); }
.article img { margin: 34px auto; }
.article h1 { font-family: var(--f-display); font-size: 42px; line-height: 1.2em; padding-bottom: 18px; }
.article h2 { font-family: var(--f-headline); font-size: 34px; line-height: 1.2em; padding: 1.2em 0 .4em; }
.article h3 { font-family: var(--f-display); font-size: 29px; line-height: 1.25em; padding: 1em 0 .3em; color: var(--ink); }
.article h4 { font-family: var(--f-body); font-size: 18px; line-height: 1.7em; font-weight: 600; padding: .8em 0 .3em; color: var(--ink); }
.article p, .article li { font-family: var(--f-body); font-size: 16px; line-height: 1.9em; color: var(--ink); }
.article a { color: var(--terracotta); }
.article .post-meta { font-family: var(--f-label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); padding-bottom: 20px; }

.article-cta { margin-top: 50px; padding: 40px; background: var(--cream); text-align: center; }
.article-cta h2 { font-family: var(--f-display); font-size: 42px; padding-bottom: 14px; }

/* ------------------------------------------------------------ footer ---- */

.site-footer { background: var(--cream-alt); color: var(--slate); padding: 14px 0 12px; }
.site-footer .row { flex-wrap: wrap; gap: 0; align-items: flex-start; padding-block: 8px; }

/* Navigate carries five items now, which needs more than an even third to
   stay on one line; the outer two columns give the width back. */
.site-footer .row > .col:nth-child(2) { width: 40%; }
.site-footer .row > .col:nth-child(1),
.site-footer .row > .col:nth-child(3) { width: 24.5%; }
.site-footer h4 { font-family: var(--f-headline); font-size: 19px; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--slate); padding-bottom: 10px; }
.site-footer p { font-family: var(--f-headline); font-size: 17px; color: var(--slate); }
.site-footer a { text-decoration: none; transition: opacity .2s ease; }
.site-footer a:hover { opacity: .7; }

/* Pipe-separated on one line, the way the live footer sets it. */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 9px; font-family: var(--f-headline); font-size: 16px; }
/* The separator hangs off the end of each item rather than the start of the
   next, so a wrap never opens a line with a stray pipe. */
.footer-nav a:not(:last-child)::after { content: '|'; margin-left: 9px; color: var(--slate); opacity: .45; }

.footer-logo { max-width: 190px; padding-bottom: 10px; }
.site-footer .c-1_3:first-child p { font-size: 15px; color: var(--body-grey); }

.footer-social { display: flex; justify-content: center; padding-bottom: 10px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--ink); color: var(--white); }
.footer-blog-link { text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  width: var(--row-width);
  max-width: var(--row-max);
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--body-grey);
}

/* ----------------------------------------------------------- utility ---- */

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------- responsive ----- */
/* Divi's breakpoints: 980 (tablet), 767 (phone), 479 (small phone). */

@media (max-width: 980px) {
  .row { width: 90%; flex-wrap: wrap; }
  .col { width: 100% !important; margin-right: 0; margin-bottom: 30px; }
  .col:last-child { margin-bottom: 0; }

  /* Back to logo-left / burger-right; the centred split nav needs the room
     of a desktop viewport. */
  .site-header { justify-content: space-between; }
  .site-logo--bar { display: block; }
  .site-logo--inline { display: none; }

  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 6px 0 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    display: none;
  }

  .nav.is-open { display: flex; }
  .nav a { color: var(--ink); font-size: 20px; padding: 12px 5%; border-bottom: 1px solid rgba(0,0,0,.06); }

  /* The bar still floats over the hero here, so the mark and the burger stay
     knocked out — but the links have dropped into a white panel and must not. */
  .site-header--overlay:not(.is-stuck) .nav a { color: var(--ink); }

  /* The wider About row is a desktop measurement; stacked, it should match
     every other row. */
  .about > .row:not(.row--testimonials) { width: 90%; padding-bottom: 30px; }

  /* Stacked columns run the full width, which stretches the arch curves flat
     and blows the package portraits up to a screen and a half. Cap both. */
  .row--testimonials .testimonial,
  .row--testimonials .testimonials__intro { width: 100% !important; }
  /* Scoped to beat .col.is-last's margin-right, which would otherwise pull
     the last card off centre. */
  .row--testimonials .testimonial { max-width: min(100%, 420px); margin-inline: auto; }
  .row--testimonials .testimonial:nth-of-type(even) { margin-top: 0; }
  .package img, .about .arch { width: 100%; max-width: min(100%, 420px); margin-inline: auto; }

  .hero__title, .about__title { font-size: 44px; }
  .headline, .portfolio__title, .testimonials__title, .packages__title { font-size: 40px; }
  .page-banner__title { font-size: 56px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Touch targets. Pointer-coarse rather than a width query, so it follows the
   input device rather than guessing from the viewport. */
@media (pointer: coarse) {
  .footer-nav a, .site-footer p a, .site-footer h4 a, .post-card .read-more, .article a {
    display: inline-block;
    min-height: 32px;
    line-height: 32px;
  }
  .footer-nav { gap: 2px 9px; }
  .footer-social a { width: 40px; height: 40px; }
}

@media (max-width: 767px) {
  .hero { padding: 56vw 0 40vw; }
  .hero__eyebrow { font-size: 14px; line-height: 1.6em; }
  .hero__title, .about__title { font-size: 34px; }
  .headline, .portfolio__title, .testimonials__title, .packages__title { font-size: 30px; }
  .contact__title, .contact__form-title, .article h1, .article-cta h2 { font-size: 30px; }
  .page-banner__title { font-size: 40px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .contact { padding-bottom: 20px; }
  .banner-strip { padding-top: 60px; min-height: 200px; }
}

@media (max-width: 479px) {
  .row { width: 92%; }
  .hero__title, .about__title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* "Other reads" heading inside an article */
.article__more { font-family: var(--f-headline); font-size: 34px; margin-top: 50px; padding-bottom: 20px; }
