/* ===== Design tokens ===== */
:root{
  --bg: #f4f5f8;
  --bg-raised: #ffffff;
  --text: #12151c;
  --text-muted: #565f6d;
  --border: #e1e4ea;
  --accent: #2952e3;
  --accent-ink: #ffffff;
  --accent-soft: #e8edfc;
  --dark: #0b0f1a;
  --dark-raised: #121729;
  --dark-border: #232a3d;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow: 0 2px 8px rgb(18 21 28 / 0.05), 0 12px 32px rgb(18 21 28 / 0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #0b0f1a;
    --bg-raised: #121729;
    --text: #eef1f7;
    --text-muted: #9aa4b8;
    --border: #232a3d;
    --accent: #5b7ffb;
    --accent-ink: #0b0f1a;
    --accent-soft: #182241;
    --shadow: 0 2px 8px rgb(0 0 0 / 0.3), 0 20px 48px rgb(0 0 0 / 0.35);
  }
}
:root[data-theme="dark"]{
  --bg: #0b0f1a;
  --bg-raised: #121729;
  --text: #eef1f7;
  --text-muted: #9aa4b8;
  --border: #232a3d;
  --accent: #5b7ffb;
  --accent-ink: #0b0f1a;
  --accent-soft: #182241;
  --shadow: 0 2px 8px rgb(0 0 0 / 0.3), 0 20px 48px rgb(0 0 0 / 0.35);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
}

img{max-width:100%; display:block;}
[hidden]{display:none!important;}
a{color:inherit; text-decoration:none;}

