/* ==========================================================================
   Glaziers Online — site.css
   Single stylesheet. Replaces bootstrap, owl.carousel, slick, slicknav,
   magnific-popup, font-awesome, themify-icons, nice-select, flaticon,
   gijgo, animate.css, jquery-ui and style.css.
   ========================================================================== */

/* 1. Tokens
   ---------------------------------------------------------------------- */
:root {
  --brand: #0e5083;
  --brand-dark: #0a3a60;
  --brand-light: #e8f1f8;
  --accent: #1b9bd8;
  --green: #158f3a;
  --green-dark: #0f7530;

  --ink: #10202f;
  --ink-soft: #4d6376;
  --line: #dfe6ed;
  --bg: #ffffff;
  --bg-muted: #f5f8fb;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 47, .06), 0 2px 8px rgba(16, 32, 47, .06);
  --shadow-md: 0 8px 30px rgba(16, 32, 47, .10);

  --header-h: 76px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 2. Base
   ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent); }

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* 3. Layout helpers
   ---------------------------------------------------------------------- */
.wrap {
  width: min(1180px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.wrap--narrow { width: min(820px, 100% - (var(--gutter) * 2)); }

.section { padding-block: var(--section-y); }
.section--muted { background: var(--bg-muted); }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--ink-soft);
  max-width: 68ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}

/* 4. Buttons
   ---------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.btn--primary:hover { --btn-bg: var(--brand-dark); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  border-color: currentColor;
}
.btn--outline:hover { --btn-bg: var(--brand); --btn-fg: #fff; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { --btn-bg: var(--brand-light); --btn-fg: var(--brand); }

.btn--lg { padding: .95rem 2rem; font-size: 1.05rem; }

/* 5. Header + navigation
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand img { width: clamp(140px, 16vw, 176px); height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: .4rem 0;
  position: relative;
}
.site-nav > ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav > ul a:hover::after,
.site-nav > ul a.is-active::after { transform: scaleX(1); }
.site-nav > ul a.is-active { color: var(--brand); }

.site-nav__cta {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.site-nav__cta .btn { padding: .6rem 1.15rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. Hero
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(400px, 62vh, 540px);
  padding-block: clamp(3rem, 8vw, 5rem);
  background: #0a2b45 url("../img/banner/glass-girl.jpg") center / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 32, 52, .88) 0%, rgba(8, 32, 52, .62) 55%, rgba(8, 32, 52, .35) 100%);
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .85rem;
  font-weight: 600;
  color: #9fd3f2;
  margin-bottom: .75rem;
}

.hero h1 { color: #fff; }

.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: rgba(255, 255, 255, .9);
  max-width: 58ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}
.hero .btn--outline { --btn-fg: #fff; }
.hero .btn--outline:hover { --btn-bg: #fff; --btn-fg: var(--brand); }

/* 7. Cards
   ---------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: 2.5rem;
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card p {
  color: var(--ink-soft);
  font-size: .97rem;
}

.card__icon {
  width: 44px;
  height: 44px;
  color: var(--brand);
  margin-bottom: 1rem;
}

.card--feature { padding: 0; overflow: hidden; }
.card--feature img {
  width: 100%;
  height: 290px;
  object-fit: contain;
  padding: 1.25rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--line);
}
.card--feature h3 { margin: 1.4rem 1.5rem .5rem; }
.card--feature p { margin: 0 1.5rem 1.6rem; }

.card--product { text-align: center; }
.card--product img {
  width: auto;
  max-width: 190px;
  height: 82px;
  object-fit: contain;
  margin: 0 auto 1.35rem;
}

/* 8. Split sections (image + text)
   ---------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4rem);
}
.split__media { margin: 0; }
.split__media img {
  margin-inline: auto;
  max-height: 520px;
  width: auto;
}
.split--reverse .split__media { order: 2; }

.checklist { margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.checklist li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e4f4e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23158f3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* 9. Video facade
   ---------------------------------------------------------------------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a2b45;
  box-shadow: var(--shadow-md);
}
.video iframe,
.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__play {
  padding: 0;
  background: none;
  cursor: pointer;
}
.video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .25s ease, transform .35s ease;
}
.video__play:hover img { opacity: 1; transform: scale(1.03); }

.video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 34px no-repeat;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .22);
  transition: transform .2s ease;
}
.video__play:hover .video__icon { transform: scale(1.08); }

/* 10. Contact
   ---------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.contact__item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact__item:last-of-type { border-bottom: 0; margin-bottom: 1rem; }
.contact__item svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--brand);
  margin-top: .35rem;
}
.contact__item h3 { margin-bottom: .15rem; font-size: 1.1rem; }
.contact__item h3 a { color: var(--ink); }
.contact__item h3 a:hover { color: var(--brand); }
.contact__item p { color: var(--ink-soft); font-size: .95rem; }

.contact__map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 11. Sibling products
   ---------------------------------------------------------------------- */
