/*
Theme Name:   Starlight Marketing Child
Theme URI:    https://starlightmarketing.com
Description:  Divi Child Theme for Starlight Marketing, LLC. Requires the Divi parent theme by Elegant Themes.
Author:       Starlight Marketing, LLC
Author URI:   https://starlightmarketing.com
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  starlight-marketing
Tags:         marketing, agency, divi, child-theme, dark, gold
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --sm-midnight:   #080c18;
  --sm-navy:       #0d1529;
  --sm-navy-mid:   #131e38;
  --sm-footer-bg:  #04060f;
  --sm-gold:       #C5A96A;
  --sm-gold-light: #e8cc7e;
  --sm-gold-pale:  #f5e8c0;
  --sm-silver:     #a8b4cc;
  --sm-white:      #ffffff;
  --sm-muted:      #6b7a99;
  --sm-slate:      #8896B0;
  --sm-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sm-font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sm-max:        1160px;
  --sm-section-pad: 100px 24px;
}

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.starlight-page {
  font-family: var(--sm-font-sans);
  background: var(--sm-midnight);
  color: var(--sm-white);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#sm-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 169, 106, 0.15);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.sm-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.sm-nav-logo svg {
  display: block;
}

.sm-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-nav-links li {
  margin: 0;
  padding: 0;
}

.sm-nav-links a {
  color: var(--sm-silver);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.sm-nav-links a:hover {
  color: var(--sm-gold-light);
}

.sm-nav-cta {
  background: var(--sm-gold) !important;
  color: var(--sm-midnight) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 9px 22px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  letter-spacing: 0.03em !important;
  transition: background 0.2s !important;
}

.sm-nav-cta:hover {
  background: var(--sm-gold-light) !important;
  color: var(--sm-midnight) !important;
}

/* Hamburger toggle (mobile) */
.sm-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.sm-nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--sm-silver);
  transition: transform 0.25s, opacity 0.25s;
}

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

/* ============================================================
   HERO
   ============================================================ */
.sm-hero {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #1a2a5e 0%, var(--sm-midnight) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.sm-stars-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sm-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--sm-white);
  border-radius: 50%;
  animation: sm-twinkle var(--d, 3s) ease-in-out infinite;
  opacity: var(--o, 0.6);
}

@keyframes sm-twinkle {
  0%, 100% { opacity: var(--o); }
  50%       { opacity: 0.1; }
}

.sm-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.sm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(197, 169, 106, 0.4);
  color: var(--sm-gold-light);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 32px;
  font-weight: 400;
}

.sm-hero-badge::before {
  content: '★';
  font-size: 10px;
}