.font-display{
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}
.mono{
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-feature-settings: "tnum";
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

section{padding-block: 88px;}
@media (max-width: 768px){
  section{padding-block: 56px;}
}

h1,h2,h3{margin:0;}

.section-head{
  max-width: 620px;
  margin-bottom: 40px;
}
.section-head h2{
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 12px;
}
.section-head p{
  color: var(--text-muted);
  font-size: 1.02rem;
  margin:0;
}
.section-head.center{
  margin-inline:auto;
  text-align:center;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor:pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn i{font-size: 1.1em;}
.btn:active{transform: scale(0.97);}

.btn-primary{
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover{box-shadow: 0 10px 24px rgb(41 82 227 / 0.28);}

.btn-secondary{
  background: var(--bg-raised);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover{border-color: var(--accent);}

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-lg{padding: 16px 28px; font-size: 1.05rem;}
@media (max-width: 380px){
  .btn-lg{padding: 14px 20px; font-size: 0.98rem;}
}

/* ===== Nav ===== */
.nav{
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  height: 68px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:"Sora", sans-serif;
  font-weight:700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand svg{flex-shrink:0;}
.nav-actions{display:flex; align-items:center; gap:10px;}
.nav-phone{
  display:none;
}
@media (min-width: 560px){
  .nav-phone{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color: var(--text-muted);
    font-size: 0.92rem;
  }
}

/* Compact icon-only nav buttons below 480px so the bar never overflows */
@media (max-width: 480px){
  .nav .wrap{gap:10px;}
  .brand{font-size:0.92rem; gap:8px;}
  .brand svg{width:28px; height:28px;}
  .nav-actions{gap:8px;}
  .nav-actions .btn{
    padding:0;
    width:44px;
    height:44px;
    justify-content:center;
    border-radius:50%;
  }
  .nav-actions .btn i{font-size:1.25rem;}
  .nav-actions .btn-label{
    position:absolute;
    width:1px; height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
  }
}

/* ===== Hero ===== */
.hero{
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items:center;
}
@media (max-width: 860px){
  .hero .wrap{grid-template-columns: 1fr; gap:32px;}
  .hero{padding-top:36px; padding-bottom:48px;}
}
.hero h1{
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 em{
  font-style: italic;
  color: var(--accent);
  padding-bottom: 2px;
  display:inline-block;
}
.hero p{
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero .cta-row{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.hero-media{
  position:relative;
  border-radius: var(--radius-md);
  overflow:hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}
@media (max-width: 600px){
  .hero-media{aspect-ratio: 4/3;}
}
.hero-media img{
  width:100%; height:100%; object-fit:cover;
}
.hero-route svg{
  width:100%; height:100%; display:block;
}

/* ===== Services (bento, 3 cells) ===== */
.services-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-card--full{grid-column: 1 / -1;}
@media (max-width: 768px){
  .services-grid{grid-template-columns: 1fr;}
}
.service-card{
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 32px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  min-height: 260px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
@media (max-width: 480px){
  .service-card{padding: 24px; min-height:auto;}
}
.service-card:hover{transform: translateY(-3px); border-color: var(--accent);}
.service-card .icon-badge{
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.4rem;
}
.service-card h3{
  font-family:"Sora", sans-serif;
  font-size:1.3rem;
}
.service-card p{color: var(--text-muted); margin:0; max-width:44ch;}
.service-card--primary{
  background: linear-gradient(155deg, var(--dark), #182241);
  color: #fff;
  border-color: transparent;
  justify-content:center;
}
.service-card--primary .icon-badge{background: rgb(255 255 255 / 0.12); color:#fff;}
.service-card--primary p{color: rgb(255 255 255 / 0.72);}
.service-card--primary h3{color:#fff;}

.service-card--photo{
  position:relative;
  background-size: cover;
  background-position: center;
  border-color: transparent;
  overflow:hidden;
}
.service-card--photo::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(190deg, rgb(11 15 26 / 0.1), rgb(11 15 26 / 0.88));
}
.service-card--photo .service-card-overlay{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.service-card--photo .icon-badge{background: rgb(255 255 255 / 0.15); color:#fff;}
.service-card--photo h3{color:#fff;}
.service-card--photo p{color: rgb(255 255 255 / 0.78); margin:0;}

/* ===== Trust strip ===== */
.trust-strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 32px;
}
@media (max-width: 768px){
  .trust-strip{grid-template-columns: repeat(2, 1fr); gap:20px;}
}
@media (max-width: 420px){
  .trust-strip{grid-template-columns: 1fr; gap:18px;}
}
.trust-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.trust-item i{font-size:1.35rem; color:var(--accent); margin-top:2px;}
.trust-item span{font-size:0.94rem; color:var(--text-muted); line-height:1.4;}
.trust-item strong{display:block; font-family:"Sora",sans-serif; font-size:0.98rem; color:var(--text); margin-bottom:2px;}

/* ===== How it works (steps) ===== */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position:relative;
}
@media (max-width: 768px){
  .steps{grid-template-columns: 1fr; gap: 28px;}
}
.step{
  position:relative;
  padding: 8px 24px 8px 0;
}
.step .step-num{
  font-family:"Sora",sans-serif;
  font-size: 2.4rem;
  font-weight:700;
  color: var(--accent-soft);
  -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom:14px;
  line-height:1;
}
.step h3{font-family:"Sora",sans-serif; font-size:1.1rem; margin-bottom:8px;}
.step p{color:var(--text-muted); margin:0; font-size:0.95rem;}

/* ===== Gallery ===== */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item{
  position:relative;
  padding:0;
  border:none;
  background:none;
  border-radius: var(--radius-sm);
  overflow:hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img{transform: scale(1.06);}
.gallery-item:focus-visible{outline: 2px solid var(--accent); outline-offset:2px;}

.lightbox{
  position:fixed;
  inset:0;
  z-index: 300;
  background: rgb(6 8 14 / 0.92);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.lightbox img{
  max-width: 92vw;
  max-height: 88vh;
  width:auto; height:auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
}
.lightbox-close{
  position:absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right:18px;
  width:44px; height:44px;
  border-radius:50%;
  border:none;
  background: rgb(255 255 255 / 0.12);
  color:#fff;
  font-size:1.3rem;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}

/* ===== FAQ ===== */
.faq-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-width: 760px;
}
.faq{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  overflow:hidden;
}
.faq summary{
  cursor:pointer;
  list-style:none;
  padding: 18px 22px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary .plus{
  flex-shrink:0;
  width:22px; height:22px;
  border-radius:50%;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:0.9rem;
  color:var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq[open] summary .plus{transform:rotate(45deg);}
.faq .faq-body{
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width:60ch;
}

/* ===== Contact band ===== */
.contact-band{
  background: linear-gradient(150deg, var(--dark), #182241);
  color:#fff;
  border-radius: var(--radius-md);
  padding: 56px 40px;
  text-align:center;
  margin-inline: 20px;
}
@media (max-width:768px){
  .contact-band{padding: 40px 22px;}
}
.contact-band h2{
  font-family:"Sora",sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin-bottom: 12px;
}
.contact-band p{color: rgb(255 255 255 / 0.72); margin-bottom: 28px;}
.contact-band .cta-row{justify-content:center; display:flex; gap:12px; flex-wrap:wrap;}
.contact-band .btn-secondary{
  background: rgb(255 255 255 / 0.1);
  color:#fff;
  border-color: rgb(255 255 255 / 0.2);
}

/* ===== Footer ===== */
footer{
  padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
  text-align:center;
  color: var(--text-muted);
  font-size: 0.86rem;
}
footer .foot-brand{
  font-family:"Sora",sans-serif;
  color:var(--text);
  font-weight:600;
  margin-bottom:6px;
}

/* ===== Reveal-on-scroll ===== */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none;}
}
