/* Zephyra — main stylesheet */
:root {
  --porcelain: #F2F4F5;
  --white: #FFFFFF;
  --mist: #DDE3E6;
  --stone: #7C878D;
  --ink: #1D2930;
  --glaze: #3D6B70;
  --glaze-dark: #2C5156;

  --display: "Marcellus", "Didot", "Georgia", serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glaze); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 46px); max-width: 18ch; }
h3 { font-size: 24px; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 19px; color: #3B4850; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 244, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--display); font-size: 26px; letter-spacing: 0.08em; text-decoration: none; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--glaze); }
.lang { border: 1px solid var(--mist); border-radius: 20px; padding: 4px 12px; }
.menu-toggle { display: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 8px; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; overflow: hidden; }
.hero-word {
  font-family: var(--display);
  font-size: clamp(64px, 15vw, 210px);
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin: 0 0 28px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero-text h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; max-width: 20ch; }
.breeze { width: 100%; height: 90px; display: block; margin-top: 8px; }
.breeze path { fill: none; stroke: var(--glaze); stroke-width: 1.2; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.2s ease-out 0.3s forwards; }
.breeze path + path { stroke: var(--stone); opacity: 0.5; animation-delay: 0.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .breeze path { animation: none; stroke-dashoffset: 0; } }

.photo {
  background: linear-gradient(160deg, var(--white), var(--mist));
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: 14px; text-align: center; padding: 20px;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero .photo { aspect-ratio: 5 / 4; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--glaze); color: var(--white); border: 0;
  padding: 14px 28px; border-radius: 40px; font: 500 16px var(--body);
  transition: background 0.2s;
}
.btn:hover { background: var(--glaze-dark); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head p { margin: 0; }

/* Collection */
.collection { background: var(--white); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat:first-child { grid-row: span 2; }
.cat:first-child .photo { aspect-ratio: auto; height: calc(100% - 96px); min-height: 380px; }
.cat .photo { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.cat h3 { margin-bottom: 6px; }
.cat p { font-size: 15px; color: var(--stone); }

/* Technology */
.tech-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--mist); }
.tech-item { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--mist); }
.tech-item h3 { font-size: 21px; margin-bottom: 10px; }
.tech-item p { font-size: 15.5px; color: #4A565D; margin: 0; }

/* Trade / where to buy */
.trade { background: var(--ink); color: var(--porcelain); }
.trade h2 { color: var(--white); }
.trade .lead { color: #C3CDD2; margin-top: 20px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid #3A4A53; padding-top: 22px; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 40px; color: #8FB3B6; display: block; margin-bottom: 8px; }
.steps h3 { font-size: 21px; color: var(--white); margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: #C3CDD2; }

/* Support */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.support-card { background: var(--white); padding: 36px; border-left: 3px solid var(--glaze); }
.support-card h3 { margin-bottom: 12px; }

/* Contact */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 500; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--porcelain); border: 1px solid var(--mist); border-radius: 2px;
  padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--glaze); outline: none; box-shadow: 0 0 0 3px rgba(61, 107, 112, 0.15); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13.5px; color: var(--stone); grid-column: 1 / -1; margin: 0; }
.form-msg { grid-column: 1 / -1; padding: 14px 18px; font-size: 15px; display: none; }
.form-msg.ok { display: block; background: #E3EEEC; color: var(--glaze-dark); }
.form-msg.err { display: block; background: #F5E4E1; color: #8A3B2E; }

/* Footer */
.site-footer { padding: 56px 0 40px; font-size: 14px; color: var(--stone); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--mist); padding-top: 32px; }
.site-footer .logo { color: var(--ink); font-size: 22px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .section-head, .support-grid, .contact-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .cat:first-child { grid-column: 1 / -1; grid-row: auto; }
  .cat:first-child .photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .tech-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--porcelain); padding: 24px var(--gutter); border-bottom: 1px solid var(--mist); }
  .nav.open { display: flex; }
  .cats, .tech-list { grid-template-columns: 1fr; }
  .tech-item { padding-right: 0; }
  form { grid-template-columns: 1fr; }
}

