/* MANSTOCK — components (light theme) */

/* ── 3D door-reveal intro (brand animation) ── */
#reveal { position: fixed; inset: 0; z-index: 9999; perspective: 2400px; pointer-events: none; }
#reveal::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50vw 70vh at center, transparent 0%, rgba(26,31,42,0.06) 100%), var(--bone);
}
#reveal .panel {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--bone); overflow: hidden; will-change: transform;
  transition: transform 1600ms var(--ease-door), box-shadow 1600ms var(--ease-door);
}
#reveal .panel-left { left: 0; transform-origin: left center; }
#reveal .panel-right { right: 0; transform-origin: right center; }
body.intro-opening #reveal .panel { box-shadow: 0 0 80px rgba(0,0,0,0.25); }
#reveal .mark-wrap {
  position: absolute; top: 50%; width: 240px; height: 240px;
  transform-origin: center center;
  transition: transform 700ms var(--ease-tilt), opacity 900ms var(--ease-out), filter 900ms var(--ease-out);
}
#reveal .panel-left .mark-wrap { left: 100%; transform: translate(-50%, -50%) rotate(0deg); }
#reveal .panel-right .mark-wrap { right: 100%; transform: translate(50%, -50%) rotate(0deg); }
body.intro-tilted #reveal .panel-left .mark-wrap { transform: translate(-50%, -50%) rotate(90deg); }
body.intro-tilted #reveal .panel-right .mark-wrap { transform: translate(50%, -50%) rotate(90deg); }
#reveal .mark-half { position: absolute; inset: 0; width: 100%; height: 100%; }
#reveal .word-half {
  position: absolute; top: 50%; margin-top: 110px;
  font-weight: 800; font-size: 42px; letter-spacing: 0.14em; color: var(--ink); white-space: nowrap;
}
#reveal .panel-left .word-half { left: 100%; transform: translateX(-50%); }
#reveal .panel-right .word-half { right: 100%; transform: translate(50%, 0); }
#reveal .tag-half {
  position: absolute; top: 50%; margin-top: 170px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.42em;
  color: var(--gold); text-transform: uppercase; white-space: nowrap;
}
#reveal .panel-left .tag-half { left: 100%; transform: translateX(-50%); }
#reveal .panel-right .tag-half { right: 100%; transform: translate(50%, 0); }
body.intro-opening #reveal .panel-left { transform: translateX(-100%) rotateY(-12deg); }
body.intro-opening #reveal .panel-right { transform: translateX(100%) rotateY(12deg); }
body.intro-opening #reveal .mark-wrap { opacity: 0; filter: blur(2px); }
body.intro-opening #reveal .word-half, body.intro-opening #reveal .tag-half { opacity: 0; }
body.intro-done #reveal { display: none; }
/* Reduced motion: no swing — the whole overlay fades out gently instead. */
body.intro-reduced #reveal { opacity: 0; transition: opacity 800ms ease; }
#reveal .mark-wrap, #reveal .word-half, #reveal .tag-half {
  opacity: 0; animation: intro-fade-in 900ms var(--ease-out) forwards;
}
#reveal .mark-wrap { animation-delay: 200ms; }
#reveal .word-half { animation-delay: 500ms; }
#reveal .tag-half { animation-delay: 720ms; }
@keyframes intro-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #reveal .mark-wrap, #reveal .word-half, #reveal .tag-half {
    animation-duration: 0.01ms; animation-delay: 0ms;
  }
}

/* ── Home hero (light, warm) ── */
.hero {
  position: relative; min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, var(--bone) 0%, var(--warm-white) 100%);
  color: var(--ink); overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 45%, rgba(251,249,243,0.75) 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 150px; }
.pill {
  display: inline-block; margin-bottom: 26px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); background: rgba(255,255,255,0.6);
  border: 1px solid rgba(184,149,106,0.5);
  padding: 8px 18px; border-radius: 100px;
}
.hero-h1 { color: var(--ink); font-size: clamp(44px, 7vw, 92px); min-height: 1.15em; }
.typewriter-wrap { display: inline-flex; align-items: baseline; }
.typewriter { white-space: nowrap; }
.tw-caret {
  display: inline-block; width: 0.06em; min-width: 3px; height: 0.86em;
  margin-left: 0.08em; background: var(--gold);
  align-self: center; transform: translateY(0.02em);
  animation: caret-blink 1.1s steps(1, end) infinite;
}
@keyframes caret-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tw-caret { animation: none; }
}
.hero-sub { max-width: 560px; font-size: 17px; color: var(--stone); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* Stats strip (light, frosted) */
.stats-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--ink); }
.stat-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone);
}
.stats-grid-light { margin: 24px 0 40px; }
.stats-grid-light .stat-label { color: var(--stone); }

/* ── Icon cards ── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-compact { gap: 16px; }
.icon-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.icon-card-glyph { width: 44px; height: 44px; color: var(--gold); margin-bottom: 18px; }
.icon-card-glyph svg { width: 100%; height: 100%; }
.icon-card p { margin: 0; color: var(--stone); font-size: 15px; }

/* ── About snapshot ── */
.about-snapshot { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; }
.tick-list { list-style: none; padding: 0; margin: 0 0 28px; }
.tick-list li { padding: 7px 0 7px 32px; position: relative; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--gold); font-weight: 800;
}
.about-badge {
  justify-self: center; text-align: center;
  background: var(--ink); border-radius: var(--radius);
  padding: 48px 56px; color: var(--bone);
  box-shadow: var(--shadow-lift);
}
.about-badge img { margin-bottom: 12px; }
.about-badge-num { display: block; font-size: 56px; font-weight: 800; color: var(--gold); line-height: 1; }
.about-badge-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-70);
}

