/* ============================================================
   SilentDry — shared stylesheet
   Colours, layout and components for all pages.
   ============================================================ */

:root {
  --teal:        #0e6b73;
  --teal-dark:   #094f55;
  --teal-light:  #e6f2f3;
  --sand:        #e9a23b;
  --ink:         #1a2b2e;
  --muted:       #5b6b6e;
  --line:        #dce5e6;
  --bg:          #ffffff;
  --bg-soft:     #f5f9f9;
  --radius:      14px;
  --shadow:      0 6px 24px rgba(14, 107, 115, 0.10);
  --maxw:        1120px;
  --font:        "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }

p { margin: 0 0 1em; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--teal);
  transition: background .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--sand { background: var(--sand); border-color: var(--sand); color: #3a2a06; }
.btn--sand:hover { background: #d4901f; border-color: #d4901f; color: #3a2a06; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .3px;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--teal); }
.brand img, .brand-logo { height: 44px; width: auto; display: block; }
@media (max-width: 620px) { .brand img, .brand-logo { height: 36px; } }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
}
.nav-links a.active { color: var(--teal); }
.lang-switch { display: flex; gap: 7px; align-items: center; }
.lang-switch a { color: var(--muted); font-weight: 600; font-size: .92rem; }
.lang-switch a.on { color: var(--teal); }
.lang-switch a:hover { color: var(--teal); text-decoration: none; }
.lang-switch span { color: var(--line); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal-light) 0%, #ffffff 70%);
  padding: 80px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--teal);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-visual {
  background: var(--teal-light);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f9ca0;
  font-style: italic;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
/* When the visual only holds an image, drop the inner padding */
.hero-visual:has(img) { padding: 0; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Feature / card grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ---------- Product cards ---------- */
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product .photo {
  background: var(--teal-light);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-style: italic;
  text-align: center;
  padding: 14px;
  overflow: hidden;
}
.product .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product .tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.product .price { font-weight: 700; font-size: 1.15rem; margin: 6px 0 16px; }
.product .btn { margin-top: auto; text-align: center; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; margin-bottom: 26px; }
.step .num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step .num::before { content: counter(step); }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 22px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; color: var(--muted); margin: 0; }

/* ---------- CTA banner ---------- */
.cta {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #cfeaec; max-width: 540px; margin: 0 auto 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.contact-info p { display: flex; gap: 10px; align-items: flex-start; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .9rem;
  color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--ink); }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.product-detail .gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gallery-main {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.thumb {
  flex: 1 1 0;
  padding: 5px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 5px; }
.thumb:hover { border-color: var(--teal); }
.thumb.active { border-color: var(--teal); }
.product-detail .info .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-detail .info .model { color: var(--muted); font-size: .95rem; margin: -6px 0 16px; }
.product-detail .info .lead { font-size: 1.08rem; color: var(--muted); }
.product-detail .info .actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
  vertical-align: top;
}
.spec-table th {
  width: 42%;
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-soft);
}
.spec-table td { color: var(--muted); }

/* Highlight chips for key facts */
.spec-highlights { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.spec-highlights .chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 120px;
}
.spec-highlights .chip b { display: block; font-size: 1.1rem; color: var(--ink); }
.spec-highlights .chip span { font-size: .82rem; color: var(--muted); }

/* Uses list */
.uses-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uses-list li { padding-left: 26px; position: relative; }
.uses-list li::before { content: "\2713"; color: var(--teal); position: absolute; left: 0; font-weight: 700; }

/* Make whole product card clickable */
.product a.card-link { color: inherit; text-decoration: none; display: block; }
.product a.card-link:hover h3 { color: var(--teal); }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .uses-list { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c4d2d4;
  padding: 50px 0 26px;
  margin-top: 70px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer a { color: #c4d2d4; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px;
  padding-top: 20px;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 220px; order: -1; }
}

@media (max-width: 620px) {
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 34px 24px; }
}
