/* ============================================
   STACY WILLIAMS UPHOLSTERY — STYLESHEET
   Palette: Plum (#5B2C6F) + Amber (#F59E0B)
   Fonts: Playfair Display + Inter
   ============================================ */

/* ── Reset & Base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --plum:        #5B2C6F;
  --plum-dark:   #3D1F4D;
  --plum-light:  #7D3C98;
  --plum-pale:   #F3E8F9;
  --plum-muted:  rgba(91, 44, 111, 0.08);
  --amber:       #F59E0B;
  --amber-dark:  #D97706;
  --amber-light: #FCD34D;
  --amber-pale:  #FFFBEB;
  --bg:          #FAFAF8;
  --bg-white:    #FFFFFF;
  --text:        #1A1A1A;
  --text-muted:  #6B6B6B;
  --text-light:  #999999;
  --border:      rgba(91, 44, 111, 0.12);
  --border-light: rgba(91, 44, 111, 0.06);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:   1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--plum-light); }
button { cursor: pointer; font-family: inherit; }
address { font-style: normal; }

.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--plum); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm);
  z-index: 1000; font-size: 0.875rem;
}
.skip-link:focus { top: 12px; }

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

/* ── Line Decoration ─────────────────────── */
.line-decoration {
  position: fixed; top: 0; left: 0; width: 100%; height: 60px;
  pointer-events: none; z-index: 50; opacity: 0.6;
}
.line-decoration svg { width: 100%; height: 100%; }

/* ── Header ──────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 36px; height: 36px;
  background: var(--plum); color: var(--amber);
  font-family: var(--font-serif); font-size: 0.75rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.05em; border-radius: var(--radius-sm);
}
.logo-text {
  font-size: 0.9375rem; font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo-accent { color: var(--plum); font-weight: 300; }

.primary-nav ul {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.primary-nav a {
  font-size: 0.8125rem; font-weight: 400; color: var(--text-muted);
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: color var(--transition);
}
.primary-nav a:hover { color: var(--plum); }

.nav-cta {
  background: var(--plum); color: #fff !important;
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.8125rem !important; text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--plum-dark); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle-line {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: var(--transition); transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .primary-nav.open { opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 24px; text-align: center; }
  .primary-nav a { font-size: 1.125rem; }
  .nav-cta { font-size: 1rem !important; }
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 100px; font-size: 0.875rem;
  font-weight: 500; letter-spacing: 0.02em;
  transition: all var(--transition); border: none; text-decoration: none;
}
.btn-primary {
  background: var(--plum); color: #fff;
  box-shadow: 0 4px 16px rgba(91, 44, 111, 0.25);
}
.btn-primary:hover {
  background: var(--plum-dark); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91, 44, 111, 0.3);
}
.btn-ghost {
  background: transparent; color: var(--plum);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--plum); background: var(--plum-pale); color: var(--plum);
}
.btn-full { width: 100%; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ── Section shared ──────────────────────── */
.section-label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber-dark);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400; line-height: 1.2; color: var(--text);
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.0625rem; color: var(--text-muted); max-width: 520px;
  line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.serif-italic { font-style: italic; font-weight: 400; color: var(--plum); }

/* ── Hero ────────────────────────────────── */
.hero {
  padding: 140px 0 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(91,44,111,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; position: relative; z-index: 1;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber-dark);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-serif); font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400; line-height: 1.15; color: var(--text);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.0625rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual cards */
