/* ============================================================
   Lytom - site pages (home, consultancy, surveys, housing,
   about, contact). Loaded after styles.css. Classes are
   prefixed lp- so nothing here collides with product pages.
   ============================================================ */

:root {
  --navy: #1b3a55;
  --navy-deep: #14304a;
  --navy-soft: #e8edf2;
  --navy-line: rgba(27, 58, 85, 0.14);
}

/* --- Nav adjustments --------------------------------------- */
.site-nav { background: var(--bg); }
.site-nav-inner { padding: 12px var(--space-5); }
.site-nav .brand img { height: 48px; width: 114px; }
.nav-actions { gap: 4px; }
.nav-link { color: var(--text-muted); }
.nav-link[aria-current="page"] { color: var(--text); background: var(--beige-light); }
.nav-contact {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.15s ease;
}
.nav-contact:hover { background: var(--navy-deep); color: var(--white); text-decoration: none; }
.site-nav .brand img { object-fit: contain; }
.nav-contact:visited { color: var(--white); }
.nav-signin-panel a small { display: block; }

@media (max-width: 760px) {
  .site-nav-inner { flex-wrap: wrap; row-gap: 8px; }
  .site-nav .brand img { height: 40px; width: 95px; }
  .nav-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .nav-link { padding: 6px 10px; font-size: 0.88rem; }
  .nav-contact { padding: 7px 12px; font-size: 0.88rem; margin-left: auto; }
}

/* --- Buttons in navy --------------------------------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  border: 1px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lp-btn-primary { background: var(--navy); color: var(--white); }
.lp-btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); text-decoration: none; }
.lp-btn-primary:visited { color: var(--white); }
.lp-btn-secondary { background: transparent; color: var(--navy); }
.lp-btn-secondary:hover { background: var(--navy-soft); color: var(--navy); text-decoration: none; }
.lp-btn-secondary:visited { color: var(--navy); }
.lp-btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.lp-btn-light:hover { background: var(--beige-light); color: var(--navy); border-color: var(--beige-light); text-decoration: none; }
.lp-btn-light:visited { color: var(--navy); }
.lp-btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.lp-btn-outline-light:hover { background: rgba(255,255,255,0.1); color: var(--white); text-decoration: none; }
.lp-btn-outline-light:visited { color: var(--white); }

/* --- Type -------------------------------------------------- */
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.lp-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 1px;
  flex: none;
}
.lp-h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  max-width: 14em;
}
.lp-h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--text);
}
.lp-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38em;
}
.lp-muted { color: var(--text-muted); }

/* --- Sections ---------------------------------------------- */
.lp-section { padding: clamp(56px, 8vw, 96px) 0; }
.lp-section-band { padding: clamp(56px, 8vw, 96px) 0; background: var(--white); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.lp-section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
.lp-section-head p { margin-top: 12px; color: var(--text-muted); font-size: 1.04rem; }
.lp-section-foot { margin-top: clamp(24px, 4vw, 36px); }

/* --- Dark hero (home and inner pages) ---------------------- */
.lp-hero,
.lp-page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(255, 255, 255, 0.09), transparent 70%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
}
/* faint grid */
.lp-hero::before,
.lp-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 10%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 10%, #000 30%, transparent 100%);
}
/* brand mark, very faint */
.lp-hero::after,
.lp-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4vw;
  top: -6vw;
  width: clamp(360px, 46vw, 720px);
  aspect-ratio: 134 / 137;
  background: url("/lytom-mark-white.png") no-repeat center / contain;
  opacity: 0.045;
  pointer-events: none;
}
.lp-hero .lp-eyebrow,
.lp-page-hero .lp-eyebrow { color: rgba(255, 255, 255, 0.72); }
.lp-hero .lp-h1,
.lp-page-hero .lp-h1 { color: var(--white); }
.lp-hero .lp-lead,
.lp-page-hero .lp-lead { color: rgba(255, 255, 255, 0.78); }
.lp-page-hero .lp-lead a { color: var(--white); font-weight: 600; }
.lp-hero .lp-btn-primary,
.lp-page-hero .lp-btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.lp-hero .lp-btn-primary:hover,
.lp-page-hero .lp-btn-primary:hover { background: var(--beige-light); border-color: var(--beige-light); color: var(--navy); }
.lp-hero .lp-btn-secondary,
.lp-page-hero .lp-btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.lp-hero .lp-btn-secondary:hover,
.lp-page-hero .lp-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* --- Home hero --------------------------------------------- */
.lp-hero { padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 96px); }
.lp-hero .lp-lead { margin-top: 24px; }