.siblings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.siblings li { display: grid; justify-items: center; gap: .85rem; }
.siblings img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.siblings a { font-weight: 500; }

/* 12. Footer
   ---------------------------------------------------------------------- */
.site-footer {
  background: #0a2b45;
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}
.site-footer img { width: 172px; height: auto; }
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal {
  font-size: .88rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  width: min(100%, 620px);
}
.site-footer__legal span { margin-inline: .5rem; }

/* 13. Floating CTA
   ---------------------------------------------------------------------- */
.floating-cta {
  position: fixed;
  right: clamp(.75rem, 3vw, 1.5rem);
  bottom: clamp(.75rem, 3vw, 1.5rem);
  z-index: 90;
  padding: .8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: background-color .2s ease, transform .25s ease, opacity .25s ease, visibility .25s;
}
.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.floating-cta:hover { background: var(--green-dark); transform: translateY(-2px); }

/* 14. Modal (native dialog)
   ---------------------------------------------------------------------- */
.modal {
  width: min(560px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(10, 32, 52, .35);
  color: var(--ink);
}
.modal::backdrop { background: rgba(8, 26, 42, .6); backdrop-filter: blur(2px); }

.modal__head,
.modal__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
}
.modal__head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { margin: 0; font-size: 1.3rem; }

.modal__close {
  border: 0;
  background: none;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 .25rem;
}
.modal__close:hover { color: var(--ink); }

.modal__body {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  max-height: 65vh;
  overflow-y: auto;
}

.modal__foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: var(--bg-muted);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* 15. Forms
   ---------------------------------------------------------------------- */
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field .req { color: #c0392b; }

.field input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 80, 131, .15);
}
.field input[aria-invalid="true"] { border-color: #c0392b; }

.form-status {
  margin: 0;
  font-size: .93rem;
  min-height: 1.2em;
}
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: #1e7a45; }

/* 16. Motion preferences
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 17. Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 991px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav > ul a {
    display: block;
    padding: .85rem .25rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav > ul a::after { display: none; }
  .site-nav__cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
  }
  .site-nav__cta .btn { width: 100%; padding: .8rem 1.25rem; }

  .split--reverse .split__media { order: 0; }
}

@media (max-width: 575px) {
  .floating-cta { padding: .7rem 1.1rem; font-size: .9rem; }
  .card { padding: 1.35rem; }
  .card--feature h3 { margin-inline: 1.25rem; }
  .card--feature p { margin-inline: 1.25rem; }
  .modal__foot { flex-direction: column-reverse; align-items: stretch; }
  .modal__foot .btn { width: 100%; }
}

/* 18. Print
   ---------------------------------------------------------------------- */
@media print {
  .site-header, .floating-cta, .video, .contact__map, .modal { display: none !important; }
  body { color: #000; }
  .hero { background: none; color: #000; min-height: auto; }
  .hero::before { display: none; }
  .hero h1, .hero__lead { color: #000; }
}