/* ============================================================
   Dawnlight Studio — Global Styles
   Type: refined scale, tighter vertical rhythm, improved cards
   Theme: light (default) + dark via .dark on <html>
   ============================================================ */

:root {
  /* ---------- Light theme ---------- */
  --bg: #f8f9fa;
  --bg-alt: #eef1f4;
  --bg-card: #ffffff;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5a;
  --ink-muted: #8a8a9a;
  --border: #d0d5dd;
  --accent: #0d9488;
  --accent-deep: #0f766e;
  --accent-light: #14b8a6;
  --accent-warm: #c2410c;
  --gold: #d97706;
  --radius: 10px;
  --maxw: 1100px;
  --section-pad: 84px 0;
  --hero-pad: 130px 0 110px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Dark theme ---------- */
:root.dark {
  --bg: #0f1115;
  --bg-alt: #16191f;
  --bg-card: #1a1d25;
  --ink: #e8eaf0;
  --ink-soft: #9aa4b2;
  --ink-muted: #6b7280;
  --border: #2a2f3a;
  --accent: #2dd4bf;
  --accent-deep: #14b8a6;
  --accent-light: #14b8a6;
  --accent-warm: #fb923c;
  --gold: #fbbf24;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
}

/* ============ BRAND NAME ============ */
.brand-name {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.brand-word {
  display: inline-block;
}

.brand-word.dawnlight {
  color: var(--ink);
}

.brand-word.studio {
  color: var(--ink);
}

h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
h3 { font-size: clamp(23px, 2.8vw, 32px); margin-bottom: 10px; }
h4 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 10px; }

p { color: var(--ink-soft); line-height: 1.7; }

/* Better vertical rhythm for paragraphs */
p + p { margin-top: 12px; }

/* Section label */
.section-label {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(13, 148, 136, 0.3);
}

/* Section titles */
.section-title { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 16px; }

.section-sub {
  text-align: center;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-size: 15px; font-weight: 600;
  color: var(--accent-deep);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links li a {
  display: block;
  padding: 10px 18px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.nav-links li a:hover { color: var(--ink); background: rgba(13, 148, 136, 0.1); }

.nav-cta {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px; font-weight: 600;
  font-family: var(--font);
  transition: all 0.3s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

/* Dark nav */
:root.dark .nav {
  background: rgba(15, 17, 21, 0.92);
  border-bottom-color: var(--border);
}
:root.dark .nav-links li a:hover { background: rgba(45, 212, 191, 0.12); }

/* ============ SECTIONS ============ */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-pad);
}
.section:first-of-type { padding-top: calc(var(--section-pad) + 48px); }
.section-header { margin-bottom: 40px; }
.section-header:last-child { margin-bottom: 0; }

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.4s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
  transform: translateY(-4px);
}
.card-icon { font-size: 36px; margin-bottom: 12px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* ============ PROCESS ============ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step {
  position: relative;
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step .n {
  font-size: 42px; font-weight: 800;
  color: var(--accent); line-height: 1;
  margin-bottom: 12px;
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }

.step::after {
  content: '';
  position: absolute;
  top: 42px; left: 50%;
  width: 2px; height: calc(100% - 42px);
  background: var(--accent);
}

:root.dark .step { background: var(--bg-card); }
:root.dark .step p { color: var(--ink); }

/* ============ CONTACT ============ */
.contact {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.contact-meta { padding: 24px; }

.contact-meta h3 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.contact-meta p { color: var(--ink-soft); margin-bottom: 24px; line-height: 1.7; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

.contact-link .icon { font-size: 20px; margin-top: 2px; color: var(--accent); }
.contact-link .label { font-size: 16px; color: var(--ink); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-form h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 15px; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font); font-size: 16px;
  transition: all 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); }
.field input:focus::placeholder,
.field textarea:focus::placeholder { color: transparent; }

:root.dark .field input,
:root.dark .field textarea {
  background: var(--bg);
  color: var(--ink);
}

:root.dark .field input:focus,
:root.dark .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

:root.dark .contact-link .label { color: var(--ink); }
:root.dark .contact-detail .label { color: var(--ink); }
/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border: none;
  border-radius: 6px; cursor: pointer;
  font-size: 16px; font-weight: 700;
  font-family: var(--font);
  transition: all 0.3s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
}
.btn--secondary {
  background: transparent; border: 1px solid var(--border); color: var(--ink);
}
.btn--secondary:hover {
  border-color: var(--accent); color: var(--accent); background: rgba(13, 148, 136, 0.05);
}
.btn--ghost {
  background: transparent; border: 1px solid var(--border); color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent); color: var(--accent); background: rgba(13, 148, 136, 0.05);
}
:root.dark .btn--secondary,
:root.dark .btn--ghost {
  border-color: var(--border); color: var(--ink);
}
:root.dark .btn--secondary:hover,
:root.dark .btn--ghost:hover {
  border-color: var(--accent); color: var(--accent);
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-alt);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 16px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 15px; color: var(--ink-muted); margin-top: 24px; text-align: center; }
:root.dark .site-footer {
  border-top-color: var(--border); background: var(--bg-alt);
}
:root.dark .footer-links a { color: var(--ink-soft); }
:root.dark .footer-links a:hover { color: var(--accent); }
:root.dark .footer-copy { color: var(--ink-muted); }
:root.dark .nav-links li a { color: var(--ink); }
:root.dark .card p { color: var(--ink); }
:root.dark .step p { color: var(--ink); }
:root.dark .contact-detail .label { color: var(--ink); }
:root.dark .form-group label { color: var(--ink); }
:root.dark .footer-links a { color: var(--ink); }
:root.dark .footer-copy { color: var(--ink); }
:root.dark .hero .lead { color: var(--ink); }
:root.dark .contact-info p { color: var(--ink); }
:root.dark .card p { color: var(--ink); }
:root.dark .form-group input::placeholder { color: var(--ink-muted); }
:root.dark .hero .lead { color: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--hero-pad);
  text-align: center;
  background: var(--bg);
}
.hero-content { max-width: 800px; padding: 0 24px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero .lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-chrome {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(600px 400px at 85% -10%, rgba(13, 148, 136, 0.06), transparent 60%),
              radial-gradient(500px 400px at 5% 110%, rgba(126, 200, 227, 0.05), transparent 60%);
}
.shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(800px 500px at 50% 30%, rgba(217, 119, 6, 0.04), transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 3; }
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
:root.dark .hero { background: var(--bg); }
:root.dark .hero .lead { color: var(--ink-soft); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions a { width: 100%; }
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon { font-size: 16px; }
:root.dark .theme-toggle {
  background: var(--bg-card); border-color: var(--border); color: var(--ink);
}
