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

:root {
  --logo-olive: #b3bd80;
  --logo-gold: #fdd054;
  --logo-gold-deep: #f4b001;
  --logo-blue: #064193;
  --logo-sky: #317eec;
  --ink-dark: #0d0d0d;
  --ink-warm: #1a1412;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--ink-dark) 0%,
    var(--ink-warm) 25%,
    #2a2420 50%,
    var(--ink-warm) 75%,
    var(--ink-dark) 100%
  );
  color: #e8e8e8;
  font-family: "Georgia", "Times New Roman", serif;
  overflow-x: hidden;
}

.logo {
  height: clamp(180px, 35vw, 420px);
  width: auto;
  opacity: 0;
  animation: slideIn 2s ease-out forwards;
  filter: brightness(0.95) sepia(0.08);
  margin-bottom: 2rem;
}

.logo--page {
  height: clamp(120px, 20vw, 240px);
  margin-bottom: 1.5rem;
}

.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-image:
    linear-gradient(120deg, rgba(12, 10, 9, 0.9), rgba(21, 17, 14, 0.45)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 1.5rem;
}

.hero--page {
  min-height: 55vh;
  padding-top: 6rem;
  background-image: linear-gradient(120deg, rgba(12, 10, 9, 0.9), rgba(21, 17, 14, 0.45));
}

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(
    180deg,
    rgba(10, 8, 7, 0.7) 0%,
    rgba(10, 8, 7, 0.25) 60%,
    rgba(10, 8, 7, 0) 100%
  );
  backdrop-filter: blur(6px);
}

.nav-brand {
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4eadf;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  color: #f2e6d8;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 200, 120, 0), rgba(253, 208, 84, 0.75), rgba(6, 65, 147, 0.8), rgba(255, 200, 120, 0));
  transform: scaleX(0.6);
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 700px) {
  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }

  .nav-brand {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
    gap: 1rem 1.5rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(253, 208, 84, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(6, 65, 147, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(179, 189, 128, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 7, 0.75) 0%, rgba(10, 8, 7, 0.2) 60%, rgba(10, 8, 7, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-align: center;
  color: #f8f4f0;
  text-shadow:
    0 0 40px rgba(253, 208, 84, 0.18),
    0 0 80px rgba(49, 126, 236, 0.14);
  opacity: 0;
  animation: slideIn 2s ease-out 0.3s forwards;
}

.page-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 234, 223, 0.85);
  margin-top: 1rem;
  opacity: 0;
  animation: slideIn 2s ease-out 0.45s forwards;
}

.page-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #e6dccf;
}

.page-card {
  background: rgba(16, 12, 10, 0.6);
  border: 1px solid rgba(179, 189, 128, 0.22);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(6, 65, 147, 0.08);
}

.page-card h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--logo-gold);
  margin-bottom: 0.75rem;
  position: relative;
}

.page-card h2::after {
  content: '';
  display: block;
  width: min(160px, 60%);
  height: 2px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, rgba(253, 208, 84, 0.9), rgba(179, 189, 128, 0.7), rgba(6, 65, 147, 0.75));
}

.page-card p {
  color: rgba(240, 228, 214, 0.9);
}

.service-section {
  margin-top: 1.5rem;
}

.service-heading {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 234, 223, 0.85);
  margin-bottom: 0.85rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(179, 189, 128, 0.3);
  background: rgba(10, 8, 7, 0.55);
  color: rgba(248, 244, 240, 0.96);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(253, 208, 84, 0.6);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(179, 189, 128, 0.25);
  background: rgba(8, 7, 6, 0.4);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-method:hover,
.contact-method:focus-visible {
  border-color: rgba(253, 208, 84, 0.5);
  background: rgba(12, 10, 9, 0.6);
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253, 208, 84, 0.8);
}

.contact-value {
  font-size: 1rem;
  color: rgba(244, 234, 223, 0.95);
  word-break: break-word;
}

@media (min-width: 500px) {
  .contact-methods {
    flex-direction: row;
  }

  .contact-method {
    flex: 1;
  }
}

.location-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.location-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(179, 189, 128, 0.2);
  background: rgba(8, 7, 6, 0.45);
}

.location-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(253, 208, 84, 0.9);
  margin-bottom: 0.5rem;
}

.location-address {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.25rem;
  font-style: normal;
  color: rgba(244, 234, 223, 0.9);
}

.location-map {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 10px;
  margin-top: 1rem;
  filter: grayscale(0.3) contrast(1.05);
}

.team-member {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  background: rgba(18, 14, 12, 0.75);
  border: 1px solid rgba(179, 189, 128, 0.25);
}

.team-member-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(244, 208, 84, 0.35);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  background: rgba(6, 65, 147, 0.18);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.01);
}

.team-member-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-image--placeholder span {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(248, 244, 240, 0.9);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.team-member-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(248, 244, 240, 0.98);
  margin-bottom: 0.35rem;
}

.team-member-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: rgba(253, 208, 84, 0.85);
  margin-bottom: 0.35rem;
}

