/* ========================================
   Sosaa Braids — Un-ruly inspired design
   ======================================== */

/* --- Custom Properties --- */
:root {
  --black: #1a1a1a;
  --off-white: #f5f0eb;
  --cream: #faf7f2;
  --gold: #c9a96e;
  --gold-light: #e2d1a8;
  --warm-gray: #8a8178;
  --light-gray: #e8e3dc;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --radius: 6px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.italic { font-family: var(--font-display); font-style: italic; }
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head { margin-bottom: 56px; max-width: 600px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-lede { font-size: 1.05rem; color: var(--warm-gray); line-height: 1.7; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  transition: all .25s var(--ease);
}
.btn-primary {
  background: var(--black);
  color: var(--cream);
}
.btn-primary:hover { background: var(--gold); color: var(--black); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  background: #fff;
  color: #5B2C6F;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.btn-hero-primary:hover { background: #5B2C6F; color: #fff; }
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  transition: all .25s var(--ease);
}
.btn-hero-ghost:hover { background: #fff; color: #5B2C6F; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-gray);
  transition: background .3s var(--ease);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: auto;
}
.logo-img.small { height: 32px; }
.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav ul { display: flex; gap: 28px; }
.primary-nav ul a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.primary-nav ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.primary-nav ul a:hover::after { width: 100%; }
.nav-cta { padding: 10px 24px; font-size: .8rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 72px;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-bg {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: #fff;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

/* Marquee */
.hero-marquee {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 20px 0;
  border-top: 1px solid var(--light-gray);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--light-gray);
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  background: #fff;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  transition: all .3s var(--ease);
  position: relative;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,26,26,.08);
}
.card-num {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card > p {
  font-size: .92rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-bottom: 20px;
}
.card-meta {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}
.card-meta li { display: flex; flex-direction: column; gap: 2px; }
.card-meta span { font-size: .75rem; color: var(--warm-gray); text-transform: uppercase; letter-spacing: .06em; }
.card-meta strong { font-size: .95rem; }
.services-foot {
  text-align: center;
  margin-top: 40px;
  color: var(--warm-gray);
  font-size: .95rem;
}
.services-foot a { color: var(--gold); border-bottom: 1px solid var(--gold-light); }
.services-foot a:hover { color: var(--black); border-color: var(--black); }

/* ===== GALLERY ===== */
.gallery {
  padding: 120px 0;
  background: var(--cream);
}
.gallery-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter {
  padding: 8px 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--light-gray);
  border-radius: 100px;
  color: var(--warm-gray);
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--gold); color: var(--black); }
.filter.active { background: var(--black); color: var(--cream); border-color: var(--black); }

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  grid-auto-rows: 200px;
}
.tile {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.tile:hover { transform: scale(1.02); }
.tile-a, .tile-d { grid-row: span 2; }
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: .04em;
}
.tile-a .ph { background: #e8e0d4; }
.tile-b .ph { background: #ddd5c8; }
.tile-c .ph { background: #e2dcd3; }
.tile-d .ph { background: #d9d1c4; }
.tile-e .ph { background: #e5ded5; }
.tile-f .ph { background: #dbd3c7; }
.tile figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(26,26,26,.7));
  color: var(--cream);
  font-size: .82rem;
  font-weight: 500;
}
.tile.hidden { display: none; }

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--black);
  color: var(--cream);
}
.testimonials .eyebrow { color: var(--gold); }
.testimonials .section-title { color: var(--cream); }
.quote-stage {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.quotes { position: relative; flex: 1; min-height: 160px; }
.quote {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.quote.active { opacity: 1; position: relative; }
.quote p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
}
.quote cite {
  font-style: normal;
  font-size: .85rem;
  color: var(--gold-light);
}
.q-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--cream);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.q-nav:hover { border-color: var(--gold); color: var(--gold); }
.quote-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.dot.active { background: var(--gold); }

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-image .ph {
  height: 500px;
  background: var(--off-white);
  border-radius: var(--radius);
  font-size: 1rem;
}
.about-text .section-title { margin-top: 4px; }
.about-text p {
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-points {
  margin: 24px 0 32px;
  display: grid;
  gap: 10px;
}
.about-points li {
  padding-left: 20px;
  position: relative;
  font-size: .95rem;
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0;
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info .section-title { margin-top: 4px; }
.contact-list {
  margin: 32px 0;
  display: grid;
  gap: 18px;
}
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list .lbl {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.contact-list a { font-weight: 500; color: var(--black); }
.contact-list a:hover { color: var(--gold); }

.socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover { border-color: var(--gold); color: var(--gold); }

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--warm-gray);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--black);
  background: var(--cream);
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; }
.form-note {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--gold);
  min-height: 1.2em;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--light-gray);
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.logo-mark.small {
  width: 28px;
  height: 28px;
  font-size: .8rem;
}
.foot-copy { font-size: .82rem; color: var(--warm-gray); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: .85rem; font-weight: 500; }
.foot-links a:hover { color: var(--gold); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26,26,26,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--cream);
  z-index: 2;
}
.lb-stage { max-width: 80vw; max-height: 80vh; text-align: center; }
.lb-frame {
  min-width: 300px;
  min-height: 300px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray);
}
.lb-caption {
  margin-top: 16px;
  color: var(--cream);
  font-size: .9rem;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 999;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: center; gap: 24px; }

  .hero { min-height: auto; padding-top: 56px; }
  .hero-bg { top: 56px; position: relative; min-height: 70vh; }
  .hero-bg img { object-position: center top; }
  .hero-ctas { bottom: 5% !important; right: 5% !important; left: 5% !important; }
  .hero-ctas .btn { font-size: .8rem; padding: 10px 18px; }

  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image .ph { height: 320px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }

  .quote-stage { flex-direction: column; gap: 16px; }
  .q-nav { width: 36px; height: 36px; font-size: 1rem; }
  .quote p { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .masonry { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .tile-a, .tile-d { grid-row: span 1; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
