/* =============================================
   STARFALL STUDIOS — Shared Stylesheet
   ============================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:           #060504;
  --surface:      #0e0c0a;
  --surface-2:    #161310;
  --surface-3:    #1e1b17;
  --cream:        #f0e8d5;
  --cream-muted:  #9a9590;
  --cream-dim:    #66615c;
  --teal:         #28a39c;
  --teal-glow:    rgba(40, 163, 156, 0.14);
  --teal-subtle:  rgba(40, 163, 156, 0.08);

  --gold:         #f5a623;
  --gold-hover:   #e09210;

  --grad-start:   #F5A623;
  --grad-mid1:    #FF5A5A;
  --grad-mid2:    #FF3CAC;
  --grad-end:     #7B4FBE;

  --gradient:     linear-gradient(135deg, var(--grad-start) 0%, var(--grad-mid1) 35%, var(--grad-mid2) 65%, var(--grad-end) 100%);
  --gradient-h:   linear-gradient(90deg,  var(--grad-start) 0%, var(--grad-mid1) 35%, var(--grad-mid2) 65%, var(--grad-end) 100%);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    24px;

  --shadow:       0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.5);

  --transition:   0.25s ease;

  --max-w:        1240px;
  --pad:          clamp(1.25rem, 5vw, 4rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; transform: translateZ(0); backface-visibility: hidden; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--cream);
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 400; }

p { color: var(--cream-muted); }
p.lead { font-size: 1.15rem; color: var(--cream); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-decoration: underline;
  text-decoration-color: rgba(40,163,156,0.45);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(2.5rem, 4vw, 4.5rem) 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); }

.btn-gradient {
  background: var(--gradient);
  color: #fff;
}
.btn-gradient:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(240,232,213,0.35);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(240,232,213,0.07);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-logo-text {
  display: none;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--cream);
  background: rgba(240,232,213,0.06);
}
.nav-links a.active {
  color: var(--teal);
  background: rgba(40,163,156,0.1);
  text-decoration: underline;
  text-decoration-color: rgba(40,163,156,0.5);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  transform-origin: center;
}

/* Hamburger → X when open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--teal);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--teal);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1rem var(--pad) 1.5rem;
  gap: 0.25rem;
}
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream-muted);
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--cream); }
.nav-mobile .btn { margin-top: 0.75rem; text-align: center; justify-content: center; }
.nav-mobile.open { display: flex; }

/* ── Placeholder Images ── */
.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--surface-2) 60%, rgba(40,163,156,0.09) 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--cream-dim);
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px dashed rgba(40,163,156,0.18);
}

.placeholder-img .icon {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* ── Star Decoration ── */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--cream);
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.6;  transform: scale(1.3); }
}

/* ── Section Divider ── */
.section-div {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(40,163,156,0.18) 15%,
    rgba(40,163,156,0.45) 50%,
    rgba(40,163,156,0.18) 85%,
    transparent 100%
  );
  margin: 0;
  border: none;
}

/* ── Vertical Line next to text ── */
.vline-teal {
  padding-left: 1.25rem;
  border-left: 2.5px solid var(--teal);
  position: relative;
}
.vline-teal-dim {
  padding-left: 1.25rem;
  border-left: 2px solid rgba(40,163,156,0.35);
}

/* ── Teal underline span / heading ── */
.teal-underline {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* ── Teal text ── */
.teal-text { color: var(--teal); }

/* ── Gradient Accent Line ── */
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-h);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.accent-line-teal {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), rgba(40,163,156,0.3));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── Tag / Badge ── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag-gold     { background: rgba(245,166,35,0.15);  color: var(--gold);  border: 1px solid rgba(245,166,35,0.3); }
.tag-gradient { background: var(--gradient); color: #fff; }
.tag-teal     { background: rgba(40,163,156,0.12);  color: var(--teal);  border: 1px solid rgba(40,163,156,0.28); }
.tag-muted    { background: rgba(255,255,255,0.08); color: var(--cream-muted); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.12); }
.card-body { padding: 1.75rem; }

/* ── Section Headers ── */
.section-header {
  margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}
.section-header.centered { text-align: center; }
.section-header.centered .accent-line { margin-left: auto; margin-right: auto; }
.section-header.centered .accent-line-teal { margin-left: auto; margin-right: auto; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245,166,35,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(123,79,190,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 0% 100%, rgba(40,163,156,0.12) 0%, transparent 45%);
  pointer-events: none;
}

/* ── Services Overview ── */
.services-overview { padding: clamp(2rem, 4vw, 3.5rem) 0; }

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a {
  font-size: 0.9rem;
  color: var(--cream-muted);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(40,163,156,0.4); text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--cream-dim);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-muted);
  transition: var(--transition);
  font-size: 1rem;
}
.social-links a:nth-child(odd):hover  { background: var(--teal); color: var(--bg); }
.social-links a:nth-child(even):hover { background: var(--gold); color: var(--bg); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-brand p { max-width: 100%; }
}

/* ── Utility ── */
.text-gold   { color: var(--gold); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--cream-muted); }
.text-center { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }

/* ── Form Inputs ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--cream); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface-2);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  transition: var(--transition);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--cream-dim); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(40,163,156,0.1);
}
.form-group select option { background: var(--surface); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ══ Testimonials (shared across pages) ══ */
.testimonials { background: var(--surface); padding: clamp(2.5rem, 4vw, 4.5rem) 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-text {
  font-size: 0.92rem;
  color: var(--cream-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--cream-dim);
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 600; color: var(--cream); }
.testimonial-sub  { font-size: 0.78rem; color: var(--cream-dim); }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
