/* ═══════════════════════════════════════════
   Threads Of Promise — Pinterest Craft Style
   ═══════════════════════════════════════════ */

:root {
  /* ── Palette: #c99f87 · #dcc2a9 · #eee6fe · #907cd1 · #5e5ece ── */
  --cream:          #f5f1fe;   /* page bg — very pale lavender wash     */
  --warm-white:     #ffffff;
  --peach:          #dcc2a9;   /* warm sand  — about / warm sections    */
  --peach-deep:     #c99f87;   /* terracotta — deep warm borders        */
  --rust:           #5e5ece;   /* indigo     — primary action / CTA     */
  --rust-dark:      #4a4ab4;   /* darker indigo hover                   */
  --rust-light:     #c99f87;   /* terracotta — warm decorative accent   */
  --plum:           #907cd1;   /* purple     — secondary accent         */
  --plum-dark:      #7060b8;   /* deeper purple hover                   */
  --plum-light:     #c4b6ee;   /* soft lavender tint                    */
  --lavender:       #d8d0f0;   /* light lavender                        */
  --lavender-soft:  #eee6fe;   /* pale lavender — gallery section bg    */
  --brown:          #2e2758;   /* deep indigo-navy — body text          */
  --brown-mid:      #5a5278;   /* medium text                           */
  --brown-soft:     #8880a8;   /* soft / muted text                     */
  --shadow-sm:      0 2px 10px rgba(46,39,88,.08);
  --shadow-md:      0 8px 28px rgba(46,39,88,.12);
  --shadow-lg:      0 20px 56px rgba(46,39,88,.15);
  --shadow-plum:    0 8px 28px rgba(144,124,209,.28);
  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-xl:   40px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--brown);
  background-color: var(--cream);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* Make <picture> transparent to layout — child <img> fills as if picture isn't there */
picture {
  display: contents;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", serif;
  line-height: 1.1;
}

ul { list-style: none; margin: 0; padding: 0; }

/* ═══════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(94, 94, 206, 0.18);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-brand-script {
  font-family: "Dancing Script", cursive;
  font-size: 2.1rem;
  color: var(--rust);
  line-height: 1;
}

.nav-brand-serif {
  font-family: "Fraunces", serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

/* Needle icon */
.nav-needle {
  width: 22px;
  height: 38px;
  flex-shrink: 0;
}

.nav-needle--lg {
  width: 20px;
  height: 34px;
}

/* Footer brand mark row */
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.footer-brand-mark .nav-brand-script {
  font-size: 2.1rem;
  color: var(--rust-light);
}

.footer-brand-mark .nav-brand-serif {
  color: rgba(238,230,254,.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--brown-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--rust); }

.nav-cta {
  background: var(--rust) !important;
  color: #fff9f2 !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--rust-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(74,74,180,.32) !important;
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════════
   Shared Atoms
   ═══════════════════════════════════════════ */
.eyebrow,
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow::before,
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.8rem;
  height: 2px;
  background: var(--rust);
  flex-shrink: 0;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: var(--rust);
  color: #fff9f2;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: var(--rust-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,74,180,.34);
}

.btn-ghost {
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--rust);
  color: var(--rust);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  background: var(--rust);
  color: #fff9f2;
  transform: translateY(-2px);
}

.btn-ghost--plum {
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--plum);
  color: var(--plum);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-ghost--plum:hover {
  background: var(--plum);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-plum);
}

.btn-light {
  display: inline-block;
  text-decoration: none;
  background: #fff9f2;
  color: var(--rust);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-light:hover {
  background: var(--peach);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-eyebrow {
  justify-content: center;
}

.section-header .section-eyebrow::before { display: none; }

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0;
  color: var(--brown);
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 3.5rem;
  min-height: 88vh;
}

.hero-content { max-width: 520px; }

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0 0 1.2rem;
  color: var(--brown);
}

h1 em {
  font-style: italic;
  color: var(--rust);
}

