/* =========================================================
   TBA Global Consulting — primary stylesheet
   Light theme · burgundy accent #7F1D1D on #F7F7F6
   ========================================================= */

:root {
  --bg: #F7F7F6;
  --surface: #FFFFFF;
  --text: #161412;
  --muted: #5C544B;
  --accent: #7F1D1D;
  --accent-light: #991B1B;
  --accent-deep: #2A0A0A;
  --accent-soft: #FECACA;
  --accent-wash: #F3D6D6;
  --gold: #D9A441;
  --gold-soft: #E9C98C;
  --line: #E4E1DC;
  --radius: 12px;
  --max: 1180px;
  --nav-h: 74px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* ---------- Keyhole navigation ---------- */
.keyhole-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-word {
  color: var(--text);
}

.keyhole {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 24px;
  flex: 0 0 auto;
}

.keyhole::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-sizing: border-box;
}

.keyhole::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 12px;
  border: 2px solid var(--accent);
  border-top: none;
  border-radius: 0 0 3px 3px;
  box-sizing: border-box;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 8px;
}

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

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

.nav-cta {
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sunrise hero ---------- */
.sun-hero {
  background: linear-gradient(180deg, #FDFBF8 0%, #F7F1E8 60%, #F2E6D6 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 84px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--accent-deep);
  border: 2px solid var(--accent);
}

.btn-ghost:hover {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-light {
  background-color: #FFFFFF;
  color: var(--accent-deep);
}

.btn-light:hover {
  background-color: var(--accent-soft);
}

/* Sunrise artwork */
.sunrise {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.sun-rays {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 150px;
  transform-origin: bottom center;
  transform: translate(-50%, -100%);
  background: var(--gold);
  border-radius: 3px;
}

.ray:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); height: 150px; }
.ray:nth-child(2) { transform: translate(-50%, -100%) rotate(36deg); height: 112px; }
.ray:nth-child(3) { transform: translate(-50%, -100%) rotate(72deg); height: 138px; }
.ray:nth-child(4) { transform: translate(-50%, -100%) rotate(108deg); height: 96px; }
.ray:nth-child(5) { transform: translate(-50%, -100%) rotate(144deg); height: 126px; }
.ray:nth-child(6) { transform: translate(-50%, -100%) rotate(180deg); height: 108px; }
.ray:nth-child(7) { transform: translate(-50%, -100%) rotate(216deg); height: 142px; }
.ray:nth-child(8) { transform: translate(-50%, -100%) rotate(252deg); height: 100px; }
.ray:nth-child(9) { transform: translate(-50%, -100%) rotate(288deg); height: 130px; }
.ray:nth-child(10) { transform: translate(-50%, -100%) rotate(324deg); height: 116px; }

.sun-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--gold-soft), 0 0 70px 18px var(--gold-soft);
}

.horizon {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.cloud {
  position: absolute;
  background-color: #FFFFFF;
  border-radius: 999px;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background-color: #FFFFFF;
  border-radius: 999px;
}

.cloud-a {
  width: 90px;
  height: 22px;
  bottom: 60px;
  left: 8%;
}

.cloud-a::before {
  width: 44px;
  height: 44px;
  top: -22px;
  left: 16px;
}

.cloud-a::after {
  width: 30px;
  height: 30px;
  top: -14px;
  right: 10px;
}

.cloud-b {
  width: 66px;
  height: 16px;
  bottom: 44px;
  right: 10%;
}

.cloud-b::before {
  width: 32px;
  height: 32px;
  top: -16px;
  left: 10px;
}

.cloud-b::after {
  width: 22px;
  height: 22px;
  top: -10px;
  right: 8px;
}

.cloud-c {
  width: 50px;
  height: 12px;
  bottom: 92px;
  right: 4%;
}

.cloud-c::before {
  width: 24px;
  height: 24px;
  top: -12px;
  left: 8px;
}

.cloud-c::after {
  width: 18px;
  height: 18px;
  top: -9px;
  right: 6px;
}

/* ---------- Statement row ---------- */
.statement-row {
  background-color: var(--accent-deep);
  color: #FFFFFF;
}

.statement-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 88px 24px;
  text-align: center;
}

.statement-lead {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-soft);
  margin-bottom: 22px;
}

.statement-body {
  font-size: 1.1rem;
  color: #F5EDE6;
  line-height: 1.8;
}

/* ---------- Stats ---------- */
.stats-section {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 28px 12px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
}

.stat-num {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  vertical-align: top;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Section headings ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Process list ---------- */
.process-section {
  background-color: var(--bg);
  padding: 88px 24px;
}

.process-list {
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 46px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background-color: var(--accent-soft);
}

.process-item {
  position: relative;
  padding: 0 0 44px 104px;
}

.process-item:last-child {
  padding-bottom: 0;
}

.process-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 94px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 50%;
  border: 6px solid var(--accent-wash);
}

.process-item h3 {
  font-size: 1.35rem;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.process-item p {
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Comparison table ---------- */
.compare-section {
  background-color: var(--surface);
  padding: 88px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-table {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-cell {
  padding: 18px 20px;
  font-size: 0.98rem;
  color: var(--text);
  border-left: 1px solid var(--line);
}

.compare-cell:first-child {
  border-left: none;
}

.compare-feature {
  font-weight: 700;
  color: var(--accent-deep);
  background-color: #FBFAF8;
}

.compare-head .compare-cell {
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.compare-head .compare-feature {
  background-color: var(--accent-deep);
  color: #FFFFFF;
}

/* ---------- Horizontal scroll services ---------- */
.services-scroll {
  background-color: var(--bg);
  padding: 88px 0;
}

.services-scroll .section-head {
  padding: 0 24px;
}

.scroll-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 12px 24px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.service-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px #E6DFD2;
}

.card-index {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  background-color: var(--accent-wash);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background-color: var(--accent);
  background-image: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #FFFFFF;
  margin-bottom: 12px;
  max-width: 560px;
}

.cta-copy p {
  color: #F3E0E0;
  max-width: 560px;
}

.cta-inner .btn {
  flex: 0 0 auto;
}

/* ---------- Contact ---------- */
.contact-section {
  background-color: var(--surface);
  padding: 88px 24px;
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.contact-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--accent-deep);
  margin-bottom: 16px;
}

.contact-intro > p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.c-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.contact-list a {
  color: var(--text);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background-color: #FFFFFF;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.form-status {
  font-weight: 600;
  color: var(--accent);
  min-height: 1.4em;
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--accent-deep);
  color: #F5EDE6;
  border-top: 4px solid var(--accent);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand {
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-brand .brand-word {
  color: #FFFFFF;
}

.keyhole-light::before,
.keyhole-light::after {
  border-color: var(--accent-soft);
}

.footer-about p {
  color: #D8CCC2;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: #D8CCC2;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-col span {
  display: block;
  color: #D8CCC2;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #3A1616;
}

.footer-bottom p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  color: #C9BBAE;
  font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .sunrise {
    order: -1;
    max-width: 300px;
  }

  .sun-disc {
    width: 120px;
    height: 120px;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
  }

  .nav-links.open {
    max-height: 360px;
  }

  .nav-link {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }

  .nav-cta {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
