/* =========================================================
   LAVENDER INTERIORS — stylesheet
   ========================================================= */

:root {
  /* Palette — calm, lavender-inspired, warm neutrals */
  --lavender-50:  #f7f3fb;
  --lavender-75:  #f1e9f6;  /* between 50 and 100 */
  --lavender-100: #ece2f3;
  --lavender-150: #e3d3ed;  /* between 100 and 200 */
  --lavender-200: #d9c9e6;
  --lavender-300: #b9a3cf;
  --lavender-500: #8767a8;
  --lavender-700: #5a3d7a;

  --ink:          #2a2535;   /* deep aubergine-charcoal */
  --ink-soft:     #4f4757;
  --muted:        #7c7589;

  --cream:        #faf7f2;
  --paper:        #ffffff;
  --line:         #e8e2ed;

  /* Type */
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;  /* portfolio wordmark font */

  /* Layout */
  --maxw:         1180px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);
  --section-y:    clamp(4rem, 8vw, 7rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--lavender-500); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.1; margin: 0 0 1rem; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); line-height: 1.15; margin: 0 0 1rem; }
h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lavender-500);
  margin: 0 0 .85rem;
}

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--lavender-700);
  color: #fff;
  border-color: var(--lavender-700);
}
.btn-primary:hover { background: var(--lavender-500); border-color: var(--lavender-500); color:#fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .95rem;
  color: var(--ink);
}
.brand:hover { color: var(--lavender-700); }
.brand-mark {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid #000;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(90, 61, 122, .08);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.primary-nav a {
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-soft);
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--lavender-700);
  border-bottom-color: var(--lavender-300);
}
.primary-nav .nav-cta {
  background: var(--lavender-700);
  color: #fff;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border-bottom: none !important;
}
.primary-nav .nav-cta:hover { background: var(--lavender-500); color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px; height: 36px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--lavender-100);
}
.hero-image { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,37,53,.10) 0%, rgba(42,37,53,.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 2rem var(--gutter);
  max-width: 820px;
}
.hero-content .eyebrow { color: rgba(255,255,255,.9); }
.hero-content h1 { color: #fff; font-weight: 500; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.92); margin: 1rem auto 2rem; max-width: 600px; }
.hero-cta { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   SECTION BASE
   ========================================================= */
.section { padding: var(--section-y) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .lede { margin: 1rem auto 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.two-col.reverse .col-image { order: 2; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--cream); }
.about-narrow {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.about-narrow .eyebrow { display: block; }
.about-narrow h2 { margin-bottom: 1.5rem; }
.about-narrow p {
  text-align: left;
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.about-narrow p:last-child { margin-bottom: 0; }

@media (min-width: 720px) {
  .about-narrow p { text-align: center; max-width: 64ch; margin-left: auto; margin-right: auto; }
}

/* =========================================================
   DESIGN PHILOSOPHY
   ========================================================= */
.design-philosophy { background: var(--paper); }
.decor-image {
  border-radius: 4px;
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--lavender-50); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(90, 61, 122, .08);
  border-color: var(--lavender-200);
}
.service-card h3 {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: var(--lavender-700);
}
.service-card p { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.service-card-full { grid-column: 1 / -1; background: var(--lavender-100); border-color: var(--lavender-200); }

/* =========================================================
   PORTFOLIO / GALLERY
   ========================================================= */
.portfolio { background: var(--paper); }
.gallery {
  column-count: 3;
  column-gap: 1rem;
}
.gallery-item {
  margin: 0 0 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--lavender-50);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
/* Placeholder tiles need explicit dimensions in the masonry layout */
.gallery-item.placeholder-tile { aspect-ratio: 4 / 5; }
.gallery-item.placeholder-tile .placeholder { width: 100%; height: 100%; }
/* Legacy wide/tall modifier classes - no-ops in masonry, kept for compat */
.gallery-item-wide, .gallery-item-tall { }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem .9rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
}

/* =========================================================
   INSTAGRAM
   ========================================================= */
.instagram { background: var(--paper); }
.instagram .section-head { margin-bottom: 2.5rem; }
.ig-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
}
.ig-icon { display: block; }

.ig-feed { max-width: 980px; margin: 0 auto; }

/* LightWidget will inject its own iframe — make sure it sits nicely */
.ig-feed iframe.lightwidget-widget {
  width: 100%;
  border: 0;
  overflow: hidden;
}

/* Placeholder grid shown until the LightWidget embed is pasted in */
.ig-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.ig-tile { aspect-ratio: 1 / 1; }
.ig-tile .placeholder {
  min-height: 0;
  height: 100%;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .ig-placeholder-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--cream); }
.process-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.process-list li {
  display: flex;
  gap: 1.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  align-items: center;
  transition: transform .2s ease;
}
.process-list li:hover { transform: translateY(-1px); }

/* Progressive lavender — each step a slightly deeper shade */
.process-list li:nth-child(1) { background: var(--lavender-50);  border-color: var(--lavender-75); }
.process-list li:nth-child(2) { background: var(--lavender-75);  border-color: var(--lavender-100); }
.process-list li:nth-child(3) { background: var(--lavender-100); border-color: var(--lavender-150); }
.process-list li:nth-child(4) { background: var(--lavender-150); border-color: var(--lavender-200); }
.process-list li:nth-child(5) { background: var(--lavender-200); border-color: var(--lavender-300); }

.step-num {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  min-width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--lavender-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: .05em;
  color: var(--lavender-700);
  line-height: 1;
}
.process-list h3 { color: var(--lavender-700); font-size: 1.2rem; margin: 0 0 .35rem; }
.process-list p { margin: 0; color: var(--ink-soft); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { background: var(--lavender-50); }

/* Auto-scrolling testimonial carousel
   - 3 cards visible on desktop, fewer at narrower widths
   - Pauses on hover / keyboard focus
   - prefers-reduced-motion → static horizontal scroll fallback */
.testimonial-viewport {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.testimonial-track {
  display: flex;
  width: max-content;
  animation: testimonial-scroll 32s linear infinite;
}
.testimonial-viewport:hover  .testimonial-track,
.testimonial-viewport:focus-within .testimonial-track {
  animation-play-state: paused;
}
@keyframes testimonial-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testimonial {
  flex: 0 0 340px;
  width: 340px;
  margin: 0 1.5rem 0 0;          /* horizontal gap via margin (lets translateX(-50%) be exact) */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  align-self: stretch;            /* equal heights — looks cleaner in a carousel */
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--lavender-200);
  line-height: 1;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}
.testimonial figcaption { margin-top: 1.25rem; }
.testimonial figcaption strong {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--lavender-700);
  font-size: .95rem;
  letter-spacing: .04em;
}
.testimonial figcaption span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--cream); }
.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: .9rem;
}
.contact-details li {
  display: flex;
  flex-direction: column;
}
.contact-details .label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: .35rem; }
.field label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field .optional { font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lavender-300);
  box-shadow: 0 0 0 3px rgba(185, 163, 207, .25);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* =========================================================
   PLACEHOLDERS
   ========================================================= */
.placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--lavender-50) 0 14px,
      var(--lavender-100) 14px 28px
    );
  border: 1px dashed var(--lavender-300);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--lavender-700);
  text-align: center;
  padding: 1rem;
}
.placeholder-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
}
.placeholder-label small {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lavender-500);
  margin-top: .35rem;
}
.placeholder-portrait { aspect-ratio: 4/5; min-height: 380px; }
.placeholder-tile .placeholder { min-height: 100%; height: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-mark { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #000; object-fit: cover; margin-bottom: .85rem; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 .25rem;
}
.footer-tag { font-size: .85rem; color: rgba(255,255,255,.55); margin: 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a, .footer-contact a {
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--lavender-200); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  text-align: center;
}


/* ---------- Static "Follow on Instagram" call-out ---------- */
.ig-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  /* Photo behind the call-out, with a lavender gradient overlay for readability */
  background:
    linear-gradient(180deg, rgba(247, 243, 251, 0.72) 0%, rgba(236, 226, 243, 0.78) 100%),
    url('images/decor/lavender-hanging.jpg') center/cover no-repeat;
  border: 1px solid var(--lavender-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .3s ease;
}
.ig-feature:hover {
  transform: translateY(-2px);
  border-color: var(--lavender-300);
  box-shadow: 0 12px 32px rgba(90, 61, 122, .10);
  color: var(--ink);
  /* On hover, lift the overlay further so the photo glimmers through a touch more */
  background:
    linear-gradient(180deg, rgba(247, 243, 251, 0.62) 0%, rgba(236, 226, 243, 0.70) 100%),
    url('images/decor/lavender-hanging.jpg') center/cover no-repeat;
}
.ig-feature-icon {
  color: var(--lavender-700);
  margin-bottom: .25rem;
}
.ig-feature-handle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--lavender-700);
  line-height: 1.1;
}
.ig-feature-tease {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.55;
}
.ig-feature-cta {
  display: inline-block;
  margin-top: .75rem;
  padding: .8rem 1.6rem;
  background: var(--lavender-700);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: background .2s ease;
}
.ig-feature:hover .ig-feature-cta { background: var(--lavender-500); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .nav-inner { padding-top: 1rem; padding-bottom: 1rem; }
  .brand-mark { width: 62px; height: 62px; }
  .brand-name { font-size: 1.35rem; letter-spacing: .18em; }
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.25rem;
    gap: .9rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .primary-nav .nav-cta { text-align: center; }
  .nav-inner { position: relative; }

  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-image { order: 0; }

  .gallery { column-count: 2; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand-mark { width: 52px; height: 52px; }
  .brand-name { font-size: 1.15rem; letter-spacing: .15em; }
  .gallery { column-count: 1; }
  .hero-cta .btn { width: 100%; }
  .process-list li { flex-direction: column; gap: .5rem; }
  .step-num { min-width: 0; }
}

/* Testimonial carousel — narrower cards on smaller screens */
@media (max-width: 520px) {
  .testimonial { flex: 0 0 280px; width: 280px; margin-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Marquee → manual horizontal scroll for motion-sensitive users */
  .testimonial-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .testimonial-track    { animation: none; }
}
