:root {
  --bg-dark: #060606;
  --card-bg: #0c0c0c;
  --card-bg-active: #0e0d0a;
  --border-subtle: #181818;
  --border-accent: #262626;
  
  --text-bright: #FFFFFF;   
  --text-main: #E4E4E7;   
  --text-muted: #A1A1AA;   
  
  --accent-gold: #D4A359;
  --accent-gold-hover: #E5B46A;
  --font-main: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 300;
}

body.modal-open {
  overflow: hidden;
}

sub {
  font-size: 0.6em;
  line-height: 0;
  position: relative;
  top: 0.3em;
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-bright);
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  max-width: 640px;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

/* HEADER */
header {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border-subtle);
}

.logo {
  font-weight: 500;
  color: var(--text-bright);
  white-space: nowrap;
  font-size: clamp(0.7rem, 2.8vw, 0.85rem);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.return-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.65rem, 2.4vw, 0.75rem);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.return-link:hover {
  color: var(--text-bright);
}

/* SERVICES STACK */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 32px;
  opacity: 0.55;
  transform: scale(0.985);
  cursor: pointer;
  position: relative;
  transition: 
    border-color 0.4s ease-in-out,
    background-color 0.4s ease-in-out,
    box-shadow 0.4s ease-in-out,
    opacity 0.4s ease-in-out,
    transform 0.4s ease-in-out;
}

.service-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent-gold);
  background-color: var(--card-bg-active);
  box-shadow: 0 0 30px rgba(212, 163, 89, 0.08);
}

.service-card.is-active .service-meta {
  color: var(--accent-gold);
}

.service-card.is-active .hero-trigger {
  color: var(--text-bright);
}

.service-card.is-active .hero-trigger .trigger-arrow {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.service-card.is-active .hero-trigger::after {
  background-color: rgba(212, 163, 89, 0.4);
}

/* DESKTOP HOVER OVERRIDE */
@media (hover: hover) {
  body:not(.is-scrolling) .services-stack:hover .service-card.is-active {
    opacity: 0.55;
    transform: scale(0.985);
    border-color: var(--border-subtle);
    background-color: var(--card-bg);
    box-shadow: none;
  }

  body:not(.is-scrolling) .services-stack:hover .service-card.is-active .service-meta,
  body:not(.is-scrolling) .services-stack:hover .service-card.is-active .hero-trigger {
    color: var(--text-muted);
  }

  body:not(.is-scrolling) .services-stack:hover .service-card.is-active .hero-trigger .trigger-arrow {
    color: var(--text-muted);
    transform: translateX(0);
  }

  body:not(.is-scrolling) .services-stack:hover .service-card.is-active .hero-trigger::after {
    background-color: var(--border-subtle);
  }

  body:not(.is-scrolling) .service-card:hover {
    opacity: 1 !important;
    transform: scale(1) !important;
    border-color: var(--accent-gold) !important;
    background-color: var(--card-bg-active) !important;
    box-shadow: 0 0 30px rgba(212, 163, 89, 0.12) !important;
  }

  body:not(.is-scrolling) .service-card:hover .service-meta {
    color: var(--accent-gold) !important;
  }

  body:not(.is-scrolling) .service-card:hover .hero-trigger {
    color: var(--text-bright) !important;
  }

  body:not(.is-scrolling) .service-card:hover .hero-trigger .trigger-arrow {
    color: var(--accent-gold) !important;
    transform: translateX(8px) !important;
  }

  body:not(.is-scrolling) .service-card:hover .hero-trigger::after {
    background-color: var(--accent-gold) !important;
  }

  body:not(.is-scrolling) .service-card:hover .expand-trigger {
    color: var(--text-bright) !important;
  }
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.4s ease-in-out;
}

.service-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 500;
}

.service-body {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.65;
  max-width: 680px;
}

/* EXPANDABLE CARD DETAILS ACCORDION */
.card-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.service-card.is-expanded .card-details {
  max-height: 400px;
  opacity: 1;
}

.card-details-inner {
  padding-top: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}

/* CARD ACCORDION TOGGLE BUTTON */
.expand-trigger {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  align-self: flex-start;
  margin-top: 4px;
}

.expand-trigger .expand-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-style: normal;
}

.service-card.is-expanded .expand-trigger .expand-arrow {
  transform: rotate(180deg);
}

.expand-trigger:hover {
  color: var(--accent-gold);
}

.service-card.is-active .expand-trigger {
  color: var(--text-bright);
}

.service-card.is-active .expand-trigger:hover {
  color: var(--accent-gold);
}

/* TERMINAL TRIGGER LINK */
.hero-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 4vw, 1.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: italic;
  padding: 12px 0;
  position: relative;
  transition: color 0.4s ease-in-out;
  margin-top: 8px;
}

.hero-trigger .trigger-arrow {
  color: var(--text-muted);
  font-style: normal;
  display: inline-block;
  transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
}

.hero-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
  transition: background-color 0.4s ease-in-out;
}

/* FOOTER */
footer {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-link {
  color: var(--text-bright);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-brand-link:hover {
  color: var(--accent-gold);
}

.footer-address {
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.footer-meta-links {
  display: flex;
  align-items: center;
}

.footer-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-tagline {
  color: var(--text-muted);
}

/* MODAL COMPONENT */
.scheduler-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.scheduler-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 680px;
  height: auto;
  max-height: 80vh;
  background-color: var(--card-bg);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 163, 89, 0.05);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scheduler-modal.is-open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-bright);
}

.modal-body {
  flex: 1;
  width: 100%;
  position: relative;
  background-color: var(--bg-dark);
  overflow-y: auto;
  padding: 28px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
}

.modal-body iframe {
  position: absolute;
  top: -180px;
  left: 0;
  width: 100%;
  height: calc(100% + 45px);
  border: none;
  background-color: #060606;
  z-index: 1;
}

/* MODAL LOADER GRAPHIC */
.modal-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 3;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-accent);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* LEGAL CONTENT STYLING */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-heading {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  section {
    padding: 72px 0;
  }

  .service-header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}