/* Marin Domotics — one stylesheet for every page. */
:root {
  --ink: #1b1d21;
  --text: #4a4e57;
  --muted: #7a7f8a;
  --line: #e4e5e9;
  --tint: #f6f6f7;
  --bar: #dedede;
  --accent: #1b1d21;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 300 17px/1.65 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 300; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 300; }
h3 { font-size: 22px; font-weight: 500; line-height: 1.3; }
h4 { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 1em; }
strong { font-weight: 500; color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.tint { background: var(--tint); }
.center { text-align: center; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 820px; margin: 0 auto 1em; }
.eyebrow { font-weight: 500; color: var(--ink); font-size: 19px; margin-bottom: .6em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Announcement bar */
.announce { background: var(--bar); color: var(--ink); text-align: center; font-size: 14px; font-weight: 400; padding: 9px 16px; }
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* Header */
.site-header { border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand img { width: 76px; height: 76px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 400; color: var(--text); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.menu-toggle { display: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: #fff; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; }

@media (max-width: 900px) {
  .nav { position: relative; }
  .nav ul { gap: 8px 18px; justify-content: flex-end; }            /* no JavaScript: the list just wraps */
  .nav.js .menu-toggle { display: block; }
  .nav.js ul { display: none; }
  .nav.js.open ul {
    display: flex; flex-direction: column; gap: 0; position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 0; min-width: 230px; box-shadow: 0 12px 30px rgba(0,0,0,.08);
  }
  .nav.js.open a { display: block; padding: 10px 20px; border: 0; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btns { justify-content: center; }
.btn {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light.ghost { background: transparent; color: #fff; }

/* Photo banners (hero and page-end call to action) */
.banner { position: relative; display: grid; place-items: center; text-align: center; min-height: 520px; padding: 80px 24px; color: #fff; overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 16, .42); z-index: -1; }
.banner { isolation: isolate; }
.banner h1, .banner h2 { color: #fff; max-width: 900px; margin: 0 auto; }
.banner.hero { min-height: min(78vh, 680px); }
.banner.short { min-height: 420px; }

/* Three image cards (home) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; text-align: left; }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 4px; }
.card .tag { display: inline-block; margin: -26px 0 18px 20px; position: relative; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 12px 20px; border-radius: 999px; }
.card .tag:hover { opacity: .88; }
.card h3 { font-size: 19px; }
.card p { font-size: 16px; }

/* Services grid (home) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.tile { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile h3 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 48px 18px 18px; color: #fff; font-weight: 400; font-size: 20px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }

/* Text + image split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.split img { width: 100%; border-radius: 4px; }
.split.reverse > :first-child { order: 2; }

/* Three columns with image, title, text, link (services page) */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.cols img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; margin-bottom: 22px; }
.cols p { font-size: 16px; }

/* Photo strip (home) */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 4px; }

/* Definition lists for the services pages */
.points { list-style: none; padding: 0; margin: 0 0 1.4em; }
.points li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.points li:last-child { border-bottom: 0; }
.group { margin-top: 2.2em; }
.group h4 { margin-bottom: .4em; }
.offerings { columns: 2; column-gap: 56px; }
.offerings .group { break-inside: avoid; margin-top: 0; padding-top: 1.6em; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.4em 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.contact-list li span:first-child { min-width: 90px; font-weight: 500; color: var(--ink); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 16px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr 1fr; gap: 56px; align-items: start; }
.site-footer img { width: 96px; height: 96px; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copy { grid-column: 1 / -1; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .cards, .cols { grid-template-columns: 1fr; gap: 44px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .offerings { columns: 1; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .banner { min-height: 420px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .tiles { gap: 12px; }
  .tile h3 { font-size: 17px; padding: 36px 12px 12px; }
  .site-header .wrap { min-height: 80px; }
  .brand img { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile img { transition: none; } }
