/* meladas — shared shell for inner pages (services, contact, legal).
   Same tokens and type as the homepage. Polin only, 300/600/900. */
:root {
  --burgundy: #8D263E; --burgundy-2: #b34a63; --charcoal: #191719; --cream: #F6F1EC; --deep: #EDE5DD;
  --soft: #5A5257; --label: #7A6A69; --white: #fff;
  --font: Polin, system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px); --frame: 1240px;
  --pad: max(var(--gutter), calc((100% - var(--frame)) / 2));
  --e1: 0 2px 6px rgba(0,0,0,.06); --e2: 0 4px 12px rgba(0,0,0,.08); --e3: 0 8px 24px rgba(0,0,0,.12);
  --cut: clamp(2.5rem, 5vw, 5.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--charcoal); font: 300 clamp(1.075rem, 1rem + .3vw, 1.25rem)/1.65 var(--font); letter-spacing: 0; font-synthesis-weight: none; }
h1, h2, h3 { font-family: var(--font); margin: 0; line-height: 1.02; }
h1, h2 { font-weight: 900; } h3 { font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
b, strong { font-weight: 600; }
.hl { font-style: normal; color: var(--burgundy); }
.wrap { padding-inline: var(--pad); }
.skip { position: absolute; top: 8px; right: 8px; z-index: 200; padding: .7rem 1rem; background: var(--charcoal); color: var(--cream); font: 600 1rem/1 var(--font); transform: translateY(-200%); text-decoration: none; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }

/* ------------------------------------------------------------ button -- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding-inline: 1.5rem;
       font: 600 1.05rem/1 var(--font); background: var(--burgundy); color: #fff; text-decoration: none; border: 0; cursor: pointer;
       box-shadow: var(--e1); transition: background 200ms ease, color 200ms ease, box-shadow 240ms ease, transform 240ms var(--ease); }
.btn:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); box-shadow: var(--e2); }
.btn--ghost { background: transparent; color: var(--charcoal); box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: #fff; }

/* ------------------------------------------------------------ header -- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; gap: 2rem; padding: 22px var(--pad);
       background: var(--cream); border-bottom: 1px solid transparent; transition: padding 260ms var(--ease), border-color 260ms ease, box-shadow 260ms ease; }
.bar.is-tight { padding-block: 12px; border-bottom-color: rgba(25,23,25,.1); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.bar__mark img { display: block; height: 36px; width: auto; }
.nav { margin-inline-start: auto; }
.nav > ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.nav a, .nav button { position: relative; display: inline-flex; align-items: center; gap: .35rem; font: 600 1rem/1 var(--font); color: var(--charcoal);
                      text-decoration: none; padding-block: .6rem; background: none; border: 0; cursor: pointer; }
.nav > ul > li > a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--burgundy); transform: scale(0); transition: transform 220ms var(--ease); }
.nav > ul > li > a:hover::after, .nav a[aria-current="page"]::after { transform: scale(1); }
.nav button svg { width: 10px; height: 10px; transition: transform 220ms var(--ease); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; inset-inline-start: -1rem; min-width: 16rem; list-style: none; margin: 0; padding: .6rem; background: #fff; border-radius: 12px; box-shadow: var(--e3);
       opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 200ms ease, transform 260ms var(--ease), visibility 0s linear 260ms; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub:hover button svg, .has-sub.is-open button svg { transform: rotate(180deg); }
.sub a { display: block; padding: .7rem .9rem; border-radius: 8px; font-weight: 600; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--cream); color: var(--burgundy); }
.bar > .btn { min-height: 42px; }
.burger { display: none; position: relative; width: 48px; height: 48px; border: 0; background: var(--charcoal); cursor: pointer; z-index: 3; margin-inline-start: auto; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2.5px; background: var(--cream); transition: transform 320ms var(--ease), opacity 200ms ease; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; right: 21px; } .burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] { background: var(--burgundy); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 98; background: var(--charcoal); color: #fff; display: flex; flex-direction: column; padding: 96px var(--gutter) 2rem; overflow-y: auto;
        opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu ul { list-style: none; margin: auto 0; padding: 0; text-align: center; }
.menu a { display: block; padding: .6rem 0; color: #fff; text-decoration: none; font: 600 clamp(1.4rem, 1.1rem + 2vw, 1.9rem)/1.1 var(--font); }
.menu a i { font-style: normal; color: #e0647f; }
.menu .menu__sub a { font-size: 1.1rem; font-weight: 300; padding: .35rem 0; color: rgba(255,255,255,.78); }
.menu .menu__sub { margin: 0 0 .4rem; }
.menu__foot { padding-top: 1.6rem; display: grid; gap: 1rem; }
.menu__foot .btn { width: 100%; min-height: 58px; font-size: 1.2rem; }
.menu__foot .btn:hover { background: #fff; color: var(--charcoal); }
body.menu-open { overflow: hidden; }
body.menu-open .bar { background: var(--charcoal); border-bottom-color: transparent; box-shadow: none; }
body.menu-open .bar__mark img { content: url(assets/logo-m-dot-on-dark.svg); }

/* ------------------------------------------------------- page hero -- */
main { display: block; }
.phero { padding: calc(87px + clamp(2.5rem, 7vh, 5rem)) var(--pad) clamp(3.5rem, 9vh, 6rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.4rem; padding: 0; font: 600 .9rem/1.2 var(--font); color: var(--label); }
.crumbs li + li::before { content: "/"; margin-inline-end: .4rem; color: rgba(25,23,25,.3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--burgundy); }
.phero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); line-height: .98; }
.phero__lede { margin-top: 1.3rem; max-width: 34rem; font-size: clamp(1.15rem, 1rem + .55vw, 1.5rem); line-height: 1.5; color: #2c282b; }
.phero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.phero__img { margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; box-shadow: var(--e3); background: #1a1013; }
.phero__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------- sections -- */
.sec { position: relative; padding: clamp(4.5rem, 11vh, 8rem) var(--pad); margin-top: calc(var(--cut) * -1); border-top: var(--cut) solid transparent; }
.sec:nth-of-type(odd) { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.sec:nth-of-type(even) { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); }
.sec--white { background: #fff; } .sec--deep { background: var(--deep); } .sec--cream { background: var(--cream); }
.sec--dark { background: var(--charcoal); color: #fff; }
.sec__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vh, 3.4rem); }
.sec__head h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); }
.sec__head p { margin-top: 1rem; color: var(--soft); font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); }
.sec--dark .sec__head p { color: rgba(255,255,255,.72); }
.sec--dark .hl { color: #e0647f; }
.prose { max-width: 46rem; }
.prose p + p { margin-top: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.card { background: #fff; border-radius: 18px; padding: clamp(1.3rem, 2.4vw, 1.9rem); box-shadow: var(--e2); }
.sec--white .card { background: var(--cream); box-shadow: none; }
.card h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); }
.card h3 i { font-style: normal; color: var(--burgundy); }
.card p { margin-top: .6rem; color: var(--soft); line-height: 1.6; }
.card__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--burgundy); color: #fff; font: 900 1.05rem/1 var(--font); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--charcoal); padding-top: 1.2rem; }
.sec--dark .steps li { border-top-color: rgba(255,255,255,.3); }
.steps li::before { content: counter(s); display: block; font: 900 2.6rem/1 var(--font); color: var(--burgundy); margin-bottom: .6rem; }
.sec--dark .steps li::before { color: #e0647f; }
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: .5rem; color: var(--soft); }
.sec--dark .steps p { color: rgba(255,255,255,.72); }

