@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #2b2119;
  --ink-soft: #5c4f43;
  --brown: #4a2f1f;
  --brown-dark: #352014;
  --gold: #c08a3e;
  --gold-soft: #e7c184;
  --bg: #faf6f0;
  --card: #ffffff;
  --line: #ece3d6;
  --shadow: 0 10px 30px -12px rgba(74, 47, 31, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(74, 47, 31, 0.15);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-font {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--brown-dark);
  letter-spacing: -0.01em;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--brown); }

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

/* Header + Nav */
.top-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-bar-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 40px; width: auto; flex-shrink: 0; }
.brand-text {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.02em; line-height: 1.25; color: var(--brown-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text small { display: block; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.62em; color: var(--ink-soft); letter-spacing: 0.03em; text-transform: uppercase; white-space: normal; }

nav.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav.site-nav a {
  color: var(--ink); font-size: 0.9em; font-weight: 500; padding: 7px 13px; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease; white-space: nowrap;
}
nav.site-nav a:hover { background: var(--gold-soft); color: var(--brown-dark); }
nav.site-nav a.btn-nav { background: var(--brown); color: #fff; }
nav.site-nav a.btn-nav:hover { background: var(--brown-dark); color: #fff; }

@media (max-width: 760px) {
  .top-bar-inner { justify-content: center; padding: 10px 16px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-text { font-size: 0.88em; max-width: 100%; }
  .brand-text small { display: none; }
  .brand img { height: 32px; }
  nav.site-nav {
    order: 3; width: 100%; justify-content: center;
    padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line);
  }
  nav.site-nav a { font-size: 0.86em; padding: 6px 11px; }
}

@media (max-width: 400px) {
  .brand-text { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 24px 110px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(192, 138, 62, 0.16), transparent 60%),
    linear-gradient(180deg, #fdfbf7 0%, var(--bg) 100%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: #fff; border: 1px solid var(--gold-soft);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(2.3em, 5vw, 3.4em); font-weight: 600; margin: 0 0 20px; line-height: 1.12;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { max-width: 620px; margin: 0 auto 36px; font-size: 1.12em; color: var(--ink-soft); }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.98em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--brown); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brown-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--brown); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--brown-dark); transform: translateY(-2px); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: center;
  font-size: 0.92em; color: var(--ink-soft); font-weight: 500;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* Sections */
main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section.tight { padding-top: 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.eyebrow {
  display: block; font-size: 0.8em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7em, 3vw, 2.3em); font-weight: 600; margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Showroom */
.showroom-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.showroom-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.showroom-text .eyebrow { margin-bottom: 12px; }
.showroom-text h2 { font-size: clamp(1.6em, 3vw, 2.1em); margin: 0 0 14px; }
.showroom-text p { color: var(--ink-soft); margin: 0 0 24px; }
@media (max-width: 800px) { .showroom-grid { grid-template-columns: 1fr; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold)); color: #fff; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.12em; margin: 0 0 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.96em; }

/* Partners */
.partners { text-align: center; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; }
.partner-logos img {
  max-height: 46px; width: auto; filter: grayscale(100%); opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.partner-logos img:hover { filter: grayscale(0%); opacity: 1; }

/* Quote */
.quote-wrap {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  border-radius: 24px; padding: 72px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.quote-wrap::before {
  content: "\201C"; position: absolute; top: -30px; left: 30px; font-family: 'Fraunces', serif;
  font-size: 220px; color: rgba(255,255,255,0.06); line-height: 1;
}
.quote-wrap p.big { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(1.4em, 3vw, 2em); max-width: 720px; margin: 0 auto 18px; position: relative; }
.quote-wrap p.small { color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto; font-size: 0.98em; position: relative; }

/* Configurator */
.configurator {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.config-grid label { display: block; font-size: 0.88em; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.config-grid select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1em; background: #fdfbf8; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c08a3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.config-grid select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(192, 138, 62, 0.15); background-color: #fff;
}
.config-summary {
  background: var(--bg); border: 1px dashed var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 22px; font-size: 0.94em; color: var(--ink-soft); line-height: 1.7;
}
.config-summary.has-content { color: var(--ink); border-style: solid; border-color: var(--gold-soft); }

/* Contact */
.contact-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.3fr;
}
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info {
  background: linear-gradient(160deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: #fff; padding: 46px 38px;
}
.contact-info img {
  max-width: 150px; margin-bottom: 26px; background: #fff; border-radius: 12px;
  padding: 14px; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.35);
}
.contact-info h3 { color: #fff; font-size: 1.2em; margin: 0 0 18px; }
.contact-line { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 0.95em; }
.contact-line svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; color: var(--gold-soft); }
.contact-line a { color: #fff; }
.contact-line a:hover { color: var(--gold-soft); }

.contact-form-wrap { padding: 46px 38px; }
form.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
form.contact-form label { display: block; font-size: 0.88em; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
form.contact-form label .optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #a99a89; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1em; background: #fdfbf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
form.contact-form input:focus, form.contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(192, 138, 62, 0.15); background: #fff;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form button { justify-self: start; }

.field-error { color: #b3452f; font-size: 0.82em; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; }

.msg { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 0.95em; }
.msg.ok { background: #eef7ee; color: #2b6a35; border: 1px solid #bfe3c3; }
.msg.err { background: #fdecea; color: #a33a2f; border: 1px solid #f5c2bb; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  text-align: center; padding: 32px 24px; font-size: 0.9em; color: var(--ink-soft);
}
footer.site-footer a { margin: 0 10px; color: var(--ink-soft); }
footer.site-footer a:hover { color: var(--brown); }

/* Legal pages */
.legal main { max-width: 780px; }
.legal section { padding-top: 56px; }
.legal h1 { font-size: clamp(1.7em, 3vw, 2.2em); margin-bottom: 0.2em; }
.legal h2 { text-align: left; text-transform: none; color: var(--brown-dark); font-size: 1.15em; margin-top: 1.6em; }
.legal p { white-space: pre-line; color: var(--ink-soft); }
.legal .back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; }

@media (max-width: 640px) {
  .hero { padding: 56px 20px 64px; }
  section { padding: 56px 0; }
  main { padding: 0 18px; }
  .quote-wrap { padding: 48px 24px; border-radius: 18px; }
  .contact-info, .contact-form-wrap { padding: 32px 24px; }
  .card { padding: 24px 20px; }
}
