/* rm-dms.co.uk — one amber (from the logo) on charcoal/white. */
:root {
  --fg: #3b3f46; --heading: #16181d; --muted: #6b7079; --line: #e8e4dc;
  --bg: #fff; --soft: #faf7f2; --dark: #16181d; --dark-2: #22252c;
  --brand: #f0a020;        /* logo amber: buttons, accents */
  --brand-hover: #ffb640;
  --brand-ink: #a86400;    /* amber dark enough for text on white */
  --brand-tint: #fdf1dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 8px 24px rgba(22, 24, 29, 0.08);
  --shadow-lg: 0 2px 4px rgba(22, 24, 29, 0.06), 0 18px 40px rgba(22, 24, 29, 0.14);
  --wide: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font: 17px/1.7 Inter, system-ui, sans-serif; margin: 0; color: var(--fg); background: var(--bg);
       min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; -webkit-font-smoothing: antialiased; }
main { max-width: var(--wide); width: 100%; margin: 0 auto; padding: 0 1.25rem 4rem; flex: 1; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand); color: var(--dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Header */
#nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 0.5rem 2rem; align-items: center;
       padding: 0.7rem max(1.25rem, calc((100% - var(--wide)) / 2 + 1.25rem));
       background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
       border-bottom: 1px solid var(--line); }
#nav .brand img { display: block; height: 44px; width: auto; }
#nav nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: flex-end; }
#nav nav a { text-decoration: none; color: var(--fg); font-weight: 500; font-size: 15px; padding: 0.4rem 0.7rem; border-radius: 8px;
             white-space: nowrap; transition: background 0.15s, color 0.15s; }
#nav nav a:hover { background: var(--soft); color: var(--heading); }
#nav nav a[aria-current] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
#nav nav .button { margin: 0 0 0 0.5rem; padding: 0.55rem 1.1rem; font-size: 15px; }
#nav nav .button:hover { background: var(--brand-hover); }

/* Type */
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 5vw, 56px); margin: 2rem 0 1rem; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 3rem 0 1rem; letter-spacing: -0.03em; }
h3 { font-size: 20px; margin: 1.25rem 0 0.5rem; }
h4 { font-size: 18px; margin: 1rem 0 0.25rem; }
section > h2:first-child { text-align: center; }
section > h2:first-child::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--brand); margin: 0.9rem auto 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 0.75rem; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 40em; }

/* Page title for inner pages that open with a plain h1 */
main > h1.title:first-child { margin: 0 calc(50% - 50vw) 2.5rem; padding: clamp(3rem, 7vw, 5rem) max(1.25rem, calc(50vw - var(--wide) / 2 + 1.25rem));
  background: radial-gradient(circle at 85% 20%, rgba(240, 160, 32, 0.28), transparent 45%), linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff; }
main > h1.title:first-child::before { content: "RM-DMS"; display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--brand); margin-bottom: 0.6rem; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 0.5rem; margin: 1rem 0.5rem 0 0; padding: 0.85rem 1.6rem; font-size: 16px; font-weight: 600; line-height: 1.2;
          border: 2px solid var(--brand); border-radius: 10px; background: var(--brand); color: var(--dark); text-decoration: none;
          transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.button:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(240, 160, 32, 0.35); }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
section > .button:last-child { display: flex; width: max-content; margin: 2rem auto 0; }

/* Sections */
section { margin: 3rem 0; }
.soft { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 1rem max(1.25rem, calc(50vw - var(--wide) / 2 + 1.25rem)) 4rem; background: var(--soft); }

