/* ===============================
   Atelier Ligne — Furniture Art
   =============================== */

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #2b2622;
  --muted: #7a7069;
  --accent: #b5623c;
  --accent-dark: #8f4a2c;
  --line: #e7ddd2;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(43, 38, 34, 0.35);
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 40px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 1.3rem;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}

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

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow);
}

.hero-badge strong {
  font-family: var(--font-head);
  font-size: 1.6rem;
  display: block;
  color: var(--accent);
}

.hero-badge span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Marquee strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem 0;
}

.strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Section base ---------- */
.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.section-head p {
  color: var(--muted);
}

/* ---------- Collection grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #efe7dd;
  overflow: hidden;
}

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

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

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 20px;
}

.card-body {
  padding: 1.3rem 1.4rem 1.6rem;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.card-body .maker {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--accent);
}

.add {
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 30px;
  padding: 0.5rem 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.add:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
}

.about p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 1.6rem;
}

.stat strong {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
  display: block;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact h2 {
  color: var(--bg);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.contact p {
  color: #d9cfc4;
  margin-bottom: 1.6rem;
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
}

.contact-info li span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form input,
.form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #b3a89d;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form .btn-primary {
  align-self: flex-start;
}

.form-note {
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid p {
  color: var(--muted);
  max-width: 34ch;
  margin-top: 0.6rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.9rem 1.5rem;
  border-radius: 40px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .contact {
    padding: 2.2rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links li {
    padding: 0.9rem 6%;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .nav .btn {
    display: none;
  }

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

  .stats {
    flex-wrap: wrap;
    gap: 1.4rem;
  }
}
