:root{
  --bg:#f1ebe0;
  --bg-soft:#f8f4ed;
  --white:#ffffff;
  --canvas:#f6f4ef;
  --text:#5f5a54;
  --text-dark:#2f2a25;
  --gold:#b8860b;
  --gold-dark:#9c7410;
  --gold-soft:#d4b15a;
  --line:#e2d8c8;
  --shadow:0 16px 36px rgba(0,0,0,0.06);
  --shadow-soft:0 10px 24px rgba(0,0,0,0.05);
  --container:1240px;
}

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

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Montserrat',sans-serif;
  line-height:1.65;
  overflow-x:hidden;
}

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

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

button,
input,
textarea,
select{
  font:inherit;
}

button{
  cursor:pointer;
  border:0;
  background:none;
}

h1,h2,h3,h4{
  margin:0;
  color:var(--text-dark);
  font-family:'Cormorant Garamond',serif;
  line-height:1.06;
}

p{
  margin:0;
}

.nav-container,
.hero-content,
.section-header,
.collections-grid,
.designer-container,
.appointments-form,
.footer-inner{
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
}

/* =========================
   Header
========================= */

.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(184,134,11,0.08);
}

.nav-container{
  min-height:116px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}

.logo{
  display:flex;
  align-items:center;
  gap:18px;
  flex-shrink:0;
  min-width:0;
}

.logo-icon{
  width:54px;
  height:54px;
  object-fit:contain;
  flex-shrink:0;
}

.logo-text{
  display:flex;
  flex-direction:column;
  gap:6px;
  text-align:left;
  min-width:0;
}

.logo-main{
  font-size:56px;
  line-height:0.92;
  color:var(--gold);
  letter-spacing:0.10em;
  white-space:nowrap;
}

.logo-sub{
  font-size:12px;
  letter-spacing:0.28em;
  text-transform:uppercase;
  color:#8e857a;
  line-height:1;
  white-space:nowrap;
}

.desktop-nav{
  display:flex;
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
  flex-wrap:wrap;
}

.nav-links a{
  font-size:16px;
  font-weight:500;
  color:var(--text-dark);
  white-space:nowrap;
  transition:color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover{
  color:var(--gold-dark);
}

.mobile-menu-btn{
  display:none;
  width:52px;
  height:52px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  box-shadow:var(--shadow-soft);
  flex-shrink:0;
}

.mobile-menu-btn span{
  width:22px;
  height:2px;
  background:var(--gold);
  border-radius:999px;
  display:block;
}

.mobile-menu{
  display:none;
  width:100%;
  border-top:1px solid var(--line);
  background:#fff;
}

.mobile-menu.active{
  display:block;
}

.mobile-menu-content{
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
  padding:18px 0 22px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.mobile-menu-content a{
  font-size:16px;
  color:var(--text-dark);
}

/* =========================
   Hero
========================= */

.hero{
  min-height:76vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at top, rgba(212,177,90,0.07), transparent 34%),
    linear-gradient(to bottom, rgba(255,255,255,0.86), rgba(243,239,231,1));
  padding:68px 0 56px;
}

.hero-content{
  max-width:940px;
  text-align:center;
}

.hero-title{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:24px;
}

.hero-title span{
  display:block;
  font-size:clamp(54px, 8vw, 102px);
  font-weight:600;
  color:var(--text-dark);
}

.hero-title .accent{
  color:var(--gold);
}

.hero-subtitle{
  max-width:780px;
  margin:0 auto 32px;
  font-size:18px;
  color:#6f695f;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:0 30px;
  border-radius:999px;
  font-size:15px;
  font-weight:600;
  transition:transform 0.2s ease, filter 0.2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:linear-gradient(135deg, var(--gold-soft), var(--gold));
  color:#fff;
  box-shadow:var(--shadow);
}

.full-width{
  width:100%;
}

/* =========================
   Generic sections
========================= */

.collections,
.designer,
.atelier,
.appointments{
  position:relative;
}

.collections{
  padding:110px 0 100px;
  background:var(--white);
}

.designer{
  padding:96px 0 100px;
  background:var(--bg);
}

.ai-designer{
  padding-top:0;
}

.atelier{
  padding:100px 0 40px;
  background:var(--white);
}

.appointments{
  padding:80px 0 110px;
  background:var(--bg);
}

.section-header{
  text-align:center;
  max-width:840px;
  margin-bottom:46px;
}

.section-title{
  font-size:clamp(40px, 5vw, 66px);
  margin-bottom:14px;
}

.section-description{
  font-size:17px;
  color:#6f695f;
  line-height:1.7;
}

/* =========================
   Collection cards
========================= */

.collections-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:26px;
}

