/* ============================================================
   Virtuoso Interior Design & Consulting
   Warm, light palette with brown accents
   ============================================================ */

:root {
  --cream: #faf6f0;
  --cream-2: #f3ece2;
  --sand: #e8ddcd;
  --taupe: #c9b9a3;
  --brown: #8b6f4e;
  --brown-deep: #6b5640;
  --ink: #2e2a25;
  --ink-soft: #5b554d;
  --white: #fffdfa;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px -24px rgba(80, 60, 35, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(80, 60, 35, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
em { font-style: italic; color: var(--brown); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section { padding: clamp(64px, 9vw, 130px) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-lede { color: var(--ink-soft); font-size: 1.1rem; margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 400; font-size: 0.95rem;
  letter-spacing: 0.04em; padding: 0.95em 1.8em; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent; transition: all 0.25s ease;
}
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--brown-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; border-color: var(--taupe); color: var(--ink); }
.btn-ghost:hover { background: var(--white); border-color: var(--brown); }
.btn-block { width: 100%; }

/* ---------- Images ---------- */
.hero-image img, .about-image img, .port-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.port-item img { transition: transform 0.35s ease; }
.port-item:hover img { transform: scale(1.04); }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, var(--sand), var(--cream-2));
  color: var(--brown); font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; letter-spacing: 0.04em;
}
.img-placeholder::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(139,111,78,0.25); border-radius: inherit;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 185, 163, 0.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brown); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav a { font-size: 0.92rem; letter-spacing: 0.03em; }
.nav a:not(.nav-cta):hover { color: var(--brown); }
.nav-cta { border: 1px solid var(--brown); color: var(--brown); padding: 0.5em 1.3em; border-radius: 100px; }
.nav-cta:hover { background: var(--brown); color: var(--white); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; padding: clamp(48px, 7vw, 96px) 0;
  max-width: var(--maxw); margin: 0 auto; padding-left: clamp(20px, 5vw, 48px); padding-right: clamp(20px, 5vw, 48px);
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0.5rem 0 1.4rem; }
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}

/* ---------- Marquee ---------- */
.marquee { background: var(--brown); color: var(--cream); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 28px; align-items: center; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.3rem; font-style: italic; white-space: nowrap; opacity: 0.95; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-image { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-copy h2 { margin-bottom: 1.2rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-copy strong { color: var(--ink); font-weight: 500; }
.about-stats { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; margin: 1.8rem 0 2rem; }
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--serif); font-size: 1.5rem; color: var(--brown); font-weight: 600; }
.about-stats span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services { background: var(--cream-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 38px 30px; border: 1px solid rgba(201,185,163,0.4); transition: 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.service-card.featured h3, .service-card.featured .service-num { color: var(--cream); }
.service-card.featured p { color: rgba(243,236,226,0.78); }
.service-card.featured ul li { color: rgba(243,236,226,0.9); }
.service-card.featured ul li::before { color: var(--taupe); }
.service-num { font-family: var(--serif); font-size: 1.1rem; color: var(--brown); letter-spacing: 0.1em; }
.service-card h3 { margin: 0.6rem 0 0.9rem; }
.service-card p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: 0.98rem; }
.service-card ul { list-style: none; }
.service-card ul li { position: relative; padding-left: 22px; margin-bottom: 0.5rem; font-size: 0.9rem; }
.service-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--brown); }
.badge {
  position: absolute; top: -12px; right: 24px; background: var(--brown);
  color: var(--white); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45em 1em; border-radius: 100px;
}

/* ---------- Process ---------- */
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-steps li { position: relative; padding-top: 18px; }
.process-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--taupe); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--brown); color: var(--brown); font-family: var(--serif);
  font-size: 1.3rem; margin: 18px 0 16px;
}
.process-steps h3 { margin-bottom: 0.5rem; }
.process-steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Transformations (before/after sliders) ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .ba-grid { grid-template-columns: 1fr; } }
.ba { margin: 0; }
.ba-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); cursor: ew-resize;
  touch-action: pan-y; user-select: none;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px;
  background: var(--white); transform: translateX(-1px); pointer-events: none;
  box-shadow: 0 0 12px rgba(46,42,37,0.45);
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--white);
  box-shadow: var(--shadow-sm);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}
