/* ============================================================
   CLEAR SKY SYSTEMS — styles.css
   ============================================================ */

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

:root {
  --navy:       #0d2137;
  --navy-mid:   #1a3a5c;
  --navy-light: #1f4a72;
  --sky:        #4a90c4;
  --sky-light:  #7eb8e4;
  --sky-pale:   #d6eaf8;
  --cream:      #f5f7fa;
  --white:      #ffffff;
  --text:       #1c2b3a;
  --text-mid:   #4a6070;
  --text-light: #7a96a8;
  --border:     #d0dde8;
  --card-bg:    #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(13,33,55,0.08);
  --shadow-md: 0 8px 32px rgba(13,33,55,0.12);
  --shadow-lg: 0 20px 60px rgba(13,33,55,0.16);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
}

.section-header {
  margin-bottom: 4rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,33,55,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(13,33,55,0.97);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

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

.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: rgba(255,255,255,0.12) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  transition: background var(--transition), border-color var(--transition) !important;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 1.5rem 0; }
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.mobile-menu a:hover { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#skyCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.75rem;
  max-width: 700px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.hero-headline em {
  font-style: italic;
  color: var(--sky-light);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.62);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s;
}

/* Reveal animation trigger */
.reveal.visible,
.hero-eyebrow.visible,
.hero-headline.visible,
.hero-sub.visible,
.hero-actions.visible {
  opacity: 1;
  transform: none;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 3rem 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 3.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat.visible { opacity: 1; transform: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--sky-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 7rem 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.service-card.visible {
  opacity: 1;
  transform: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky-pale);
}

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--sky);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sky);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s, letter-spacing 0.2s;
}
.card-link:hover { color: var(--navy); letter-spacing: 0.05em; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 7rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-visual.visible { opacity: 1; transform: none; }

.about-image-frame {
  position: relative;
}

.about-image-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.about-illustration {
  width: 100%;
  height: 100%;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.about-text .section-title { margin-bottom: 1.5rem; }

.about-body {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-pillars {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.about-pillars strong { color: var(--navy); font-weight: 500; }

/* Reveal utilities */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: 7rem 0;
  background: var(--navy);
}

.process .section-label { color: var(--sky-light); }
.process .section-title { color: var(--white); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  counter-reset: step;
}

.process-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-step.visible { opacity: 1; transform: none; }

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.process-step:hover .step-number {
  color: var(--sky-light);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.step-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.75;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 7rem 0;
  background: var(--cream);
  overflow: hidden;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  transition: transform var(--transition);
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-mid);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-light);
}

.testimonial-dots {
  display: none;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--navy); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 7rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 1.25rem; }

.contact-body {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.contact-details svg {
  width: 20px;
  height: 20px;
  color: var(--sky);
  flex-shrink: 0;
}

.contact-details a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-details a:hover { color: var(--navy); }

/* Form */
.contact-form-wrap {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(74,144,196,0.12);
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -0.25rem;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  color: var(--navy);
}

.form-success.visible {
  display: flex;
}

.form-success svg {
  width: 40px;
  height: 40px;
  color: var(--sky);
}

.form-success p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
}

.footer-inner {
  padding: 4rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; max-width: 220px; }

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col strong {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .hero-content { padding: 7rem 1.5rem 4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .stats-band { gap: 0; flex-wrap: wrap; }
  .stat { padding: 1.25rem 2rem; }
  .stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; gap: 1rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { transform: none; }
  .about-badge { right: 0; bottom: -1rem; }

  .process-steps { grid-template-columns: 1fr; }

  .testimonials-track {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .testimonial-card:not(:first-child) { display: none; }
  .testimonial-dots { display: flex; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 2.5rem; }
  .footer-links { gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .services, .about, .process, .testimonials, .contact { padding: 5rem 0; }
  .section-title { font-size: 1.8rem; }
  .contact-form-wrap { padding: 1.75rem; }
}
