/* ==========================================================================
   Mill Town Flooring — bespoke theme
   Palette mirrors the live Neve site: bronze #b08244, dark-brown #301615,
   gold #edb31e, cream #f7e8bd. Type: Pelago (live) → Mulish (closest free).
   All structural classes are prefixed `mtf-`. Theme CSS is unlayered so it
   always beats @layer framework — no !important needed.
   ========================================================================== */

:root {
  /* --- Override framework fallback-section vars so they use OUR palette --- */
  --color-primary:   #b08244;
  --color-accent:    #edb31e;
  --color-secondary: #301615;
  --color-dark:      #301615;
  --color-dark-grey: #301615;

  /* --- Brand tokens --- */
  --mtf-primary:   #b08244;   /* bronze */
  --mtf-primary-d: #8a6433;   /* darker bronze (hover) */
  --mtf-gold:      #edb31e;
  --mtf-cream:     #f7e8bd;
  --mtf-dark:      #301615;    /* dark brown */
  --mtf-dark-2:    #43211d;
  --mtf-light:     #f8f8f8;
  --mtf-text:      #2c2c2c;
  --mtf-muted:     #5a5a5a;
  --mtf-white:     #ffffff;
  --mtf-border:    #e7e1d6;

  /* --- Type (mirrors Neve scale) --- */
  --font-body:    'Mulish', system-ui, Arial, sans-serif;
  --font-heading: 'Mulish', system-ui, Arial, sans-serif;
  --mtf-container: 1200px;
}

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--mtf-text);
  background: var(--mtf-white);
  margin: 0;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--mtf-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(39px, 6vw, 70px); line-height: 1.2; }
h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.3; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
p  { margin: 0 0 1rem; }
a  { color: var(--mtf-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.mtf-container { max-width: var(--mtf-container); margin: 0 auto; padding: 0 24px; }
.mtf-section { padding: 84px 0; }
.mtf-section--tight { padding: 56px 0; }
.mtf-light { background: var(--mtf-light); }
.mtf-cream { background: var(--mtf-cream); }
.mtf-dark  { background: var(--mtf-dark); color: var(--mtf-white); }
.mtf-dark h1, .mtf-dark h2, .mtf-dark h3 { color: var(--mtf-white); }
.mtf-eyebrow { color: var(--mtf-primary); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }
.mtf-lead { font-size: 1.05rem; color: var(--mtf-muted); }
.mtf-center { text-align: center; }
.mtf-section__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }

/* --- Buttons ------------------------------------------------------------- */
.mtf-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 30px; border-radius: 4px; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  border: 2px solid transparent;
}
.mtf-btn--primary { background: var(--mtf-primary); color: #fff; }
.mtf-btn--primary:hover { background: var(--mtf-primary-d); transform: translateY(-2px); }
.mtf-btn--gold { background: var(--mtf-gold); color: var(--mtf-dark); }
.mtf-btn--gold:hover { filter: brightness(1.05); transform: translateY(-2px); }
.mtf-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.mtf-btn--ghost:hover { background: #fff; color: var(--mtf-dark); }
.mtf-btn--outline { background: transparent; color: var(--mtf-primary); border-color: var(--mtf-primary); }
.mtf-btn--outline:hover { background: var(--mtf-primary); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.mtf-topbar { background: var(--mtf-dark); color: var(--mtf-cream); font-size: 14px; }
.mtf-topbar .mtf-container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.mtf-topbar a { color: var(--mtf-cream); }
.mtf-topbar__loc { opacity: .9; }
.mtf-topbar__phone { font-weight: 700; }

#mtf-main-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  border-bottom: 1px solid var(--mtf-border);
  transition: box-shadow .2s ease;
}
#mtf-main-header.mtf-scrolled { box-shadow: 0 6px 22px rgba(48,22,21,.10); }
.mtf-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.mtf-logo img { height: 52px; width: auto; }
.mtf-logo .mtf-logo__text { font-weight: 800; font-size: 22px; color: var(--mtf-dark); letter-spacing: .01em; }

.mtf-nav { display: flex; align-items: center; gap: 26px; }
.mtf-nav a { color: var(--mtf-dark); font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; }
.mtf-nav a:hover { color: var(--mtf-primary); }
.mtf-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--mtf-primary); transition: width .2s ease; }
.mtf-nav a:hover::after { width: 100%; }
.mtf-header__cta { display: flex; align-items: center; gap: 14px; }

