/* ============================================================
   Chelsey House ActiveLuxe Limited — Main Stylesheet
   Design: Editorial / Magazine — Bold Typography, Asymmetric Grids
   Colors: Navy #1B263B, Teal #415A77, Gold #778DA9,
           Light Silver #E3E7E9, White #FFFFFF, Accent #E0E1DD
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #1B263B;
  background: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.15;
  color: #1B263B;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p {
  margin-bottom: 1.2rem;
  max-width: 65ch;
}

a {
  color: #415A77;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover, a:focus-visible {
  color: #1B263B;
  text-decoration: underline;
}

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

::selection {
  background: #1B263B;
  color: #FFFFFF;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid #415A77;
  outline-offset: 3px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #1B263B;
  color: #FFFFFF;
  padding: 8px 20px;
  z-index: 10000;
  font-size: 0.9rem;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E3E7E9;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(27, 38, 59, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1B263B;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand span {
  color: #778DA9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #415A77;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1B263B;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a:hover, .nav-links a:focus-visible {
  color: #1B263B;
  text-decoration: none;
}

.nav-cta {
  background: #1B263B !important;
  color: #FFFFFF !important;
  padding: 10px 24px !important;
  border-radius: 2px;
  transition: background 0.25s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover, .nav-cta:focus-visible {
  background: #415A77 !important;
  color: #FFFFFF !important;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1B263B;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-container { padding: 14px 24px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 28px;
    box-shadow: -4px 0 32px rgba(27, 38, 59, 0.12);
    transition: right 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    align-items: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }
}

/* ---------- Section Base ---------- */
.section {
  padding: 100px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section { padding: 64px 20px; }
}

/* ---------- Section Label ---------- */
.section-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #778DA9;
  margin-bottom: 20px;
  display: block;
}

/* ---------- Section 1: Hero — Editorial Centered ---------- */
.hero {
  background: #1B263B;
  color: #FFFFFF;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 140px 40px 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 1px solid #415A77;
  border-radius: 50%;
  opacity: 0.3;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 1px solid #778DA9;
  border-radius: 50%;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-accent {
  width: 60px;
  height: 3px;
  background: #778DA9;
  margin: 0 auto 36px;
}

.hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 28px;
  line-height: 1.08;
}

.hero-content .hero-sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: #E3E7E9;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #FFFFFF;
  color: #1B263B;
  padding: 16px 36px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  text-decoration: none;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: #E0E1DD;
  color: #1B263B;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  color: #E3E7E9;
  padding: 16px 36px;
  border: 1px solid #E3E7E9;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  text-decoration: none;
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: #E3E7E9;
  color: #1B263B;
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #778DA9;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: float 2s ease-in-out infinite;
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 36px;
  background: #778DA9;
}

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

/* ---------- Section 2: About — Asymmetric Magazine ---------- */
.about {
  background: #FFFFFF;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-left-void { /* intentional empty space for asymmetry */ }

.about-main h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 36px;
  color: #1B263B;
}

.about-main h2 em {
  font-style: italic;
  color: #778DA9;
}

.about-main .intro-paragraph {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
  color: #415A77;
  margin-bottom: 28px;
  font-style: italic;
}

.about-main p {
  font-size: 1rem;
  line-height: 1.8;
  color: #1B263B;
}

.about-sidebar {
  padding-top: 120px;
}

.about-sidebar blockquote {
  border-left: 3px solid #778DA9;
  padding-left: 24px;
  margin: 0;
}

.about-sidebar blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: #415A77;
  line-height: 1.6;
  margin-bottom: 12px;
}

.about-sidebar .attribution {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1B263B;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-left-void { display: none; }
  .about-sidebar { padding-top: 0; }
}

/* ---------- Section 3: Services — Masonry Cards ---------- */
.services {
  background: #F7F8F9;
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-masonry {
  columns: 2;
  column-gap: 28px;
}

.services-masonry > * {
  break-inside: avoid;
  margin-bottom: 28px;
}

.service-card {
  background: #FFFFFF;
  padding: 40px 36px;
  border: 1px solid #E3E7E9;
  border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: #778DA9;
  box-shadow: 0 8px 40px rgba(27, 38, 59, 0.07);
}

.service-card .card-number {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #E3E7E9;
  line-height: 1;
  margin-bottom: 8px;
}

.service-card h3 {
  margin-bottom: 14px;
  color: #1B263B;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #415A77;
  margin-bottom: 0;
}

.service-card.card-tall {
  /* naturally taller due to content */
}

@media (max-width: 768px) {
  .services-masonry { columns: 1; }
}

/* ---------- Section 4: Expertise — Tag Cloud ---------- */
.expertise {
  background: #FFFFFF;
  text-align: center;
}

.expertise-header {
  margin-bottom: 56px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 28px;
  max-width: 800px;
  margin: 0 auto;
}

.tag {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  color: #1B263B;
  border: 1px solid #E3E7E9;
  border-radius: 100px;
  padding: 10px 28px;
  transition: all 0.3s ease;
  cursor: default;
  white-space: nowrap;
  background: #FFFFFF;
}

.tag:hover {
  background: #1B263B;
  color: #FFFFFF;
  border-color: #1B263B;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 38, 59, 0.15);
}

.tag-xl {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 16px 36px;
}

.tag-lg {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 30px;
}

.tag-md {
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 26px;
}

.tag-sm {
  font-size: 0.85rem;
  font-weight: 400;
  padding: 8px 22px;
}

/* ---------- Section 5: Process — Radial Display ---------- */
.process {
  background: #1B263B;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.process .section-label {
  color: #778DA9;
}

.process-header {
  text-align: center;
  margin-bottom: 72px;
}

.process-header h2 {
  color: #FFFFFF;
}

.process-radial {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.process-radial::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 1px solid #415A77;
  border-radius: 50%;
  opacity: 0.4;
}

.process-step {
  text-align: center;
  width: 180px;
  position: relative;
  z-index: 2;
}

.process-step .step-numeral {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #778DA9;
  line-height: 1;
  margin-bottom: 12px;
}

.process-step h4 {
  color: #FFFFFF;
  margin-bottom: 8px;
}

.process-step p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #E0E1DD;
  line-height: 1.5;
  max-width: 100%;
}

