/* ============================================================
   COMET INNOVATIONS — MASTER STYLESHEET
   ============================================================

   HOW TO EDIT:
   1. Brand colors → Change the hex values in :root below
   2. Fonts → Change the font-family values in :root
   3. Spacing/sizing → Adjust the --space-* and --text-* values
   4. Dark mode → The site is dark-first; adjust --bg-* for lighter variant

   All editable values are in the :root block.
   ============================================================ */

/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@200;300;400;600&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   BRAND VARIABLES — Edit these to change the entire site
   ============================================================ */
:root {
  /* ── Colors (Purple / Innovations palette) ── */
  --color-navy:         #0D0618;   /* Primary background — deep violet */
  --color-navy-deep:    #080410;   /* Deeper dark for contrast sections */
  --color-charcoal:     #180D2E;   /* Card backgrounds, secondary surfaces */
  --color-slate:        #352055;   /* Secondary text, muted elements */
  --color-gold:         #C9A96E;   /* Primary accent — CTAs, highlights */
  --color-gold-hover:   #D4B87A;   /* Button/link hover state */
  --color-gold-muted:   #8A7A55;   /* Disabled/subtle accent */
  --color-white:        #F5F2ED;   /* Primary text on dark backgrounds */
  --color-mist:         #CCC2E0;   /* Borders, subtle separators — soft lavender */
  --color-success:      #6B9E7A;   /* Confirmation/success indicators */

  /* ── Fonts ── */
  --font-heading:  'Josefin Sans', 'Helvetica Neue', sans-serif;
  --font-body:     'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* ── Text Sizes ── */
  --text-hero:     clamp(2.5rem, 5vw, 4rem);      /* Hero headline */
  --text-h1:       clamp(2rem, 3.5vw, 2.75rem);    /* Section headlines */
  --text-h2:       clamp(1.5rem, 2.5vw, 2rem);     /* Sub-headlines */
  --text-h3:       clamp(1.1rem, 1.5vw, 1.35rem);  /* Card titles */
  --text-body:     1.0625rem;                        /* Body copy (17px) */
  --text-small:    0.875rem;                         /* Captions, meta */
  --text-tiny:     0.75rem;                          /* Labels, tags */
  --text-button:   0.85rem;                          /* Button text */

  /* ── Spacing ── */
  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      1.5rem;
  --space-lg:      3rem;
  --space-xl:      5rem;
  --space-2xl:     8rem;
  --section-pad:   clamp(4rem, 8vw, 7rem);  /* Vertical padding for sections */

  /* ── Layout ── */
  --max-width:     1200px;   /* Content max width */
  --max-width-sm:  900px;    /* Narrower content (text-heavy) */
  --border-radius: 12px;     /* Card/button radius */
  --nav-height:    80px;     /* Navigation bar height */

  /* ── Transitions ── */
  --transition:    0.3s ease;

  /* ── Scheduling Link (CHANGE THIS) ── */
  /* Replace with your actual Acuity/Squarespace Scheduling URL */
  /* Search for YOUR_ACUITY_URL in the HTML to find all CTA links */
}


/* ============================================================
   BASE RESET & DEFAULTS
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-white);
  background-color: var(--color-navy);
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-gold-hover);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

.heading-hero    { font-size: var(--text-hero); }
.heading-section { font-size: var(--text-h1); }
.heading-sub     { font-size: var(--text-h2); font-family: var(--font-body); font-weight: 500; }
.heading-card    { font-size: var(--text-h3); }

.text-muted  { color: var(--color-slate); }
.text-gold   { color: var(--color-gold); }
.text-center { text-align: center; }
.text-small  { font-size: var(--text-small); }


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-sm);
}

.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background-color: var(--color-navy-deep);
}

.section--charcoal {
  background-color: var(--color-charcoal);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-navy);
}
.btn--gold:hover {
  background-color: var(--color-gold-hover);
  color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}
.btn--outline:hover {
  background-color: rgba(201, 169, 110, 0.1);
  color: var(--color-gold-hover);
}

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: var(--text-tiny);
}

.btn--nav {
  padding: 0.55rem 1.4rem;
  font-size: var(--text-tiny);
  border-radius: 8px;
}

.link-arrow {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}
.link-arrow:hover {
  gap: 10px;
  color: var(--color-gold-hover);
}
.link-arrow::after {
  content: '→';
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  background: rgba(13, 6, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-mist);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.nav__links a:hover {
  color: var(--color-gold);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid rgba(201,169,110,0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-xl);
  position: relative;
  overflow-x: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 50%, #0f0822 100%);
  z-index: 0;
}
/* If you add a background image, uncomment this: */
/* .hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; } */

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__headline {
  font-size: var(--text-hero);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero__subhead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-mist);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__meta {
  margin-top: var(--space-md);
  font-size: var(--text-small);
  color: var(--color-slate);
}