.hero-visual {
  position: relative; height: 600px;
}
.hero-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-card--main {
  width: 100%; height: 100%;
  position: relative;
}
.hero-card--main img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-card-label {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 0.8125rem; font-weight: 500; color: var(--plum);
}
.hero-stat-card {
  position: absolute; background: var(--bg-white);
  border-radius: var(--radius-md); padding: 20px 24px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
  z-index: 2;
}
.hero-stat-card--top {
  top: 40px; right: -20px;
}
.hero-stat-card--bottom {
  bottom: 60px; left: -20px;
}
.stat-number {
  display: block; font-family: var(--font-serif);
  font-size: 1.75rem; color: var(--plum); line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4;
}
.hero-line {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--border);
}

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 420px; order: -1; }
  .hero-stat-card--top { right: 10px; top: 20px; }
  .hero-stat-card--bottom { left: 10px; bottom: 30px; }
}
@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
  .hero-visual { height: 320px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ── Services ────────────────────────────── */
.services { padding: 100px 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 36px 28px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--border); box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px; height: 48px; margin-bottom: 20px;
  color: var(--plum);
}
.service-icon svg { width: 100%; height: 100%; }
.service-title {
  font-family: var(--font-serif); font-size: 1.25rem;
  font-weight: 400; margin-bottom: 12px; color: var(--text);
}
.service-desc {
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7;
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── Process ─────────────────────────────── */
.process { padding: 100px 0; background: var(--plum-dark); color: #fff; position: relative; overflow: hidden; }
.process::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(91,44,111,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.process .container { position: relative; z-index: 1; }

.process-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.process .section-label { color: var(--amber); }
.process .section-title { color: #fff; }
.process .section-title .serif-italic { color: var(--amber-light); }
.process-intro {
  font-size: 1.0625rem; color: rgba(255,255,255,0.7);
  line-height: 1.8; margin-bottom: 48px;
}

.process-steps { list-style: none; display: flex; flex-direction: column; gap: 36px; }
.process-step { display: flex; gap: 24px; align-items: flex-start; }
.step-number {
  font-family: var(--font-serif); font-size: 1.5rem;
  color: var(--amber); line-height: 1; min-width: 40px;
  padding-top: 2px;
}
.step-title {
  font-family: var(--font-serif); font-size: 1.125rem;
  font-weight: 400; margin-bottom: 6px; color: #fff;
}
.step-desc {
  font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.7;
}
.process-visual img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 960px) {
  .process-layout { grid-template-columns: 1fr; gap: 48px; }
  .process-visual { max-width: 560px; }
}

/* ── About ───────────────────────────────── */
.about { padding: 100px 0; }
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.about-image-wrapper { position: relative; }
.about-image-wrapper img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-accent {
  position: absolute; top: -20px; right: -20px;
  width: 200px; height: 200px; z-index: -1;
}
.about-content .section-title .serif-italic { color: var(--plum); }
.about-body {
  font-size: 1rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 16px;
}
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.about-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; color: var(--text);
}
.feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
}

@media (max-width: 960px) {
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-accent { display: none; }
}
@media (max-width: 480px) {
  .about-features { grid-template-columns: 1fr; }
}

/* ── Gallery ─────────────────────────────── */
.gallery { padding: 100px 0; background: var(--bg-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff; font-size: 0.8125rem; font-weight: 400;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-item--wide { grid-column: span 7; }
.gallery-item:not(.gallery-item--wide) { grid-column: span 5; }

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 1; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(4) { grid-column: span 5; }
.gallery-item:nth-child(5) { grid-column: span 5; }
.gallery-item:nth-child(6) { grid-column: span 7; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item--wide,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6) {
    grid-column: span 1;
  }
  .gallery-item { min-height: 260px; }
  .gallery-caption { opacity: 1; }
}

/* ── CTA Banner ──────────────────────────── */
.cta-banner {
  padding: 100px 0;
  background: var(--plum);
  position: relative; overflow: hidden;
  text-align: center; color: #fff;
}
.cta-pattern { position: absolute; inset: 0; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-eyebrow {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px;
}
.cta-headline {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.cta-headline .serif-italic { color: var(--amber-light); }
.cta-body {
  font-size: 1.0625rem; color: rgba(255,255,255,0.7);
  line-height: 1.8; margin-bottom: 36px;
}
.cta-body a { color: var(--amber-light); text-decoration: underline; text-underline-offset: 3px; }
.cta-body a:hover { color: var(--amber); }
.cta-banner .btn-primary {
  background: var(--amber); color: var(--plum-dark);
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}
.cta-banner .btn-primary:hover {
  background: var(--amber-light); color: var(--plum-dark);
  transform: translateY(-2px);
}

/* ── Contact ─────────────────────────────── */
.contact { padding: 100px 0; }
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.contact-intro {
  font-size: 1rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 40px;
}
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.detail-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--plum-pale); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--plum);
}
.detail-icon svg { width: 18px; height: 18px; }
.contact-detail strong {
  display: block; font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
  margin-bottom: 4px;
}
.contact-detail p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }
.contact-detail a { color: var(--plum); }
.contact-detail a:hover { color: var(--plum-light); }
.contact-hours {
  padding: 20px 24px; background: var(--plum-pale);
  border-radius: var(--radius-md); border: 1px solid var(--border-light);
}
.contact-hours strong {
  display: block; font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum);
  margin-bottom: 8px;
}
.contact-hours p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; }

/* Form */
.contact-form-wrapper {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans); font-size: 0.9375rem;
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg);
  color: var(--text); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plum); box-shadow: 0 0 0 3px rgba(91,44,111,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group--textarea textarea { min-height: 140px; }

.form-success {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: #ECFDF5; border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm); color: #065F46; font-size: 0.9375rem;
  margin-top: 8px;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; color: #10B981; }

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .contact-form-wrapper { padding: 24px; }
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  padding: 64px 0 0;
  background: var(--text); color: rgba(255,255,255,0.6);
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 0.9375rem; margin-top: 16px; line-height: 1.7; max-width: 280px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 0.9375rem; color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--amber); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact p { font-size: 0.9375rem; }
.footer-contact a { color: rgba(255,255,255,0.5); }
.footer-contact a:hover { color: var(--amber); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 0.8125rem; color: rgba(255,255,255,0.3);
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Animations ──────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
