/* Mad Digi Footer 1.0: every rule is scoped to .mdft. Values match maddigi.co. */

.mdft {
  --mdft-accent: #FCAF17;
  --mdft-accent-soft: #FFE3A3;
  --mdft-ink: #27272E;
  --mdft-ink-2: #303039;
  --mdft-ink-3: #3a3a45;
  --mdft-line: rgba(255, 255, 255, .1);
  --mdft-text: #c9c9d3;
  --mdft-muted: #a3a3b1;
  --mdft-white: #ffffff;
  --mdft-band: #ECF2F6;
  --mdft-body-ink: #525260;
  --mdft-error: #ffa898;
  --mdft-head: "DM Sans", sans-serif;
  --mdft-body: "Poppins", sans-serif;
  --mdft-ease: cubic-bezier(.2, .7, .2, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  margin: 0;
  padding: 0;
  background: var(--mdft-ink);
  color: var(--mdft-text);
  font-family: var(--mdft-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.025em;
  text-align: left;
}
.mdft *, .mdft *::before, .mdft *::after { box-sizing: border-box; }
.mdft :where(h2, p, ul, li, address, figure) { margin: 0; padding: 0; }
.mdft :where(ul) { list-style: none; }
.mdft :where(li)::before { content: none; }
.mdft a { text-decoration: none; }
.mdft address { font-style: normal; }
.mdft .mdft-i { width: 18px; height: 18px; flex: 0 0 auto; }
.mdft .mdft-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mdft a:focus-visible, .mdft button:focus-visible, .mdft input:focus-visible { outline: 3px solid var(--mdft-accent); outline-offset: 3px; }

/* Background detail: brand dot grid and a soft gold ring, kept behind the content */
.mdft::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(60% 70% at 100% 0%, #000, transparent 70%);
}
.mdft::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -180px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
  border: 80px solid rgba(252, 175, 23, .06);
}

.mdft .mdft__wrap { max-width: 1200px; margin-inline: auto; padding: clamp(64px, 8vw, 104px) clamp(16px, 4vw, 24px) 0; }

/* Buttons */
.mdft .mdft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 20px; font-family: var(--mdft-body); font-size: 1rem; font-weight: 500; line-height: 1.1;
  letter-spacing: -.025em; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.mdft .mdft-btn .mdft-i { transition: transform .2s; }
.mdft .mdft-btn:hover .mdft-i:last-child { transform: translateX(3px); }
.mdft .mdft-btn--gold { background: var(--mdft-accent); border-color: var(--mdft-accent); color: var(--mdft-ink); box-shadow: 0 16px 36px -18px rgba(252, 175, 23, .85); }
.mdft .mdft-btn--gold:hover { background: var(--mdft-white); border-color: var(--mdft-white); color: var(--mdft-ink); box-shadow: none; }
.mdft .mdft-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .26); color: var(--mdft-white); }
.mdft .mdft-btn--ghost:hover { background: var(--mdft-white); border-color: var(--mdft-white); color: var(--mdft-ink); }
.mdft .mdft-btn--ghost .mdft-i { color: var(--mdft-accent); }
.mdft .mdft-btn--ghost:hover .mdft-i { color: var(--mdft-ink); transform: none; }

/* ---------------- Top: call to action + newsletter ---------------- */
.mdft .mdft-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--mdft-line); }
.mdft .mdft-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .8125rem; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--mdft-text); }
.mdft .mdft-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--mdft-accent); }
.mdft .mdft-cta__title { max-width: 15ch; font-family: var(--mdft-head); font-size: clamp(2.25rem, 1.35rem + 3.2vw, 3.75rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; color: var(--mdft-white); text-wrap: balance; }
.mdft .mdft-cta__text { margin-top: 18px; max-width: 48ch; font-size: 1.0625rem; line-height: 1.7; }
.mdft .mdft-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.mdft .mdft-news { align-self: center; padding: clamp(24px, 3vw, 34px); border-radius: 30px; background: var(--mdft-ink-2); border: 1px solid var(--mdft-line); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8); }
.mdft .mdft-news__head { display: flex; align-items: center; gap: 14px; }
.mdft .mdft-news__icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; background: var(--mdft-accent); color: var(--mdft-ink); }
.mdft .mdft-news__icon .mdft-i { width: 22px; height: 22px; }
.mdft .mdft-news__title { font-family: var(--mdft-head); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; color: var(--mdft-white); }
.mdft .mdft-news__text { margin-top: 12px; font-size: .9375rem; line-height: 1.65; color: var(--mdft-muted); }
.mdft .mdft-news__form { margin-top: 20px; }
.mdft .mdft-news__legal { margin-top: 12px; font-size: .8125rem; color: var(--mdft-muted); }
.mdft .mdft-news__legal a { color: var(--mdft-text); text-decoration: underline; text-decoration-color: rgba(252, 175, 23, .7); text-underline-offset: 3px; }
.mdft .mdft-news__legal a:hover { color: var(--mdft-white); }
.mdft .mdft-news__legal a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.mdft .mdft-admin-note { align-self: center; padding: 16px 18px; border: 1px dashed rgba(252, 175, 23, .6); border-radius: 16px; font-size: .875rem; }

