/* =========================================================
   Just Perfect Studio — styles
   ========================================================= */
:root {
  --navy: #0B1A3A;
  --ink: #0F1B33;
  --text: #33415C;
  --muted: #5B6A86;
  --blue: #1A66FF;
  --blue-dark: #0B3CCF;
  --cyan: #14C2FF;
  --bg: #FFFFFF;
  --soft: #F4F8FF;
  --soft-2: #E8F0FF;
  --line: #DCE6F8;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(26, 79, 214, .28);
  --shadow-sm: 0 6px 20px -10px rgba(26, 79, 214, .25);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.text-blue { color: var(--blue); }
.text-cyan { color: var(--cyan); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn span { font-size: 1.35em; line-height: 0; transform: translateY(-1px); }
.btn-sm { padding: .7em 1.2em; font-size: .95rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #2470FF, var(--blue-dark));
  color: #fff; box-shadow: 0 10px 24px -10px rgba(26, 102, 255, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(26, 102, 255, .8); }
.btn-ghost { color: var(--navy); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 52px; height: auto; }
.brand-divider { width: 2px; height: 38px; background: #8C98AE; border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.22rem; letter-spacing: .02em; }
.brand-sub { font-weight: 700; color: var(--blue); font-size: .78rem; letter-spacing: .48em; margin-top: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 26, 58, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .96rem; }
.site-nav > a:not(.btn):hover { color: var(--blue); }
.header-phone { white-space: nowrap; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 20%, #E3ECFF 0%, rgba(227, 236, 255, 0) 70%),
    radial-gradient(700px 400px at 10% 110%, #EAF6FF 0%, rgba(234, 246, 255, 0) 70%),
    linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: var(--soft-2); padding: .45em 1em; border-radius: 999px; margin-bottom: 1.1em;
}
.eyebrow-light { color: var(--cyan); background: rgba(20, 194, 255, .12); }
.hero h1 { margin-bottom: .45em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: .97rem; }
.hero-points svg { width: 22px; height: 22px; background: var(--blue); border-radius: 50%; padding: 3px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 28px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue-dark));
}
.step p { color: var(--muted); margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--soft-2); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; }

.industries { margin-top: 56px; text-align: center; }
.industries-label { font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.industries ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.industries li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45em 1.1em; font-weight: 600; font-size: .95rem; color: var(--navy); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-meta { padding: 22px 24px 24px; }
.work-meta p { color: var(--muted); margin: 0; font-size: .97rem; }
.mini-site { margin: 18px 18px 0; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.mini-bar { display: flex; gap: 6px; padding: 9px 12px; background: #F3F6FC; }
.mini-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3DCEC; }
.mini-hero { padding: 28px 22px; color: #fff; display: flex; flex-direction: column; gap: 6px; min-height: 160px; justify-content: center; }
.mini-hero b { font-size: 1.15rem; line-height: 1.2; }
.mini-hero span { font-size: .85rem; opacity: .9; }
.mini-hero em { font-style: normal; font-weight: 700; font-size: .8rem; align-self: flex-start; margin-top: 8px; padding: .5em 1em; border-radius: 999px; background: #fff; }
.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.mini-row span { height: 42px; border-radius: 8px; background: #F1F4FA; }
.mini-plumb .mini-hero { background: linear-gradient(135deg, #0E3A7A, #1F7BD8); }
.mini-plumb em { color: #0E3A7A; }
.mini-food .mini-hero { background: linear-gradient(135deg, #7A2E14, #D9692B); }
.mini-food em { color: #7A2E14; }
.mini-salon .mini-hero { background: linear-gradient(135deg, #3D2257, #B0568E); }
.mini-salon em { color: #3D2257; }

/* Why (navy band) */
.section-navy { background: radial-gradient(800px 400px at 90% 0%, #16306B 0%, rgba(22, 48, 107, 0) 70%), var(--navy); color: #C5D1EA; }
.section-navy h2 { color: #fff; }
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.why p { font-size: 1.1rem; margin-bottom: 28px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 18px 22px; display: flex; flex-direction: column; }
.why-list strong { color: #fff; font-size: 1.05rem; }
.why-list span { color: #A9B8D6; font-size: .97rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-list li[hidden] { display: none; }
.contact-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; border: 1px solid var(--line); fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--navy); text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.optional { font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #FBFCFF;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 102, 255, .15); background: #fff; }
.contact-form input.invalid { border-color: #E5484D; }
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0; font-size: .95rem; text-align: center; min-height: 1.4em; color: var(--muted); }
.form-note.ok { color: #138A4B; font-weight: 600; }
.form-note.err { color: #C62F34; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #8F9DBA; padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-divider { background: #44527A; }
.brand-footer .brand-sub { color: var(--cyan); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #C5D1EA; text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.copyright { width: 100%; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0 12px;
  }
  .nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: 0 20px 30px -20px rgba(11, 26, 58, .3);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--soft-2); }
  .site-nav .btn { margin-top: 16px; }
  .hero-inner, .why, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .steps, .features, .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .steps, .features, .work-grid, .field-row { grid-template-columns: 1fr; }
  .brand-mark { width: 44px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: .7rem; letter-spacing: .4em; }
  .brand-divider { height: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
