/* ==========================
   styles.css (UPDATED COLORS)
   Rebirth Creative Studio AI
   UI (matches screenshot style)
   ========================== */

:root {
  /* Moodboard palette */
  --bg: #f3ecd8;          /* main background */
  --paper: #f7f1e3;       /* soft surface */
  --paper-2: #f3ecd8;     /* secondary surface (same as bg per your note) */
  --ink: #2e2e2e;         /* main text (black-ish from moodboard) */
  --muted: rgba(46,46,46,0.62);
  --line: rgba(46, 46, 46, 0.08);

  /* buttons */
  --btn: #2e2e2e;
  --btnHover: #1f1f1f;

  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 12px 30px rgba(0,0,0,0.10);
  --shadow-md: 0 18px 55px rgba(0,0,0,0.14);

  --wrap: 1100px;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--bg);
}

/* paper + grid */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% 0%, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    linear-gradient(to bottom, rgba(255,255,255,0.35), rgba(255,255,255,0.08)),
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 26px);
  opacity: 0.55;
  z-index: -1;
}

/* helpers */
.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .92; }

.sectionTitle{
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.2px;
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0 0 10px;
  text-align: center;
}

.sectionSub{
  margin: 0 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(46,46,46,0.18);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 12px;
  line-height: 1;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary{
  background: var(--btn);
  color: #fff; /* white text on black elements */
  border-color: rgba(46,46,46,0.20);
}
.btn--primary:hover{ background: var(--btnHover); }

/* ==========================
   TOP NAV
   ========================== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 216, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46,46,46,0.06);
}

.topbar__inner{
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
}

.brand__name{
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
}

.brand__ai{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  opacity: 0.75;
}

.nav{
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: rgba(46,46,46,0.78);
}

.nav a{
  padding: 8px 10px;
  border-radius: 12px;
}

.nav a:hover{
  background: rgba(255,255,255,0.35);
}

/* ==========================
   HERO
   ========================== */
.hero{
  padding: 52px 0 44px;
}

.hero__inner{
  display: grid;
  place-items: center;
  text-align: center;
}

.hero__title{
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 72px);
}

.hero__italic{
  font-style: italic;
  font-weight: 500;
}

