/* ============================================================
   ÉKO '77 — EVENT CATERING
   Only what the shared design system does not already carry.
   Loaded after assets/css/style.css.
   ============================================================ */

/* ------------------------------------------------------------
   PAGE HERO — one screen, then straight into the offer
   ------------------------------------------------------------ */

.ec-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  min-height: clamp(460px, 78vh, 660px);
  display: flex;
  align-items: flex-end;
}
.ec-hero__bg { position: absolute; inset: -10% 0; }
.ec-hero__bg > img { width: 100%; height: 100%; object-fit: cover; }
.ec-hero__bg::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,7,5,.72) 0%, rgba(8,7,5,.18) 40%, rgba(8,7,5,.86) 100%),
    linear-gradient(78deg, rgba(8,7,5,.68) 0%, rgba(8,7,5,.22) 62%, rgba(8,7,5,0) 100%);
}
.ec-hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 148px clamp(20px, 4vw, 56px) clamp(44px, 6vw, 76px);
}
.ec-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.1;
  font-size: clamp(31px, 5.4vw, 66px);
  margin: 16px 0 0;
  max-width: 13ch;
  text-shadow: 0 2px 26px rgba(0,0,0,.45);
}
.ec-hero__lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.52;
  color: rgba(255,255,255,.82);
  margin: 18px 0 0;
  max-width: 44ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.ec-hero .btn-row { margin-top: clamp(24px, 3vw, 34px); }

/* ------------------------------------------------------------
   PACKAGES
   ------------------------------------------------------------ */

.ec-open { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 72px); align-items: end; }
.ec-open__lede {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
  max-width: 52ch;
}
.ec-open .heading { margin-top: 12px; }

.ec-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(30px, 4vw, 46px);
}
.ec-tier {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: border-color .3s ease;
}
.ec-tier:hover { border-color: var(--ink); }
.ec-tier__shot { display: block; overflow: hidden; }
.ec-tier__shot img {
  width: 100%;
  aspect-ratio: 368 / 300;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.ec-tier:hover .ec-tier__shot img { transform: scale(1.045); }
.ec-tier__body {
  padding: clamp(18px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}
.ec-tier__name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 6px 0 0;
}
.ec-tier__cap {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-2);
  margin: 8px 0 0;
}
.ec-tier__cta { margin-top: auto; padding-top: clamp(18px, 2vw, 22px); }

/* three plain facts, no card, no repeat */
.ec-facts {
  list-style: none;
  margin: clamp(30px, 4vw, 48px) 0 0;
  padding: clamp(18px, 2.2vw, 24px) 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: space-between;
  gap: 18px clamp(20px, 4vw, 56px);
}
.ec-facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.05;
  color: var(--green-deep);
}
.ec-facts span {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

/* ------------------------------------------------------------
   THE FORM — the whole point of the page
   ------------------------------------------------------------ */

.ec-quote {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  color-scheme: dark;
}
/* the adire-like motif the old "book an event" band carried, kept as a
   texture and pulled back where the form sits so nothing fights the fields */
.ec-quote::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../img/event-catering-pattern.png");
  background-size: 250px 250px;
  opacity: .026;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.16) 28%, rgba(0,0,0,.16) 72%, #000 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.16) 28%, rgba(0,0,0,.16) 72%, #000 100%);
}
.ec-quote__inner {
  position: relative; z-index: 1;
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(56px, 7vw, 104px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}

/* the two event pictures that used to sit either side of the old contact block */
.ec-quote__shots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  align-content: center;
}
.ec-quote__shots .plate:nth-of-type(1) { grid-column: 1 / 4; }
.ec-quote__shots .plate:nth-of-type(2) { grid-column: 4 / 6; margin-top: clamp(24px, 4vw, 60px); }
.ec-quote__shots .plate {
  background: rgba(243,238,227,.9);
  border-color: rgba(255,255,255,.5);
}
.ec-quote__shots .plate img { aspect-ratio: 490 / 661; }
.ec-quote__shots .caption { grid-column: 1 / -1; color: rgba(255,255,255,.62); }
.ec-quote__shots .caption b { color: rgba(255,255,255,.9); }

