/* ============================================================
   BrightFeed — styles.css
   Palette: dark purple, white, black
   ============================================================ */

:root {
  --purple-deep:  #1A0B33;
  --purple:       #2E1259;
  --purple-mid:   #4B1F8A;
  --purple-bright:#7A3BD9;
  --purple-glow:  #B58CFF;

  --white:        #FFFFFF;
  --cream:        #FAF7FF;
  --stone:        #ECE6F6;

  --black:        #0A0A0A;
  --ink:          #1B1B1F;
  --gray:         #6A6577;
  --gray-light:   #B4AEC1;

  --max:          1180px;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 20px 60px rgba(26, 11, 51, 0.12);
  --shadow-soft:  0 8px 30px rgba(26, 11, 51, 0.08);

  --ease:         cubic-bezier(.2,.8,.2,1);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  color: var(--black);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.005em;}
p { margin: 0 0 1em; }

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

/* ----- Eyebrow / accents ----- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple-mid);
  font-weight: 600;
  margin: 0 0 1.2em;
}
.accent { color: var(--purple-mid); font-style: italic; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.4em;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--purple-deep);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--purple-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(122, 59, 217, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn--ghost:hover {
  background: var(--black);
  color: var(--white);
}
.btn--sm { padding: .65em 1.1em; font-size: .85rem; }
.btn--full { width: 100%; }

/* ----- Logo ----- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--black);
}
.logo__mark {
  width: 26px; height: 26px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(122, 59, 217, 0.35));
  transition: transform .35s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(20deg) scale(1.05); }
.logo--light { color: var(--white); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--stone);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__links {
  display: flex;
  gap: 2.2rem;
}
.nav__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav__links a:hover { color: var(--purple-mid); }
.nav__cta { padding: .7em 1.2em; font-size: .9rem; }

.nav__toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav__toggle span {
  width: 22px; height: 2px; background: var(--black); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1.2rem 24px 1.6rem;
    gap: 1rem;
    border-bottom: 1px solid var(--stone);
  }
  .nav.is-open .nav__cta {
    display: inline-flex;
    margin: .4rem 24px 1.2rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 130px) 0 clamp(80px, 10vw, 140px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(250,247,255,0.92) 100%),
    url('images/bg-hero.jpg') center/cover no-repeat,
    var(--cream);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(122,59,217,0.18), transparent 60%),
    radial-gradient(700px 360px at 5% 110%, rgba(181,140,255,0.18), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__inner {
  text-align: center;
  max-width: 920px;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--purple-mid), var(--purple-bright) 60%, var(--purple-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero__ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--stone);
}
.hero__stats > div {
  display: flex; flex-direction: column; align-items: center;
}
.hero__stats strong {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--purple-deep);
  font-weight: 600;
}
.hero__stats span {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (max-width: 600px) {
  .hero__stats { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro { padding: clamp(70px, 10vw, 130px) 0; }
.intro__inner { max-width: 880px; }
.intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem;
}
.intro p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 640px;
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head h2 { margin: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: clamp(70px, 10vw, 120px) 0;
  background:
    linear-gradient(180deg, rgba(26,11,51,0.78) 0%, rgba(26,11,51,0.88) 100%),
    url('images/bg-services.webp') center/cover no-repeat,
    var(--purple-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: "";
  position: absolute; inset: -1px;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(181,140,255,0.12), transparent 60%),
    radial-gradient(600px 260px at 0% 100%, rgba(122,59,217,0.15), transparent 60%);
  pointer-events: none;
}
.services .section-head h2,
.services .eyebrow { color: var(--white); }
.services .eyebrow { color: var(--purple-glow); }

.services__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem 2rem;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(181,140,255,0.4);
}
.service-card__num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--purple-glow);
  margin-bottom: 1rem;
  font-weight: 500;
}
.service-card h3 { color: var(--white); margin-bottom: .6rem; }
.service-card p { color: var(--gray-light); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-size: .92rem;
  color: var(--purple-glow);
  border-bottom: 1px solid transparent;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { gap: .7em; border-color: var(--purple-glow); }

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

/* ============================================================
   LOGOS
   ============================================================ */