.lp-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(44px, 6vw, 72px);
}
.lp-route {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lp-route:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); text-decoration: none; transform: translateY(-3px); }
.lp-route:visited { color: var(--white); }
.lp-route.lp-route-dark { background: var(--white); border-color: var(--white); color: var(--text); }
.lp-route.lp-route-dark:visited { color: var(--text); }
.lp-route.lp-route-dark:hover { background: var(--white); border-color: var(--white); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5); }
.lp-route.lp-route-dark .lp-route-kicker,
.lp-route.lp-route-dark .lp-route-link { color: var(--navy); }
.lp-route.lp-route-dark p { color: var(--text-muted); opacity: 1; }
.lp-route-kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.lp-route h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.lp-route p { font-size: 1rem; line-height: 1.55; opacity: 0.84; flex: 1; }
.lp-route-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.lp-route-link::after { content: "\2192"; transition: transform 0.2s ease; }
.lp-route:hover .lp-route-link::after { transform: translateX(4px); }

/* --- Product pages ----------------------------------------- */
.lp-hero-micro { margin-top: 14px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.66); }
.lp-hero-micro a { color: var(--white); font-weight: 600; }
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(24px, 4vw, 48px);
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0;
  list-style: none;
}
.lp-trust li { font-size: 0.92rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.lp-trust li::before { content: ""; width: 6px; height: 6px; background: var(--navy); border-radius: 1px; flex: none; }
.lp-trust a { color: var(--text-muted); }
.lp-trust a:hover { color: var(--navy); }
.lp-trust-band { padding: 0; background: var(--white); }
.lp-what .lp-services { grid-template-columns: repeat(2, 1fr); }
.lp-what .lp-service h3 { font-size: 1.1rem; }

/* --- Section contrast -------------------------------------- */
.lp-band-tint { background: var(--navy-soft); border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }

/* --- Product list ------------------------------------------ */
.lp-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-product {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-product:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -22px rgba(27, 58, 85, 0.45); }
.lp-product img { height: 36px; width: auto; }
.lp-product h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.lp-product p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.55; flex: 1; }
.lp-product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lp-product-actions .lp-btn { padding: 10px 16px; font-size: 0.9rem; }

/* --- Review ------------------------------------------------ */
.lp-review {
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(22px, 3vw, 32px);
  border-left: 3px solid var(--navy);
  background: var(--bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 760px;
}
.lp-review blockquote { font-size: 1.12rem; line-height: 1.55; color: var(--text); }
.lp-review figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--text-muted); }
.lp-review figcaption a { color: var(--navy); font-weight: 600; }

/* --- Service list ------------------------------------------ */
.lp-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 4vw, 56px); border-top: 1px solid var(--border); }
.lp-service { padding: 26px 0; border-bottom: 1px solid var(--border); position: relative; }
.lp-service::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--navy); transition: width 0.3s ease; }
.lp-service:hover::after { width: 100%; }
.lp-service h3 { font-size: 1.14rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.lp-service h3 a { color: var(--text); }
.lp-service h3 a::after { content: " \2192"; opacity: 0; transition: opacity 0.2s ease; }
.lp-service:hover h3 a::after { opacity: 1; }
.lp-service h3 a:hover { color: var(--navy); text-decoration: none; }
.lp-service p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.55; }

