/* Animations, gradients, and shadows only — layout/color utilities live in Tailwind */

:root {
  --shadow-soft: 0 18px 40px rgba(26, 37, 53, 0.12);
  --shadow-lift: 0 10px 28px rgba(26, 37, 53, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", ui-sans-serif, sans-serif;
  background: #f5f6f4;
  color: #1a2535;
}

a:not(.site-logo),
button {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Block links (service tiles, etc.) keep normal case; only CTAs stay uppercase */
a.service-tile {
  text-transform: none;
  letter-spacing: normal;
}

a.service-tile .service-arrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.text-brass {
  font-weight: 700;
  letter-spacing: 0.28em;
}

.site-logo,
.site-logo text {
  text-transform: none;
  letter-spacing: normal;
}

.hero-media {
  z-index: 0;
  overflow: hidden;
  background-color: #1a2535;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.surface-band {
  background-image: linear-gradient(
    180deg,
    #f5f6f4 0%,
    #eef1ee 48%,
    #f5f6f4 100%
  );
}

.cta-band {
  background-image: linear-gradient(
    135deg,
    #1a2535 0%,
    #243447 55%,
    #4a6854 100%
  );
}

.nav-panel {
  box-shadow: var(--shadow-soft);
}

.site-header.is-scrolled {
  background-color: rgba(26, 37, 53, 0.94);
  box-shadow: 0 8px 24px rgba(26, 37, 53, 0.18);
  backdrop-filter: blur(10px);
}

.service-section {
  scroll-margin-top: 5.5rem;
}

.services-hero-glow {
  background-image:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(92, 128, 104, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(201, 160, 82, 0.12), transparent 55%),
    linear-gradient(180deg, #1a2535 0%, #243447 100%);
}

.careers-hero-media {
  background-color: #1a2535;
  background-size: cover;
  background-position: center;
}

.careers-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.careers-culture {
  background-image: linear-gradient(90deg, #4a6854 0%, #5c8068 55%, #3f5a48 100%);
}

.careers-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(26, 37, 53, 0.12);
}

.careers-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(26, 37, 53, 0.12);
}

@media (min-width: 768px) {
  .careers-step {
    gap: 2.5rem;
    padding: 2.25rem 0;
  }
}

.careers-step-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #c9a052;
  padding-top: 0.2rem;
}

.careers-apply {
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(92, 128, 104, 0.35), transparent 70%),
    linear-gradient(180deg, #1a2535 0%, #243447 100%);
}

.service-section-media img {
  transition: transform 500ms ease;
}

.service-section:hover .service-section-media img {
  transform: scale(1.03);
}

.service-tile:hover .service-arrow {
  transform: translateX(4px);
}

.service-arrow {
  transition: transform 280ms ease;
}

.service-tile-image {
  transition: transform 500ms ease;
}

.service-tile:hover .service-tile-image {
  transform: scale(1.04);
}

.btn-primary {
  box-shadow: var(--shadow-lift);
  transition:
    background-color 280ms ease,
    transform 280ms ease,
    box-shadow 280ms ease;
}

.btn-primary:hover {
  transform: scale(1.02);
  animation: brass-pulse 1.8s ease-in-out infinite;
}

.btn-tap {
  min-height: 48px;
  min-width: 48px;
}

/* CTA primary button — shared brass pulse on hover */
.cta-primary {
  transition:
    background-color 280ms ease,
    transform 280ms ease,
    box-shadow 280ms ease;
}

.cta-primary:hover {
  transform: scale(1.02);
  animation: brass-pulse 1.8s ease-in-out infinite;
}

@keyframes brass-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 160, 82, 0.55);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(201, 160, 82, 0);
  }
}

/* Keyboard focus — brass outline */
*:focus-visible {
  outline: 2px solid #c9a052;
  outline-offset: 2px;
}

/* Credential seals — membership marks, not buttons */
.credential-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.credential-seal {
  width: 7.25rem;
  height: 7.25rem;
}

.credential-seal-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(26, 37, 53, 0.08));
}

.credential-seal-face {
  fill: #ffffff;
  stroke: none;
}

.credential-seal-ring {
  fill: none;
  stroke-linecap: round;
}

.credential-seal-ring--outer {
  stroke: #c9a052;
  stroke-width: 2.25;
}

.credential-seal-ring--mid {
  stroke: #1a2535;
  stroke-width: 1.25;
  opacity: 0.35;
}

.credential-seal-ring--inner {
  stroke: #c9a052;
  stroke-width: 1.5;
  opacity: 0.85;
}

.credential-seal-abbr {
  fill: #1a2535;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.credential-seal-mark {
  fill: #c9a052;
  font-family: "Figtree", ui-sans-serif, sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.contact-field {
  text-transform: none;
  letter-spacing: normal;
}

.contact-field:focus {
  border-color: #5c8068;
  box-shadow: 0 0 0 3px rgba(92, 128, 104, 0.18);
}

.contact-map {
  background-color: #e4e7e3;
}

.contact-map iframe {
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
}

/* Ledger-line texture for paper sections */
.bg-ledger {
  position: relative;
}

.bg-ledger::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/ledger-pattern.svg");
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
}

/* CTA blueprint grid texture */
.cta-texture {
  position: relative;
}

.cta-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Fluid hero brand + headline scaling */
.hero-title {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: clamp(0.72rem, 0.45vw + 0.62rem, 0.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.55);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  text-shadow: none;
  backdrop-filter: blur(2px);
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem);
  line-height: 1.05;
}

/* Section dividers — zero line-height so SVG fills exactly */
.section-divider {
  line-height: 0;
}

.section-divider svg {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy {
  animation: hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-copy-delay {
  animation: hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-copy-delay-2 {
  animation: hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-cta {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-copy-delay,
  .hero-copy-delay-2,
  .reveal,
  .service-tile-image {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero-video {
    display: none;
  }
}