.mtf-burger { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 8px; }
.mtf-burger span { display: block; height: 2px; background: var(--mtf-dark); margin: 5px 0; transition: .25s; }

/* Mobile menu overlay */
.mtf-mobile { position: fixed; inset: 0; background: var(--mtf-dark); color: #fff; z-index: 1200; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; padding: 88px 32px 32px; gap: 6px; }
.mtf-mobile.is-open { transform: translateX(0); }
.mtf-mobile a { color: #fff; font-size: 20px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mtf-mobile__close { position: absolute; top: 24px; right: 24px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* ==========================================================================
   HERO
   ========================================================================== */
.mtf-hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; background: var(--mtf-dark); overflow: hidden; }
.mtf-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mtf-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(48,22,21,.86) 0%, rgba(48,22,21,.62) 55%, rgba(48,22,21,.35) 100%); }
.mtf-hero__inner { position: relative; z-index: 2; max-width: 720px; padding: 80px 0; }
.mtf-hero h1 { color: #fff; margin-bottom: .35em; }
.mtf-hero__sub { font-size: 1.25rem; color: #f3e7d2; margin-bottom: 2rem; max-width: 560px; }
.mtf-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ==========================================================================
   INTRO / ABOUT / OWNER (image + text split)
   ========================================================================== */
.mtf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mtf-split--reverse .mtf-split__media { order: 2; }
.mtf-split__media img { width: 100%; border-radius: 8px; box-shadow: 0 24px 50px rgba(48,22,21,.18); aspect-ratio: 4/3; object-fit: cover; }
.mtf-split__body h2 { margin-bottom: .4em; }

/* ==========================================================================
   BRANDS STRIP
   ========================================================================== */
.mtf-brands__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; }
.mtf-brands__logos img { height: 56px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .72; transition: .2s; }
.mtf-brands__logos img:hover { filter: none; opacity: 1; }

/* ==========================================================================
   FEATURED WORK (service cards)
   ========================================================================== */
.mtf-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.mtf-card { background: #fff; border: 1px solid var(--mtf-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.mtf-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(48,22,21,.14); }
.mtf-card__img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.mtf-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mtf-card__body h3 { color: var(--mtf-dark); margin: 0; }
.mtf-card__body p { color: var(--mtf-muted); font-size: .96rem; margin: 0; flex: 1; }
.mtf-card__link { color: var(--mtf-primary); font-weight: 700; font-size: .9rem; }

/* ==========================================================================
   SHOWROOM GALLERY
   ========================================================================== */
.mtf-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mtf-gallery img { aspect-ratio: 1/1; object-fit: cover; width: 100%; border-radius: 6px; }
.mtf-showroom__addr { margin-top: 22px; font-weight: 600; }

/* ==========================================================================
   SERVICE AREA / MAP
   ========================================================================== */
.mtf-map { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; align-items: stretch; }
.mtf-map__body { padding: 64px 56px; }
.mtf-map iframe, .mtf-map__embed { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.mtf-cta { background: var(--mtf-primary); color: #fff; text-align: center; }
.mtf-cta h2 { color: #fff; }
.mtf-cta p { color: #fbeede; max-width: 620px; margin: 0 auto 28px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.mtf-footer { background: var(--mtf-dark); color: #d9c9b6; padding: 64px 0 0; }
.mtf-footer a { color: #d9c9b6; }
.mtf-footer a:hover { color: #fff; }
.mtf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.mtf-footer__logo { height: 48px; margin-bottom: 18px; }
.mtf-footer h4 { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.mtf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mtf-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .mtf-cards { grid-template-columns: repeat(2, 1fr); }
  .mtf-gallery { grid-template-columns: repeat(3, 1fr); }
  .mtf-nav, .mtf-header__cta .mtf-btn { display: none; }
  .mtf-burger { display: block; }
  .mtf-map { grid-template-columns: 1fr; }
  .mtf-map iframe, .mtf-map__embed { min-height: 320px; }
}
@media (max-width: 760px) {
  .mtf-section { padding: 56px 0; }
  .mtf-split { grid-template-columns: 1fr; gap: 32px; }
  .mtf-split--reverse .mtf-split__media { order: 0; }
  .mtf-cards { grid-template-columns: 1fr; }
  .mtf-gallery { grid-template-columns: repeat(2, 1fr); }
  .mtf-footer__grid { grid-template-columns: 1fr; }
  .mtf-topbar__loc { display: none; }
  .mtf-hero { min-height: 70vh; }
}

/* ==========================================================================
   INNER PAGES (service pages, About, etc.)
   ========================================================================== */
.inner-hero { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; background: var(--mtf-dark); overflow: hidden; }
.inner-hero-banner { position: absolute; inset: 0; background-size: cover; background-position: center; }
.inner-hero::after, .inner-hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(48,22,21,.72), rgba(48,22,21,.82)); }
.inner-hero-overlay { position: relative; z-index: 2; text-align: center; padding: 40px 24px; }
.inner-hero-overlay h1 { color: #fff; margin: 0; }
.inner-content { max-width: 1000px; margin: 0 auto; padding: 72px 24px; font-size: 1.06rem; }
.inner-content h2 { margin-top: 0; }
.inner-content h3 { margin: 1.8em 0 .5em; color: var(--mtf-primary); }
.inner-content ul { padding-left: 1.2em; margin: 0 0 1.2rem; }
.inner-content ul li { margin-bottom: .5rem; }
.inner-content > section { margin: 0; }

.mtf-page-narrow { max-width: 820px; }
.mtf-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mtf-feature-grid h3 { margin-top: 0; }
.mtf-feature-grid p { color: var(--mtf-muted); font-size: .98rem; }
.mtf-page-cta { margin-top: 8px; }
@media (max-width: 860px) { .mtf-feature-grid { grid-template-columns: 1fr; gap: 20px; } .inner-content { padding: 52px 22px; } }

/* ==========================================================================
   FORMS (ContactForm component .cf-input) + Contact page
   ========================================================================== */
.cf-input {
  width: 100%; padding: 13px 16px; font-size: 1rem; font-family: var(--font-body);
  color: var(--mtf-text); background: #fff; border: 1px solid var(--mtf-border);
  border-radius: 4px; transition: border-color .15s ease, box-shadow .15s ease;
}
.cf-input:focus { outline: none; border-color: var(--mtf-primary); box-shadow: 0 0 0 3px rgba(176,130,68,.18); }
form#contact-submit-form button[type="submit"], .cf-submit, form .btn-primary {
  background: var(--mtf-primary); color: #fff; font-weight: 700; border: 0;
  padding: 15px 32px; border-radius: 4px; cursor: pointer; font-size: 1rem;
}
form#contact-submit-form button[type="submit"]:hover { background: var(--mtf-primary-d); }

/* Two-column contact: info card + form (enhances built-in /contact page) */
.inner-content .contact-form-wrap, .mtf-contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.mtf-info-card { background: var(--mtf-cream); border-radius: 8px; padding: 28px 30px; }
.mtf-info-card h3 { color: var(--mtf-dark); margin: 0 0 6px; }
.mtf-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 8px 0 26px; }
.mtf-process__step { background: #fff; border: 1px solid var(--mtf-border); border-radius: 8px; padding: 24px; }
.mtf-process__num { width: 40px; height: 40px; border-radius: 50%; background: var(--mtf-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
@media (max-width: 760px) { .mtf-process { grid-template-columns: 1fr; } }
