/* ============================================================
   LeBretons — editorial design (index.html)
   Loaded after style.css. style.css supplies the reset, fonts, header
   mechanics, pop-up form, carousel and reveal; everything here is scoped
   to body.ed so no other page is affected.

   Palette
     Paper Ivory          #F5F2EC  page background
     Ink Charcoal         #1D1D1B  type, dark sections, primary buttons
     Heritage Olive       #89865A  signature accent (large type, stats, shapes)
     Burnished Terracotta #B06F3C  restrained secondary accent (shapes)
     Warm Stone           #D9D3C8  rules and borders
     Clean White          #FFFFFF  alternate sections
   Olive on ivory is ~3.3:1, so it is only used at headline / stat sizes;
   small labels stay charcoal.
   ============================================================ */
body.ed{
  --ivory:#F5F2EC;
  --charcoal:#1D1D1B;
  --olive:#89865A;
  --olive-on-dark:#A9A675;       /* olive lifted for charcoal backgrounds */
  --terracotta:#B06F3C;
  --stone:#D9D3C8;
  --rule-dark:rgba(245,242,236,.16);
  --ed-muted:#5E5B54;            /* 6.4:1 on ivory */

  /* remap the shared tokens so style.css components follow the palette */
  --black:var(--charcoal);
  --ink:var(--charcoal);
  --cream:var(--ivory);
  --body:var(--charcoal);
  --muted:var(--ed-muted);
  --line:var(--stone);
  --gold:var(--olive);
  --gold-lt:var(--olive-on-dark);
  --r-sm:0;--r-lg:0;--r-xl:0;

  background:var(--ivory);
  color:var(--charcoal);
}
html:has(body.ed){background:var(--charcoal)}

/* ---------- shared editorial pieces ---------- */
.ed .wrap{max-width:1240px}

/* "WHAT WE DO ————" */
.ed-label{
  display:flex;align-items:center;gap:22px;max-width:440px;
  margin-bottom:26px;
  font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
}
.ed-label::after{content:"";flex:1;height:1px;background:currentColor;opacity:.35}
.ed-label--dark{color:var(--ivory)}

.ed-h2{
  font-size:clamp(34px,4.2vw,58px);line-height:.98;letter-spacing:-.035em;
  color:inherit;
}
.ed-h2 em,.ed-hero__title em{font-style:normal;color:var(--olive)}

/* body copy: Regular, softened in colour rather than weight; the Light cut
   is too hairline to read comfortably at these sizes */