.hero__sub{
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero__btn{
  margin: 0 0 26px;
  padding: 14px 22px;
}

/* Collage */
.heroCollage{
  width: min(980px, 100%);
  margin-top: 10px;
  position: relative;
  height: 320px;
}

.heroCard{
  position: absolute;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(46,46,46,0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.heroCard img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.heroCard--main{
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 560px;
  height: 290px;
  padding: 18px;
  background: rgba(255,255,255,0.48);
  border-radius: 28px;
}

.heroCard--main img{
  border-radius: 18px;
}

.heroCard--left{
  left: 0;
  bottom: 12px;
  width: 150px;
  height: 150px;
  transform: rotate(-10deg);
  padding: 12px;
}

.heroCard--right{
  right: 0;
  bottom: 30px;
  width: 160px;
  height: 160px;
  transform: rotate(10deg);
  padding: 12px;
}

/* ==========================
   HOW IT WORKS
   ========================== */
.how{
  padding: 34px 0 58px;
}

.how__inner{
  display: grid;
  place-items: center;
  text-align: center;
}

.howSteps{
  width: min(900px, 100%);
  margin-top: 18px;
}

.howLine{
  position: relative;
  height: 22px;
  margin: 0 auto 20px;
  width: min(650px, 100%);
}

.howLine::before{
  content:"";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(46,46,46,0.10);
  border-radius: 99px;
}

.howDot{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(46,46,46,0.35);
}

.howDot--left{ left: 0; }
.howDot--mid{ left: 50%; transform: translate(-50%, -50%); }
.howDot--right{ right: 0; }

.howGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 6px;
}

.howItem{
  padding: 10px 8px;
}

.howIcon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  color: #1a1a1a;
  border: 1px solid rgba(46,46,46,0.10);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.howIcon--purple{ background: rgba(151, 123, 255, 0.55); }
.howIcon--blue{ background: rgba(96, 218, 255, 0.55); }
.howIcon--pink{ background: rgba(255, 153, 233, 0.55); }

.howTitle{
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 8px;
}

.howText{
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.how__btn{
  margin-top: 22px;
  padding: 14px 22px;
}

/* ==========================
   GALLERY
   ========================== */
.gallery{
  padding: 44px 0 54px;
}

.galleryGrid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.tile{
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(46,46,46,0.08);
  background: rgba(255,255,255,0.35);
  box-shadow: var(--shadow-sm);
}

/* ==========================
   CTA
   ========================== */
.cta{
  padding: 18px 0 64px;
}

.ctaBox{
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(46,46,46,0.08);
  border-radius: 22px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.ctaTitle{
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0 0 16px;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.2px;
}

.ctaAccent{
  color: rgba(46,46,46,0.78);
  font-style: italic;
}

.ctaBtn{
  padding: 14px 22px;
}

.ctaNote{
  margin: 10px 0 0;
  color: rgba(46,46,46,0.45);
  font-size: 12px;
}

.ctaRight{
  display: grid;
  place-items: center;
}

.ctaRight img{
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid rgba(46,46,46,0.08);
  box-shadow: var(--shadow-md);
  display: block;
}

/* ==========================
   FOOTER
   ========================== */
.footer{
  padding: 30px 0 34px;
  border-top: 1px solid rgba(46,46,46,0.06);
  background: rgba(243, 236, 216, 0.55);
}

.footer__inner{
  text-align: center;
  display: grid;
  gap: 10px;
  place-items: center;
}

.footerBrand{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
}

.footerBrand__name{
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 14px;
}
.footerBrand__ai{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  opacity: .75;
}

.footerTag{
  color: rgba(46,46,46,0.52);
  font-size: 12px;
}

.footerLinks{
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(46,46,46,0.72);
  font-size: 12px;
}

.footerLinks a{
  padding: 7px 10px;
  border-radius: 999px;
}
.footerLinks a:hover{
  background: rgba(255,255,255,0.35);
}

.footerCopy{
  margin-top: 4px;
  color: rgba(46,46,46,0.45);
  font-size: 11px;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 900px){
  .galleryGrid{ grid-template-columns: repeat(3, 1fr); }
  .ctaBox{ grid-template-columns: 1fr; }
  .ctaRight img{ max-width: 440px; }
  .heroCollage{ height: 300px; }
  .heroCard--main{ width: min(520px, 100%); }
}

@media (max-width: 700px){
  .nav{ gap: 8px; }
  .nav{ position: relative; }
  .hero__sub br{ display:none; }

  .heroCollage{
    height: 360px;
  }
  .heroCard--main{
    width: 100%;
    height: 270px;
    left: 50%;
  }
  .heroCard--left{
    width: 130px;
    height: 130px;
    left: 8px;
    bottom: 0;
  }
  .heroCard--right{
    width: 135px;
    height: 135px;
    right: 8px;
    bottom: 10px;
  }

  .howGrid{ grid-template-columns: 1fr; gap: 18px; }
  .howLine{ display:none; }

  .galleryGrid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px){
  .brand__name{ font-size: 13px; }
  .btn{ width: 100%; }
  .hero__btn, .how__btn, .ctaBtn{ width: 100%; }
}

/* =========================
   Mobile nav
   ========================= */
.navToggle{
  display:none;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(46,46,46,0.15);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.navLinks{
  display:flex;
  align-items:center;
  gap: 18px;
}

/* mobile */
@media (max-width: 720px){
  .navToggle{ display:inline-flex; align-items:center; justify-content:center; }

  .navLinks{
    position: absolute;
    right: 16px;
    top: 60px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(46,46,46,0.12);
    border-radius: 14px;
    padding: 12px;
    min-width: 170px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.12);
    z-index: 9999;
  }

  .navLinks.is-open{
    display: flex;
  }

  .navLinks a{
    width: 100%;
  }
}

/* =========================
   ABOUT – ensure bags are in FRONT of people
   ========================= */
.aboutCard,
.profileCard,
.aboutPerson,
.aboutImage {
  position: relative;
  z-index: 1;
}

.aboutBag,
.floatingBag,
.aboutDecor,
.aboutCard__bag {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