/* --- Consultancy page sections ----------------------------- */
.lp-detail { max-width: 760px; }
.lp-detail h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.lp-detail p { font-size: 1.04rem; line-height: 1.65; color: var(--text); }
.lp-detail p + p { margin-top: 12px; }
.lp-detail-list { display: grid; gap: clamp(32px, 5vw, 48px); }
.lp-detail-list > section { padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--border); }
.lp-detail-list > section:first-child { padding-top: 0; border-top: 0; }
.lp-detail-link { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--navy); }
.lp-detail-link::after { content: " \2192"; }

/* --- FAQ (uses faq-item from styles.css) ------------------- */
.lp-faq .faq-list { max-width: 820px; }

/* --- Contact ----------------------------------------------- */
.lp-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.lp-contact-aside p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; }
.lp-contact-aside p + p { margin-top: 12px; }
.lp-contact-aside a { color: var(--navy); font-weight: 600; }

.lp-form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-field { display: grid; gap: 6px; }
.lp-field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.lp-field label span { font-weight: 400; color: var(--text-soft); }
.lp-field input,
.lp-field select,
.lp-field textarea {
  font: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.lp-field input:focus-visible,
.lp-field select:focus-visible,
.lp-field textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.lp-field textarea { min-height: 150px; resize: vertical; }
.lp-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lp-form-note { font-size: 0.85rem; color: var(--text-soft); }
.lp-form-note a { color: var(--text-muted); }
.lp-form-status { font-size: 0.95rem; min-height: 1.4em; }
.lp-form-status.is-error { color: #8b1a1a; }
.lp-form-status.is-ok { color: var(--navy); font-weight: 600; }
.lp-form-success { padding: clamp(22px, 3vw, 32px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.lp-form-success h2 { font-size: 1.4rem; margin-bottom: 8px; }
.lp-form-success p { color: var(--text-muted); }

/* --- Closing panel ----------------------------------------- */
.lp-closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: clamp(56px, 8vw, 88px) 0;
}
.lp-closing::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3vw;
  bottom: -10vw;
  width: clamp(280px, 34vw, 520px);
  aspect-ratio: 134 / 137;
  background: url("/lytom-mark-white.png") no-repeat center / contain;
  opacity: 0.045;
  pointer-events: none;
}
.lp-closing .lp-h2 { color: var(--white); }
.lp-closing p { margin-top: 12px; color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 40em; }
.lp-closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* --- Page hero (inner pages) ------------------------------- */
.lp-page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.lp-page-hero .lp-lead { margin-top: 20px; }
.lp-page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- Motion ------------------------------------------------ */
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.lp-hero .container > *,
.lp-page-hero .container > * {
  animation: lp-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lp-hero .container > :nth-child(2),
.lp-page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.lp-hero .container > :nth-child(3),
.lp-page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
.lp-hero .container > :nth-child(4),
.lp-page-hero .container > :nth-child(4) { animation-delay: 0.26s; }

/* Elements given .lp-reveal by site.js ease in as they scroll into view. */
.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-reveal.is-visible { opacity: 1; transform: none; }
.lp-products > .lp-reveal:nth-child(2),
.lp-services > .lp-reveal:nth-child(2) { transition-delay: 0.08s; }
.lp-products > .lp-reveal:nth-child(3),
.lp-services > .lp-reveal:nth-child(3) { transition-delay: 0.16s; }
.lp-services > .lp-reveal:nth-child(4) { transition-delay: 0.24s; }
.lp-services > .lp-reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .lp-hero .container > *,
  .lp-page-hero .container > * { animation: none; }
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-route, .lp-product, .lp-service::after, .lp-route-link::after, .lp-service h3 a::after { transition: none; }
  .lp-route:hover, .lp-product:hover { transform: none; }
}

/* --- Footer tweaks ----------------------------------------- */
.site-footer a:hover { color: var(--navy); }
.footer-grid h4 { color: var(--text); }

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .lp-products { grid-template-columns: 1fr; }
  .lp-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lp-routes { grid-template-columns: 1fr; }
  .lp-services { grid-template-columns: 1fr; }
  .lp-form-row { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 40px; }
}
