/* ==========================================================================
   MRM BANGIS SEWINGS LTD - public website
   Mobile-first. No external fonts or frameworks.
   ========================================================================== */

:root {
  --blue: #0137f7;
  --blue-deep: #0128b8;
  --blue-tint: #eef2ff;
  --navy: #0a1128;
  --navy-soft: #121c3d;
  --gold: #b8913c;        /* decorative only: lines, borders */
  --gold-text: #8a6a1f;   /* text on light backgrounds (AA contrast) */
  --gold-light: #e0c27a;  /* text/icons on dark backgrounds */
  --ink: #10162f;
  --muted: #566078;
  --line: #e1e6f3;
  --surface: #f5f7fc;
  --white: #fff;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius: 6px;
  --shadow: 0 10px 30px rgba(10, 17, 40, 0.10);
  --header-h: 68px;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--gold-light); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em; border-radius: var(--radius);
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 44px; padding: .5em 1.1em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.is-placeholder { border-style: dashed !important; opacity: .65; cursor: not-allowed; }
.btn.is-placeholder:hover { background: transparent; color: inherit; }
.btn-primary.is-placeholder { background: var(--blue-tint); color: var(--blue); }

/* ---------- Header ---------- */
.preview-banner { background: var(--navy); color: #fff; font-size: .85rem; padding: 8px 20px; text-align: center; }
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-top: 2px; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--navy); font-weight: 600;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.no-js .site-nav { display: block; position: static; box-shadow: none; padding: 0 0 12px; }
.no-js .menu-toggle { display: none; }
.nav-list a { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--blue); }
.nav-actions { display: grid; gap: 10px; margin-top: 16px; }
.nav-actions:empty { display: none; }

@media (min-width: 1280px) {
  .brand-name { white-space: nowrap; }
  .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open, .no-js .site-nav {
    display: flex; align-items: center; gap: 20px; position: static; padding: 0; box-shadow: none; border: 0; max-height: none; overflow: visible; background: transparent;
  }
  .nav-list { display: flex; gap: 2px; }
  .nav-list a { padding: 10px 9px; border: 0; font-size: .92rem; position: relative; border-radius: 4px; white-space: nowrap; }
  .nav-list a[aria-current="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--gold); }
  .nav-actions { display: flex; margin: 0; gap: 8px; }
  .nav-actions .btn { min-height: 44px; padding: .5em 1em; font-size: .9rem; white-space: nowrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy); color: #d8def0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #b9c3de; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); flex: none; }
.center .eyebrow { justify-content: center; }
.section-head .eyebrow { color: var(--gold-text); font-size: .78rem; }
.section-dark .eyebrow, .section-dark .section-head .eyebrow, .on-dark .eyebrow { color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--blue-tint) 0%, #fff 100%); padding-block: clamp(36px, 7vw, 88px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: 1.6em; }
.hero-media { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.hero-media .frame { position: relative; }
.hero-media .frame::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.hero-media img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.media-note { position: relative; z-index: 1; margin-top: 28px; font-size: .78rem; color: var(--muted); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: 28px; }
.intro-grid p { font-size: 1.08rem; color: var(--muted); }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } }

/* ---------- Services ---------- */
.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: 1fr; }
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-media { aspect-ratio: 1 / 1; background: var(--blue-tint); overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.icon-tile {
  height: 100%; display: grid; place-items: center; color: var(--blue);
  background: radial-gradient(circle at 30% 20%, #fff 0%, var(--blue-tint) 70%);
}
.icon-tile .icon { width: 64px; height: 64px; stroke-width: 1.2; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.service-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.service-body .btn { align-self: flex-start; }

/* ---------- Collections ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.js .coll-panel { display: none; }
.js .coll-panel.is-active { display: block; }
.coll-panel > p { color: var(--muted); max-width: 40em; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.design-card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; border-radius: var(--radius); overflow: hidden; }
.design-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; transition: transform .5s; background: var(--blue-tint); }
.design-card:hover img { transform: scale(1.04); }
.design-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(0deg, rgba(10,17,40,.82), rgba(10,17,40,0));
}
.design-card .cap small { display: block; margin-top: 2px; font-weight: 500; font-size: .82rem; opacity: .92; }
.note { font-size: .85rem; color: var(--muted); margin-top: 22px; }
.section-dark .note { color: #9fabcb; }

/* ---------- Values ---------- */
.values-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.value { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: var(--navy-soft); }
.value .icon { width: 34px; height: 34px; color: var(--gold-light); margin-bottom: 14px; }
.value p { margin: 0; color: #b9c3de; font-size: .96rem; }

/* ---------- How to order ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; margin-bottom: 34px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step { position: relative; padding: 24px 22px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid [hidden] { display: none; }

/* ---------- Testimonials ---------- */
.quotes { grid-template-columns: 1fr; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.quote blockquote { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.1rem; }
.quote cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: .92rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: start; } }
.about-lead { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4; color: var(--navy); margin-bottom: 1.4em; }
.about-blocks { display: grid; gap: 22px; }
@media (min-width: 640px) { .about-blocks { grid-template-columns: repeat(2, 1fr); } }
.about-block { border-top: 2px solid var(--gold); padding-top: 14px; }
.about-block h3 { font-size: 1.1rem; margin-bottom: .35em; }
.about-block p { margin: 0; color: var(--muted); font-size: .96rem; }
.about-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; text-align: center; padding-block: clamp(56px, 9vw, 96px); }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36em; margin-inline: auto; font-size: 1.1rem; color: #e1e8ff; }
.cta-band .btn-row { justify-content: center; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card > .icon { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .25em; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.contact-card a { font-weight: 600; }
.contact-empty { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c3de; padding-block: 56px 28px; font-size: .95rem; }
.site-footer a { color: #d8def0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-brand img { width: 48px; height: 48px; }
.site-footer h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.footer-links li + li { margin-top: 8px; }
.footer-links a, .footer-links .is-placeholder { display: inline-flex; align-items: center; gap: .55em; }
.footer-links .icon { width: 1.1em; height: 1.1em; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .is-placeholder { color: #8e9bbd; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(5, 9, 24, .92); }
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; justify-items: center; padding: 12px; }
.lb-figure { grid-column: 2; display: grid; gap: 12px; justify-items: center; max-height: 100vh; min-width: 0; }
.lb-figure img { max-height: calc(100vh - 110px); max-width: 100%; width: auto; border-radius: 4px; object-fit: contain; }
.lb-figure figcaption { font-size: .95rem; text-align: center; }
.lb-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 40px 1fr 40px; padding: 6px; } .lb-btn { width: 40px; height: 40px; } }

/* ---------- Legal / 404 pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: #2b3350; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.page-404 { text-align: center; min-height: 60vh; display: grid; place-content: center; gap: 8px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
