:root{
  --bg: #070b14;
  --bg2:#0b1220;
  --card:#0e1730;
  --muted:#a8b3cf;
  --text:#eaf0ff;
  --line: rgba(255,255,255,.10);
  --primary:#6ee7ff;
  --primary2:#8b5cf6;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(110,231,255,.14), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(139,92,246,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset: 4px; }

.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

.skip-link{
  position:absolute; left:-999px; top:10px;
  background: #fff; color:#000; padding:10px 12px; border-radius:10px;
}
.skip-link:focus{ left:10px; z-index:9999; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,11,20,.55);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; gap:14px;
  padding:14px 0;
  flex-wrap: nowrap; /* ✅ keep one line on desktop, prevent FR squish */
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
  margin-right: 10px;      /* ✅ breathing room before nav */
  white-space: nowrap;     /* ✅ never wrap "Raymond PC" */
}
.brand-text span{ opacity:.9; }

.brand-logo{
  width:40px;
  height:40px;
  border-radius:12px;
  object-fit:contain;
  background: rgba(255,255,255,.02);
  border:1px solid var(--line);
}

.nav{ margin-left:auto; display:flex; align-items:center; gap:12px; }
.nav-toggle{
  display:none;
  background:transparent; color:var(--text);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
}
.nav-links{
  display:flex; align-items:center;
  gap:14px; /* ✅ slightly tighter to fit FR labels */
}
.nav-links a{ opacity:.9; font-weight:600; }
.nav-links a:hover{ opacity:1; }

@media (max-width: 1120px){
  .nav-links{ gap:10px; }
  .nav-links a{ font-size: .92rem; }
}

/* ✅ Protect FR/EN toggle from collapsing */
.lang{
  display:flex; align-items:center;
  flex: 0 0 auto;
  min-width: 64px;
}

/* Force FR/EN button text to white everywhere */
.lang .btn,
.lang button{
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-weight:700;
  cursor:pointer;
  color: var(--text);
}
.btn:hover{ transform: translateY(-1px); text-decoration:none; }
.btn:active{ transform: translateY(0px); }
.btn-small{ padding:10px 12px; border-radius:12px; font-weight:700; }
.btn-full{ width:100%; }

.btn-primary{
  background: linear-gradient(135deg, rgba(110,231,255,.20), rgba(139,92,246,.20));
  border-color: rgba(110,231,255,.35);
}
.btn-secondary{ background: rgba(255,255,255,.03); }
.btn-ghost{ background: rgba(255,255,255,.02); }

/* Sections */
.section{ padding:70px 0; }
.section.alt{
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head{ margin-bottom: 22px; }
.section-head h2{ margin:0 0 10px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.muted{ color:var(--muted); }
.micro{ font-size:.92rem; }
.eyebrow{
  display:inline-flex; gap:10px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:700;
}

/* Hero */
.hero{ padding:64px 0 28px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:24px;
  align-items:start;
}
.hero h1{
  margin:14px 0 12px;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem);
  line-height:1.05;
}
.lead{ font-size: 1.08rem; color: rgba(234,240,255,.92); }

.hero-bullets{
  list-style:none;
  padding:0; margin:18px 0 18px;
  display:grid; gap:8px;
}
.hero-bullets li{
  padding-left: 22px;
  position:relative;
  color: var(--muted);
  font-weight:600;
}
.hero-bullets li::before{
  content:"✓";
  position:absolute;
  left:0; top:0;
  color: var(--primary);
}
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; margin:16px 0 10px; }