.collection-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.collection-image{
  aspect-ratio:4 / 5;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#f3ede4;
  border-bottom:1px solid #e5ddd0;
}

.collection-content{
  padding:24px 22px 26px;
}

.collection-content h3{
  font-size:34px;
  margin-bottom:10px;
}

.collection-content p{
  color:#726b61;
  margin-bottom:16px;
}

.collection-link{
  color:var(--gold-dark);
  font-size:14px;
  font-weight:600;
}

/* =========================
   Designers
========================= */

.designer-container{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap:28px;
  align-items:start;
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
}

.designer-canvas{
  position:relative;
  min-height:700px;
  border-radius:28px;
  overflow:hidden;
  background:var(--canvas);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.designer-canvas::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.16), transparent 28%),
    linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(0,0,0,0.03));
}

.designer-canvas canvas{
  display:block;
  width:100% !important;
  height:100% !important;
}

.designer-controls{
  width:100%;
  background:rgba(255,255,255,0.97);
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow-soft);
  position:sticky;
  top:124px;
}

.designer-controls h4{
  margin-bottom:14px;
  font-size:14px;
  font-family:'Montserrat',sans-serif;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:#7e766b;
  font-weight:500;
}

.option-buttons{
  display:grid;
  gap:12px;
}

.option-btn{
  min-height:58px;
  width:100%;
  border-radius:14px;
  border:1px solid #ded4c1;
  background:var(--white);
  color:#786f62;
  font-size:15px;
  font-weight:500;
  transition:all 0.2s ease;
  padding:0 16px;
}

.option-btn:hover{
  border-color:var(--gold-soft);
  background:#fcfaf6;
}

