/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

:root {
  --blue: #0069d9;
  --blue-dark: #0053aa;
  --yellow: #ffc928;
  --bg-light: #f5f9fc;
  --text-main: #123047;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 45px rgba(10, 37, 64, 0.12);
  --transition-fast: 0.2s ease;
  --font: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-main);
  background-color: #ffffff;
}

/* Layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section.light {
  background: var(--bg-light);
}

.section-title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  text-align: center;
}

.section-subtitle {
  margin: 0 0 40px;
  font-size: 16px;
  font-weight: 400;
  color: #6f8194;
  text-align: center;
}

/* Hero */

.hero {
  background: var(--blue);
  color: #ffffff;
  padding: 24px 0 80px;
}

.hero-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-trust {
  margin-top: 14px;
  font-size: 13px;
  color: #dbe8ff;
  opacity: 0.95;
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lego-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #ffffff;
  color: #d62828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

.lego-logo img {
  width: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 24px;
}

.brand-sub {
  font-size: 13px;
  opacity: 0.9;
}

.hero-content {
  text-align: center;
  margin-top: 40px;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 400;
  opacity: 0.95;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.btn-yellow {
  background: var(--yellow);
  color: #1b2836;
  box-shadow: var(--shadow-soft);
}

.btn-yellow:hover {
  background: #ffcf3b;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.btn-blue {
  background: var(--blue);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.btn.full {
  width: 100%;
}

/* Stats */

.stats-strip {
  background: #f0f7ff;
  padding: 26px 0;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  text-align: center;
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
}

.stat-label {
  font-size: 14px;
  color: #6f8194;
}

/* Cards - Why */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.05);
  padding: 22px 20px 20px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(10, 37, 64, 0.12);
}


.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.12);
}

.card-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1); /* alb pe albastru */
}


.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: #6f8194;
}

/* Steps */

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.step {
  text-align: center;
  max-width: 200px;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.step:hover {
  transform: translateY(-3px);
}

.step:hover .step-icon {
  box-shadow: 0 14px 32px rgba(10, 37, 64, 0.18);
}

.step-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.12);
}

.step-icon img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: #6f8194;
}


/* Sets */

.sets-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.set-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.set-image {
  width: 100%;
  height: 180px; /* fixed visual box for consistent rows */
  object-fit: contain; /* prevent stretching */
  background: #f3f7fc; /* subtle backdrop for different aspect ratios */
  display: block;
}

.set-image.placeholder {
  background: linear-gradient(135deg, #e3f0ff, #ffffff);
}

.set-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
}

.set-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  /* Keep titles aligned even if some wrap to two lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.set-body p {
  margin: 0;
  font-size: 14px;
  color: #6f8194;
  line-height: 1.2;
  min-height: 1.2em; /* align meta row baseline */
}

/* Meta row inside card: age/pieces on the left, link on the right */
.set-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.set-meta > span {
  flex: 1 1 auto;
}
.set-meta a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
}
.set-meta a:hover {
  text-decoration: underline;
}

.note {
  margin-top: 14px;
  font-size: 12px;
  color: #8a9bae;
  text-align: center;
}

/* CTA Section */

.cta-section {
  background: var(--blue);
  color: #ffffff;
  text-align: center;
  padding: 54px 0;
}

.cta-section h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
}

.cta-section p {
  margin: 0 0 22px;
  font-size: 16px;
}

/* Testimonials */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.05);
  padding: 24px 20px 22px;
  border: 1px solid #e4edf7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(10, 37, 64, 0.12);
}

.stars {
  margin-bottom: 10px;
  display: flex;
}

.stars svg {
  width: 20px;
  height: 20px;
  fill: #ffc107;
  color: #ffc107;
}

.author {
  margin-top: 12px;
  font-weight: 700;
  color: var(--text-main);
}

/* Form */

.form-card {
  margin: 24px auto 0;
  max-width: 720px;
  background: #ffffff;
  padding: 28px 26px 24px;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e4edf7;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.two {
  flex-direction: row;
  gap: 18px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #30445a;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5e2f0;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b5c3d3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 105, 217, 0.12);
  background-color: #ffffff;
}

.form-group select {
  background-color: #ffffff;
  cursor: pointer;
}

.form-card .btn-blue.full {
  margin-top: 4px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 8px;
}

.checkbox-group label {
  font-size: 14px;
  color: #30445a;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Footer */

.footer {
  background: var(--blue);
  color: #ffffff;
  padding: 18px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer-disclaimer {
  font-size: 10px;
  color: #dbe8ff;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer a:hover {
  opacity: 1;
}


.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.price-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.05);
  padding: 26px 20px 20px;
  text-align: center;
  border: 1px solid #e4edf7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.badge-label {
  display: inline-block;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: #1b2836;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}


.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(10, 37, 64, 0.12);
}

.price-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-main);
}

.price {
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 10px;
}

.price strong {
  font-size: 20px;
  color: var(--blue-dark);
}

.desc {
  font-size: 14px;
  color: #6f8194;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    padding-bottom: 56px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .stats {
    gap: 30px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sets-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-card {
    border-radius: 22px;
  }
}

@media (max-width: 600px) {
  .stats-strip {
    padding: 18px 0;
  }

  .stats {
    flex-direction: column;
    gap: 10px;
  }

  .cards-grid,
  .sets-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two {
    flex-direction: column;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  .hero {
    padding: 20px 0 40px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .form-card {
    padding: 20px 16px 18px;
  }

}




/* Toast notifications */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #0a2540;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(10,37,64,0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  font-size: 14px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.error {
  background: #c0392b;
}