.intro {
  color: var(--brown-soft);
  font-size: 1.05rem;
  line-height: 1.72;
  margin: 0 0 2rem;
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Hero mosaic */
.hero-mosaic {
  display: flex;
  gap: 0.8rem;
  height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mosaic-tall {
  flex: 1.1;
  overflow: hidden;
  border-radius: var(--r-lg);
}

.mosaic-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-mosaic--single {
  display: block;
}

.hero-mosaic--single .mosaic-tall {
  width: 100%;
  height: 100%;
  border-radius: var(--r-xl);
}

.mosaic-tall--machine {
  background: var(--cream);
}

.mosaic-tall--machine img {
  object-fit: contain;
  padding: 1.5rem;
  mix-blend-mode: multiply;
}

.mosaic-tall:hover img { transform: scale(1.04); }

.mosaic-col {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mosaic-sm {
  flex: 1;
  overflow: hidden;
  border-radius: var(--r-lg);
}

.mosaic-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mosaic-sm:hover img { transform: scale(1.04); }

/* ═══════════════════════════════════════════
   Gallery (Pinterest Masonry)
   ═══════════════════════════════════════════ */
.gallery-section {
  padding: 5rem 2rem;
  background: var(--lavender-soft);
}

/* Plum eyebrow variant */
.section-eyebrow--plum {
  color: var(--plum);
}
.section-eyebrow--plum::before {
  background: var(--plum);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
}

/* Pinterest-style pin card */
.pin {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pin:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pin-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.pin-img--tall { height: 200px; }
.pin-img--short { height: 200px; }

.pin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.pin:hover .pin-img img { transform: scale(1.05); }

.pin-info {
  padding: 0.85rem 1rem 1rem;
}

.pin-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  background: rgba(94,94,206,.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.pin-tag--plum {
  color: var(--plum);
  background: rgba(144,124,209,.14);
}

.pin-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--brown-soft);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   Services
   ═══════════════════════════════════════════ */
.services-section {
  padding: 5rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(94,94,206,.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--rust);
  color: #fff9f2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.service-card-badge--plum {
  background: var(--plum);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  color: var(--brown);
}

.service-card-body p {
  margin: 0 0 1.1rem;
  color: var(--brown-soft);
  font-size: 0.93rem;
  line-height: 1.62;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--rust);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap 0.2s, color 0.2s;
}

.service-link:hover {
  color: var(--rust-dark);
  gap: 0.55rem;
}

.service-link--plum {
  color: var(--plum);
}

.service-link--plum:hover {
  color: var(--plum-dark);
  gap: 0.55rem;
}

/* ═══════════════════════════════════════════
   About
   ═══════════════════════════════════════════ */
.about-section {
  padding: 5rem 2rem;
  background: var(--peach);
}

.about-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-image-accent {
  position: absolute;
  inset: -1rem -1rem auto auto;
  width: 55%;
  height: 55%;
  border: 3px solid var(--plum-light);
  border-radius: var(--r-xl);
  z-index: 0;
  opacity: 0.5;
}

.about-text h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin: 0.5rem 0 1.2rem;
  color: var(--brown);
}

.about-text p {
  color: var(--brown-mid);
  line-height: 1.74;
  margin: 0 0 1rem;
  font-size: 1rem;
}

.about-text p:last-of-type { margin-bottom: 1.8rem; }

/* ═══════════════════════════════════════════
   CTA Banner
   ═══════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--rust) 0%, #7868BE 50%, var(--plum-dark) 100%);
  padding: 5rem 2rem;
}

.cta-banner-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-eyebrow {
  color: rgba(238,230,254,.85);
  justify-content: center;
}

.cta-eyebrow::before { background: rgba(238,230,254,.85); }

.cta-banner h2 {
  color: #f0ecff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0.5rem 0 1rem;
}

.cta-banner p {
  color: rgba(238,230,254,.88);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.footer {
  background: var(--brown);
  padding: 3.5rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.8fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(238,230,254,.15);
}

.footer-brand p {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: rgba(238,230,254,.65);
  line-height: 1.65;
  max-width: 30ch;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a,
.footer-contact a {
  text-decoration: none;
  color: rgba(238,230,254,.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-contact a:hover { color: var(--plum-light); }

.footer-note {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: rgba(238,230,254,.45);
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  color: rgba(238,230,254,.4);
}

/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: rise 0.75s ease-out both; }
.hero-mosaic  { animation: rise 0.75s ease-out 0.15s both; }

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .masonry { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 440px;
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1.5rem 2.5rem;
    gap: 2.5rem;
  }
  .hero-content { max-width: 100%; }
  .hero-mosaic { height: 360px; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image img { height: 320px; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--lavender);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-md);
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero-mosaic { height: 280px; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; max-width: none; justify-self: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-section,
  .services-section,
  .about-section,
  .cta-banner { padding: 3.5rem 1.25rem; }
}

@media (max-width: 420px) {
  .hero-mosaic { height: 220px; border-radius: var(--r-lg); }
  .masonry { grid-template-columns: 1fr; }
}