.option-btn.active{
  background:linear-gradient(135deg, #c99b2d, var(--gold));
  border-color:var(--gold);
  color:var(--white);
}

.inline-info{
  margin-top:16px;
  color:#6f695f;
  font-size:14px;
}

/* =========================
   Form fields
========================= */

.form-group{
  margin-bottom:18px;
}

.form-group label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:600;
  color:#726a5f;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.form-group input,
.form-group textarea,
.form-group select,
.appointments-form input,
.appointments-form textarea{
  width:100%;
  min-height:56px;
  border:1px solid #ddd4c6;
  border-radius:16px;
  padding:0 16px;
  background:#fff;
  color:var(--text-dark);
  outline:none;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
  appearance:none;
  -webkit-appearance:none;
}

.form-group textarea,
.appointments-form textarea{
  min-height:150px;
  padding:14px 16px;
  resize:vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.appointments-form input:focus,
.appointments-form textarea:focus{
  border-color:rgba(184,134,11,0.45);
  box-shadow:0 0 0 4px rgba(184,134,11,0.08);
}

.ai-status{
  margin-top:16px;
  min-height:28px;
  font-size:14px;
  line-height:1.6;
  color:#6b6458;
  white-space:pre-line;
}

.viewer-placeholder{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  text-align:center;
  color:#6f695f;
  padding:32px;
}

.viewer-placeholder h3{
  font-size:34px;
  margin-bottom:12px;
}

/* =========================
   Appointment form
========================= */

.appointments-form{
  max-width:980px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow-soft);
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  align-items:start;
}

.appointments-form input[name="firstName"]{
  grid-column:1;
}

.appointments-form input[name="lastName"]{
  grid-column:2;
}

.appointments-form input[name="email"]{
  grid-column:3;
}

.appointments-form input[name="phone"]{
  grid-column:1;
}

.appointments-form input[name="street"]{
  grid-column:2;
}

.appointments-form input[name="zip"]{
  grid-column:3;
}

.appointments-form input[name="city"]{
  grid-column:1;
}

.appointments-form textarea[name="message"]{
  grid-column:2 / 4;
  min-height:132px;
}

.appointments-form .btn{
  grid-column:1 / -1;
  justify-self:center;
  min-width:280px;
}

.appointments-form input[type="hidden"]{
  display:none;
}

/* =========================
   Footer
========================= */

.footer{
  padding:34px 0 40px;
  background:var(--bg);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  text-align:center;
}

.footer-inner p{
  color:#7d756a;
  font-size:13px;
}

.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.footer-links a{
  color:#7d756a;
  font-size:13px;
}

/* =========================
   Tablet
========================= */

@media (max-width: 1200px){
  .nav-container{
    min-height:auto;
    flex-direction:column;
    justify-content:center;
    padding:20px 0;
    gap:18px;
  }

  .logo{
    justify-content:center;
  }

  .logo-icon{
    width:46px;
    height:46px;
  }

  .logo-main{
    font-size:46px;
  }

  .logo-sub{
    font-size:11px;
    letter-spacing:0.22em;
  }

  .nav-links{
    justify-content:center;
    gap:18px;
  }

  .nav-links a{
    font-size:15px;
  }

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

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

  .designer-controls{
    position:static;
  }

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

  .appointments-form input[name="firstName"]{ grid-column:1; }
  .appointments-form input[name="lastName"]{ grid-column:2; }
  .appointments-form input[name="email"]{ grid-column:1 / -1; }
  .appointments-form input[name="phone"]{ grid-column:1; }
  .appointments-form input[name="street"]{ grid-column:2; }
  .appointments-form input[name="zip"]{ grid-column:1; }
  .appointments-form input[name="city"]{ grid-column:2; }
  .appointments-form textarea[name="message"]{ grid-column:1 / -1; }
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px){
  .nav-container,
  .hero-content,
  .section-header,
  .collections-grid,
  .designer-container,
  .appointments-form,
  .footer-inner{
    width:min(100%, calc(100% - 28px));
  }

  .header{
    position:relative;
  }

  .desktop-nav{
    display:none;
  }

  .mobile-menu-btn{
    display:inline-flex;
  }

  .mobile-menu-content{
    width:min(100%, calc(100% - 28px));
  }

  .nav-container{
    min-height:auto;
    align-items:center;
    justify-content:space-between;
    flex-direction:row;
    padding:14px 0;
    gap:12px;
  }

  .logo{
    gap:10px;
    min-width:0;
  }

  .logo-icon{
    width:30px;
    height:30px;
  }

  .logo-main{
    font-size:30px;
    letter-spacing:0.06em;
    line-height:0.95;
  }

  .logo-sub{
    font-size:8px;
    letter-spacing:0.16em;
  }

  .hero{
    min-height:auto;
    padding:44px 0 54px;
  }

  .hero-title{
    gap:2px;
    margin-bottom:18px;
  }

  .hero-title span{
    font-size:clamp(38px, 12vw, 60px);
    line-height:1;
  }

  .hero-subtitle{
    font-size:16px;
    margin-bottom:24px;
  }

  .section-title{
    font-size:42px;
  }

  .section-description{
    font-size:16px;
  }

  .collections,
  .designer,
  .appointments,
  .atelier{
    padding-top:72px;
    padding-bottom:72px;
  }

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

  .designer-container{
    grid-template-columns:1fr;
    gap:20px;
    width:min(100%, calc(100% - 28px));
  }

  .designer-canvas{
    min-height:420px;
  }

  .designer-controls,
  .appointments-form{
    padding:20px;
    border-radius:22px;
  }

  .collection-content h3{
    font-size:26px;
  }

  .viewer-placeholder h3{
    font-size:28px;
  }

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

  .appointments-form input[name="firstName"],
  .appointments-form input[name="lastName"],
  .appointments-form input[name="email"],
  .appointments-form input[name="phone"],
  .appointments-form input[name="street"],
  .appointments-form input[name="zip"],
  .appointments-form input[name="city"],
  .appointments-form textarea[name="message"]{
    grid-column:1;
  }

  .appointments-form .btn{
    grid-column:1;
    min-width:0;
    width:100%;
    justify-self:stretch;
  }

  .footer-inner{
    flex-direction:column;
    justify-content:center;
  }
}

@media (max-width: 560px){
  .nav-container,
  .hero-content,
  .section-header,
  .collections-grid,
  .designer-container,
  .appointments-form,
  .footer-inner{
    width:min(100%, calc(100% - 22px));
  }

  .logo{
    gap:8px;
  }

  .logo-icon{
    width:28px;
    height:28px;
  }

  .logo-main{
    font-size:26px;
    letter-spacing:0.05em;
  }

  .logo-sub{
    font-size:7px;
    letter-spacing:0.14em;
  }

  .mobile-menu-btn{
    width:46px;
    height:46px;
  }

  .btn{
    width:100%;
  }

  .designer-canvas{
    min-height:380px;
  }

  .section-title{
    font-size:34px;
  }

  .section-description{
    font-size:15px;
  }

  .hero-subtitle{
    font-size:15px;
  }

  .collection-content{
    padding:20px 18px 22px;
  }

  .designer-controls,
  .appointments-form{
    padding:18px;
  }
}