/* CTLenz - vanilla static - style.css */
:root {
  --card-radius: 20px;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  background-image: url("../media/bg_blue_dot.png");
  background-repeat: repeat;
  background-position: top left;
}
a { color: #0b5fff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* layout container - easy to move / adjust */
.site-wrap {
  max-width: 946px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* header/logo */
.site-header {
  text-align: center;
  padding: 12px 0 8px;
}
.site-logo img {
  width: min(320px, 70vw);
  height: auto;
  transition: transform 0.15s ease;
}
.site-logo:hover img {
  transform: scale(1.05);
}

/* top nav - image menu + spacers */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
}
.site-nav a { display: inline-flex; align-items: center; }
.site-nav a img {
  width: auto;
  height: auto;
  display: block;
}
.site-nav .spacer {
  width: auto;
  height: auto;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-nav .spacer img { width: auto; height: auto; display: block; }

/* socials - reused top + bottom - white card like body */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 6px 12px;
  list-style: none;
  margin: 12px 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--card-radius);
}
.socials li { display: inline-flex; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e05a2a;
  text-decoration: none;
  border-bottom: none;
  transition: filter 0.15s, transform 0.15s;
}
.socials a:hover { filter: brightness(1.08); transform: scale(1.08); text-decoration: none; }
.socials a img, .socials a svg {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}

/* main content - only white bg here */
.site-main {
  background: #fff;
  padding: 6px 20px 24px;
  border: 1px solid #eee;
  border-radius: var(--card-radius);
  margin: 12px 0;
}
.site-main h1, .site-main h2 { line-height: 1.25; margin-top: 6px; }
.site-main h1 { text-transform: uppercase; text-align: center; }
.card {
  position: relative;
  background: #f7f7f8;
  border: 1px dashed #d0d0d5;
  border-radius: var(--card-radius);
  padding: 28px 20px 8px;
  color: #222;
  margin-top: 48px;
}
.card + .card {
  margin-top: 48px;
}
.card-header {
  position: absolute;
  top: -12px;
  left: 16px;
  background: #fff;
  border: 1px solid #d0d0d5;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #555;
  line-height: 1.4;
  text-transform: uppercase;
  z-index: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-header:hover { border-color: #b8b8c0; }
.card-header::after {
  content: "▾";
  font-size: 0.85em;
  line-height: 1;
  transition: transform 0.15s ease;
}
.card-header[aria-expanded="false"]::after {
  transform: rotate(-90deg);
}
.card-tools {
  position: absolute;
  top: -12px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.tool-circle {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d0d0d5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.tool-circle:hover { transform: scale(1.12); }
.tool-circle img {
  width: 18px;
  height: 18px;
  display: block;
}
.tool-circle::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 2;
}
.tool-circle:hover::after { opacity: 1; }
.card-body {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.card-body[hidden] {
  display: none;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  margin-bottom: 12px;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* content images - default roundness (excludes nav/logo/socials) */
.card-body img {
  border-radius: 12px;
  cursor: zoom-in;
}
/* inline text links as boxed pills */
.card-body a {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #d0d0d5;
  border-radius: 6px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.card-body a:hover {
  background: #e05a2a;
  border-color: #e05a2a;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* lightbox enlarge - animates from thumb position */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.35s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #fff;
  /* position/size set via JS for FLIP animation */
}

/* contact form */
.contact-form { display: grid; gap: 12px; }
.form-group { display: grid; gap: 4px; }
.form-group label { font-weight: 600; font-size: 0.95rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d5;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid #e05a2a; outline-offset: 0; border-color: #e05a2a; }
.btn {
  padding: 10px 16px;
  border: 1px solid #d0d0d5;
  border-radius: 8px;
  background: #e05a2a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.form-note { font-size: 0.85rem; color: #555; margin: 4px 0 0; }
.form-warning { font-size: 0.85rem; color: #6b6b6b; margin: 0; }
.form-status { font-size: 0.9rem; }

/* footer */
.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  padding: 16px 0 0;
}

/* small helper to make reordering easy - sections are all siblings in .site-wrap */