/* The Mailchimp for WordPress form: keep only its email field and button, styled to match */
.mdft .mdft-news form { margin: 0; }
.mdft .mdft-news .mc4wp-form-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.mdft .mdft-news .mc4wp-form-fields div { display: contents; }
.mdft .mdft-news .mc4wp-form-fields :is(h1, h2, h3, h4, h5, h6, p) { display: none; }
.mdft .mdft-news .mc4wp-form-fields label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mdft .mdft-news input[type="email"],
.mdft .mdft-news input[type="text"]:not([name="_mc4wp_honeypot"]) {
  flex: 1 1 220px; width: auto; min-width: 0; height: 56px; margin: 0; padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: var(--mdft-ink); color: var(--mdft-white);
  font-family: var(--mdft-body); font-size: 1rem; letter-spacing: -.02em; box-shadow: none; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.mdft .mdft-news input::placeholder { color: #8f8f9d; opacity: 1; }
.mdft .mdft-news input[type="email"]:focus { border-color: var(--mdft-accent); box-shadow: 0 0 0 4px rgba(252, 175, 23, .22); }
.mdft .mdft-news input[type="email"][aria-invalid="true"] { border-color: var(--mdft-error); box-shadow: 0 0 0 4px rgba(255, 168, 152, .16); }
.mdft .mdft-news :is(input[type="submit"], button[type="submit"], button:not([type])) {
  flex: 0 0 auto; height: 56px; margin: 0; padding: 0 26px; border: 0; border-radius: 18px;
  background: var(--mdft-accent); color: var(--mdft-ink); font-family: var(--mdft-body); font-size: 1rem; font-weight: 500;
  letter-spacing: -.02em; text-transform: none; line-height: 1; cursor: pointer; box-shadow: none; transition: background-color .2s, color .2s, opacity .2s;
}
.mdft .mdft-news :is(input[type="submit"], button[type="submit"]):hover { background: var(--mdft-white); color: var(--mdft-ink); }
.mdft .mdft-news form[aria-busy="true"] :is(input[type="submit"], button[type="submit"]) { opacity: .7; cursor: progress; }
.mdft .mdft-news .mc4wp-response .mc4wp-alert { margin-top: 12px; font-size: .875rem; }
.mdft .mdft-news .mc4wp-response .mc4wp-alert p { display: block; margin: 0; }
.mdft .mdft-news .mc4wp-success { color: var(--mdft-accent-soft); }
.mdft .mdft-news .mc4wp-error { color: var(--mdft-error); }
.mdft.is-js .mdft-news .mc4wp-response { display: none; }

.mdft .mdft-news__status { display: none; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: .9375rem; line-height: 1.5; }
.mdft .mdft-news__status.is-shown { display: flex; animation: mdft-in .3s var(--mdft-ease) both; }
.mdft .mdft-news__status::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: center / 12px no-repeat; }
.mdft .mdft-news__status.is-success { background: rgba(252, 175, 23, .12); color: var(--mdft-white); }
.mdft .mdft-news__status.is-success::before { background-color: var(--mdft-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327272E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.mdft .mdft-news__status.is-notice { background: rgba(255, 255, 255, .06); color: var(--mdft-white); }
.mdft .mdft-news__status.is-notice::before { background-color: var(--mdft-text); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327272E' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }
.mdft .mdft-news__status.is-error { background: rgba(255, 168, 152, .1); color: var(--mdft-error); }
.mdft .mdft-news__status.is-error::before { background-color: var(--mdft-error); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327272E' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E"); }
.mdft .mdft-news__status.is-loading { display: flex; color: var(--mdft-muted); padding-left: 0; }
.mdft .mdft-news__status.is-loading::before { border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--mdft-accent); background: none; animation: mdft-spin .8s linear infinite; }
@keyframes mdft-spin { to { transform: rotate(360deg); } }
@keyframes mdft-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .mdft .mdft-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}

/* ---------------- Main: brand, link columns, contact ---------------- */
.mdft .mdft-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 32px; padding-block: clamp(48px, 6vw, 72px); }

.mdft .mdft-brand { align-self: start; padding: 26px; border-radius: 30px; background: var(--mdft-white); color: var(--mdft-body-ink); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); }
.mdft .mdft-brand__logo { display: inline-block; border-radius: 12px; }
.mdft .mdft-brand__img { display: block; width: 148px; max-width: 100%; height: auto; }
.mdft .mdft-brand__text { margin-top: 14px; font-size: .9375rem; line-height: 1.7; color: var(--mdft-body-ink); }
.mdft .mdft-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mdft .mdft-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mdft-band); color: var(--mdft-ink);
  transition: background-color .2s, color .2s, transform .25s var(--mdft-ease);
}
.mdft .mdft-social a:hover { background: var(--mdft-ink); color: var(--mdft-accent); transform: translateY(-3px); }
.mdft .mdft-social .mdft-i { width: 20px; height: 20px; }
.mdft .mdft-brand a:focus-visible { outline-color: var(--mdft-ink); }

