/* Lectroglaz — static site styles */

:root {
  --plum: #69404b;
  --plum-dark: #4f2f38;
  --plum-tint: #f6f0f2;
  --text: #4a4a4a;
  --muted: #666;
  --line: #e4dde0;
  --white: #fff;
  --radius: 10px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--plum); }
a:hover { color: var(--plum-dark); }

h1, h2, h3 {
  font-family: "Bebas Neue", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--plum);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--plum); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; }

/* Top bar */
.topbar { background: var(--plum); color: var(--white); font-size: 0.92rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }
.topbar .phones a + a { margin-left: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo img { width: 230px; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; color: var(--plum); letter-spacing: 0.04em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 6px 14px; border-radius: 6px;
  font-family: "Bebas Neue", sans-serif; font-size: 1.45rem; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--plum); background: var(--plum-tint); }

@media (max-width: 760px) {
  .logo img { width: 180px; }
  .nav-toggle-label { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .main-nav ul { flex-direction: column; padding: 10px 20px 16px; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .topbar .wrap { justify-content: center; text-align: center; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--plum-tint) 0%, #fff 70%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; font-weight: 700; color: var(--plum); margin-bottom: 10px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); }
.hero img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(79, 47, 56, 0.18); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
}

.btn {
  display: inline-block; background: var(--plum); color: var(--white);
  padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--plum);
}
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: var(--white); }
.btn.outline { background: transparent; color: var(--plum); }
.btn.outline:hover { background: var(--plum); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
.section { padding: 64px 0; }
.section.tint { background: var(--plum-tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  text-decoration: none; color: var(--text); transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(79, 47, 56, 0.12); color: var(--text); }
.card .icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--plum);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon img { width: 46px; }
.card h3 { margin-bottom: 0.3em; }
.card p { font-size: 0.97rem; color: var(--muted); flex: 1; }
.card .more { font-weight: 700; color: var(--plum); }

/* Facts */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts li { position: relative; padding-left: 42px; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Callout band */
.band { background: var(--plum); color: var(--white); padding: 48px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band h2 { color: var(--white); margin: 0; }
.band p { margin: 4px 0 0; opacity: 0.9; }
.band .btn { background: var(--white); color: var(--plum); border-color: var(--white); }
.band .btn:hover { background: var(--plum-tint); border-color: var(--plum-tint); }
.band .btn.outline { background: transparent; color: var(--white); }
.band .btn.outline:hover { background: var(--white); color: var(--plum); }

/* Page header */
.page-head { background: var(--plum-tint); border-bottom: 1px solid var(--line); padding: 44px 0 34px; }
.page-head h1 { margin: 0; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* Content */
.content { padding: 48px 0 64px; }
.content .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .content .wrap { grid-template-columns: 1fr; } }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.2em; }

.service-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-block:first-of-type { padding-top: 6px; }
.service-block:last-of-type { border-bottom: 0; }

/* Before / after */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 10px 0 24px; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.2s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption {
  display: inline-block; margin-top: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white); background: var(--plum); padding: 3px 10px; border-radius: 4px;
}
.gallery figcaption.before { background: #8a8a8a; }

/* Sidebar */
.sidebar .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; background: var(--white); }
.sidebar .box.plum { background: var(--plum); color: var(--white); border-color: var(--plum); }
.sidebar .box.plum h3, .sidebar .box.plum a { color: var(--white); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li + li { border-top: 1px solid var(--line); }
.sidebar li a { display: block; padding: 9px 0; text-decoration: none; font-weight: 700; }
.sidebar li a[aria-current="page"] { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { margin-bottom: 0.4em; }
.contact-card .big { font-size: 1.25rem; font-weight: 700; display: block; text-decoration: none; }
.contact-card .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* Footer */
.site-footer { background: #2c1c21; color: #d9cdd1; font-size: 0.95rem; padding: 44px 0 26px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1.4rem; }
.site-footer a { color: #f1e6ea; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #4a3239; padding-top: 18px; margin-top: 10px; font-size: 0.85rem; color: #a8979c; }
