/* Watermark site styles - one file, no framework.
   Colors and fonts match the live truewatermark.com Elementor kit. */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: "Urbanist";
  src: url("/static/fonts/Urbanist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/Roboto-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Slab";
  src: url("/static/fonts/RobotoSlab-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --blue: #283891;
  --blue-dark: #101d83;
  --green: #016930;
  --teal: #017e7f;
  --black: #000;
  --white: #fff;
  --text: #333;
  --muted: #7a7a7a;
  --rule: #d9dbe3;

  --font-display: "Urbanist", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.3em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1em; height: 1em; vertical-align: -0.15em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar { background: var(--black); color: #fff; font-size: 15px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: .6em 2.5em; padding: 10px 0; }
.topbar a, .topbar > .wrap > span { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .6em; padding: 4px 0; }
.topbar .icon { color: #3fb14b; font-size: 1.05em; }

/* ---------- header / nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.logo { flex: none; }
.logo img { width: clamp(130px, 14vw, 180px); height: auto; display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(8px, 2vw, 28px); }
.site-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--blue-dark); text-decoration: none;
  padding: 8px 2px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 3px; width: 26px; background: #333; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 1001-1180px (small laptops, tablets in landscape): full nav, compact type */
@media (max-width: 1180px) and (min-width: 1001px) {
  .logo img { width: 140px; }
  .site-nav ul { gap: 8px; }
  .site-nav a { font-size: 15px; }
}
@media (max-width: 1000px) {
  .site-header .wrap { min-height: 84px; }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--rule); font-size: 18px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); background: #f3f5fa; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; text-align: center; background: var(--blue-dark); isolation: isolate; overflow: hidden; }
.hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hero) center / cover no-repeat;
  opacity: .14; filter: blur(2.5px); transform: scale(1.03);
}
.hero .wrap { padding: clamp(40px, 7vw, 80px) 0; }
.hero h1 { font-size: clamp(24px, 3vw, 36px); margin: 0; letter-spacing: .01em; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.hero .lede { font-size: clamp(16px, 1.6vw, 20px); margin: .8em auto 0; max-width: 60ch; opacity: .95; }
.hero-page .wrap { padding: clamp(17px, 2.5vw, 28px) 0; }
.hero-page h1 { text-transform: uppercase; letter-spacing: .03em; }

/* ---------- capabilities (home) ---------- */
.capabilities { padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 4vw, 56px); }
.section-title { color: var(--blue-dark); font-weight: 600; font-size: clamp(26px, 2.6vw, 30px); text-align: center; }
.section-title.caps { text-transform: uppercase; letter-spacing: .02em; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: 32px; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.card { border: 1px solid #333; border-radius: 10px; padding: clamp(22px, 2.4vw, 32px) clamp(14px, 1.6vw, 22px) 26px; text-align: center; background: #fff; }
.card-icon .icon { font-size: 60px; color: var(--blue-dark); margin: 0 auto 10px; stroke-width: 2.4; }
.card h3 { color: var(--blue-dark); font-weight: 600; font-size: 28px; margin-bottom: 18px; }
.card-list { list-style: none; padding: 0; margin: 20px 0 0; }
.card-list li { font-family: var(--font-display); font-weight: 600; color: var(--blue-dark); font-size: 20px; line-height: 1.3; padding: 7px 0; }
.card-text { font-family: var(--font-display); font-weight: 600; color: var(--blue-dark); font-size: 20px; line-height: 1.3; margin: 22px 0 0; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--green); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.15; text-align: center;
  padding: 13px 20px; border: 0; border-radius: 3px; cursor: pointer;
  transition: background .15s, transform .15s;
}
.button:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.button .icon { font-size: 1.05em; }

/* ---------- green statement band ---------- */
.statement { background: linear-gradient(180deg, var(--green) 0%, var(--blue-dark) 100%); color: #fff; padding: clamp(32px, 5vw, 56px) 0; }
.statement .wrap { border: 1px solid rgba(255,255,255,.8); padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 60px); }
.statement p { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.35; }

/* ---------- inner page body ---------- */
.page-body { padding: clamp(28px, 4vw, 56px) 0; }
.page-body > .section-title { text-align: left; margin-top: 1.6em; }
.page-body > .section-title:first-child { margin-top: 0; }
.page-body .sub-title { color: var(--green); font-weight: 600; font-size: clamp(21px, 2.2vw, 26px); margin-top: 1.4em; }
.page-body p, .page-body li { max-width: 78ch; }
.page-body ul { margin-bottom: 1.2em; }
.page-body .button { margin: .4em 0 1.4em; }
.photo-grid { display: grid; gap: 18px; margin: 1.4em 0 2em; }
.photo-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); object-fit: cover; }
.photo-grid.cols-1 img { aspect-ratio: auto; max-width: 760px; }
/* Portrait photos marked {.tall}: keep the upright frame instead of cutting top and bottom */
.photo-grid.tall { max-width: 900px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.photo-grid.tall img { aspect-ratio: 3 / 4; }
/* Small screens: a photo group that would wrap becomes a filmstrip showing --per
   photos at a time. site.js decides (it measures the fit) and adds .carousel + dots. */
.photo-grid.carousel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; margin-bottom: .5em;
}
.photo-grid.carousel::-webkit-scrollbar { display: none; }
.photo-grid.carousel figure {
  flex: 0 0 calc((100% - (var(--per, 1) - 1) * 18px) / var(--per, 1));
  scroll-snap-align: start;
}
.js .photo-grid.carousel [data-reveal] { opacity: 1; transform: none; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; margin: 0 0 2em; }
.carousel-dots[hidden] { display: none; }
.carousel-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
}
.carousel-dots button::before {
  content: ""; display: block; width: 10px; height: 10px; margin: auto;
  border-radius: 50%; background: #c3c8d6;
}
.carousel-dots button[aria-current]::before { background: var(--blue); }

