/* ==========================================================================
   Moriches Glass & Mirror Inc
   Palette sampled from the client's logo: indigo/navy panes with a sky-blue
   accent. Type pairing echoes the logo lockup (script wordmark over serif).
   ========================================================================== */

:root {
  --navy-900: #071c2b;
  --navy-800: #0e2d40;
  --navy-700: #11414b;
  --indigo:   #30316c;
  --indigo-2: #34316a;
  --blue-700: #07438b;
  --blue-600: #145295;
  --sky:      #389cd2;
  --sky-200:  #7dc6e5;

  --ink:       #16232c;
  --ink-muted: #56646f;
  --line:      #dfe5ea;
  --surface:   #ffffff;
  --surface-2: #f4f7f9;

  --wrap: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(7, 28, 43, .06), 0 4px 12px rgba(7, 28, 43, .06);
  --shadow-md: 0 8px 30px rgba(7, 28, 43, .12);

  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }

/* The email address is 31 characters with no break opportunity — it overflows
   narrow footer columns and the contact tiles unless it is allowed to wrap. */
p, li, dd, address, figcaption, a { overflow-wrap: break-word; }

a { color: var(--blue-600); }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* -------------------------------------------------- utility bar (top strip) */

.topbar {
  background: var(--navy-900);
  color: #cfdbe4;
  font-size: .875rem;
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .35rem 1.5rem;
  padding: .55rem 0;
}
.topbar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; }
.topbar__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--sky-200); text-decoration: underline; }
.topbar svg { flex: none; width: 15px; height: 15px; fill: var(--sky); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .7rem 0;
}
.brand { display: block; flex: 0 1 auto; min-width: 0; }
.brand img { width: 268px; max-width: 100%; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius); color: #fff;
  padding: .5rem .7rem; cursor: pointer;
  align-items: center; gap: .5rem;
  font: 600 .9rem/1 var(--sans);
}
.nav-toggle svg { width: 20px; height: 20px; fill: currentColor; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  display: block; padding: .55rem .8rem;
  color: #e6eef4; text-decoration: none;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  border-radius: var(--radius);
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--sky); }
.nav .btn { margin-left: .6rem; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  font: 700 .95rem/1.2 var(--sans);
  letter-spacing: .02em;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.btn--primary { background: var(--sky); color: var(--navy-900); border-color: var(--sky); }
.btn--primary:hover { background: var(--sky-200); border-color: var(--sky-200); color: var(--navy-900); }

.btn--solid { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn--solid:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: #fff; }

/* --------------------------------------------------------------------- hero */

.hero { position: relative; isolation: isolate; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(7, 28, 43, .93) 0%, rgba(14, 45, 64, .84) 45%, rgba(48, 49, 108, .62) 100%);
}
.hero__inner { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); max-width: 42rem; }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero__eyebrow {
  display: inline-block;
  font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky-200); margin-bottom: 1.1rem;
}
.hero__lede { font-size: 1.1rem; color: #d8e4ec; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

.hero--page .hero__inner { padding: clamp(2.75rem, 6vw, 4.5rem) 0; max-width: 46rem; }

/* ---------------------------------------------- flat banner (legal, thanks) */

.page-banner {
  background: linear-gradient(115deg, var(--navy-900), var(--indigo));
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.page-banner h1 { color: #fff; margin-bottom: 0; }
.page-banner__eyebrow {
  display: block;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky-200); margin-bottom: .8rem;
}
.page-banner__lede { color: #ccdae5; margin-top: .7rem; max-width: 40rem; }

/* --------------------------------------------------------------- trust bar */

.trustbar { background: var(--indigo); color: #fff; }
.trustbar ul {
  list-style: none; margin: 0; padding: .95rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.5rem;
  font-size: .95rem; font-weight: 600;
}
.trustbar li { display: inline-flex; align-items: center; gap: .55rem; }
.trustbar svg { width: 18px; height: 18px; fill: var(--sky-200); flex: none; }

/* ------------------------------------------------------------------ layout */

.section { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.section--tint { background: var(--surface-2); }
.section--navy { background: var(--navy-800); color: #e2ebf1; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section__head { max-width: 46rem; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: block;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .8rem;
}
.section--navy .eyebrow { color: var(--sky-200); }
.lede { font-size: 1.08rem; color: var(--ink-muted); }
.section--navy .lede { color: #c3d3de; }

.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.split {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: center;
}

/* ------------------------------------------------------------- cards/media */

.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--ink-muted); font-size: .98rem; }
.card__link {
  margin-top: auto; padding-top: 1rem;
  font-weight: 700; font-size: .93rem; letter-spacing: .02em;
  color: var(--blue-600); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
.card__link svg { width: 14px; height: 14px; fill: currentColor; transition: transform .18s ease; }

.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.figure img { width: 100%; }
.figure figcaption {
  padding: .8rem 1rem; font-size: .88rem; color: var(--ink-muted);
  background: var(--surface); border: 1px solid var(--line); border-top: 0;
}

/* Lift-on-hover only where there is a real pointer. On a touchscreen these
   states stick after a tap and make the page look stuck mid-animation. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .card:hover .card__link svg { transform: translateX(3px); }
}

/* ---------------------------------------------------------------- ul lists */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 11px; height: 11px; border-radius: 2px;
  background: var(--sky); transform: rotate(45deg);
}
.ticks--2 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); column-gap: 2rem; }
.section--navy .ticks li::before { background: var(--sky-200); }

.deflist { margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.deflist dt {
  font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .6rem;
}
.deflist dd { margin: 0; }
.deflist dd ul { margin: 0; padding-left: 1.1rem; }
.deflist dd li { margin-bottom: .25rem; }

/* -------------------------------------------------------------------- video */

.video-block { max-width: 860px; margin-inline: auto; }
.video-block video {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-md); background: #000;
}

/* ------------------------------------------------------------------- CTA */

.cta {
  background: linear-gradient(115deg, var(--navy-900), var(--indigo));
  color: #fff; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #ccdae5; max-width: 40rem; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.9rem; }

/* --------------------------------------------------------------- info tiles */

.info-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.info-tile {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--sky);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.info-tile h2 {
  font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .9rem;
}
.info-tile p, .info-tile address { font-style: normal; margin: 0 0 .5rem; }
.info-tile a { font-weight: 600; text-decoration: none; }
.info-tile a:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours th, .hours td { text-align: left; padding: .35rem 0; font-weight: 400; }
.hours td { white-space: nowrap; }
.hours th { color: var(--ink-muted); font-weight: 600; }
.hours td { text-align: right; }

/* -------------------------------------------------------------------- form */

/* The contact form is a GoHighLevel iframe. Everything inside it is styled in
   GHL and cannot be reached from here, so this only frames the embed. */
.ghl-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-sm);
}
.ghl-form iframe {
  display: block;
  width: 100%;
  border: 0;
}

.form-note { font-size: .88rem; color: var(--ink-muted); margin-top: 1rem; }

/* ------------------------------------------------------- legal / thank-you */

/* A measure of ~68 characters — legal text is read, not scanned. */
.legal { max-width: 46rem; }
.legal h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 1.5rem; }
.legal ul { margin: 0 0 1.1em; padding-left: 1.3rem; }
.legal li { margin-bottom: .45rem; }
.legal__date {
  color: var(--ink-muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.legal__address {
  font-style: normal;
  margin: 0 0 1.1em;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-left: 3px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.thanks { max-width: 40rem; text-align: center; margin-inline: auto; }
.thanks__mark { width: 64px; height: 64px; fill: var(--sky); margin: 0 auto 1.25rem; }
.thanks .cta__actions { justify-content: center; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--navy-900); color: #b9c9d6; font-size: .95rem; }
.site-footer h2 {
  font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-200); margin-bottom: 1rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky-200); text-decoration: underline; }
.site-footer__grid {
  display: grid; gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.25rem;
}
.site-footer__brand img { width: 250px; max-width: 100%; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; }
.site-footer .hours th { color: #93a8b8; }
.site-footer .hours td { color: #e5eef4; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.25rem 0 2rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1.5rem;
  font-size: .875rem; color: #8fa4b4;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.site-footer__legal a { color: #c6d5e0; }
.site-footer__legal a:hover { color: var(--sky-200); }

/* ------------------------------------------------------------------ 404 */

.error-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-page .code {
  font: 700 clamp(4rem, 14vw, 8rem)/1 var(--serif);
  color: var(--sky); display: block; margin-bottom: .5rem;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow-md);
    padding: .5rem 1.25rem 1.25rem;
    /* Six links plus the call button can outrun a short landscape viewport. */
    max-height: calc(100vh - 7rem);
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; }
  .site-header__inner { position: relative; gap: 1rem; }
  .brand img { width: 232px; }

  /* :not(.btn) matters — a bare `.nav a` here outranks `.btn` and would strip
     the call button of its padding and rounded corners inside the menu. */
  .nav a:not(.btn) { padding: .85rem .25rem; border-bottom: 1px solid rgba(255, 255, 255, .09); border-radius: 0; }
  .nav a:not(.btn)[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sky); padding-left: .8rem; }
  .nav .btn { margin: .9rem 0 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar { font-size: .82rem; }
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__meta { justify-content: center; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
  .trustbar ul { flex-direction: column; align-items: center; gap: .45rem; }
}

@media (max-width: 400px) {
  /* Below this the logo and a labelled toggle no longer fit side by side. */
  .brand img { width: 190px; }
  .nav-toggle { font-size: 0; gap: 0; padding: .5rem; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .wrap { width: calc(100% - 1.75rem); }
}

/* Landscape phones: the hero eats the whole screen before any content shows. */
@media (max-height: 480px) and (orientation: landscape) {
  .hero__inner { padding-block: 2.25rem; }
  .hero--page .hero__inner { padding-block: 1.75rem; }
}
