/* ============================================================
   Welldreamre Marketing Group — stylesheet
   Palette derived from the brand mark: deep navy + dream indigo
   ============================================================ */

:root {
  --bg:        #0a0d18;
  --bg-2:      #0e1325;
  --bg-3:      #141a30;
  --panel:     #111729;
  --line:      rgba(168, 164, 224, 0.13);
  --line-soft: rgba(168, 164, 224, 0.07);

  --text:      #ecebf6;
  --muted:     #9a9bbc;
  --muted-2:   #75769b;

  --accent:      #8a86d6;
  --accent-2:    #635fb0;
  --accent-bright:#aca6ef;
  --accent-soft: rgba(138, 134, 214, 0.12);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* Ambient background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(138, 134, 214, 0.18), transparent 60%),
    radial-gradient(700px 500px at 8% 18%, rgba(99, 95, 176, 0.11), transparent 55%),
    var(--bg);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-2));
  color: #08111e;
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(138, 134, 214, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.015);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 15, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.7);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--sans); font-weight: 600; letter-spacing: 0.22em; font-size: 0.92rem; }
.brand-sub  { font-size: 0.6rem; letter-spacing: 0.34em; color: var(--muted-2); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 0.92rem; color: var(--muted); font-weight: 500; transition: color .3s var(--ease); position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--text); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-bright); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(138, 134, 214, 0.22), transparent 65%);
  filter: blur(20px);
  z-index: -1;
}
.hero-inner { max-width: 880px; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  background: linear-gradient(180deg, #ffffff 30%, #c6c2ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent-bright);
  letter-spacing: 0.01em;
}

/* ---------------- Sections ---------------- */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-index {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-index::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent-2);
  vertical-align: middle;
  margin-right: 12px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
}
.section-intro { margin-top: 22px; color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.section-head.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--bg-2);
  padding: 42px 40px;
  transition: background .4s var(--ease), transform .4s var(--ease);
  position: relative;
}
.service:hover { background: var(--bg-3); }
.service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 14px 0 14px;
  color: var(--text);
}
.service p { color: var(--muted); font-size: 1rem; line-height: 1.62; }

/* ---------------- Stats ---------------- */
.stats-section { background: linear-gradient(180deg, transparent, rgba(14, 22, 35, 0.6), transparent); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.stat {
  text-align: center;
  padding: 40px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 26, 41, 0.5);
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.stat-label { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------------- Clients ---------------- */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.client-card {
  padding: 40px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.client-card:hover { transform: translateY(-6px); border-color: var(--accent-2); }
.client-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: var(--text);
}
.client-card p { color: var(--muted); font-size: 1rem; }

/* ---------------- Approach ---------------- */
.approach-section { background: rgba(14, 22, 35, 0.45); }
.approach-list { list-style: none; display: grid; gap: 0; }
.approach-step {
  display: flex;
  gap: 34px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.approach-step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  min-width: 56px;
  flex-shrink: 0;
}
.approach-step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text);
}
.approach-step p { color: var(--muted); max-width: 640px; }

/* ---------------- About ---------------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
}
.about-copy p { color: var(--muted); margin: 20px 0; font-size: 1.08rem; }
.about-copy .btn { margin-top: 18px; }
.about-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 40%, rgba(138, 134, 214, 0.16), transparent 60%),
    var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
}
.about-mark {
  width: 46%;
  border-radius: 18px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.8);
}
.about-motto { font-family: var(--serif); font-style: italic; color: var(--accent-bright); font-size: 1.1rem; }

/* ---------------- Contact ---------------- */
.contact-section { text-align: center; padding: 130px 0; }
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 24px;
}
.contact-lead { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto 36px; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--accent-bright);
  border-bottom: 1px solid var(--accent-2);
  padding-bottom: 6px;
  margin-bottom: 42px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contact-email:hover { color: #fff; border-color: var(--accent-bright); }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 38px; background: var(--bg-2); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 22px; }
.footer-tagline { color: var(--muted); max-width: 380px; font-size: 0.98rem; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav-head {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.footer-nav a { color: var(--muted); font-size: 0.96rem; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.86rem;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 28px 30px;
    background: rgba(10, 15, 24, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .45s var(--ease);
    height: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .menu-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-panel { max-width: 360px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .service { padding: 34px 28px; }
  .approach-step { gap: 20px; }
  .hero { padding-top: 110px; }
}