/* ---------- map (contact page) ---------- */
.map-section { padding-bottom: clamp(36px, 5vw, 64px); }
.map { background: #eef0f6; border-radius: var(--radius); padding: 28px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.map iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.map.loaded { padding: 0; background: none; }
.map.loaded .map-address { display: none; }
.map-address { font-family: var(--font-display); color: var(--blue); font-size: 20px; margin: 0; }
.map-link { font-size: 15px; }

/* ---------- forms ---------- */
.contact-section { padding-bottom: clamp(36px, 5vw, 64px); }
.contact-form { max-width: 760px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.contact-form label { display: block; font-weight: 500; color: var(--blue); margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; border: 1px solid #b9bdcc; border-radius: var(--radius); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); }
.form-status { margin-top: 12px; color: var(--green); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe-form .form-status { grid-column: 1 / -1; color: #fff; margin-bottom: 0; }

/* ---------- footer ---------- */
.subscribe { background: var(--blue-dark); color: #fff; text-align: center; padding: clamp(40px, 6vw, 72px) 0; }
.subscribe h2 { font-weight: 600; font-size: clamp(36px, 5vw, 56px); margin-bottom: .2em; }
.subscribe p { color: #a9b0d6; font-family: var(--font-display); margin-bottom: 2em; }
.subscribe-form { display: grid; max-width: 720px; margin-inline: auto; }
.subscribe-form input {
  font: inherit; padding: 14px 16px; border: 0; border-radius: 0;
  background: #3a4aa6; color: #fff;
}
.subscribe-form input::placeholder { color: #c3c8e6; }
.subscribe-form button {
  font: 500 17px var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  padding: 14px; border: 0; background: #fff; color: #111; cursor: pointer;
}
.subscribe-form button:hover { background: var(--green); color: #fff; }
@media (min-width: 640px) {
  .subscribe-form { grid-template-columns: 1fr auto; }
  .subscribe-form button { padding-inline: 48px; }
}
.colophon { background: var(--black); color: #fff; text-align: center; padding: 28px 0; font-family: var(--font-display); font-size: 17px; }
.colophon p { margin: 0; }
.colophon a { color: #fff; }
.colophon .address { color: #9aa0b8; font-size: 15px; margin-top: 8px; font-family: var(--font-body); }

/* Photos slide and fade in (~0.5s) as they scroll into view - photos only.
   They start hidden only when JS is running; without JS they are simply visible.
   --i staggers the second photo of a pair by 100ms. */
.js [data-reveal] {
  opacity: 0;
  transition: opacity .5s ease-out, transform .5s ease-out;
  transition-delay: calc(var(--i, 0) * 100ms);
  will-change: opacity, transform;
}
.js [data-reveal="up"]    { transform: translateY(28px); }
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }
@media (max-width: 700px) {
  /* single-column layout: there is no left/right, so everything rises */
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(28px); }
}

/* Phones in portrait. The headline keeps its line break. */
@media (max-width: 700px) {
  .site-header .wrap { min-height: 72px; }
}
/* Phones in landscape: short viewport, keep the chrome compact so content shows */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar .wrap { padding: 6px 0; }
  .site-header .wrap { min-height: 64px; }
  .logo img { width: 120px; }
  .hero .wrap { padding: 22px 0; }
  .hero-page .wrap { padding: 11px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