.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.4rem); }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.fit li { position: relative; padding-inline-start: 1.8rem; }
.fit li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--burgundy); }

.faq { max-width: 52rem; display: grid; gap: .8rem; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--e1); }
.sec--white .faq details { background: var(--cream); box-shadow: none; }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font: 600 clamp(1.05rem, 1rem + .3vw, 1.25rem)/1.35 var(--font); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.8rem/1 var(--font); color: var(--burgundy); transition: transform 220ms var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--soft); }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); }
.cta-band p { margin: 1rem auto 0; max-width: 32rem; color: rgba(255,255,255,.75); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); }
.cta-band .phero__cta { justify-content: center; }
.cta-band .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--charcoal); }

.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.more a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; background: #fff; border-radius: 14px; text-decoration: none; font: 600 1.1rem/1.2 var(--font); box-shadow: var(--e1); transition: transform 240ms var(--ease), box-shadow 240ms ease; }
.more a:hover { transform: translateY(-3px); box-shadow: var(--e2); color: var(--burgundy); }

/* ------------------------------------------------------------ contact -- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ways { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.ways a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border-radius: 14px; box-shadow: var(--e1); text-decoration: none; transition: transform 240ms var(--ease), box-shadow 240ms ease; }
.ways a:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.ways svg { width: 40px; height: 40px; flex: none; }
.ways small { display: block; font: 600 .85rem/1.2 var(--font); color: var(--label); }
.ways strong { display: block; font: 600 1.15rem/1.3 var(--font); }
.brief { background: #fff; padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: 20px; box-shadow: var(--e3); }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: block; margin-top: 1.3rem; }
.field > span, .pick legend { display: block; font: 600 .95rem/1 var(--font); margin-bottom: .55rem; }
.field input, .field textarea { width: 100%; font: 300 1.1rem/1.4 var(--font); color: var(--charcoal); background: #F4EFEA; border: 1.5px solid rgba(25,23,25,.14); border-radius: 10px;
                                padding: .85rem 1rem; outline: none; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.field input::placeholder, .field textarea::placeholder { color: #9a8e8b; }
.field input:focus, .field textarea:focus { border-color: var(--burgundy); background: #fff; box-shadow: 0 0 0 3px rgba(141,38,62,.14); }
.field input[dir="ltr"] { text-align: right; }
.field textarea { min-height: 7rem; resize: vertical; }
.pick { border: 0; padding: 0; margin: 1.5rem 0 0; }
.pick legend { padding: 0; }
.pick__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick label span { display: inline-block; padding: .6rem .85rem; border: 1.5px solid var(--charcoal); border-radius: 10px; font: 600 .95rem/1 var(--font); transition: background 160ms ease, color 160ms ease; }
.pick input:checked + span { background: var(--charcoal); color: var(--cream); }
.pick input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.brief .btn { margin-top: 1.7rem; width: 100%; min-height: 58px; font-size: 1.2rem; }
.brief__note { margin-top: .9rem; font-size: .85rem; color: var(--soft); text-align: center; }
.brief__note a { color: var(--burgundy); }
.brief__status { margin-top: 1rem; min-height: 1.5em; font-weight: 600; color: var(--burgundy); text-align: center; }

/* ------------------------------------------------------------ footer -- */
.site-foot { position: relative; background: var(--charcoal); color: var(--cream); padding: clamp(5rem, 12vh, 8rem) 0 0; overflow: hidden;
             margin-top: calc(var(--cut) * -1); border-top: var(--cut) solid transparent; clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem); padding-inline: var(--pad); }
