/* Kingdom Controls — shared styles
   Edit brand colors below; Tailwind utilities handle most layout. */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071628;
  --charcoal: #2a2f36;
  --steel: #4a6578;
  --accent: #1e4a6e;
  --accent-hover: #163a57;
  --muted: #5c6570;
  --line: #d8dee6;
  --surface: #f4f6f8;
  --white: #ffffff;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Subtle industrial atmosphere — not a flat wash */
.page-bg {
  background-color: var(--white);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(30, 74, 110, 0.06), transparent 55%),
    linear-gradient(180deg, #f7f9fb 0%, #ffffff 38%, #ffffff 100%);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

.site-logo {
  display: block;
  height: 2.85rem;
  width: auto;
  max-width: min(12.75rem, 52vw);
  object-fit: contain;
  background: transparent;
}

.site-logo.is-missing {
  display: none;
}

.site-logo-footer {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: 13.5rem;
  object-fit: contain;
  background: transparent;
  /* Slight lift so gray logo type stays clear on the navy footer */
  filter: brightness(1.15);
}

.site-brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .site-logo {
    height: 3.25rem;
    max-width: 14.5rem;
  }

  .site-brand-text {
    font-size: 1.2rem;
  }
}

.nav-link {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
}

.phone-link {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--surface);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Hero — full-bleed visual plane */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 22, 40, 0.35) 0%, rgba(7, 22, 40, 0.72) 55%, rgba(7, 22, 40, 0.9) 100%),
    linear-gradient(120deg, rgba(11, 31, 58, 0.55), rgba(30, 74, 110, 0.25));
  background-color: var(--navy-deep);
  transform: scale(1.04);
  transform-origin: center 40%;
}

/* Full-bleed hero photo — layered overlays for a more cinematic, premium read */
.hero-media.has-image {
  background-image:
    linear-gradient(180deg, rgba(7, 22, 40, 0.42) 0%, rgba(7, 22, 40, 0.18) 28%, rgba(7, 22, 40, 0.58) 62%, rgba(7, 22, 40, 0.92) 100%),
    linear-gradient(100deg, rgba(7, 22, 40, 0.55) 0%, rgba(7, 22, 40, 0.18) 42%, transparent 70%),
    radial-gradient(ellipse 70% 55% at 70% 35%, transparent 0%, rgba(7, 22, 40, 0.35) 100%),
    url("../assets/images/home/hero.jpg");
  background-size: cover;
  background-position: center 45%;
  animation: hero-ken 18s ease-out both;
}

.hero-grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5.5rem 0 4.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-copy {
  max-width: 40rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
}

.hero-rule {
  width: 3.25rem;
  height: 2px;
  margin: 1.35rem 0 1.5rem;
  background: linear-gradient(90deg, #c4a35a 0%, rgba(196, 163, 90, 0.15) 100%);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  max-width: 34rem;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.hero-support {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 33rem;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes hero-ken {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.04);
  }
}

/* Image / content placeholders — clearly marked for replacement */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(
      -45deg,
      #e8edf2,
      #e8edf2 12px,
      #eef2f6 12px,
      #eef2f6 24px
    );
  border: 1px dashed #9aa8b5;
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1.25rem;
  min-height: 220px;
}

.placeholder-dark {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 12px,
      rgba(255, 255, 255, 0.07) 12px,
      rgba(255, 255, 255, 0.07) 24px
    );
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.7);
}

.placeholder-portrait {
  aspect-ratio: 3 / 4;
  min-height: 0;
  width: 100%;
}

.placeholder-project {
  aspect-ratio: 16 / 10;
  min-height: 0;
  width: 100%;
}

.project-photo {
  display: block;
  background: var(--surface);
}

.services-platform-photo {
  display: block;
  background: var(--surface);
  outline: 1px solid rgba(11, 31, 58, 0.08);
  outline-offset: -1px;
}

.placeholder-inline {
  min-height: 160px;
}

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

.section-tight {
  padding: 3.25rem 0;
}

.section-muted {
  background: var(--surface);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--navy);
  margin: 0 0 0.85rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

/* Simple content blocks — not card-heavy */
.capability-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--charcoal);
}

.capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.platform-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  border-bottom: 2px solid rgba(30, 74, 110, 0.25);
  padding-bottom: 0.15rem;
  margin-right: 1.25rem;
  margin-bottom: 0.75rem;
}