.mdft .mdft-col__title { margin-bottom: 18px; font-family: var(--mdft-head); font-size: 1.125rem; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--mdft-white); }
.mdft .mdft-col__label { display: inline-flex; align-items: center; gap: 10px; }
.mdft .mdft-col__label::after, .mdft .mdft-col__title--static::after { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--mdft-accent); }
.mdft .mdft-col__title--static { display: flex; align-items: center; gap: 10px; }
.mdft .mdft-col__toggle { display: none; }
.mdft .mdft-col__list { display: grid; gap: 2px; }
.mdft .mdft-link {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0;
  color: var(--mdft-text); font-size: .9375rem; line-height: 1.4; transition: color .2s, transform .25s var(--mdft-ease);
}
.mdft .mdft-link:not(.mdft-link--svc)::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--mdft-accent); transition: width .25s var(--mdft-ease); }
.mdft .mdft-link:not(.mdft-link--svc) { gap: 0; }
.mdft .mdft-link:not(.mdft-link--svc):hover::before { width: 12px; margin-right: 8px; }
.mdft .mdft-link:hover { color: var(--mdft-white); }
.mdft .mdft-link__icon { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--mdft-accent); transition: background-color .2s, color .2s; }
.mdft .mdft-link__icon .mdft-i { width: 17px; height: 17px; }
.mdft .mdft-link--svc:hover .mdft-link__icon { background: var(--mdft-accent); color: var(--mdft-ink); }

.mdft .mdft-contact__list { display: grid; gap: 8px; }
.mdft .mdft-contact__list a { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; color: var(--mdft-white); font-size: .9375rem; line-height: 1.5; word-break: break-word; }
.mdft .mdft-contact__icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--mdft-ink-2); border: 1px solid var(--mdft-line); color: var(--mdft-accent); transition: background-color .2s, color .2s, border-color .2s; }
.mdft .mdft-contact__list a:hover .mdft-contact__icon { background: var(--mdft-accent); border-color: var(--mdft-accent); color: var(--mdft-ink); }
.mdft .mdft-contact__list a:hover { color: var(--mdft-accent-soft); }
.mdft .mdft-contact__label { display: block; font-size: .8125rem; color: var(--mdft-muted); }
.mdft .mdft-contact__list address { color: inherit; }
.mdft .mdft-contact__btn { margin-top: 20px; }