/* Full-width photo band */
.band { margin: 0 calc(50% - 50vw) 3rem; padding: clamp(4rem, 9vw, 7rem) max(1.25rem, calc(50vw - var(--wide) / 2 + 1.25rem));
        background: linear-gradient(100deg, rgba(22, 24, 29, 0.92) 0%, rgba(22, 24, 29, 0.7) 50%, rgba(22, 24, 29, 0.35) 100%), var(--photo) center / cover;
        color: #fff; }
.band :is(h1, h2, h3, h4, h5, p, li, a:not(.button)) { color: #fff; }
.band h1, .band h2 { max-width: 16em; margin-top: 0; }
.band h2 { font-size: clamp(32px, 4.5vw, 52px); }
.band .lead { color: rgba(255, 255, 255, 0.82); }
.band .cols { display: flex; flex-wrap: wrap; gap: 0; }
.band .list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 1.5rem 0 0; }
.band .list a { opacity: 0.85; }
.band .list a:hover { opacity: 1; }
.band .card { background: transparent; box-shadow: none; border: 0; padding: 0; text-align: left; }
.band .card h3 { font-size: clamp(32px, 4.5vw, 52px); color: #fff; }
.hero { min-height: min(78vh, 720px); display: flex; align-items: center; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 3rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); list-style: none; }
.stats strong { display: block; font-size: 32px; line-height: 1.1; color: var(--brand); letter-spacing: -0.02em; }
.stats span { font-size: 14px; color: rgba(255, 255, 255, 0.75); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 3rem; align-items: center; }
.cols img, .media-text img { border-radius: var(--radius); }
.list { list-style: none; padding: 0; }
.list a { text-decoration: none; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 1.75rem; margin-bottom: 1.25rem; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.grid .card { margin: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.card > img:first-child { box-sizing: content-box; width: 32px; height: 32px; padding: 12px; border-radius: 12px; background: var(--brand-tint); }
.card h3 { margin: 1rem 0 0.4rem; font-size: 19px; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0; }
.gallery figure { margin: 0; position: relative; }
.gallery figure > a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 0.6rem 0.1rem 0; font-weight: 600; color: var(--heading); }

.media-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin: 2.5rem 0; }
.media-text img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.media-text h4 { font-size: 24px; }
.media-text a { font-weight: 600; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; align-items: start; }
.team > div { background: var(--bg); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); text-align: center; }
.team img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 4px solid var(--brand-tint); }
.team h4 { margin: 0.75rem 0 0; }
.team p { margin: 0.2rem 0; color: var(--muted); font-size: 15px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.review { margin: 0; padding: 1.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.review::before { content: "★★★★★"; display: block; color: var(--brand); letter-spacing: 2px; margin-bottom: 0.5rem; }
.review h3 { margin-top: 0; font-size: 17px; }
.review p { font-size: 15px; }
.review cite { display: block; margin-top: 0.75rem; font-style: normal; font-weight: 600; color: var(--heading); }
.review cite::before { content: "— "; color: var(--brand); }

/* Call to action */
.cta { margin: 4rem 0 0; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 20px; text-align: center; color: #fff;
       background: radial-gradient(circle at 10% 0%, rgba(240, 160, 32, 0.35), transparent 50%), linear-gradient(135deg, var(--dark), var(--dark-2)); }
.cta h2 { color: #fff; margin: 0 0 0.5rem; }
.cta p { color: rgba(255, 255, 255, 0.78); margin: 0 auto; max-width: 36em; }
.cta .button.ghost { color: #fff; }

footer { background: var(--dark); color: #9aa0aa; text-align: center; padding: 2.5rem 1.25rem; font-size: 15px; border-top: 4px solid var(--brand); }
footer p { margin: 0.35rem 0; }
footer a { color: #e6e8eb; text-decoration: none; }
footer a:hover { color: var(--brand); }

@media (max-width: 860px) {
  #nav { flex-wrap: wrap; padding-bottom: 0; }
  #nav .brand img { height: 38px; }
  /* Nav scrolls sideways on small screens instead of wrapping into rows. */
  #nav nav { flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -1.25rem; padding: 0 1.25rem 0.5rem; }
  #nav nav::-webkit-scrollbar { display: none; }
  .media-text { grid-template-columns: 1fr; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Pricing cards */
.price > img:first-child { width: 100%; height: 160px; padding: 0; box-sizing: border-box; object-fit: contain; background: var(--soft); }
.price p { margin-top: 0.75rem; font-size: 15px; }
.price strong { font-size: 28px; color: var(--heading); letter-spacing: -0.02em; }