/* ── Services grid ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  display: block; text-decoration: none;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(184,149,106,0.55); }
.service-card-static:hover { transform: none; box-shadow: var(--shadow-soft); border-color: var(--hairline); }
.service-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--gold); font-weight: 500;
}
.service-num-hero { display: block; margin-bottom: 6px; font-size: 14px; }
.service-card h3 { margin: 10px 0 8px; }
.service-card p { margin: 0 0 14px; color: var(--stone); font-size: 14.5px; }
.service-more { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.service-card:hover .service-more { color: var(--gold); }

/* ── Security band (single dark accent) ── */
.security-band { background: var(--ink); color: var(--bone); padding: 64px 0; }
.security-band h2 { color: var(--bone); margin-bottom: 6px; }
.security-band p { color: var(--bone-70); margin: 0; }
.security-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.security-band-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.security-ctas { justify-content: center; }
.security-parent-note { text-align: center; margin-top: 28px; color: var(--stone); }
.security-parent-note a { color: var(--ink); font-weight: 700; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border-top: 2px solid var(--gold); padding-top: 20px; }
.step-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--gold); }
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--stone); margin: 0; font-size: 15px; }

/* ── Quote band (light) ── */
.quote-band { background: var(--bone); }
.quote-band .section-h2 { color: var(--ink); }
.quote-band-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.quote-band-copy p { color: var(--stone); }
.quote-band-phone { font-size: 19px; font-weight: 700; color: var(--ink); }
.quote-band-phone a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); }
.quote-band-form .form {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  border: 1px solid var(--hairline);
  padding: 34px; box-shadow: var(--shadow-soft);
}

/* ── Forms ── */
.form label { display: block; margin-bottom: 16px; font-weight: 700; font-size: 13.5px; letter-spacing: 0.02em; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 15px; font: inherit; font-weight: 500; font-size: 15px;
  border: 1px solid rgba(26,31,42,0.16); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,149,106,0.22);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form fieldset { border: 1px solid rgba(26,31,42,0.12); border-radius: var(--radius-sm); margin: 0 0 18px; padding: 16px 18px; }
.form legend { font-weight: 700; font-size: 13.5px; padding: 0 8px; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; }
.check-label { display: flex !important; align-items: center; gap: 9px; font-weight: 500 !important; margin-bottom: 4px !important; }
.check-label input { width: auto !important; margin: 0 !important; display: inline-block; }
.declaration { margin: 18px 0 22px !important; align-items: flex-start; font-size: 14px; }
.form h3 { margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.form-status { margin-top: 14px; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: #2E7D46; }
.form-status.err { color: #B3352C; }
.application-form {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow-soft);
}

/* ── Testimonials ── */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  margin: 0; background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-soft);
}
.testimonial-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.stars-off { color: rgba(26,31,42,0.15); }
.testimonial blockquote { margin: 0 0 14px; font-size: 15.5px; }
.testimonial figcaption { font-weight: 700; font-size: 14px; color: var(--stone); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid rgba(26,31,42,0.12); }
.faq-item summary {
  cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 17px;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 26px; font-weight: 500; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 20px; margin: 0; color: var(--stone); max-width: 720px; }
.faq-item a { color: var(--ink); font-weight: 700; }

/* ── Service page layout ── */
.service-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }
.service-intro { font-size: 17px; }
.service-body h2 { margin-top: 40px; font-size: 24px; }
.service-body h2:first-of-type { margin-top: 32px; }
.related-links p { font-weight: 700; }
.related-links a { color: var(--ink); border-bottom: 2px solid var(--gold); text-decoration: none; }
.service-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-soft);
}
.aside-card h2 { font-size: 21px; }
.aside-contact { text-align: center; }
.aside-phone { display: block; font-size: 24px; font-weight: 800; color: var(--ink); text-decoration: none; margin: 6px 0; }
.aside-phone:hover { color: var(--gold); }
.aside-contact span { color: var(--stone); font-size: 14px; }

/* ── Contact page ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-details address { font-style: normal; font-size: 16px; margin-bottom: 18px; }
.contact-phone { font-size: 26px; font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); }
.contact-hours { color: var(--stone); }
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow-soft);
}

/* ── Sitemap ── */
.sitemap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.sitemap-list { list-style: none; padding: 0; margin: 0 0 32px; }
.sitemap-list li { padding: 6px 0; }
.sitemap-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(184,149,106,0.5); }
.sitemap-list a:hover { color: var(--gold); }

/* ── Legal ── */
.legal-body h2 { font-size: 22px; margin-top: 36px; }
.legal-body a { color: var(--ink); font-weight: 700; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border: 1px solid rgba(26,31,42,0.12); }
.legal-table th { background: var(--bone); }

/* ── Cookie banner (small dark toast) ── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000;
  display: flex; justify-content: center;
}
.cookie-banner-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: 720px; background: var(--ink); color: var(--bone);
  border: 1px solid rgba(184,149,106,0.4); border-radius: var(--radius);
  padding: 18px 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.cookie-banner p { margin: 0; font-size: 14px; flex: 1 1 300px; }
.cookie-banner a { color: var(--gold); }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 10px 20px; font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .cards-3, .services-grid, .steps, .testimonials { grid-template-columns: 1fr 1fr; }
  .about-snapshot, .quote-band-inner, .service-layout, .contact-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .hero-content { padding-bottom: 200px; }
  .check-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards-3, .services-grid, .steps, .testimonials, .form-row, .sitemap-cols { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .application-form, .contact-form-wrap { padding: 22px; }
  #reveal .word-half { font-size: 30px; }
  #reveal .mark-wrap { width: 180px; height: 180px; }
}