/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-charcoal);
  border-radius: var(--border-radius);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid rgba(201, 169, 110, 0.06);
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(201, 169, 110, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card__icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-xs);
}

.card__body {
  color: var(--color-mist);
  font-size: var(--text-small);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.card--highlight {
  border-color: var(--color-gold);
}

.card--audience {
  text-align: center;
  padding: var(--space-md);
}
.card--audience .card__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}


/* ============================================================
   SECTION HEADERS (reusable)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header__title {
  font-size: var(--text-h1);
  margin-bottom: var(--space-xs);
}

.section-header__sub {
  font-size: var(--text-body);
  color: var(--color-slate);
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  text-align: center;
  padding: var(--space-md);
}

.step__number {
  width: 56px;
  height: 56px;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-gold);
}

.step__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.step__body {
  font-size: var(--text-small);
  color: var(--color-mist);
  line-height: 1.7;
}


/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}

.gallery-item__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(transparent, rgba(13, 6, 24, 0.9));
  font-size: var(--text-small);
  font-weight: 500;
}


/* ============================================================
   COMET FAMILY SECTION
   ============================================================ */
.comet-family {
  border-top: 1px solid rgba(201, 169, 110, 0.08);
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-navy-deep);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.footer__tagline {
  font-size: var(--text-small);
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold-muted);
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  font-size: var(--text-small);
  color: var(--color-mist);
}
.footer__links a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(201, 169, 110, 0.06);
  font-size: var(--text-tiny);
  color: var(--color-slate);
}

@media (max-width: 600px) {
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

.footer__legal-links {
  display: flex;
  gap: var(--space-sm);
}

.footer__legal-links a {
  font-size: var(--text-tiny);
  color: var(--color-slate);
}


/* ============================================================
   REFINED EFFECTS — Ported from teaser pages
   Adds entrance animations, scroll reveals, parallax, and
   subtle polish to match the coming-soon page aesthetic.
   ============================================================ */

/* ── Background drift (subtle ambient motion) ── */
.hero__bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(100, 50, 170, 0.04) 0%, transparent 60%);
  animation: drift 25s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(5%, 3%); }
}

/* ── Hero entrance animations ── */
.hero__headline {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero__subhead {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero .btn,
.hero__meta {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Gold glow orb behind hero content ── */
.hero__bg::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: glowPulse 4s ease-in-out 1s infinite alternate;
}

@keyframes glowPulse {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.9); }
  50%  { opacity: 1; }
  100% { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
}

/* ── Scroll-triggered reveals ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within grids */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* ── Card border glow on reveal ── */
.card.is-visible,
.reveal.is-visible .card {
  animation: borderGlow 1.5s ease forwards;
}

@keyframes borderGlow {
  0%   { border-color: rgba(201, 169, 110, 0.06); box-shadow: none; }
  40%  { border-color: rgba(201, 169, 110, 0.2); box-shadow: 0 0 30px rgba(201, 169, 110, 0.05), inset 0 0 20px rgba(201, 169, 110, 0.02); }
  100% { border-color: rgba(201, 169, 110, 0.06); box-shadow: none; }
}

/* ── Section divider (gold line) ── */
.section-divider {
  width: 50px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.25;
  margin: 0 auto var(--space-md);
}

/* ── Footer fade in ── */
.footer {
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}

.footer.is-visible {
  opacity: 1;
}

/* ── Parallax hint (will-change for performance) ── */
.hero__content,
.hero__bg {
  will-change: transform;
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero__headline,
  .hero__subhead,
  .hero .btn,
  .hero__meta {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .footer {
    opacity: 1 !important;
    transition: none !important;
  }

  .hero__bg::after {
    animation: none !important;
  }

  .hero__bg::before {
    display: none;
  }
}