.team-member-practice {
  font-style: italic;
  color: rgba(244, 234, 223, 0.82);
  margin-bottom: 1rem;
}

.team-member-content > p:not(.team-member-title):not(.team-member-practice) {
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #1a1412;
  background: rgba(253, 208, 84, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
}

@media (max-width: 760px) {
  .team-member {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .team-member-image {
    max-width: 260px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 7, 6, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(520px, 100%);
  background: #120f0d;
  border: 1px solid rgba(179, 189, 128, 0.3);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  color: #efe6da;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253, 208, 84, 0.9);
}

.modal-close {
  border: none;
  background: transparent;
  color: rgba(248, 244, 240, 0.8);
  font-size: 1.4rem;
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 234, 223, 0.85);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(179, 189, 128, 0.3);
  background: #0d0b0a;
  color: #efe6da;
  font-family: inherit;
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-form label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 234, 223, 0.85);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(179, 189, 128, 0.3);
  background: #0d0b0a;
  color: #efe6da;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(253, 208, 84, 0.65);
  box-shadow: 0 0 0 2px rgba(253, 208, 84, 0.15);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #1a1412;
  background: rgba(253, 208, 84, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form validation states */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 80, 80, 0.7);
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
  border-color: rgba(179, 189, 128, 0.6);
}

.form-field {
  position: relative;
}

.form-field .error-hint {
  display: none;
  font-size: 0.75rem;
  color: rgba(220, 120, 120, 0.9);
  margin-top: 0.35rem;
}

.form-field.has-error .error-hint {
  display: block;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: rgba(220, 80, 80, 0.7);
}

/* Form messages */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-top: 1rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.form-message.is-visible {
  display: flex;
}

.form-message--success {
  background: rgba(179, 189, 128, 0.15);
  border: 1px solid rgba(179, 189, 128, 0.4);
  color: rgba(200, 210, 160, 0.95);
}

.form-message--error {
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: rgba(230, 140, 140, 0.95);
}

.form-message svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Loading spinner */
.btn-primary .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 20, 18, 0.3);
  border-top-color: #1a1412;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

.btn-primary.is-loading .spinner {
  display: block;
}

.btn-primary.is-loading .btn-text {
  opacity: 0.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.modal-actions .cta-button {
  background: rgba(179, 189, 128, 0.9);
  color: #15120f;
}

.hero--error {
  min-height: 100vh;
  background-image:
    linear-gradient(120deg, rgba(9, 9, 12, 0.92), rgba(21, 17, 14, 0.5)),
    url("images/hero.jpg");
}

.error-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(253, 208, 84, 0.85);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideIn 1.8s ease-out 0.1s forwards;
}

.error-orbit {
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  border-radius: 50%;
  border: 2px solid rgba(86, 140, 214, 0.55);
  box-shadow:
    0 0 0 20px rgba(49, 126, 236, 0.08),
    0 0 0 42px rgba(6, 65, 147, 0.14),
    0 0 50px rgba(49, 126, 236, 0.2);
  margin-bottom: 2rem;
  opacity: 0;
  animation: breathe 5.5s ease-in-out infinite, slideIn 1.8s ease-out 0.2s forwards;
}

.error-code {
  font-size: clamp(5.25rem, 18vw, 13rem);
  letter-spacing: 0.04em;
  font-weight: 300;
  font-family: "Palatino Linotype", "Book Antiqua", "Palatino", serif;
  color: rgba(248, 244, 240, 0.95);
  text-shadow:
    0 0 30px rgba(253, 208, 84, 0.2),
    0 0 80px rgba(6, 65, 147, 0.18);
  margin: 0;
  line-height: 0.9;
  opacity: 0;
  animation: slideIn 1.8s ease-out 0.35s forwards;
}

.error-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.error-message {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 300px;
  color: rgba(244, 234, 223, 0.9);
  line-height: 1.7;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  opacity: 0;
  animation: slideIn 1.8s ease-out 0.5s forwards;
}

.error-emphasis {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(49, 126, 236, 0.95);
}

.error-line {
  margin-top: 0.5rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: slideIn 1.8s ease-out 0.65s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: #161310;
  background: linear-gradient(120deg, rgba(253, 208, 84, 0.95), rgba(179, 189, 128, 0.85));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
}

.btn--ghost {
  color: rgba(248, 244, 240, 0.9);
  background: transparent;
  border: 1px solid rgba(253, 208, 84, 0.5);
  box-shadow: none;
}

.grounding-steps {
  margin-top: 1rem;
  padding-left: 1.3rem;
  line-height: 1.8;
  color: rgba(240, 228, 214, 0.9);
}

.grounding-steps li::marker {
  color: rgba(253, 208, 84, 0.8);
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.84);
    box-shadow:
      0 0 0 14px rgba(49, 126, 236, 0.06),
      0 0 0 30px rgba(6, 65, 147, 0.1),
      0 0 35px rgba(49, 126, 236, 0.14);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 0 26px rgba(49, 126, 236, 0.12),
      0 0 0 50px rgba(6, 65, 147, 0.18),
      0 0 65px rgba(49, 126, 236, 0.24);
  }
}