/* Cards */
.card{
  background: rgba(14,23,48,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.glass{
  background: linear-gradient(180deg, rgba(14,23,48,.78), rgba(14,23,48,.50));
}
.card-top{ margin-bottom: 10px; }
.card-top h2, .card h3{ margin:0 0 6px; }
.icon-row{
  display:flex; gap:12px;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.icon-row:first-child{ border-top:none; }
.icon{
  width:28px; height:28px; display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(110,231,255,.10);
  border:1px solid rgba(110,231,255,.22);
  color: var(--primary);
  flex:0 0 auto;
}
.card-actions{ margin-top: 12px; }

.note{
  margin-top: 18px;
  padding:14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

/* Grids */
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }

/* Steps (How it works) */
.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.step.card{ padding:16px; }
.step{
  aspect-ratio: 1 / 1;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.step-num{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  background: linear-gradient(135deg, rgba(110,231,255,.20), rgba(139,92,246,.20));
  border:1px solid rgba(110,231,255,.28);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.step-body h3{ margin:0 0 6px; }
.step-body p{ margin:0; }

/* Services: keep bullet lists aligned */
#services .grid-3 > .card{ display:flex; flex-direction:column; }
#services .service-desc{
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow:hidden;
  min-height: calc(1.55em * 2);
}
#services .checklist{ margin-top: 12px; }

/* Checklists */
.checklist{
  list-style:none;
  padding:0; margin: 12px 0 0;
  display:grid; gap:8px;
}
.checklist li{
  padding-left: 22px; position:relative; color: rgba(234,240,255,.92);
}
.checklist li::before{
  content:"•";
  position:absolute; left:0; top:-1px;
  color: var(--primary);
  font-size: 1.2em;
}

/* Trust strip */
.trust{ padding: 18px 0 0; }
.trust-row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.trust-item{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(255,255,255,.02);
}
.trust-big{ font-size: 1.35rem; font-weight:900; }
.trust-small{ color: var(--muted); font-weight:700; }

/* Pricing */
.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  padding-top: 44px; /* space for the tab */
}
.price-top{ margin-bottom: 12px; }
.price-tag{
  display:flex; align-items:baseline; gap:10px;
  margin: 10px 0 6px;
}
.price-amt{ font-size: 2rem; font-weight:900; }
.price-unit{ color: var(--muted); font-weight:800; }

/* Pricing: keep button at bottom + reduce empty space */
.price.card{
  display:flex;
  flex-direction:column;
  position: relative;
}
.price.card .checklist{ margin-bottom: 14px; }
.price.card .btn{ margin-top:auto; }
.pricing .price.card{ min-height: 520px; } /* reduced */

/* Featured card */
.featured{
  border-color: rgba(110,231,255,.35);
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
  transform: translateY(-6px);
  overflow: visible;
}
.featured .badge{
  position:absolute;
  top:-44px;
  left:18px;
  right:18px;

  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(14,23,48,.95);
  color: rgba(234,240,255,.96);
  font-weight:900;
  font-size: .88rem;

  border: 1px solid rgba(110,231,255,.28);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  z-index: 2;
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Clickable gallery buttons (square) */
.img-btn{
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius:18px;
}
.img-btn img{
  width:100%;
  height:100%;
  display:block;
  border-radius:18px;
  object-fit:cover;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.img-btn:hover img{
  transform: translateY(-2px);
  transition: transform .15s ease;
}

/* Reviews now clickable too */
.review-photos{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.review-btn{
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  width:100%;
  border-radius:18px;

  /* Match the original review image aspect ratio (572 x 386) */
  aspect-ratio: 572 / 386;
}

.review-img{
  width:100%;
  height:100%;
  display:block;
  border-radius:18px;

  /* No cropping: container matches the image ratio */
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.review-btn:hover .review-img{
  transform: translateY(-2px);
  transition: transform .15s ease;
}

/* FAQ */
.faq{ display:grid; gap:12px; }
details summary{ cursor:pointer; font-weight:800; }
details p{ margin: 10px 0 0; }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-lines{ display:grid; gap:10px; margin-top: 10px; }
.line{
  display:flex; align-items:baseline; gap:10px;
  padding:10px 0;
  border-top:1px solid var(--line);
}
.line:first-child{ border-top:none; }
.k{ width: 92px; color: var(--muted); font-weight:800; }
.v{ font-weight:800; }

.form label{ display:grid; gap:8px; margin-top: 12px; }
input, select, textarea{
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  color: var(--text);
  outline:none;
}
@media (hover:hover) and (pointer:fine){
  /* Desktop dropdown fix: make option text readable on desktop */
  select option,
  select optgroup{
    color: #111 !important;
    background: #fff !important;
  }
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(110,231,255,.45);
  box-shadow: 0 0 0 4px rgba(110,231,255,.12);
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.footer-inner{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.link{ opacity:.9; }
.link:hover{ opacity:1; }

/* Lightbox (shared) */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.lightbox.open{ display:block; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.lightbox-content{
  position:relative;
  width: min(980px, calc(100% - 28px));
  margin: 40px auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(14,23,48,.92);
  box-shadow: 0 25px 90px rgba(0,0,0,.6);
  padding: 12px;
}

.lightbox-content img{
  width:100%;
  height:auto;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 14px;
  display:block;
  cursor: pointer;
}

.lightbox-caption{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
}

.lightbox-close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: var(--text);
  cursor:pointer;
}

.lightbox-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:46px;
  height:46px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: var(--text);
  cursor:pointer;
  font-size: 28px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox-prev{ left:10px; }
.lightbox-next{ right:10px; }

/* Responsive */
@media (max-width: 980px){
  .steps{ grid-template-columns: 1fr; }
  .step{ aspect-ratio: auto; }
  .hero-grid{ grid-template-columns: 1fr; }
  .pricing{ grid-template-columns: 1fr; padding-top: 0; }
  .featured{ transform:none; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .trust-row{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .pricing .price.card{ min-height: auto; }

  .featured .badge{
    position: static;
    height: auto;
    border-radius: 999px;
    border-bottom: 1px solid rgba(110,231,255,.28);
    margin: 0 0 10px;
  }

  .review-photos{ grid-template-columns: repeat(2, 1fr); }

  .lightbox-nav{ width:42px; height:42px; font-size:26px; }
}

@media (max-width: 760px){
  .nav-toggle{ display:inline-flex; }
  .nav-links{
    position:absolute;
    right:20px; top:64px;
    display:none;
    flex-direction:column;
    gap:10px;
    padding:14px;
    border-radius: 16px;
    border:1px solid var(--line);
    background: rgba(7,11,20,.95);
    box-shadow: var(--shadow);
    min-width: 220px;
  }
  .nav-links.open{ display:flex; }
  .footer-inner{ flex-direction:column; align-items:flex-start; }
}