.sm-hero-h1 {
  font-family: var(--sm-font-serif);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--sm-white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.sm-hero-h1 em {
  color: var(--sm-gold);
  font-style: italic;
}

.sm-hero-p {
  font-size: 18px;
  color: var(--sm-silver);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.sm-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.sm-btn-primary {
  background: var(--sm-gold);
  color: var(--sm-midnight);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.sm-btn-primary:hover {
  background: var(--sm-gold-light);
  transform: translateY(-1px);
  color: var(--sm-midnight);
}

.sm-btn-outline {
  border: 1px solid rgba(197, 169, 106, 0.5);
  color: var(--sm-gold-light);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
  font-weight: 400;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.sm-btn-outline:hover {
  border-color: var(--sm-gold);
  background: rgba(197, 169, 106, 0.06);
  color: var(--sm-gold-light);
}

.sm-hero-logos {
  margin-top: 72px;
}

.sm-hero-logos p {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sm-muted);
  margin-bottom: 20px;
}

.sm-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-logo-pill {
  font-family: var(--sm-font-serif);
  font-size: 14px;
  color: rgba(168, 180, 204, 0.5);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-style: italic;
}

.sm-divider-line {
  width: 1px;
  height: 20px;
  background: rgba(168, 180, 204, 0.2);
  display: inline-block;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.sm-section {
  padding: var(--sm-section-pad);
}

.sm-container {
  max-width: var(--sm-max);
  margin: 0 auto;
}

.sm-eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sm-gold);
  font-weight: 500;
  margin-bottom: 14px;
}

.sm-section-h2 {
  font-family: var(--sm-font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sm-white);
  margin-bottom: 18px;
}

.sm-section-p {
  font-size: 17px;
  color: var(--sm-silver);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.sm-stats-band {
  background: var(--sm-navy-mid);
  border-top: 1px solid rgba(197, 169, 106, 0.12);
  border-bottom: 1px solid rgba(197, 169, 106, 0.12);
  padding: 60px 24px;
}

.sm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: var(--sm-max);
  margin: 0 auto;
  text-align: center;
}

.sm-stat-number {
  font-family: var(--sm-font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--sm-gold);
  line-height: 1;
}

.sm-stat-label {
  font-size: 13px;
  color: var(--sm-silver);
  margin-top: 8px;
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* ============================================================
   SERVICES
   ============================================================ */
.sm-services {
  background: var(--sm-navy);
}

.sm-services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}

.sm-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(197, 169, 106, 0.1);
  border: 1px solid rgba(197, 169, 106, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.sm-service-card {
  background: var(--sm-navy);
  padding: 36px 32px;
  transition: background 0.25s;
  position: relative;
}

.sm-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--sm-gold);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.sm-service-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sm-service-card:hover::after {
  transform: scaleX(1);
}

.sm-service-icon {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1;
}

.sm-service-title {
  font-family: var(--sm-font-serif);
  font-size: 20px;
  color: var(--sm-white);
  margin-bottom: 10px;
  font-weight: 700;
}

.sm-service-desc {
  font-size: 14px;
  color: var(--sm-silver);
  line-height: 1.7;
  font-weight: 300;
}

.sm-service-link {
  color: var(--sm-gold);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 500;
  transition: gap 0.2s;
}

.sm-service-link:hover {
  gap: 10px;
  color: var(--sm-gold-light);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.sm-how {
  background: var(--sm-midnight);
}

.sm-how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.sm-step {
  text-align: center;
}

.sm-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--sm-gold);
  color: var(--sm-gold);
  font-family: var(--sm-font-serif);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}

.sm-step-title {
  font-family: var(--sm-font-serif);
  font-size: 20px;
  color: var(--sm-white);
  margin-bottom: 10px;
}

.sm-step-desc {
  font-size: 14px;
  color: var(--sm-silver);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.sm-testimonials {
  background: var(--sm-navy);
}

.sm-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.sm-testi-card {
  background: var(--sm-navy-mid);
  border: 1px solid rgba(197, 169, 106, 0.1);
  border-radius: 8px;
  padding: 32px;
}

.sm-testi-stars {
  color: var(--sm-gold);
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 18px;
}

.sm-testi-quote {
  font-family: var(--sm-font-serif);
  font-size: 17px;
  color: var(--sm-white);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 400;
}

.sm-testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sm-testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(197, 169, 106, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sm-font-serif);
  color: var(--sm-gold);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.sm-testi-name {
  font-size: 13px;
  color: var(--sm-white);
  font-weight: 500;
}

.sm-testi-role {
  font-size: 12px;
  color: var(--sm-muted);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.sm-cta-band {
  background: linear-gradient(135deg, #1a2a5e 0%, #0d1529 50%, #1a1a0a 100%);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(197, 169, 106, 0.15);
}

.sm-cta-band::before {
  content: '★';
  position: absolute;
  font-size: 300px;
  opacity: 0.03;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sm-font-serif);
  color: var(--sm-gold);
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
#sm-footer {
  background: var(--sm-footer-bg);
  border-top: 1px solid rgba(197, 169, 106, 0.1);
  padding: 70px 24px 40px;
}

.sm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: var(--sm-max);
  margin: 0 auto 60px;
}

.sm-footer-brand p {
  font-size: 14px;
  color: var(--sm-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 14px;
  max-width: 280px;
}

.sm-footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sm-gold);
  font-weight: 500;
  margin-bottom: 18px;
}

.sm-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--sm-silver);
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: 300;
  transition: color 0.2s;
}

.sm-footer-col a:hover {
  color: var(--sm-gold-light);
}

.sm-footer-bottom {
  max-width: var(--sm-max);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.sm-footer-copy {
  font-size: 12px;
  color: var(--sm-muted);
  margin: 0;
}

.sm-footer-socials {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-footer-socials a {
  font-size: 12px;
  color: var(--sm-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sm-footer-socials a:hover {
  color: var(--sm-gold);
}

/* ============================================================
   DIVI OVERRIDES — suppress Divi's default header/footer
   on the front-page template
   ============================================================ */
body.starlight-page #main-header,
body.starlight-page #main-footer,
body.starlight-page .et_pb_section:first-child {
  display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sm-services-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  #sm-nav {
    padding: 0 20px;
  }

  .sm-nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 12, 24, 0.98);
    border-bottom: 1px solid rgba(197, 169, 106, 0.15);
    padding: 16px 24px 24px;
  }

  .sm-nav-links.open {
    display: flex;
  }

  .sm-nav-links li {
    width: 100%;
  }

  .sm-nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
  }

  .sm-nav-links li:last-child a {
    margin-top: 16px;
    border-bottom: none;
    text-align: center;
  }

  .sm-nav-toggle {
    display: flex;
  }

  .sm-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sm-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sm-hero-logos {
    display: none;
  }
}