.logos {
  padding: 70px 0;
  background: var(--white);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.logos__title { text-align: center; margin-bottom: 2rem; }
.logos__row {
  display: flex;
  gap: 4rem;
  overflow: hidden;
  white-space: nowrap;
  justify-content: space-around;
  align-items: center;
}
.logos__row span {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: .12em;
  font-size: 1.05rem;
  color: var(--gray);
  opacity: .7;
  transition: opacity .25s var(--ease);
}
.logos__row span:hover { opacity: 1; color: var(--purple-deep); }

/* ============================================================
   WORK
   ============================================================ */
.work {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--cream);
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.case__tag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple-mid);
  background: rgba(122,59,217,0.08);
  padding: .35em .8em;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.case h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.case p { color: var(--gray); margin-bottom: 1.5rem; }
.case__metrics {
  list-style: none;
  margin: 0; padding: 1.2rem 0 0;
  border-top: 1px solid var(--stone);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.case__metrics li { display: flex; flex-direction: column; }
.case__metrics strong {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--purple-deep);
  font-weight: 600;
}
.case__metrics span {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}

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

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: clamp(80px, 10vw, 130px) 0; }
.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__copy h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.about__copy p { color: var(--gray); }
.about__values {
  background: var(--purple-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
  align-self: stretch;
}
.about__values div {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: .98rem;
  color: var(--gray-light);
}
.about__values div:last-child { border-bottom: none; padding-bottom: 0; }
.about__values strong { color: var(--white); display: block; margin-bottom: .15rem; font-family: 'Fraunces', serif; font-weight: 500; }

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   BLOG
   ============================================================ */
.blog { padding: clamp(80px, 10vw, 130px) 0; background: var(--cream); }
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--stone);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.post:hover { transform: translateY(-4px); border-color: var(--purple-bright); }
.post__meta {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple-mid);
  font-weight: 600;
  margin-bottom: .8rem;
}
.post h3 { font-family: 'Fraunces', serif; font-weight: 600; margin-bottom: .5rem; font-size: 1.35rem; }
.post p { color: var(--gray); margin: 0; }

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

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(26,11,51,0.92) 100%),
    url('images/bg-contact.jpg') center/cover no-repeat,
    var(--black);
  color: var(--white);
  overflow: hidden;
}
.contact > .container { position: relative; z-index: 1; }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: var(--purple-glow); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact__copy p { color: var(--gray-light); max-width: 360px; }
.contact__email {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--purple-glow);
  margin-top: 1.5rem;
}

.contact__form {
  display: grid;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact__form label {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .85rem;
  color: var(--gray-light);
}
.contact__form label > span { font-weight: 500; letter-spacing: .03em; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  font: inherit;
  width: 100%;
  padding: .85em 1em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--white);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--purple-glow);
  background: rgba(255,255,255,0.09);
}
.contact__form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray-light) 50%), linear-gradient(135deg, var(--gray-light) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5em; }

.contact__form fieldset {
  border: 0; padding: 0; margin: 0;
  display: grid; gap: .55rem;
}
.contact__form legend {
  font-size: .85rem; font-weight: 500; color: var(--gray-light);
  margin-bottom: .35rem;
}
.contact__form .check {
  flex-direction: row; align-items: center; gap: .6rem;
  color: var(--white); font-size: .92rem;
  cursor: pointer;
}
.contact__form .check input {
  width: 16px; height: 16px; accent-color: var(--purple-bright);
  flex: 0 0 auto;
}
.contact__form button[type="submit"] { margin-top: .6rem; }
.contact__form .btn--primary {
  background: var(--purple-bright);
}
.contact__form .btn--primary:hover { background: var(--purple-glow); color: var(--purple-deep); }

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--purple-deep);
  color: var(--gray-light);
  padding: 80px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { max-width: 280px; margin-top: 1rem; font-size: .92rem; }
.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer__col { display: flex; flex-direction: column; gap: .7rem; }
.footer__col a { color: var(--gray-light); transition: color .2s var(--ease); font-size: .95rem; }
.footer__col a:hover { color: var(--white); }

.newsletter { display: flex; gap: 8px; margin-top: .7rem; }
.newsletter input {
  flex: 1;
  padding: .7em 1em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--white);
  font: inherit;
  font-size: .9rem;
}
.newsletter input:focus { outline: none; border-color: var(--purple-glow); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  font-size: .82rem;
  color: var(--gray-light);
}

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__newsletter { grid-column: span 2; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Small reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
