/* ============================================
   Celestial Marketing Solutions — Styles
   Theme: black / white, matching the CMS logo
   ============================================ */

:root {
  --bg: #050505;
  --bg-elev: #0e0e0e;
  --bg-card: #141414;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(var(--max-w), 92%); margin: 0 auto; }
.container.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.8rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--text); }
.btn-outline:hover { border-color: #fff; background: var(--accent-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,5,5,0.7); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(5,5,5,0.92); }
.nav-container {
  width: min(var(--max-w), 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand-link { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo { height: 44px; width: 60px; object-fit: cover; object-position: center; border-radius: 6px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-menu a:hover { color: #fff; }
.nav-cta {
  padding: 0.6rem 1.3rem; border-radius: 999px;
  background: #fff; color: #000 !important; font-weight: 600 !important;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 900px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 1rem 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,255,255,0.08), transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 40%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 240px 180px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 320px 40px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 400px 140px, rgba(255,255,255,0.25), transparent);
  background-size: 440px 220px;
  opacity: 0.6;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.7; } }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-logo {
  width: min(420px, 80vw); margin: 0 auto 2rem;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px var(--border);
}
.hero-eyebrow {
  font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.1; margin-bottom: 1.25rem;
}
.hero-title .accent {
  background: linear-gradient(90deg, #fff, #9a9a9a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 2.25rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); animation: bounce 2s infinite; z-index: 1;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-eyebrow {
  font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem;
}
.section-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 1rem; }
.section-intro { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.service-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.2rem; display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.service-card.featured { border-color: rgba(255,255,255,0.35); background: linear-gradient(160deg, #1b1b1b, #0f0f0f); }
.card-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: #fff; color: #000; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.4rem;
}
.service-card h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.service-list { margin-bottom: 1.5rem; flex: 1; }
.service-list li { font-size: 0.9rem; color: #d4d4d4; padding: 0.3rem 0 0.3rem 1.4rem; position: relative; }
.service-list li::before { content: '✦'; position: absolute; left: 0; color: var(--text-muted); font-size: 0.7rem; top: 0.55rem; }
.service-link { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.service-link i { transition: transform 0.2s; }
.service-link:hover i { transform: translateX(4px); }

/* ---------- Process ---------- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; counter-reset: step; }
.process-step { position: relative; padding: 2rem 1.5rem 0; border-top: 1px solid var(--border); }
.step-number { font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; color: rgba(255,255,255,0.15); line-height: 1; display: block; margin-bottom: 1rem; }
.process-step h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Why Us ---------- */
.why { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.why-text .section-title, .why-text .section-intro { text-align: left; }
.why-text .section-intro { margin-bottom: 2rem; }
.why-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.25rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.why-list i { font-size: 1.2rem; margin-top: 0.2rem; }
.why-list strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.why-list span { color: var(--text-muted); font-size: 0.92rem; }
.why-visual { display: flex; justify-content: center; }
.why-logo {
  width: 100%; max-width: 480px; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.5rem; transition: border-color 0.2s; }
.faq-item[open] { border-color: rgba(255,255,255,0.3); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--text-muted); transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding: 0 0 1.3rem; font-size: 0.95rem; }
.faq-item p a { color: #fff; text-decoration: underline; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-elev); border-top: 1px solid var(--border); }
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-info .section-intro { margin-bottom: 2rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1rem 1.4rem; border-radius: 12px; font-weight: 500;
  word-break: break-all; transition: border-color 0.2s, background 0.2s;
}
.contact-email:hover { border-color: #fff; background: #1a1a1a; }
.contact-email i { font-size: 1.2rem; }
.contact-note { margin-top: 1.25rem; color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: center; }

.quote-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; border: none; }
.form-field label, .form-field legend { font-size: 0.85rem; font-weight: 500; color: #d4d4d4; margin-bottom: 0.25rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: #0a0a0a; border: 1px solid var(--border); color: #fff;
  padding: 0.85rem 1rem; border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field select option { background: #0a0a0a; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.checkbox-grid label {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem;
  background: #0a0a0a; border: 1px solid var(--border); padding: 0.7rem 0.9rem; border-radius: 10px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.checkbox-grid label:hover { border-color: rgba(255,255,255,0.4); }
.checkbox-grid label.checked { border-color: #fff; background: var(--accent-soft); }
.checkbox-grid input { accent-color: #fff; width: 16px; height: 16px; }
.form-error { color: #ff8585; font-size: 0.9rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.form-success {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px; padding: 1rem 1.2rem; font-size: 0.95rem;
}
.form-success a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--border); padding: 70px 0 0; }
.footer-layout { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo { width: 180px; border-radius: 10px; margin-bottom: 1.2rem; box-shadow: 0 0 0 1px var(--border); }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 360px; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links h4 { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; word-break: break-all; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .why-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .why-visual { order: -1; }
  .why-logo { max-width: 380px; }
  .footer-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .brand-name { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5,5,5,0.98); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-menu.open { max-height: 420px; }
  .nav-menu li a { display: block; padding: 1rem 5%; font-size: 1rem; }
  .nav-menu .nav-cta { margin: 0.8rem 5% 1.2rem; text-align: center; border-radius: 10px; }
  .section { padding: 72px 0; }
  .hero { min-height: auto; padding: 110px 1rem 70px; }
  .hero-stats { gap: 1.8rem; }
  .form-row, .checkbox-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 1.5rem; }
  .footer-layout { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
}
