/* ===== Foundations ===== */
:root {
  --color-navy: #16232f;
  --color-navy-light: #22384a;
  --color-rust: #b5651d;
  --color-rust-dark: #954f16;
  --color-cream: #f4efe6;
  --color-cream-dark: #e8e0d0;
  --color-silver: #9aa1a6;
  --color-ink: #1c1c1c;
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--color-rust); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--color-rust);
  color: #fff;
}
.btn--primary:hover { background: var(--color-rust-dark); }

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

/* ===== Header ===== */
.site-header {
  background: var(--color-navy);
  padding: 1rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}
.site-header__brand:hover { text-decoration: none; }

.site-header__logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.site-header__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.site-header__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header__nav a {
  color: var(--color-silver);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.site-header__nav a:hover { color: #fff; }

.site-header__cta {
  flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-silver);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.site-footer__logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer__brand p {
  font-size: 0.85rem;
  color: var(--color-silver);
  margin: 0;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav a {
  color: var(--color-silver);
  font-size: 0.9rem;
}
.site-footer__nav a:hover { color: #fff; }

.site-footer__contact p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.site-footer__contact a { color: var(--color-silver); }
.site-footer__contact a:hover { color: #fff; }

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 { color: #fff; }

.hero p {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--color-silver);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* ===== Photography (duotone treatment) ===== */
.photo-duotone {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy);
}
.photo-duotone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-rust) 100%);
  mix-blend-mode: color;
  opacity: 0.9;
}
.photo-duotone img {
  filter: grayscale(1) contrast(1.15) brightness(0.95);
}

/* ===== Hero with photography ===== */
.hero--photo {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  padding: 7rem 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Timing below is tuned for exactly 8 .hero__slide children (56s loop = 8 x 7s
   dwell per image via hero-crossfade's keyframe percentages). Adding or removing
   a slide requires adding/removing a matching nth-child delay rule below AND
   rescaling the hero-crossfade keyframe percentages to keep an even loop. */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-crossfade 56s ease-in-out infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 7s; }
.hero__slide:nth-child(3) { animation-delay: 14s; }
.hero__slide:nth-child(4) { animation-delay: 21s; }
.hero__slide:nth-child(5) { animation-delay: 28s; }
.hero__slide:nth-child(6) { animation-delay: 35s; }
.hero__slide:nth-child(7) { animation-delay: 42s; }
.hero__slide:nth-child(8) { animation-delay: 49s; }

.hero__slide img {
  animation: hero-kenburns 14s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.hero--photo .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 35, 47, 0.65) 0%, rgba(22, 35, 47, 0.88) 100%);
}

.hero--photo .container {
  position: relative;
  z-index: 2;
}

.hero--photo.hero--static .hero__slide {
  animation: none;
  opacity: 0;
}
.hero--photo.hero--static .hero__slide:first-child { opacity: 1; }
.hero--photo.hero--static .hero__slide img { animation: none; }

@keyframes hero-crossfade {
  0%      { opacity: 0; }
  1.5%    { opacity: 1; }
  11%     { opacity: 1; }
  12.5%   { opacity: 0; }
  100%    { opacity: 0; }
}

@keyframes hero-kenburns {
  0%   { transform: scale(1.02); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide:first-child { opacity: 1; }
  .hero__slide img { animation: none; }
}

/* ===== Photo band (signature texture break) ===== */
.photo-band {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.photo-band__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(22, 35, 47, 0.9) 0%, rgba(22, 35, 47, 0.55) 55%, rgba(22, 35, 47, 0.15) 100%);
}

.photo-band__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  color: #fff;
}

.photo-band__eyebrow {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-rust);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.photo-band h2 {
  color: #fff;
  text-align: left;
  margin-bottom: 0.75rem;
}

.photo-band p {
  color: var(--color-silver);
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .photo-band { min-height: 320px; }
  .photo-band::after {
    background: linear-gradient(180deg, rgba(22, 35, 47, 0.55) 0%, rgba(22, 35, 47, 0.92) 75%);
  }
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section > .container > p {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-ink);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-top: 4px solid var(--color-rust);
  border-radius: 6px;
  padding: 1.75rem;
}

.card h3 { color: var(--color-navy); }
.card p { margin-bottom: 0; color: var(--color-ink); }

@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ===== Stats strip ===== */
.stats-strip {
  background: var(--color-navy);
  color: #fff;
  padding: 3rem 0;
}

.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-strip__item h3 {
  color: var(--color-rust);
  margin-bottom: 0.4rem;
}

.stats-strip__item p {
  color: var(--color-silver);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .stats-strip__inner { grid-template-columns: 1fr; }
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--color-cream-dark);
  padding: 4rem 0;
  text-align: center;
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info p { margin-bottom: 0.75rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: 6px;
  padding: 2rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-silver);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-field--checkbox input { width: auto; }
.form-field--checkbox label { font-weight: 400; font-size: 0.85rem; margin: 0; }

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.form-message--success {
  display: block;
  background: #e5f3e5;
  color: #256029;
}

.form-message--error {
  display: block;
  background: #fbe7e0;
  color: #8a2c0d;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