.site-foot__brand img { display: block; width: 200px; height: auto; }
.site-foot__brand p { margin-top: 1.4rem; color: rgba(246,241,236,.72); line-height: 1.65; max-width: 22rem; }
.site-foot__brand .btn { margin-top: 2rem; }
.site-foot__brand .btn:hover { background: var(--cream); color: var(--charcoal); }
.site-foot__copy { margin-top: 2.2rem !important; font-size: .9rem; color: rgba(246,241,236,.5) !important; }
.site-foot h2 { font: 600 1.05rem/1 var(--font); color: var(--cream); padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid rgba(246,241,236,.22); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.site-foot ul a { text-decoration: none; color: rgba(246,241,236,.72); transition: color 160ms ease; }
.site-foot ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }
.site-foot address { font-style: normal; }
.site-foot__sign { margin: clamp(5rem, 14vh, 9rem) 0 -.1em; font: 900 clamp(4.5rem, 1rem + 16vw, 18rem)/.78 var(--font); color: var(--cream); white-space: nowrap; text-align: center; padding-inline: var(--pad);
                   opacity: .55; -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 45%, transparent 92%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 45%, transparent 92%); }
.site-foot__sign i { font-style: normal; color: var(--burgundy); }

/* ------------------------------------------------------------ mobile -- */
@media (max-width: 960px) {
  .nav, .bar > .btn { display: none; }
  .burger { display: block; }
  .bar { padding-block: 16px; } .bar.is-tight { padding-block: 10px; }
  .bar__mark img { height: 30px; }
  .phero { grid-template-columns: 1fr; padding-top: calc(80px + 2rem); text-align: start; }
  .phero__img { aspect-ratio: 4 / 3; order: -1; }
  .fit, .contact { grid-template-columns: 1fr; }
  .brief__row { grid-template-columns: 1fr; gap: 0; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; row-gap: 2.6rem; }
  .site-foot__brand { grid-column: 1 / -1; }
  .site-foot__sign { font-size: 16vw; }
  :root { --cut: 9vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* legal pages */
.legal { max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter) !important; }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
.legal h1 i { font-style: normal; color: var(--burgundy); }
.legal .updated { margin: 1rem 0 2.5rem; color: var(--label); font-size: .95rem; }
.legal h2 { font: 600 1.35rem/1.3 var(--font); margin: 2.6rem 0 .6rem; }
.legal p, .legal li { color: #2c282b; }
.legal p + p { margin-top: .9rem; }
.legal ul { padding-inline-start: 1.3rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--burgundy); }
.legal mark { background: #f3dde2; color: var(--burgundy); padding: 0 .3em; font-weight: 600; }
.legal .box { background: #fff; padding: 1.2rem 1.4rem; margin: 1.6rem 0; border-radius: 14px; box-shadow: var(--e2); }

.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* mobile menu: services accordion */
.msub > button { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 0; background: none; border: 0; color: #fff; cursor: pointer; font: 600 clamp(1.4rem, 1.1rem + 2vw, 1.9rem)/1.1 var(--font); }
.msub > button i { font-style: normal; color: #e0647f; }
.msub__chev { width: 14px; height: 14px; transition: transform 240ms ease; }
.msub > button[aria-expanded="true"] .msub__chev { transform: rotate(180deg); }
.msub .menu__sub[hidden] { display: none; }

/* =================================================== consistency system ==
   Same tokens as the homepage: one title size, one subtitle, one card radius,
   one control radius, two button heights, one section rhythm. */
:root { --r-card: 16px; --r-ctl: 10px; --sec-pad: clamp(5rem, 13vh, 7.5rem); --head-gap: clamp(2.4rem, 5vh, 3.4rem);
        --h2: clamp(2.4rem, 1.2rem + 3.8vw, 5.5rem); }
.sec { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.sec__head { margin-bottom: var(--head-gap); }
.sec__head h2, .cta-band h2 { font-size: var(--h2); line-height: .98; }
.sec__head p, .cta-band p { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; max-width: 34rem; }
.card, .phero__img, .faq details, .more a, .ways a, .brief, .legal .box { border-radius: var(--r-card); }
.btn, .field input, .field textarea, .pick label span, .sub, .sub a { border-radius: var(--r-ctl); }
.btn { min-height: 48px; }
.brief .btn { min-height: 56px; }
.phero__cta { gap: 1rem; }
@media (max-width: 960px) {
  :root { --sec-pad: 5rem; --head-gap: 2rem; }
  /* centred section heads on mobile */
  .sec__head, .cta-band, .phero > div:first-child, .crumbs ol { text-align: center; }
  .sec__head p, .phero__lede { margin-inline: auto; }
  .crumbs ol, .phero__cta { justify-content: center; }
  .fit { text-align: start; }
  .fit .sec__head { text-align: center; }
  .contact > div:first-child { text-align: center; }
  .contact .ways { text-align: start; }
}
@media (max-width: 960px) {
  /* first mobile screen ends with both hero buttons visible */
  .phero__img { aspect-ratio: 16 / 10; }
  .phero { padding-top: calc(80px + 1rem); }
}
