/* ============================================================
   Itasca Images, LLC — clean, framework-free rebuild
   ============================================================ */

/* Inter, self-hosted, standing in for Adobe "aktiv-grotesk" */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #253551;          /* brand accent (buttons, links) */
  --text: #1a1a1a;
  --white: #ffffff;
  --muted: #6b7280;
  --gutter: 30px;           /* masonry gap (mirrored in gallery.js GUTTER) */
  --pad: 38px;              /* gallery / content side padding */
  --header-h: 140px;
  --sans: "Archivo", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Header (absolute, transparent, overlays the hero)
   ============================================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
}
.site-header__logo img {
  width: 150px;
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  padding-bottom: 4px;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav a.is-active {
  border-bottom: 1px solid var(--white);
}

/* ============================================================
   Heroes (full-bleed photo with white text overlay)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  background: #1b2a44 no-repeat center center;
  background-size: cover;
  color: var(--white);
  display: flex;
}

/* Homepage: centered tagline + button, taller */
.hero--home {
  min-height: clamp(420px, 46vw, 620px);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) 24px 60px;
  background-position: 60% 33%;   /* match the live site's focal point */
}
.hero--home .hero__inner { max-width: 780px; }
.hero__tagline {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 44px;
}
.hero__btn {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  padding: 19px 34px;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero__btn:hover { background: var(--white); color: var(--navy); }

/* Contact: heading anchored bottom-left, shorter */
.hero--contact {
  min-height: clamp(280px, 26vw, 360px);
  align-items: flex-end;
  padding: var(--header-h) var(--pad) 34px;
  background-position: center 18%;
}
.hero--contact .hero__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

/* ============================================================
   Masonry gallery — 2 cols (packed shortest-column-first by JS)
   ============================================================ */
.gallery {
  padding: var(--pad);
  background: var(--white);
}
.gallery__columns { display: flex; gap: var(--gutter); align-items: flex-start; }
.gallery__col { display: flex; flex-direction: column; gap: var(--gutter); flex: 1 1 0; min-width: 0; }
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  cursor: zoom-in;
  overflow: hidden;
  background: #eef0f2;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 0.7, 0.2, 1);
}
.gallery__item.is-revealed { opacity: 1; transform: scale(1); }
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--thumb, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  filter: blur(14px);
  z-index: 0;
}
.gallery__item img {
  position: relative;
  z-index: 1;
  width: 100%; height: auto; display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.gallery__item img.loaded { opacity: 1; }
.gallery__item:hover img.loaded { opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .gallery__item { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--white);
  color: var(--text);
  text-align: center;
  padding: 64px 24px 72px;
  font-size: 16px;
  line-height: 1.9;
}
.site-footer a { color: var(--navy); }
.site-footer a:hover { text-decoration: underline; }
.site-footer .muted { color: var(--muted); font-size: 14px; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 24, 33, 0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 10px 60px rgba(0,0,0,0.5); }
.lightbox__caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; padding: 0 20px; opacity: 0.85; }
.lightbox__btn {
  position: absolute; top: 0; bottom: 0; width: 15%; min-width: 60px;
  border: 0; background: transparent; color: #fff; font-size: 34px; cursor: pointer;
  opacity: 0.55; transition: opacity 0.15s ease; display: flex; align-items: center;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn--prev { left: 0; justify-content: flex-start; padding-left: 24px; }
.lightbox__btn--next { right: 0; justify-content: flex-end; padding-right: 24px; }
.lightbox__close { position: absolute; top: 18px; right: 24px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 30px; cursor: pointer; opacity: 0.7; }
.lightbox__close:hover { opacity: 1; }

/* ============================================================
   Contact page
   ============================================================ */
.contact { padding: 70px var(--pad) 40px; max-width: 1240px; margin: 0 auto; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact__email { font-size: 16px; }
.contact__email strong { font-weight: 700; }
.contact__email a { color: var(--navy); }
.contact__email a:hover { text-decoration: underline; }

.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 16px; margin-bottom: 8px; }
.field .req { color: var(--muted); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .sub label { font-size: 13px; color: #444; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; background: #fafafa; color: #111; border: 1px solid #000;
  border-radius: 0; padding: 14px 10px; font-family: var(--sans); font-size: 16px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; }

.btn-navy {
  display: inline-block; margin-top: 10px; background: transparent; color: var(--navy);
  border: 2px solid var(--navy); border-radius: 0; padding: 18px 34px;
  font-size: 16px; font-weight: 500; cursor: pointer; font-family: var(--sans);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-navy:hover { background: var(--navy); color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 96px; --pad: 20px; }
  .site-header__logo img { width: 124px; }
  .site-nav { gap: 16px; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .site-nav a { font-size: 14px; }
  .field-row { grid-template-columns: 1fr; }
}