.ec-form-card {
  background: rgba(12,11,9,.7);
  border: 1px solid rgba(255,255,255,.22);
  outline: 1px solid rgba(255,255,255,.14);
  outline-offset: 5px;
  padding: clamp(22px, 3vw, 44px);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.ec-form-card .label { color: #CDB574; }
.ec-form-card .heading { color: #fff; margin-top: 10px; }
.ec-form-card__sub {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.68);
  margin: 12px 0 0;
  max-width: 46ch;
}

/* the chip that says which package button brought you here */
.ec-chip {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 11px 8px 11px 16px;
  border: 1px solid rgba(0,131,78,.55);
  background: rgba(0,131,78,.16);
}
.ec-chip.is-on { display: flex; }
.ec-chip p {
  margin: 0;
  flex: 1;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #cfe9dc;
}
.ec-chip button {
  background: none;
  border: 0;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-size: 17px; line-height: 1;
  font-family: var(--sans);
  transition: color .25s ease;
}
.ec-chip button:hover { color: #fff; }

.ec-form { margin-top: clamp(22px, 2.6vw, 30px); }
.ec-fieldset { border: 0; margin: 0; padding: 0; }
.ec-fieldset + .ec-fieldset { margin-top: clamp(24px, 2.8vw, 34px); padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid rgba(255,255,255,.15); }
.ec-fieldset > legend {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  padding: 0;
  margin-bottom: 4px;
}

.ec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px clamp(16px, 2.4vw, 28px); }
.ec-span { grid-column: 1 / -1; }

.ec-field { display: block; padding-top: 16px; }
.ec-field > .ec-lab {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 7px;
}
.ec-field .req { color: var(--brass); margin-left: 3px; }

.ec-field input,
.ec-field select,
.ec-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.32);
  padding: 12px 2px;
  min-height: 46px;
  border-radius: 0;
  transition: border-color .25s ease, background .25s ease;
}
.ec-field input::placeholder { color: rgba(255,255,255,.36); }
.ec-field input:hover, .ec-field select:hover { border-bottom-color: rgba(255,255,255,.6); }
.ec-field input:focus, .ec-field select:focus {
  outline: 0;
  border-bottom-color: #4bbd8b;
  background: rgba(255,255,255,.05);
}
.ec-field input:user-invalid { border-bottom-color: #d98a7a; }
/* Safari/Chrome date & number chrome */
.ec-field input[type="date"] { -webkit-appearance: none; appearance: none; }
.ec-field input[type="number"] { -moz-appearance: textfield; }
.ec-field input[type="number"]::-webkit-outer-spin-button,
.ec-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* segmented choices — the three drop-downs of the old form, opened out */
.ec-choice { padding-top: 18px; }
.ec-choice > .ec-lab {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 9px;
}
.ec-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-seg input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.ec-seg label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.28);
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.ec-seg label:hover { border-color: rgba(255,255,255,.65); color: #fff; }
.ec-seg input:checked + label {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.ec-seg input:focus-visible + label { outline: 2px solid #4bbd8b; outline-offset: 2px; }

.ec-submit { margin-top: clamp(24px, 3vw, 34px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.ec-submit .btn { padding: 16px 34px; }
.ec-submit__note {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .03em;
  color: rgba(255,255,255,.5);
  margin: 0;
  max-width: 34ch;
}

/* the sent state */
.ec-sent { display: none; padding: clamp(10px, 2vw, 26px) 0 6px; }
.ec-sent.is-on { display: block; }
.ec-sent .heading { color: #fff; }
.ec-sent p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  margin: 14px 0 0;
  max-width: 46ch;
}
.ec-sent__tick {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--green);
  color: #6ddba4;
  margin-bottom: 20px;
}
.ec-sent__tick svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ec-sent .btn { margin-top: 24px; }

/* ------------------------------------------------------------
   CLOSING — personalised menus
   ------------------------------------------------------------ */

.ec-close__head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 72px);
  align-items: start;
}
.ec-close__head .heading { margin-top: 12px; }
.ec-close__head p {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
}
.ec-close__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: clamp(20px, 2.4vw, 26px) 0 0 !important;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--rule-soft);
}
.ec-close .arrow-link { margin-top: clamp(18px, 2.2vw, 24px); }

.ec-plates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(34px, 4.5vw, 56px);
}
.ec-plates .plate img { aspect-ratio: 690 / 450; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1080px) {
  .ec-open,
  .ec-close__head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .ec-quote__inner { grid-template-columns: 1fr; }
  /* the pictures are decoration; on a phone the form comes first */
  .ec-quote__shots { display: none; }
  .ec-close__head p, .ec-close__note { max-width: 62ch; }
}

@media (max-width: 900px) {
  .ec-hero__inner { padding-top: 128px; }
  .ec-open__lede, .ec-close__head p, .ec-close__note { text-align: left; }
  .ec-field input, .ec-field select { padding: 14px 2px; min-height: 50px; }
  .ec-submit .btn { padding: 17px 34px; width: 100%; text-align: center; }
  .ec-submit__note { max-width: none; }
  .ec-close .arrow-link { padding-block: 15px; }
}

@media (max-width: 760px) {
  .ec-tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 20px; }
  .ec-tier { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
  .ec-tier__shot img { height: 100%; aspect-ratio: auto; min-height: 148px; }
  .ec-tier__body { padding: 18px; }
  .ec-tier__name { font-size: 21px; }
  .ec-tier .btn { padding: 14px 22px; font-size: 12px; }
  .ec-tier__cta { margin-top: 16px; }
  .ec-plates { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .ec-hero { min-height: clamp(420px, 74vh, 560px); }
  .ec-facts { grid-template-columns: 1fr; gap: 16px; }
  .ec-facts strong { font-size: 25px; }
  /* date + head-count and the two yes/no pairs stay side by side —
     the form has to keep reading short on a phone */
  .ec-grid { gap: 2px 14px; }
}

@media (max-width: 380px) {
  .ec-grid { grid-template-columns: 1fr; }
  .ec-tier { grid-template-columns: 1fr; }
  .ec-tier__shot img { aspect-ratio: 368 / 220; min-height: 0; }
  .ec-seg label { padding: 11px 16px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-tier__shot img { transition: none; }
}

/* выбор пакета внутри формы: тот же вид, что у остальных переключателей,
   но в три колонки и с подписью на сколько гостей */
.ec-pkg { margin-bottom: 6px; }
.ec-seg--pkg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ec-seg--pkg label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 10px;
  min-height: 44px;
  text-align: center;
}
.ec-seg--pkg label b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .01em;
}
.ec-seg--pkg label i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .62;
}
@media (max-width: 560px) {
  .ec-seg--pkg { grid-template-columns: 1fr; }
  .ec-seg--pkg label { flex-direction: row; justify-content: space-between; text-align: left; }
}
