:root {
  --green: #123f2b;
  --green-dark: #092719;
  --gold: #c8a15a;
  --cream: #f7f3ec;
  --paper: #fffdf8;
  --text: #202020;
  --muted: #666;
  --border: #ded7ca;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--paper);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

#home,
#about,
#team,
#request-information,
#contact {
  scroll-margin-top: 90px;
}

/* =========================
   Header / Navigation
========================= */

.site-header {
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid #eee6da;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 90px;
  max-width: 500px;
  overflow: hidden;
  text-decoration: none;
}

.logo-image {
  display: block;
  max-height: 70px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-label-short {
  display: none;
}

/* =========================
   Hero
========================= */

.hero {
  min-height: 570px;
  background: url("images/collage.jpg") center / cover no-repeat;
  color: white;
}

.hero-overlay {
  min-height: 570px;
  display: flex;
  align-items: flex-start;
  padding-top: 60px;
}

.hero-content {
  max-width: 725px;
  padding: 34px 38px;
  border: none;
  outline: 10px solid rgba(255, 253, 248, 1);
  outline-offset: 0;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.98;
  text-transform: uppercase;
}

.hero h2 {
  margin: 18px 0 18px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--gold);
}

.hero-text {
  max-width: 580px;
  font-size: 19px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* =========================
   Buttons / Links
========================= */

.button-primary,
button {
  display: inline-block;
  background: var(--green);
  color: white;
  border: 0;
  padding: 15px 28px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button-primary:hover,
button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

button.button-disabled,
button.button-disabled:hover {
  background: #8f9a93;
  cursor: not-allowed;
  transform: none;
  opacity: 0.75;
}

/* =========================
   Features
========================= */

.features {
  background: var(--cream);
  padding: 10px 0;
}

.about-heading {
  margin: 18px auto 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  text-align: center;
  padding: 16px 42px;
  border-right: 1px solid var(--border);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-card h3 {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-card img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-image-card {
  padding: 0;
}

/* =========================
   Team
========================= */

.team-section {
  padding: 35px 0 30px;
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 34px;
}

.section-heading h2,
.request-info h2 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--green);
  text-transform: uppercase;
  font-size: 34px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.team-card {
  background: white;
  border: 1px solid #ebe5da;
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}

.avatar-button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.avatar-button:hover .avatar {
  transform: scale(1.025);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.avatar-button,
.avatar-button .avatar {
  cursor: pointer;
}

.avatar {
  display: block;
  width: 100%;
  height: 150px;
  margin-bottom: 14px;
  object-fit: cover;
  object-position: center;
  background: #f1f1f1;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-button .avatar {
  margin-bottom: 0;
}

.avatar-placeholder {
  height: 150px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 50% 35%, #c9c9c9 0 22%, transparent 23%),
    radial-gradient(circle at 50% 92%, #c9c9c9 0 44%, transparent 45%),
    #f1f1f1;
}

.team-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.role {
  margin: 0 0 12px;
  color: var(--green);
  font-style: italic;
}

.team-card p:last-child {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================
   Request Form
========================= */

.request-section {
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--cream);
}

.request-info {
  background: var(--green);
  color: white;
  padding: 70px;
}

.request-info h2 {
  color: white;
}

.accent-line {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 28px;
}

.request-info p {
  font-size: 18px;
  line-height: 1.6;
}

.request-form-panel {
  padding: 54px 70px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  width: 100%;
}

input,
textarea {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: white;
  padding: 14px 15px;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 63, 43, 0.12);
}

input.input-error,
textarea.input-error {
  border-color: #9f1d1d;
  box-shadow: 0 0 0 3px rgba(159, 29, 29, 0.12);
}

textarea {
  min-height: 124px;
  resize: vertical;
}

.field-error {
  display: none;
  margin-top: -8px;
  margin-bottom: 12px;
  color: #9f1d1d;
  font-size: 13px;
  font-weight: 600;
}

.field-error.visible {
  display: block;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.cf-turnstile {
  margin: 8px 0 16px;
}

.form-toast {
  display: none;
  margin-top: 12px;
  padding: 12px;
  font-weight: 600;
  border-radius: 4px;
}

.form-toast.success {
  display: block;
  background: #e6f4ea;
  color: #1b5e20;
}

.form-toast.error {
  display: block;
  background: #fdecea;
  color: #8a1c1c;
}

.form-privacy {
  margin: 16px 0 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--green);
}

/* =========================
   Footer
========================= */

.site-footer {
  background: var(--green-dark);
  color: white;
  padding: 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 1.4fr) 1fr;
  align-items: center;
  gap: 24px;
}

.footer-grid > :last-child {
  text-align: right;
}

.footer-grid h3,
.footer-grid h2,
.footer-grid p {
  margin: 4px 0;
}

.footer-heading {
  font-size: 19px;
}

.footer-link {
  color: white;
}

.footer-credit {
  max-width: 420px;
  justify-self: center;
  color: var(--cream);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.footer-credit a {
  color: var(--gold);
}

/* =========================
   Privacy Notice
========================= */

.privacy-page {
  min-height: calc(100vh - 220px);
  padding: 58px 0 70px;
}

.privacy-content {
  max-width: 760px;
}

.privacy-content h1 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 48px);
  text-transform: uppercase;
}

.privacy-content h2 {
  margin: 34px 0 10px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 25px;
}

.privacy-content p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
}

.privacy-content a {
  color: var(--green);
}

.privacy-updated {
  color: var(--muted);
  font-size: 15px;
}

/* =========================
   Reveal Animation
========================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Image Modal
========================= */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-modal.open {
  display: flex;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.image-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 88vh;
  padding: 12px;
  background: #fffdf8;
  border: 6px solid var(--gold);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.image-modal-content img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 24px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 30px;
  line-height: 34px;
  cursor: pointer;
}

.image-modal-close:hover {
  background: var(--green-dark);
  transform: none;
}

body.modal-open {
  overflow: hidden;
}

/* ===================================
   Responsive: Tablet / Narrow Desktop
====================================== */

@media (max-width: 940px) {
  .header-inner {
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    height: 64px;
    max-width: 220px;
  }

  .logo-image {
    max-height: 54px;
  }

  .hero h1 {
    font-size: clamp(50px, 9vw, 68px);
    line-height: 1.3;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-grid > :last-child {
    text-align: left;
  }

  .footer-credit {
    justify-self: start;
    text-align: left;
  }

  .feature-grid,
  .team-grid,
  .request-section {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .request-info,
  .request-form-panel {
    padding: 42px 28px;
  }
}

/* =========================
   Responsive: Phone
============================ */

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 60px;
    gap: 8px;
  }

  .logo {
    height: 56px;
    max-width: 175px;
  }
  
  .logo-image {
    max-height: 48px;
  }

  .main-nav {
    gap: 8px 10px;
    font-size: 11px;
  }

  .hero,
  .hero-overlay {
    min-height: 570px;
  }

  .hero-overlay {
    padding-top: 15px;
  }

  .hero h1 {
    font-size: clamp(50px, 9vw, 68px);
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-content {
    padding: 28px 24px;
  }

  .team-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .image-modal {
    padding: 14px;
  }

  .image-modal-content {
    max-width: 96vw;
    max-height: 86vh;
    border-width: 4px;
    padding: 8px;
  }

  .image-modal-content img {
    max-height: calc(86vh - 16px);
  }

  .image-modal-close {
    top: -14px;
    right: -14px;
  }
}

/* ===================================
   Responsive: Phone Portrait Specific
====================================== */

@media (max-width: 560px) and (orientation: portrait) {
  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .hero {
    min-height: 350px;
    height: 350px;
  }

  .hero-content {
    width: calc(100% - 44px);
    max-width: none;
    padding: 22px 12px;
    border: none;
    outline: 5px solid rgba(255, 253, 248, 1);
    outline-offset: 0;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-text {
    max-width: none;
    font-size: 16px;
    line-height: 1.45;
  }

  .button-primary {
    padding: 13px 20px;
    font-size: 13px;
  }

  .avatar {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .avatar-button {
    height: auto;
  }

  .avatar-button .avatar {
    height: auto;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
