/* ============ VARIABLES & RESET ============ */
:root {
  --bg: #1c3050;
  --bg-soft: #223959;
  --bg-card: #274064;
  --sand: #ece1cd;
  --sand-dim: rgba(236, 225, 205, 0.72);
  --sand-faint: rgba(236, 225, 205, 0.45);
  --rust: #d97a4a;
  --rust-soft: #e8a077;
  --teal: #7fb8a4;
  --line: rgba(236, 225, 205, 0.14);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-quote: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

::selection { background: var(--rust); color: #fff; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(28, 48, 80, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  color: var(--sand);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--sand-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--rust-soft); }
.nav-cta {
  border: 1px solid var(--rust);
  color: var(--rust-soft) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease !important;
}
.nav-cta:hover { background: var(--rust); color: #fff !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--sand);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============ COVERS ============ */
.cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.quote-cover { min-height: 82vh; }
.cover-hero .cover-img {
  object-position: center 72%;
}
.quote-top .cover-img {
  object-position: center top;
}
.quote-cover .cover-overlay {
  background: linear-gradient(
    to bottom,
    rgba(28, 48, 80, 0) 0%,
    rgba(28, 48, 80, 0) 72%,
    rgba(28, 48, 80, 0.35) 82%,
    var(--bg) 96%
  );
}
.quote-tall {
  min-height: 160vh;
}
.quote-tall .cover-overlay {
  background: linear-gradient(
    to bottom,
    rgba(28, 48, 80, 0) 0%,
    rgba(28, 48, 80, 0) 85%,
    rgba(28, 48, 80, 0.35) 93%,
    var(--bg) 100%
  );
}
.quote-corner {
  align-self: flex-start;
  margin: 12vh 0 0 6vw;
  text-align: left;
}
.quote-tall .quote-corner {
  margin-left: calc(1vw - 5.2in);
  font-size: 1.15em;
}
.quote-full {
  min-height: 130vh;
}
.quote-full .cover-img {
  object-fit: contain;
}
.quote-full .quote-corner {
  margin-top: -6vh;
}
.quote-full .cover-overlay {
  background: linear-gradient(
    to bottom,
    rgba(28, 48, 80, 0) 0%,
    rgba(28, 48, 80, 0) 85%,
    rgba(28, 48, 80, 0.35) 93%,
    var(--bg) 100%
  );
}
.reveal.quote-shift {
  transform: translate(-2.1in, calc(-1in + 28px));
}
.reveal.quote-shift.visible {
  transform: translate(-2.1in, -1in);
}
.quote-shift p {
  color: #0d1b30;
  font-size: clamp(9rem, 22vw, 28rem);
  font-weight: 800;
  text-shadow:
    0 0 18px rgba(236, 225, 205, 0.9),
    0 0 45px rgba(236, 225, 205, 0.75),
    0 0 90px rgba(236, 225, 205, 0.6);
}
.cover-hero .cover-content {
  transform: translateY(-9vh);
}
.cover-hero .cover-sub {
  margin-top: 1.7rem;
}
.cover-hero .cover-overlay {
  background: linear-gradient(
    to bottom,
    rgba(28, 48, 80, 0) 0%,
    rgba(28, 48, 80, 0) 78%,
    rgba(28, 48, 80, 0.35) 90%,
    var(--bg) 100%
  );
}
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cover-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
    background:
    radial-gradient(ellipse at center, rgba(28, 48, 80, 0.25) 0%, rgba(28, 48, 80, 0.78) 100%),
    linear-gradient(to bottom, rgba(28, 48, 80, 0.55), rgba(28, 48, 80, 0.35) 40%, var(--bg) 96%);
}
.cover-content {
  padding: 6rem 2rem 4rem;
  max-width: 900px;
}
.cover-kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand-faint);
  margin-bottom: 1.6rem;
}
.cover-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.02;
  letter-spacing: 0.04em;
}
.cover-hero h1 span {
  display: block;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--rust-soft);
  margin-top: 1.2rem;
}
.cover-sub {
  margin-top: 2.4rem;
  font-family: var(--font-quote);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--sand-dim);
}
.scroll-hint {
  display: inline-block;
  margin-top: 3.2rem;
  font-size: 1.6rem;
  color: var(--sand-faint);
  text-decoration: none;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.quote-cover blockquote p {
  font-family: var(--font-quote);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.18;
  text-wrap: balance;
}

/* ============ SECTIONS ============ */
.section {
  max-width: 800px;
  margin: 0 auto;
  padding: 6.5rem 2rem;
}
.section-head { margin-bottom: 3rem; }
.kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust-soft);
  margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 1.2rem;
  color: var(--sand-dim);
  max-width: 620px;
}
.prose p { margin-bottom: 1.6em; }
.prose p:last-child { margin-bottom: 0; }
.prose .big-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.45;
  color: var(--sand);
  border-left: 3px solid var(--rust);
  padding-left: 1.4rem;
  margin-bottom: 2.2em;
}
.prose .highlight {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--rust-soft);
}

