/* ===== GJDWeb v3 — light, spacious, precise ===== */
:root {
  --wine: #7B2233;
  --wine-deep: #5E1925;
  --wine-bright: #9B3346;
  --wine-soft: #F5E8EA;
  --ink: #1B1D21;
  --charcoal: #34383F;
  --slate: #565B64;
  --steel: #8A8F98;
  --line: #E6E7EA;
  --line-soft: #EFF0F2;
  --paper: #FFFFFF;
  --paper-warm: #FBFBFA;
  --fog: #F4F4F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  line-height: 1.18; letter-spacing: -0.022em; color: var(--ink);
}

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- HEADER ---------- */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; max-width: 1160px; margin: 0 auto;
}
.nav-logo {
  font-family: 'Montserrat', sans-serif; font-size: 1.5rem;
  text-decoration: none; letter-spacing: -0.03em;
}
.nav-logo .lg-strong { font-weight: 800; color: var(--wine); }
.nav-logo .lg-light { font-weight: 400; color: var(--ink); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--slate);
  font-size: 0.93rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--wine); }
.nav-portfolio {
  background: var(--fog); color: var(--wine) !important;
  padding: 11px 22px; border-radius: 7px; font-weight: 600 !important;
  border: 1px solid var(--line); transition: background 0.2s, border-color 0.2s;
}
.nav-portfolio:hover { background: var(--wine-soft); border-color: var(--wine); }
.nav-cta {
  background: var(--wine); color: #fff !important;
  padding: 11px 22px; border-radius: 7px; font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--wine-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(123,34,51,0.25); }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: var(--wine); cursor: pointer;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; padding: 16px 32px; border-radius: 8px; font-size: 0.97rem;
  font-family: 'Montserrat', sans-serif; letter-spacing: -0.01em;
  transition: transform 0.16s, background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(123,34,51,0.28); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--wine); color: var(--wine); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--wine); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.16); }
.btn-arrow::after { content: "→"; font-size: 1.05em; transition: transform 0.18s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* CRITICAL: decorative glow/texture layers must never intercept clicks */
.cta::before, .cta::after,
.mission::before, .mission::after,
.hero::before, .hero::after,
.page-hero::before, .page-hero::after,
.intro-photo::after {
  pointer-events: none;
}

/* ---------- SECTION SHELL ---------- */
section { padding: 108px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 0.73rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--wine); font-weight: 700; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--wine); }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.7vw, 3.1rem); margin-bottom: 16px; }
.section-head h2 span { color: var(--wine); }
.section-head p { color: var(--slate); font-size: 1.1rem; }

/* soft section tones — no hard banding */
.tone-warm { background: var(--paper-warm); }
.tone-fog { background: var(--fog); }

/* hairline divider between sections */
.hairline { height: 1px; background: var(--line); border: none; }