.ed-lede{font-size:17px;font-weight:400;line-height:1.5;letter-spacing:-.005em;max-width:420px;color:#3A3934}
.ed-dark .ed-lede{color:rgba(245,242,236,.82)}

/* underlined text link */
.ed-link{
  display:inline-flex;align-items:center;gap:10px;
  padding-bottom:5px;border-bottom:1px solid currentColor;
  font-size:13.5px;font-weight:400;color:inherit;
  transition:gap .3s var(--ease),color .25s var(--ease);
}
.ed-link .ico{width:13px;height:13px}
.ed-link:hover{gap:14px;color:var(--olive)}
.ed-dark .ed-link:hover{color:var(--olive-on-dark)}

/* primary button: flat charcoal, ivory type, square */
/* every button on this page is square-cornered, including the small ones,
   the testimonial arrows and the footer social icons */
.ed .btn,.ed .btn--sm,.ed .arrows button,.ed .social a{border-radius:0}
.ed .btn--dark{--btn-bg:var(--charcoal);--btn-fg:var(--ivory);font-weight:600}
.ed .btn--dark:hover{--btn-bg:#34342F;box-shadow:none}
.ed .btn--arrow .ico{margin-left:12px}

/* geometric overlays: flat colour blocks. Every block on the page is
   multiplied at 92% so the ivory warms through and they all read at the same
   strength, whether they sit over a photo or plain paper. */
.ed-shape{position:absolute;pointer-events:none}
.ed-shape--olive{background:var(--olive)}
.ed-shape--terra{background:var(--terracotta)}
.ed-shape,.ed-mark span{mix-blend-mode:multiply;opacity:.92}

/* Logo geometry, used for the paired blocks in "Let's talk":
   each half of the mark is 184 x 237 units and the right half sits 68 units
   higher. --h sets the size; everything else derives from it. */
.ed-mark{
  position:absolute;
  display:flex;align-items:flex-start;
  height:calc(var(--h) * 305 / 237);
  pointer-events:none;
}
.ed-mark span{display:block;width:calc(var(--h) * 184 / 237);height:var(--h)}
.ed-mark__terra{background:var(--terracotta);margin-top:calc(var(--h) * 68 / 237)}
.ed-mark__olive{background:var(--olive)}

/* ---------- header on ivory ---------- */
.ed .site-header{background:var(--ivory)}
.ed .site-header.is-stuck{background:rgba(245,242,236,.94);box-shadow:0 1px 0 var(--stone)}
/* nav sits to the right beside the button, set in the button's own
   size and weight so the two read as one group */
.ed .nav{margin-left:auto;margin-right:14px}
.ed .nav a{color:var(--charcoal);font-weight:600;font-size:15.5px}
.ed .nav a::after{background:var(--charcoal)}
.ed .nav a:hover{color:var(--charcoal)}
.ed .burger span{background:var(--charcoal)}
.ed .mobile-nav{background:rgba(245,242,236,.98);border-top-color:var(--stone)}
.ed .mobile-nav a{color:var(--charcoal);border-bottom-color:var(--stone)}
.ed .mobile-nav__tel{color:var(--charcoal)}

/* ============================================================
   HERO
   ============================================================ */
.ed-hero{position:relative;padding:118px 0 0;overflow:hidden;border-bottom:1px solid var(--stone)}
.ed-hero__inner{
  display:grid;grid-template-columns:1.25fr .75fr;gap:20px;align-items:end;
  min-height:min(640px,calc(100vh - 118px));
}
.ed-hero__copy{padding-bottom:72px;align-self:center}
.ed-hero__eyebrow{
  display:flex;align-items:center;gap:14px;margin-bottom:30px;
  font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
}
.ed-hero__eyebrow::after{content:"";width:32px;height:1px;background:currentColor;opacity:.5}
.ed-hero__title{
  font-size:clamp(50px,6.4vw,92px);line-height:.92;letter-spacing:-.045em;
  margin-bottom:30px;
}
.ed-hero__copy .ed-lede{margin-bottom:34px;max-width:470px}
.ed-hero__actions{display:flex;align-items:center;gap:30px;flex-wrap:wrap}

.ed-hero__media{position:relative;align-self:end;height:100%;min-height:520px}
/* The portrait and its two blocks share one box sized to the image, so the
   blocks stay locked to him at every width. One vertical, one horizontal:
     olive  tall and narrow, beside his face, running down past his chin
     terra  wide and short, behind the top/back of his head */
.ed-hero__portrait{
  position:absolute;right:-2%;bottom:0;
  height:84%;max-height:540px;aspect-ratio:702/842;
}
.ed-hero__portrait img{
  position:relative;z-index:1;display:block;width:100%;height:100%;
  filter:grayscale(1) contrast(1.06);
}
.ed-hero__portrait .ed-shape--olive{left:-14%;top:24%;width:53%;height:64%}
.ed-hero__portrait .ed-shape--terra{left:58%;top:4%;width:56%;height:26%}

/* ============================================================
   01 SERVICES
   ============================================================ */
.ed-services{padding:110px 0 120px}
.ed-services__grid{
  display:grid;grid-template-columns:1fr 1fr;column-gap:clamp(40px,7vw,110px);row-gap:56px;
}
.ed-services__intro{padding-top:58px}
.ed-services__intro .ed-lede{margin-bottom:26px;font-size:16px}

.ed-figure{position:relative;margin:0 0 60px}
.ed-figure img{
  position:relative;z-index:1;display:block;width:100%;aspect-ratio:1/1.02;object-fit:cover;
  filter:grayscale(1) contrast(1.04);
}
.ed-figure .ed-shape--terra{left:-8%;top:47%;width:34%;height:32%;z-index:2}
.ed-figure .ed-shape--olive{left:57%;top:54%;width:36%;height:54%;z-index:2}

.ed-list{border-top:1px solid var(--stone);align-self:start}
.ed-list li{
  display:grid;grid-template-columns:56px 1fr;gap:8px;
  padding:20px 0 22px;border-bottom:1px solid var(--stone);
}
.ed-list__num{font-size:12px;padding-top:3px}
.ed-list h3{font-size:16px;letter-spacing:-.01em;line-height:1.2;margin-bottom:6px}
.ed-list p{font-size:14px;line-height:1.5;color:var(--ed-muted);max-width:330px}

/* ============================================================
   RESULTS  (charcoal)
   ============================================================ */
.ed-dark{background:var(--charcoal);color:var(--ivory)}
.ed-case{padding:96px 0 104px}
.ed-case__top{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(40px,6vw,90px);align-items:start;margin-bottom:64px}
.ed-case .ed-h2{color:var(--ivory)}
.ed-case__media{position:relative;margin:0}
.ed-case__media img{display:block;width:100%;aspect-ratio:16/7.5;object-fit:cover}
.ed-case__tag{
  position:absolute;right:0;bottom:0;   /* flush in the photo's corner */
  padding:20px 30px;background:rgba(176,111,60,.72);color:var(--ivory);   /* terracotta, see-through */
  font-size:22px;font-weight:700;letter-spacing:-.01em;
}

.ed-case__bottom{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(40px,6vw,90px);align-items:end}
.ed-case__kicker{font-size:13px;font-weight:600;margin-bottom:4px}
.ed-case__name{font-size:26px;letter-spacing:-.02em;color:var(--ivory);margin-bottom:12px}
.ed-case__text{font-size:15px;font-weight:400;line-height:1.5;color:rgba(245,242,236,.82);max-width:400px;margin-bottom:22px}
/* one row of stats, however many there are, each up to 230px wide */
.ed-stats{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,230px);justify-content:start}
.ed-stats div{padding:6px 0 6px 28px;border-left:1px solid var(--rule-dark)}
.ed-stats dt{font-size:clamp(40px,4.6vw,62px);font-weight:700;letter-spacing:-.04em;line-height:1;color:var(--olive-on-dark);margin-bottom:16px}
.ed-stats dd{margin:0;font-size:13.5px;line-height:1.45;color:rgba(245,242,236,.82);max-width:170px}

/* ============================================================
   TESTIMONIALS  (white)
   ============================================================ */
.ed-white{background:#fff}

.ed-quotes{padding-block:100px}
/* the shared carousel, restyled: no card, a pull quote beside the full one */
.ed .quote-card{background:none;padding:0;box-shadow:none}
.ed .quote{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(40px,7vw,110px);align-items:start}
.ed .quote .ed-pull{
  margin:0;font-weight:700;color:var(--charcoal);
  font-size:clamp(32px,3.8vw,52px);line-height:1;letter-spacing:-.035em;
  text-indent:-.32em;
}
.ed .quote p{font-size:18px;font-weight:400;line-height:1.5;letter-spacing:-.005em;margin-bottom:28px}
.ed .quote__by img{width:48px;height:48px;filter:grayscale(1)}
.ed .quote__by strong{font-size:15px}
.ed .quote__by small{font-size:13px}
.ed .quote-nav{justify-content:flex-end;margin-top:-48px;position:relative}
.ed .dots{display:none}
.ed .arrows button{width:38px;height:38px;border-color:var(--stone);background:transparent}
.ed .arrows button:hover{background:var(--charcoal);color:var(--ivory);border-color:var(--charcoal)}

/* ============================================================
   05 CTA  (ivory)
   ============================================================ */
.ed-cta{position:relative;overflow:hidden;padding:96px 0 110px;border-top:1px solid var(--stone)}
.ed-cta__inner{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,7vw,110px);align-items:end;position:relative;z-index:1}
.ed-cta__body{padding-right:clamp(0px,17vw,250px)}
.ed-cta__body .ed-lede{font-size:16px;margin-bottom:28px}
.ed-cta__actions{display:flex;align-items:center;gap:30px;flex-wrap:wrap}
/* the "Let's talk" pair: slid right so the section edge crops about 40% off
   the olive half */
.ed-cta .ed-mark{--h:clamp(130px,14vw,200px);right:calc(var(--h) * -74 / 237);bottom:0}

/* ============================================================
   LEGAL PAGES  (privacy-policy.html, terms-of-service.html)
   ============================================================ */
.ed .legal-hero{background:var(--ivory);padding:160px 0 56px;border-bottom:1px solid var(--stone)}
.ed .legal-hero h1{color:var(--charcoal);font-size:clamp(40px,5vw,72px);line-height:.95;letter-spacing:-.04em;margin-bottom:18px}
.ed .legal-hero p{color:var(--ed-muted)}
.ed .legal{background:var(--ivory)}
.ed .legal__body h2{letter-spacing:-.02em}
.ed .legal__body p,.ed .legal__body li{color:#3A3934}
/* olive is too light for body-size links on ivory, so links stay charcoal */
.ed .legal__body a{color:var(--charcoal);text-decoration-color:var(--olive);text-decoration-thickness:1px}
.ed .legal__body a:hover{color:var(--olive)}
.ed .footer__bottom a.is-here{color:var(--ivory)}
@media (max-width:760px){
  .ed .legal-hero{padding:118px 0 40px}
}

/* ============================================================
   FOOTER on charcoal
   ============================================================ */
.ed .site-footer{color:rgba(245,242,236,.66)}
.ed .footer__contact .ico{color:var(--olive-on-dark)}
.ed .footer__col a:hover,.ed .footer__bottom a:hover{color:var(--ivory)}
.ed .social a:hover{background:var(--olive);border-color:var(--olive)}

/* pop-up: flat charcoal panel, square fields */
.ed .form-card{background:var(--charcoal);box-shadow:0 40px 90px -30px rgba(0,0,0,.6)}
.ed .deep-form input,.ed .deep-form select,.ed .deep-form textarea{border-radius:0}
.ed .modal__close{border-radius:0}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:980px){
  .ed-hero__inner{grid-template-columns:1fr;min-height:0}
  .ed-hero__copy{padding-bottom:20px}
  .ed-hero__media{min-height:0;height:440px}
  .ed-hero__portrait{right:auto;left:50%;transform:translateX(-50%)}
  .ed-services__grid{grid-template-columns:1fr}
  .ed-services__intro{padding-top:0}
  .ed-case__top,.ed-case__bottom{grid-template-columns:1fr}
  .ed-case__bottom{gap:48px}
  .ed .quote{grid-template-columns:1fr;gap:28px}
  .ed .quote-nav{margin-top:26px}
  .ed-cta__inner{grid-template-columns:1fr;gap:28px}
  .ed-cta__body{padding-right:0}
  .ed-cta .ed-mark{--h:110px}
}
@media (max-width:760px){
  .ed .header__actions .btn{display:none}
  .ed-hero{padding-top:96px}
  .ed-hero__title{font-size:clamp(44px,13vw,64px)}
  .ed-hero__media{height:360px}
  .ed-services,.ed-case,.ed-cta{padding:70px 0 80px}
  .ed-quotes{padding-block:70px 76px}
  .ed .quote .ed-pull{text-indent:0}
  .ed-stats{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:1fr;gap:26px}
  .ed-stats div{padding:0 0 0 20px}
  .ed-case__tag{padding:14px 20px;font-size:18px}
  .ed-cta{padding-bottom:150px}
}
