/* ArchonAI — Authoritative AI for enterprise governance */

:root {
  --navy: #0A1628;
  --gold: #C9A227;
  --slate: #475569;
  --pearl: #F8FAFC;
  --teal: #0D9488;
  --navy-light: #132238;
  --gold-soft: rgba(201, 162, 39, 0.15);
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.18);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
  --radius: 8px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--pearl);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--navy);
  color: var(--pearl);
}

.section--pearl {
  background: var(--pearl);
}

.section--alt {
  background: #eef2f6;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section__lead {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 640px;
}

.section--dark .section__lead {
  color: rgba(248, 250, 252, 0.75);
}

/* Animations */
.js .fade-in,
.js .slide-up {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade-in {
  transform: translateY(0);
}

.js .slide-up {
  transform: translateY(32px);
}

.js .fade-in.is-visible,
.js .slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .fade-in,
.no-js .slide-up {
  opacity: 1;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: var(--shadow);
  height: var(--nav-h);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pearl);
  white-space: nowrap;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav__link {
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease;
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: #d4ad2f;
  color: var(--navy);
}

.btn--outline-light {
  background: transparent;
  color: var(--pearl);
  border-color: rgba(248, 250, 252, 0.4);
}

.btn--outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--teal {
  background: var(--teal);
  color: var(--pearl);
  border-color: var(--teal);
}

.btn--teal:hover {
  background: #0f766e;
  color: var(--pearl);
}

.nav__cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pearl);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  padding-top: var(--nav-h);
}

/* Hero cinematic */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.55) 60%, rgba(13, 148, 136, 0.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 720px;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--pearl);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Module cards */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.module-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-card__img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.module-card__body {
  padding: 1.5rem;
}

.module-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.module-card__text {
  color: var(--slate);
  font-size: 0.9rem;
}

/* Quote divider */
.quote-divider {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}

.quote-divider__text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-style: italic;
  color: var(--pearl);
  max-width: 800px;
  margin: 0 auto 1rem;
}

.quote-divider__cite {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.industry-item {
  padding: 1.5rem;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.industry-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.industry-item p {
  font-size: 0.85rem;
  color: var(--slate);
}

/* Services 3-col */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-col {
  padding: 2rem;
  background: var(--navy);
  color: var(--pearl);
  border-radius: var(--radius);
}

.service-col h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-col p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Editorial split */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.editorial-split__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.editorial-split__content h2 {
  margin-bottom: 1rem;
}

.editorial-split__content p {
  color: var(--slate);
  margin-bottom: 1rem;
}

/* Horizontal features */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-h {
  text-align: center;
  padding: 1.75rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow);
}

.feature-h__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--gold-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
}

.feature-h h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-h p {
  font-size: 0.8rem;
  color: var(--slate);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--navy-light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--pearl);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.testimonial-card__author {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.6);
}

/* CTA audit */
.cta-audit {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-audit__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.cta-audit__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 40%, rgba(10, 22, 40, 0.85) 100%);
}

.cta-audit__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-audit__inner h2 {
  color: var(--pearl);
  margin-bottom: 1rem;
}

.cta-audit__inner p {
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 1.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  padding: 4rem 0 3rem;
  color: var(--pearl);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(248, 250, 252, 0.75);
  max-width: 560px;
}

/* Collection filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid var(--slate);
  background: transparent;
  color: var(--slate);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--pearl);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.collection-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: opacity var(--transition), transform var(--transition);
}

.collection-card.is-hidden {
  display: none;
}

.collection-card__img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

.collection-card__body {
  padding: 1.5rem;
}

.collection-card__ref {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.collection-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gold-soft);
  color: var(--navy);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.collection-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.collection-card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 600;
}

.collection-card__desc {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0.75rem 0;
}

/* Services page */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(71, 85, 105, 0.15);
}

.service-block:nth-child(even) {
  direction: rtl;
}

.service-block:nth-child(even) > * {
  direction: ltr;
}

.service-block__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-block p {
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.service-block ul {
  margin-left: 1.25rem;
  color: var(--slate);
  font-size: 0.9rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-grid__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--navy);
  color: var(--pearl);
  border-radius: var(--radius);
}

.stat-box__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

.stat-box__label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--navy);
  color: var(--pearl);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-info h2 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-info__item {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-info__item strong {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-info__img {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  opacity: 0.9;
}

.contact-form-wrap {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: var(--pearl);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #dc2626;
}

.form-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.form-checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.form-success {
  display: none;
  padding: 2rem;
  text-align: center;
  background: var(--gold-soft);
  border-radius: var(--radius);
  border: 1px solid var(--gold);
}

.form-success.is-visible {
  display: block;
}

.form-success p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.7;
}

.contact-form-wrap.is-submitted .contact-form {
  display: none;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content .updated {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(248, 250, 252, 0.75);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(248, 250, 252, 0.75);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 1.25rem 0;
  box-shadow: 0 -8px 32px rgba(10, 22, 40, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.85);
}

.cookie-banner__text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid,
  .features-row,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-split,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-block,
  .service-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav__list.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list li {
    border-bottom: 1px solid rgba(248, 250, 252, 0.08);
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav__cta .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }

  .services-grid,
  .features-row,
  .testimonials-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 80vh;
  }
}