/* Benefits strip */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; padding: 32px; background: var(--white); }
.benefits h3 { font-size: 19px; margin-bottom: 6px; }
.benefits p { font-size: 15px; color: var(--stone); margin: 0; }

/* Specs */
.specs { background: var(--white); }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.specs h3 { font-size: 22px; margin: 0 0 14px; }
.specs h3:not(:first-child) { margin-top: 36px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.spec-table th { font-weight: 500; padding-right: 20px; width: 42%; }
.spec-drawing { aspect-ratio: 16 / 9; margin-top: 28px; }
.spec-note { font-size: 15px; color: var(--stone); margin-top: -6px; }
.spec-list { margin: 0; padding-left: 18px; font-size: 15.5px; }
.spec-list li { padding: 3px 0; }
.spec-list.cols { columns: 2; column-gap: 32px; margin-top: 16px; }
.all-functions { margin-top: 36px; border-top: 1px solid var(--mist); padding-top: 18px; }
.all-functions summary { cursor: pointer; font-weight: 500; color: var(--glaze); }

@media (max-width: 900px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .benefits { grid-template-columns: 1fr; padding: 24px; }
  .spec-list.cols { columns: 1; }
}
section[id] { scroll-margin-top: 72px; }

/* Detail gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); }
.gallery figcaption { font-size: 14.5px; color: #4A565D; margin-top: 10px; }
.spec-drawing { margin-top: 28px; background: var(--white); }
.spec-drawing img { width: 100%; height: auto; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.photo:has(img) { padding: 0; background: none; }

/* Model grid */
.models { display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px 24px; }
.models.more { grid-template-columns: repeat(3, 1fr); }
.model-card { text-decoration: none; display: block; }
.model-card .photo { aspect-ratio: 4 / 5; margin-bottom: 14px; background: var(--mist); }
.model-card h3 { font-size: 21px; margin-bottom: 4px; }
.model-card p { font-size: 14.5px; color: var(--stone); margin: 0; }
.model-card img { transition: transform 0.4s ease; }
.model-card:hover img { transform: scale(1.03); }
.model-card:hover h3 { color: var(--glaze); }
.coming { margin-top: 48px; color: var(--stone); font-size: 15px; }
.tech-note { font-size: 14px; color: var(--stone); margin: 18px 0 0; }

/* Model page */
.model-hero { padding-top: 40px; }
.crumbs { font-size: 14px; color: var(--stone); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--glaze); }
.model-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.model-grid .photo { aspect-ratio: 1 / 1; }
.model-intro h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 10px; }
.model-tag { font-family: var(--display); font-size: 24px; color: var(--glaze); margin-bottom: 20px; }
.specs h2 { margin-bottom: 40px; }
.model-cut { width: 100%; max-width: 420px; height: auto; margin: 0 auto 28px; }
.model-details { padding-top: 0; background: var(--white); }
.spec-drawing.narrow { max-width: 560px; }
.more-models h2 { margin-bottom: 40px; }

@media (max-width: 1100px) { .models { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .model-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .models, .models.more { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

/* Faucets */
.faucets { background: var(--porcelain); }
.finishes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 15.5px; }
.finishes li { display: flex; align-items: center; gap: 10px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--mist); flex: none; }
.fin-h { margin-top: 36px !important; }
.faucet-gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.faucet-gallery img { aspect-ratio: auto; height: 360px; object-fit: cover; }
@media (max-width: 720px) { .faucet-gallery img { height: 240px; } }
.finishes + .spec-note { margin-top: 14px; }

/* Legal pages */
.legal { padding-top: 40px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; max-width: none; }
.legal p { max-width: 68ch; }
.legal-date { color: var(--stone); font-size: 14px; margin-bottom: 32px; }
.contact-details { margin-top: 24px; font-size: 16px; line-height: 1.8; }
.contact-details a { color: var(--glaze); }