/* Desktop: brand card + three link columns + contact */
@media (min-width: 1100px) {
  .mdft .mdft-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.05fr) minmax(0, .85fr) minmax(0, 1.25fr); gap: 40px; }
}
/* Tablet: brand card across the top, three columns, contact underneath */
@media (min-width: 768px) and (max-width: 1099px) {
  .mdft .mdft-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mdft .mdft-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; }
  .mdft .mdft-brand__text { margin: 0; }
  .mdft .mdft-social { margin: 0; }
  .mdft .mdft-contact { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 32px; padding-top: 32px; border-top: 1px solid var(--mdft-line); }
  .mdft .mdft-contact .mdft-col__title { grid-column: 1 / -1; }
  .mdft .mdft-contact__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  .mdft .mdft-contact__btn { margin: 0; }
}

/* Mobile: link groups become accordions */
@media (max-width: 767px) {
  .mdft .mdft-main { gap: 0; }
  .mdft .mdft-brand { margin-bottom: 28px; }
  .mdft .mdft-col { border-top: 1px solid var(--mdft-line); }
  .mdft .mdft-col + .mdft-contact, .mdft .mdft-contact { padding-top: 28px; border-top: 1px solid var(--mdft-line); }
  .mdft.is-js .mdft-col .mdft-col__title { margin: 0; }
  .mdft.is-js .mdft-col__label { display: none; }
  .mdft.is-js .mdft-col__toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--mdft-white);
    font-family: var(--mdft-head); font-size: 1.125rem; font-weight: 500; letter-spacing: -.02em; text-align: left; text-transform: none; cursor: pointer;
  }
  .mdft.is-js .mdft-col__toggle:hover, .mdft.is-js .mdft-col__toggle:focus { background: none; color: var(--mdft-white); }
  .mdft.is-js .mdft-col__toggle .mdft-i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--mdft-ink-2); color: var(--mdft-accent); transition: transform .3s var(--mdft-ease), background-color .2s; }
  .mdft.is-js .mdft-col.is-open .mdft-col__toggle .mdft-i { transform: rotate(180deg); background: var(--mdft-accent); color: var(--mdft-ink); }
  .mdft.is-js .mdft-col:not(.is-open) .mdft-col__list { display: none; }
  .mdft.is-js .mdft-col.is-open .mdft-col__list { padding-bottom: 18px; animation: mdft-in .3s var(--mdft-ease) both; }
  .mdft .mdft-link { min-height: 44px; }
  .mdft .mdft-col:not(.mdft-col--services) .mdft-col__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .mdft:not(.is-js) .mdft-col { padding-top: 24px; }
  .mdft .mdft-contact__btn, .mdft .mdft-cta__actions .mdft-btn { width: 100%; white-space: normal; }
  .mdft .mdft-news .mc4wp-form-fields :is(input[type="submit"], button[type="submit"]) { flex: 1 1 100%; }
  .mdft .mdft-bar__links a { min-height: 44px; }
}

/* ---------------- Bottom bar ---------------- */
.mdft .mdft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 24px 0 28px; border-top: 1px solid var(--mdft-line); font-size: .875rem; color: var(--mdft-muted); }
.mdft .mdft-bar__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mdft .mdft-bar__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mdft-text); transition: color .2s; }
.mdft .mdft-bar__links a:hover { color: var(--mdft-accent); }
.mdft .mdft-top-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--mdft-white); font-weight: 500; }
.mdft .mdft-top-link__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--mdft-accent); color: var(--mdft-ink); transition: transform .25s var(--mdft-ease), background-color .2s; }
.mdft .mdft-top-link:hover .mdft-top-link__icon { transform: translateY(-3px); background: var(--mdft-white); }
@media (min-width: 900px) { .mdft .mdft-bar__copy { order: 0; } .mdft .mdft-bar__links { margin-right: auto; margin-left: 28px; } }
@media (max-width: 599px) {
  .mdft .mdft-bar { flex-direction: column; align-items: flex-start; }
  .mdft .mdft-top-link { order: -1; align-self: stretch; justify-content: space-between; padding: 0 0 14px; border-bottom: 1px solid var(--mdft-line); }
}

@media (prefers-reduced-motion: reduce) {
  .mdft *, .mdft *::before, .mdft *::after { transition: none !important; animation: none !important; }
}