/* subtle full-width guide line accent */
.accent-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- PAGE HERO (light) ---------- */
.page-hero {
  background: var(--paper-warm); padding: 92px 0 96px;
  text-align: center; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent);
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 3.9rem); margin-bottom: 16px; position: relative; }
.page-hero h1 span { color: var(--wine); }
.page-hero p { color: var(--slate); font-size: 1.14rem; max-width: 560px; margin: 0 auto; position: relative; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: rgba(255,255,255,0.62); padding: 64px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px;
  padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: 'Montserrat', sans-serif; font-size: 1.5rem; margin-bottom: 14px;
  display: inline-block; letter-spacing: -0.03em;
}
.footer-logo .lg-strong { font-weight: 800; color: #E0A9B2; }
.footer-logo .lg-light { font-weight: 400; color: #fff; }
.footer-grid p { font-size: 0.95rem; max-width: 330px; }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 16px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.93rem; margin-bottom: 10px; }
.footer-col a:hover { color: #E0A9B2; }
.footer-base { text-align: center; padding-top: 26px; font-size: 0.84rem; color: rgba(255,255,255,0.4); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }

/* ---------- MOBILE ---------- */
@media (max-width: 880px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 22px 28px; gap: 20px;
    border-bottom: 2px solid var(--wine);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 74px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- PORTFOLIO ---------- */
.portfolio { background: var(--paper); }
.laptop-wrap {
  display: flex; justify-content: center; align-items: center;
  perspective: 1200px;
}
.laptop {
  width: 100%; max-width: 720px; position: relative;
  transform: rotateX(4deg); transition: transform 0.4s ease;
}
.laptop:hover { transform: rotateX(0deg); }
.laptop-screen {
  background: var(--ink); border-radius: 16px 16px 0 0;
  padding: 14px 14px 0; box-shadow: 0 30px 70px rgba(27,29,33,0.28);
  border: 1px solid var(--line);
}
.laptop-browser {
  background: #2A2D32; border-radius: 8px 8px 0 0; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px; margin-bottom: 0;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red { background: #FF5F57; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green { background: #28C840; }
.browser-bar {
  flex: 1; background: rgba(255,255,255,0.08); border-radius: 4px;
  padding: 4px 10px; font-size: 0.72rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.laptop-viewport {
  height: 380px; overflow: hidden; background: #fff;
  position: relative; cursor: pointer; border-radius: 0 0 2px 2px;
}
.laptop-viewport img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
  display: block; pointer-events: none;
}
.laptop-viewport iframe {
  width: 100%; height: 900px; border: none;
  transform: scale(0.5); transform-origin: top left;
  width: 200%; height: 900px; pointer-events: none;
}
.laptop-scroll-inner {
  width: 100%; height: 100%;
  background: url('https://lunecarpentry.co.uk') center top / cover no-repeat;
  background-color: #1F3D2E;
}
.laptop-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: rgba(27,29,33,0); transition: background 0.3s;
}
.laptop-overlay:hover { background: rgba(27,29,33,0.55); }
.laptop-overlay .view-btn {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  background: #fff; color: var(--wine); font-weight: 600; font-size: 0.95rem;
  padding: 12px 26px; border-radius: 8px; font-family: 'Montserrat', sans-serif;
  text-decoration: none;
}
.laptop-overlay:hover .view-btn { opacity: 1; transform: translateY(0); }
.laptop-base {
  background: linear-gradient(to bottom, #C8CACD, #A8AAAD);
  height: 22px; border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 14px rgba(27,29,33,0.18);
}
.laptop-foot {
  background: linear-gradient(to bottom, #B0B2B5, #909295);
  height: 10px; border-radius: 0 0 8px 8px; width: 70%; margin: 0 auto;
}
.portfolio-meta {
  text-align: center; margin-top: 36px; padding: 28px 32px;
  background: var(--fog); border: 1px solid var(--line); border-radius: 12px;
  max-width: 540px; margin-left: auto; margin-right: auto; margin-top: 36px;
}
.portfolio-meta .pm-label {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--wine); font-weight: 700; margin-bottom: 8px;
}
.portfolio-meta h3 { font-size: 1.4rem; margin-bottom: 6px; }
.portfolio-meta p { color: var(--slate); font-size: 0.97rem; margin-bottom: 14px; }
.portfolio-meta a { color: var(--wine); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.portfolio-meta a:hover { text-decoration: underline; }

/* ---------- LAUNCH PACKAGE ---------- */
.launch { background: var(--fog); }
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.launch-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 36px 34px; box-shadow: 0 12px 32px rgba(27,29,33,0.07);
}
.launch-tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--wine); font-weight: 700;
  background: var(--wine-soft); padding: 5px 12px; border-radius: 4px; margin-bottom: 16px;
}
.launch-price { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 4px; }
.launch-price span { font-size: 1rem; font-weight: 400; color: var(--slate); }
.launch-desc { color: var(--slate); font-size: 0.97rem; margin-bottom: 22px; }
.launch-items { list-style: none; }
.launch-items li {
  padding: 11px 0; border-bottom: 1px solid var(--line-soft, #EFF0F2);
  display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem;
}
.launch-items li:last-child { border-bottom: none; }
.launch-items .tick { color: var(--wine); font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.launch-items .li-title { font-weight: 600; color: var(--ink); display: block; }
.launch-items .li-desc { color: var(--slate); font-size: 0.88rem; display: block; margin-top: 1px; }
.launch-why {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 36px 34px;
}
.launch-why h3 { font-size: 1.5rem; margin-bottom: 14px; }
.launch-why h3 span { color: var(--wine); }
.launch-why p { color: var(--slate); margin-bottom: 14px; font-size: 0.98rem; }
.launch-why .stat-row { display: flex; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.launch-why .stat { text-align: center; flex: 1; min-width: 100px; }
.launch-why .stat .s-big { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2rem; color: var(--wine); letter-spacing: -0.02em; }
.launch-why .stat .s-label { font-size: 0.82rem; color: var(--slate); margin-top: 2px; }

@media (max-width: 880px) {
  .laptop { transform: rotateX(0deg); }
  .laptop-viewport { height: 280px; }
  .launch-grid { grid-template-columns: 1fr; }
  /* On mobile, hide only the decorative frame, keep the screenshot */
  .laptop-base,
  .laptop-foot,
  .laptop-browser { display: none; }
  .laptop-wrap { perspective: none; }
  .laptop { max-width: 100%; }
  .laptop-screen {
    background: transparent; border-radius: 14px;
    padding: 0; box-shadow: 0 16px 40px rgba(27,29,33,0.18);
    border: none;
  }
  .laptop-viewport {
    height: auto; border-radius: 14px;
    overflow: hidden;
  }
  .laptop-viewport img {
    width: 100%; height: auto; max-height: 360px;
    object-fit: cover; object-position: left top; display: block;
  }
}
