/* ==========================================================
   Dream Team Interiors – stylesheet
   Palette: warm white, linen/beige, soft taupe, charcoal
   ========================================================== */

:root {
  --warm-white: #f7f3ee;
  --linen: #efe9e2;
  --beige: #e4dbcf;
  --taupe: #a39587;
  --taupe-dark: #786a5f;
  --brass: #a8875a;
  --charcoal: #2f2b28;
  --text: #3d3834;
  --muted: #625850;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  margin-bottom: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--warm-white); }
.btn-dark { background: var(--charcoal); color: var(--warm-white); }
.btn-dark:hover { background: var(--taupe-dark); }

/* ---------- Hero (split: text left, photo right) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(100vh, 900px);
  min-height: min(100svh, 900px);
  background: var(--warm-white);
}
.hero-content {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 600px;
  padding: 4rem clamp(1.5rem, 5vw, 5rem) 4rem 1.5rem;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero .eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--brass);
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: 0.35em;
}
.hero h1 span { display: block; font-style: italic; color: var(--taupe-dark); }
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 2.4rem;
  max-width: 32ch;
  text-wrap: balance;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; background: var(--beige); }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%; /* keeps pendants and sofa in frame */
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-image { position: relative; }
.about-image::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  background: var(--beige);
  z-index: 0;
}
.about-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-text p { color: var(--muted); }

/* Services */
.services { background: var(--linen); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--warm-white);
  padding: 2.5rem 1.9rem 2.25rem;
  border-top: 2px solid var(--brass);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(47,43,40,.35);
}
.card-number {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
.card p { color: var(--muted); margin: 0; }

/* 3D planning */
.section-intro { color: var(--muted); max-width: 54ch; margin: 0 auto; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
}
.plan-item { margin: 0; }
.plan-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--beige);
}
.plan-item figcaption {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-dark);
}
.plan-note {
  text-align: center;
  margin: 2.2rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}

/* Gallery */
.gallery { background: var(--linen); }
.gallery .section-heading { margin-bottom: 2.2rem; }

/* Gallery slider (CSS scroll-snap; script.js adds arrows + dots) */
.slider { position: relative; }
.slider-track {
  --gap: 1rem;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.slide {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 2.6);
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--beige);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.slide-velvet img { object-position: center 40%; }
.slide-coffee img { object-position: 50% center; }
.slide-bedroom img { object-position: 38% center; }
.slide-shelving img { object-position: center 45%; }
/* Small landscape design drawing: show it whole, mounted on a soft neutral ground */
.slide-drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
}
.slide-drawing img {
  width: 86%;
  height: auto;
  max-width: 640px;
  object-fit: contain;
  box-shadow: 0 1px 2px rgba(47, 43, 40, .08), 0 8px 24px -12px rgba(47, 43, 40, .25);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
}
.slider-controls[hidden] { display: none; }
.slider-dots { display: flex; gap: 0.25rem; }
.slider-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.slider-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--taupe);
  opacity: .45;
  transition: opacity .25s ease, transform .25s ease, background-color .25s ease;
}
.slider-dot[aria-current="true"]::before { opacity: 1; background: var(--charcoal); transform: scale(1.15); }
.slider-dot:focus-visible { outline: 1px solid var(--brass); outline-offset: 0; border-radius: 50%; }
.slider-arrows { display: flex; gap: 0.6rem; }
.slider-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--charcoal);
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}
.slider-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.slider-btn:hover:not(:disabled) { background: var(--charcoal); color: var(--warm-white); }
.slider-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.slider-btn:disabled { opacity: .3; cursor: default; }

/* Contact */
.contact { background: var(--beige); text-align: center; }
.contact-inner { max-width: 920px; }
.contact h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.contact-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--muted);
  margin: 0 auto 2.4rem;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.2vw, 2.5rem);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--brass);
  overflow-wrap: anywhere;
  transition: color .25s ease, border-color .25s ease;
}
.contact-email:hover { color: var(--taupe-dark); border-color: var(--charcoal); }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #cfc5b9;
  padding: 3rem 0;
  font-size: 0.85rem;
  text-align: center;
}
.footer-inner p { margin: 0.25rem 0; }
.footer-copy { margin-top: 1rem !important; font-size: 0.78rem; opacity: .75; }
.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--warm-white);
}
.site-footer a { color: #cfc5b9; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .slide { flex-basis: calc((100% - var(--gap)) / 1.7); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { justify-self: center; max-width: 640px; padding: 3.5rem 1.5rem 3rem; }
  .hero-media { aspect-ratio: 4 / 5; max-height: 85vh; width: 100%; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 420px; margin: 0 auto 1rem; width: calc(100% - 1.5rem); margin-left: 0; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .hero-content { padding: 2.75rem 1.5rem 2.5rem; }
  .slider-track {
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
    scroll-padding-inline: 1.5rem;
    --gap: 0.75rem;
  }
  .slide { flex-basis: 85%; }
  .slider-controls { justify-content: center; }
  .slider-arrows { display: none; }
  .card { padding: 2.25rem 1.75rem 2rem; }
  .plan-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html, .slider-track { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