/* Principle cards (governance) */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0 2.4rem;
}
.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.principle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 122, 74, 0.5);
}
.principle-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--teal);
}
.principle-card p { font-size: 0.95rem; color: var(--sand-dim); margin: 0; }

/* ============ GALLERY ============ */
.gallery-section { max-width: 1200px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.92);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ============ MOBILE QUOTES ============ */
@media (max-width: 760px) {
  .quote-cover,
  .quote-tall,
  .quote-full {
    min-height: 75vh;
  }
  .reveal.quote-shift,
  .reveal.quote-shift.visible {
    transform: none;
  }
  .quote-shift p {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
  .quote-corner,
  .quote-tall .quote-corner,
  .quote-full .quote-corner {
    align-self: center;
    margin: 0;
    font-size: 1em;
    text-align: center;
  }
  .quote-tall .quote-corner p {
    color: #3a3a3a;
  }
  .quote-tall .quote-accent {
    color: #fff;
  }
  .quote-tall .cover-overlay,
  .quote-full .cover-overlay {
    background: linear-gradient(
      to bottom,
      rgba(28, 48, 80, 0) 0%,
      rgba(28, 48, 80, 0) 72%,
      rgba(28, 48, 80, 0.35) 82%,
      var(--bg) 96%
    );
  }
}

/* ============ FAQ ============ */
.faq-section { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: rgba(217, 122, 74, 0.55); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3.4rem 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.4;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rust-soft);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--sand-dim);
  font-size: 0.97rem;
}
.faq-answer p { margin-bottom: 1em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============ APPLY FORM ============ */
.apply-section { max-width: 720px; padding-bottom: 7rem; }
.apply-form { display: flex; flex-direction: column; gap: 1.7rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field label,
.check-fieldset legend {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sand);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.phone-group select,
.field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(217, 122, 74, 0.18);
}
.field ::placeholder { color: var(--sand-faint); }
.phone-group {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 0.7rem;
}
.phone-group select { appearance: none; cursor: pointer; }

/* Colored long-answer boxes */
.field-colored textarea {
  background: linear-gradient(160deg, #2e4770, #263d61);
  border-left: 3px solid var(--rust);
  resize: vertical;
  min-height: 90px;
}

/* Check pills */
.check-fieldset { border: none; }
.check-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check-pill input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--sand-faint);
  border-radius: 5px;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.check-pill input:checked {
  background: var(--rust);
  border-color: var(--rust);
}
.check-pill input:checked::before {
  content: "";
  width: 10px; height: 10px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check-pill:has(input:checked) {
  border-color: var(--rust);
  background: rgba(217, 122, 74, 0.12);
}

.submit-btn {
  margin-top: 0.6rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--rust);
  border: none;
  border-radius: 999px;
  padding: 1rem 2.6rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.submit-btn:hover {
  background: #e88a58;
  transform: translateY(-2px);
}
.form-note {
  font-size: 0.85rem;
  color: var(--sand-faint);
  font-style: italic;
}
.form-status {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.3rem;
  border-radius: 12px;
}
.form-status.success {
  display: block;
  color: #bfe8d5;
  background: rgba(127, 184, 164, 0.15);
  border: 1px solid rgba(127, 184, 164, 0.45);
}
.form-status.error {
  display: block;
  color: #f2c4ae;
  background: rgba(217, 122, 74, 0.15);
  border: 1px solid rgba(217, 122, 74, 0.45);
}
.submit-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 4rem 2rem 3.5rem;
  color: var(--sand-faint);
  font-size: 0.92rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.24em;
  color: var(--sand-dim);
  margin-bottom: 0.8rem;
}
.footer a { color: var(--rust-soft); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-quote { margin-top: 1.4rem; font-style: italic; }

/* ============ HERO LOGO ============ */
#about {
  position: relative;
}
.hero-logo {
  position: absolute;
  top: 56%;
  left: calc(50% - 700px);
  transform: translateY(-50%);
  width: clamp(165px, 19.5vw, 300px);
  z-index: 2;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}
@media (max-width: 1360px) {
  .hero-logo {
    position: static;
    transform: none;
    width: 160px;
    margin: 0 0 1.5rem;
    display: block;
  }
}
@media (max-width: 760px) {
  .hero-logo {
    width: 200px;
    margin: 0 auto 2rem;
  }
}

/* ============ PANORAMIC BANNER ============ */
.panorama-banner {
  height: clamp(240px, 45vw, 520px);
  overflow: hidden;
}
.panorama-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 20, 33, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
}
.gallery-item img {
  cursor: zoom-in;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ MOBILE NAV ============ */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(28, 48, 80, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 600px; }
  .nav-links a {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-top: 1px solid var(--line);
  }
  .nav-cta {
    margin: 0.8rem 2rem 1.2rem;
    padding: 0.7rem 1.1rem !important;
    text-align: center;
    border-top: none !important;
  }
}