.project-item {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.project-item:last-child {
  border-bottom: 1px solid var(--line);
}

.team-photo {
  display: block;
  background: var(--surface);
}

.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0.85rem 0 0.2rem;
}

.team-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Forms */
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 0.25rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 74, 110, 0.12);
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

/* Page intro (inner pages) */
.page-intro {
  padding: 3.5rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

/* Motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fade-up 0.7s ease both;
}

.animate-fade-up-delay {
  animation: fade-up 0.7s ease 0.15s both;
}

.animate-fade-up-delay-2 {
  animation: fade-up 0.7s ease 0.28s both;
}

.animate-fade-in {
  animation: fade-in 1s ease both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-fade-up,
  .animate-fade-up-delay,
  .animate-fade-up-delay-2,
  .animate-fade-in,
  .hero-media.has-image {
    animation: none;
  }

  .hero-media {
    transform: none;
  }
}

/* —— Home page polish (scoped; does not affect Team / Projects pages) —— */
.page-home .home-section {
  padding: 5.25rem 0;
}

.page-home .home-section-intro {
  max-width: 36rem;
}

.page-home .home-section-intro .section-title {
  margin-bottom: 1rem;
}

.page-home .home-section-action {
  margin-top: 2.75rem;
}

.page-home .home-credibility {
  padding-top: 4.75rem;
  padding-bottom: 4.75rem;
  background:
    linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.page-home .home-credibility-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .page-home .home-credibility-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.page-home .home-credibility-title {
  position: relative;
  padding-left: 1.15rem;
}

.page-home .home-credibility-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, #c4a35a 0%, var(--accent) 100%);
}

.page-home .home-credibility-title .section-title {
  margin-bottom: 0;
  max-width: 16ch;
}

.page-home .home-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0;
}

.page-home .home-platforms {
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .platform-inline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}

.page-home .home-services {
  background: var(--surface);
}

.page-home .home-capability-grid {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .page-home .home-capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .home-capability {
  padding: 1.85rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .page-home .home-capability {
    padding: 2rem 1.75rem 0.25rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .page-home .home-capability:first-child {
    padding-left: 0;
  }

  .page-home .home-capability:last-child {
    border-right: 0;
    padding-right: 0;
    padding-left: 1.75rem;
  }

  .page-home .home-capability:nth-child(2) {
    padding-left: 1.75rem;
  }
}

.page-home .home-capability-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-bottom: 0.85rem;
}

.page-home .home-capability-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}

.page-home .home-capability-text {
  margin: 0;
  color: var(--steel);
  line-height: 1.65;
  max-width: 28rem;
}

.page-home .home-projects-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .page-home .home-projects-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.page-home .home-project-grid {
  display: grid;
  gap: 2.75rem;
  margin-top: 2.75rem;
}

@media (min-width: 768px) {
  .page-home .home-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2.75rem;
  }
}

.page-home .home-project-media {
  border: 0;
  outline: 1px solid rgba(11, 31, 58, 0.08);
  outline-offset: -1px;
  background: var(--surface);
}

.page-home .home-project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.15rem 0 0.45rem;
  letter-spacing: -0.02em;
}

.page-home .home-project-desc {
  margin: 0;
  color: var(--steel);
  line-height: 1.65;
}

.page-home .home-team {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.page-home .home-team-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-home .home-team-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

.page-home .home-team-cta {
  margin-top: 2rem;
}

.page-home .home-team-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .page-home .home-team-photos {
    gap: 1rem;
  }
}

.page-home .home-team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  outline: 1px solid rgba(11, 31, 58, 0.08);
  outline-offset: -1px;
}

.page-home .home-cta-section {
  padding-bottom: 5.5rem;
}

.page-home .home-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(74, 101, 120, 0.4), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 3.25rem 1.5rem;
}

@media (min-width: 640px) {
  .page-home .home-cta {
    padding: 3.75rem 3.25rem;
  }
}

.page-home .home-cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #c4a35a 0%, transparent 85%);
}

.page-home .home-cta-inner {
  position: relative;
  max-width: 34rem;
}

.page-home .home-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.page-home .home-cta-text {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.page-home .home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--charcoal);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-phone-desktop {
    display: none;
  }
}