.ba-handle span::before { left: 9px; border-right: 6px solid var(--brown); }
.ba-handle span::after { right: 9px; border-left: 6px solid var(--brown); }
.ba-label {
  position: absolute; top: 14px; z-index: 2; font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  padding: 0.4em 0.9em; border-radius: 100px; pointer-events: none;
}
.ba-label-b { left: 14px; background: rgba(46,42,37,0.55); color: var(--cream); }
.ba-label-a { right: 14px; background: rgba(255,253,250,0.82); color: var(--ink); }
.ba figcaption {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--ink); margin-top: 14px; text-align: center;
}

/* ---------- Portfolio ---------- */
.portfolio { background: var(--cream-2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 18px; }
.port-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: 0.35s;
}
.port-item.tall { grid-row: span 2; }
.port-item.wide { grid-column: span 2; }
.port-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px 18px; color: var(--white); font-family: var(--serif);
  font-size: 1.15rem; font-style: italic;
  background: linear-gradient(to top, rgba(46,42,37,0.65), transparent);
  opacity: 0; transform: translateY(8px); transition: 0.3s;
}
.port-item:hover { transform: scale(1.01); }
.port-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-grid blockquote {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid rgba(201,185,163,0.4); box-shadow: var(--shadow-sm);
}
.quote-grid blockquote p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.4; margin-bottom: 1.2rem; }
.quote-grid cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--brown); }
.testimonial-note { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Contact ---------- */
.contact { background: var(--brown); color: var(--cream); }
.contact .eyebrow { color: var(--sand); }
.contact h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-copy p { color: rgba(243,236,226,0.85); margin-bottom: 2rem; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(243,236,226,0.25); padding-top: 1rem; }
.contact-details .label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); }
.contact-details a:hover { color: var(--white); }

.contact-form { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85em 1em; border: 1px solid var(--taupe); border-radius: 10px;
  font-family: var(--sans); font-size: 0.98rem; color: var(--ink); background: var(--white);
  transition: border 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(139,111,78,0.15);
}
.form-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 12px; }
.label-hint { text-transform: none; letter-spacing: 0.02em; color: var(--taupe); }
.file-stack { display: flex; flex-direction: column; gap: 8px; }
.file-stack input[type="file"] {
  width: 100%; padding: 0.6em 0.8em; border: 1px dashed var(--taupe); border-radius: 10px;
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); background: var(--white);
}
.file-stack input[type="file"]::file-selector-button {
  font-family: var(--sans); font-size: 0.82rem; color: var(--brown);
  background: var(--cream-2); border: 1px solid var(--taupe); border-radius: 100px;
  padding: 0.45em 1.1em; margin-right: 12px; cursor: pointer; transition: 0.2s;
}
.file-stack input[type="file"]::file-selector-button:hover { background: var(--sand); }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 56px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { display: block; font-size: 1.2rem; }
.footer-brand .brand-sub { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.9rem; color: rgba(243,236,226,0.8); }
.footer-nav a:hover { color: var(--white); }
.footer-legal { font-size: 0.8rem; color: rgba(243,236,226,0.5); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 16 / 11; order: -1; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 16 / 11; }
  .service-grid, .quote-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .port-item.wide { grid-column: span 2; }

  .nav { position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 10px 0 22px; gap: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    border-bottom: 1px solid rgba(201, 185, 163, 0.4); box-shadow: var(--shadow); }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { font-size: 1.1rem; padding: 13px clamp(20px, 5vw, 48px); }
  .nav a:not(.nav-cta):hover { background: var(--cream-2); }
  .nav-cta { border: none; border-radius: 0; color: var(--brown); font-weight: 500; }
  .nav-cta:hover { background: var(--cream-2); color: var(--brown-deep); }
  .nav-toggle { display: flex; z-index: 60; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .port-item.wide, .port-item.tall { grid-column: auto; grid-row: auto; }
  .about-stats { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