@media (max-width: 768px) {
  .process-radial::before { display: none; }
  .process-step { width: 140px; }
}

/* ---------- Section 6: Stats — Embedded in Text ---------- */
.stats-section {
  background: #FFFFFF;
}

.stats-inline {
  max-width: 800px;
  margin: 0 auto;
}

.stats-inline .intro {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: #415A77;
  margin-bottom: 48px;
}

.stats-inline h2 {
  margin-bottom: 40px;
}

.stats-sentence {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.8;
  color: #1B263B;
  margin-bottom: 20px;
}

.stats-sentence .stat-highlight {
  display: inline-block;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #778DA9;
  line-height: 1;
  vertical-align: middle;
  margin: 0 4px;
}

.stats-sentence .stat-label {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #415A77;
  vertical-align: middle;
  margin-left: 2px;
}

/* ---------- Section 7: Industries — Horizontal Scroll ---------- */
.industries {
  background: #F7F8F9;
  overflow: hidden;
}

.industries-header {
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 40px;
}

.industries-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 40px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #778DA9 #E3E7E9;
}

.industries-scroll::-webkit-scrollbar {
  height: 6px;
}

.industries-scroll::-webkit-scrollbar-track {
  background: #E3E7E9;
  border-radius: 3px;
}

.industries-scroll::-webkit-scrollbar-thumb {
  background: #778DA9;
  border-radius: 3px;
}

.industry-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid #E3E7E9;
  padding: 20px 32px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B263B;
  transition: all 0.3s ease;
  cursor: default;
  white-space: nowrap;
}

.industry-chip:hover {
  background: #1B263B;
  color: #FFFFFF;
  border-color: #1B263B;
}

/* ---------- Section 8: CTA — Split Impact ---------- */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.cta-dark {
  background: #1B263B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

.cta-dark h2 {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-dark p {
  font-family: system-ui, -apple-system, sans-serif;
  color: #E0E1DD;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-light {
  background: #F7F8F9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

.cta-light-inner {
  max-width: 440px;
}

.cta-light h3 {
  color: #1B263B;
  margin-bottom: 16px;
}

.cta-light p {
  font-size: 0.95rem;
  color: #415A77;
  line-height: 1.6;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .cta-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* ---------- Section 9: Contact Form ---------- */
.contact {
  background: #FFFFFF;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-info .contact-detail {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  color: #415A77;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info .contact-detail strong {
  color: #1B263B;
  min-width: 80px;
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1B263B;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1px solid #E3E7E9;
  border-radius: 2px;
  background: #FFFFFF;
  color: #1B263B;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1B263B;
  box-shadow: 0 0 0 3px rgba(27, 38, 59, 0.08);
}

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

.form-submit {
  align-self: flex-start;
}

.form-feedback {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 2px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #E0E1DD;
  color: #1B263B;
  border: 1px solid #778DA9;
}

.form-feedback.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1B263B;
  color: #E0E1DD;
  padding: 72px 40px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto 48px;
}

.footer-brand .footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-brand .footer-logo span {
  color: #778DA9;
}

.footer-brand p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #E0E1DD;
  line-height: 1.6;
}

.footer-col h4 {
  color: #FFFFFF;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #E0E1DD;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-address {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #E0E1DD;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid #415A77;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: #778DA9;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ---------- Counter Animation ---------- */
.counter-value {
  display: inline-block;
}

/* ---------- Legal Pages (Privacy & Terms) ---------- */
.legal-page {
  padding: 140px 40px 80px;
  max-width: 780px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
  color: #1B263B;
}

.legal-page .legal-meta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #778DA9;
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: #1B263B;
  padding-top: 28px;
  border-top: 1px solid #E3E7E9;
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #415A77;
}

.legal-page p {
  font-size: 1rem;
  line-height: 1.8;
  color: #1B263B;
  margin-bottom: 16px;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 20px;
  padding-left: 28px;
}

.legal-page ul li, .legal-page ol li {
  font-size: 1rem;
  line-height: 1.8;
  color: #1B263B;
  margin-bottom: 8px;
}

.legal-page strong {
  color: #1B263B;
}

.legal-page em {
  color: #415A77;
  font-style: italic;
}

.legal-page a {
  color: #415A77;
  text-decoration: underline;
}

.legal-page a:hover {
  color: #1B263B;
}

.legal-contact-block {
  background: #F7F8F9;
  border: 1px solid #E3E7E9;
  padding: 32px 36px;
  margin-top: 36px;
  border-radius: 2px;
}

.legal-contact-block h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.legal-contact-block p {
  margin-bottom: 6px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

.legal-nav {
  background: #F7F8F9;
  border-bottom: 1px solid #E3E7E9;
  padding: 16px 40px;
  position: fixed;
  top: 65px;
  width: 100%;
  z-index: 999;
  display: flex;
  gap: 24px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
}

.legal-nav a {
  color: #415A77;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-nav a:hover {
  color: #1B263B;
}

@media (max-width: 768px) {
  .legal-page { padding: 120px 20px 60px; }
  .legal-nav { top: 56px; padding: 12px 20px; gap: 18px; }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #1B263B;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(27, 38, 59, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #415A77;
}
