/* ==========================================================================
   Smart Systems - style.css
   Palette from the logo: deep navy (ink), blue and orange.
   Motion is gentle and switches off for visitors who prefer reduced motion.
   ========================================================================== */

:root {
  --ink: #0a1a33;
  --ink-2: #102a52;
  --blue: #1d5fa6;
  --sky: #6db0f5;
  --orange: #f0822b;
  --orange-deep: #dc6d17;
  --paper: #f3f6fb;
  --white: #ffffff;
  --line: rgba(10, 26, 51, 0.13);
  --line-light: rgba(255, 255, 255, 0.16);
  --muted: #52617a;
  --muted-light: #b6c3d9;

  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
a { color: inherit; }
address { font-style: normal; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 300; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Reading progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; z-index: 250; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.round-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--ink); color: var(--ink); text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.round-btn:hover { background: var(--ink); color: var(--white); transform: rotate(-12deg); }

/* ---------- Top hiring bar ---------- */
.topbar { background: var(--ink); color: var(--muted-light); font-size: 0.9375rem; }
.topbar__inner { padding-top: 9px; padding-bottom: 9px; }
.topbar p { margin: 0; line-height: 1.45; }
.topbar strong { color: var(--white); }
.topbar a { color: var(--orange); font-weight: 600; text-underline-offset: 3px; }
.topbar a:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(243, 246, 251, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(10, 26, 51, 0.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; transition: min-height 0.3s; }
.site-header.is-scrolled .header__inner { min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand__tag { font-size: 0.78rem; color: var(--muted); }

.nav { display: none; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; transition: background 0.2s, color 0.2s; }
.nav a:hover { background: rgba(29, 95, 166, 0.1); }
.nav a.is-active { background: var(--ink); color: var(--white); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { display: none; padding: 14px 22px; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-weight: 600; color: var(--ink);
  background: none; border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle__bars i { display: block; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-open .menu-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Full-screen menu (phones and tablets) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: var(--white);
  padding-top: 150px; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 9vw, 3.6rem);
  letter-spacing: -0.03em; text-decoration: none; padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
}
.menu__list a span { font-size: 0.95rem; color: var(--orange); font-weight: 600; letter-spacing: 0; }
.menu__list a:hover { color: var(--orange); }
.menu__foot { display: grid; gap: 8px; padding: 32px 0 48px; color: var(--muted-light); }
.menu__foot a { color: var(--white); text-underline-offset: 3px; }
@media (min-width: 900px) { .menu { display: none; } }

/* ---------- Typography helpers ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--blue); margin-bottom: 18px; }
.kicker b { color: var(--orange); font-weight: 700; }
.kicker::after { content: ''; width: 40px; height: 2px; background: currentColor; opacity: 0.35; }
.dark .kicker { color: var(--sky); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.dark .lead { color: var(--muted-light); }
.muted { color: var(--muted); }

/* Orange hand-drawn underline on key words */
.swash {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat; background-position: 0 92%;
  background-size: 100% 0.14em; padding-bottom: 0.02em;
}
.js .swash { background-size: 0% 0.14em; transition: background-size 1.1s var(--ease) 0.5s; }
.js .is-ready .swash { background-size: 100% 0.14em; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--white { background: var(--white); }
.dark { background: var(--ink); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 64px; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 640px; height: 640px; right: -180px; top: -200px;
  background: radial-gradient(circle at 50% 50%, rgba(29, 95, 166, 0.16), transparent 68%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 72px; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 12px; font-size: 0.9rem; font-weight: 500; margin-bottom: 28px;
}
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(240, 130, 43, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(240, 130, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 130, 43, 0); } }

.hero h1 { font-size: clamp(2.9rem, 8.4vw, 6.6rem); line-height: 0.98; letter-spacing: -0.045em; margin-bottom: 26px; }
.hero__rotor { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin-bottom: 18px; letter-spacing: -0.02em; }
.rotor-word { display: inline-block; color: var(--blue); transition: opacity 0.3s, transform 0.3s var(--ease); }
.rotor-word.out { opacity: 0; transform: translateY(-10px); }

.hero__visual { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero__photo { border-radius: 28px 28px 140px 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); box-shadow: 0 30px 60px -20px rgba(10, 26, 51, 0.45); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__ring { position: absolute; width: 150px; height: 150px; border: 2px dashed var(--blue); border-radius: 50%; right: -34px; top: -34px; opacity: 0.35; animation: spin 40s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  position: absolute; background: var(--white); border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 18px 40px -12px rgba(10, 26, 51, 0.3);
  animation: float 6s ease-in-out infinite;
}
.badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; letter-spacing: -0.04em; }
.badge span { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.badge--a { left: -22px; bottom: 44px; }
.badge--a strong { color: var(--blue); }
.badge--b { right: -14px; top: 40px; animation-delay: -3s; background: var(--ink); }
.badge--b strong { color: var(--orange); }
.badge--b span { color: var(--muted-light); }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 520px) { .badge--a { left: -8px; } .badge--b { right: -6px; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--white); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2.6vw, 1.8rem); letter-spacing: -0.02em; white-space: nowrap; padding: 0 26px; }
.marquee__item::after { content: '✦'; color: var(--orange); margin-left: 52px; font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.stat { padding: 28px 0 8px; }
.stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__n { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -0.05em; line-height: 1; color: var(--blue); }
.stat__l { margin: 10px 0 0; color: var(--muted); font-weight: 500; }
@media (min-width: 820px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 32px 28px 8px; border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 28px; }
}

/* ---------- Service rows ---------- */
.srows { border-bottom: 1px solid var(--line); }
.srow {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 40px 1fr 44px; gap: 6px 16px; align-items: center;
  padding: 26px 10px; border-top: 1px solid var(--line); text-decoration: none;
  transition: color 0.35s;
}
.srow::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); z-index: -1; }
.srow:hover::before, .srow:focus-visible::before { transform: scaleY(1); }
.srow:hover, .srow:focus-visible { color: var(--white); }
.srow__n { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--orange); }
.srow__t { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.35rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.srow__d { grid-column: 2; margin: 0; color: var(--muted); transition: color 0.35s; }
.srow:hover .srow__d, .srow:focus-visible .srow__d { color: var(--muted-light); }
.srow__a { grid-column: 3; grid-row: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid currentColor; transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.srow:hover .srow__a { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: rotate(-45deg); }
@media (min-width: 900px) {
  .srow { grid-template-columns: 56px 1fr 1.25fr 52px; gap: 24px; padding: 30px 18px; }
  .srow__d { grid-column: 3; }
  .srow__a { grid-column: 4; }
}

/* ---------- Product cards ---------- */
.products { display: grid; gap: 18px; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.pcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(26px, 3vw, 38px); min-height: 260px;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.pcard::after { content: ''; position: absolute; width: 220px; height: 220px; right: -90px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 130, 43, 0.35), transparent 68%); transition: transform 0.5s var(--ease); }
.pcard:hover { transform: translateY(-6px); border-color: var(--orange); }
.pcard:hover::after { transform: scale(1.5); }
.pcard__n { font-family: var(--font-head); font-weight: 600; color: var(--orange); font-size: 0.95rem; }
.pcard h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pcard__tag { display: inline-block; align-self: flex-start; font-size: 0.85rem; font-weight: 500; color: var(--sky); border: 1px solid var(--line-light); border-radius: 999px; padding: 4px 12px; }
.pcard p { margin: 0; color: var(--muted-light); max-width: 34em; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 0.95fr 1.05fr; gap: 80px; } .split--flip .split__media { order: 2; } }
.split__media { position: relative; }
.split__media img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 140px 28px 28px 28px; box-shadow: 0 30px 60px -24px rgba(10, 26, 51, 0.4); }
.split__stamp { position: absolute; right: -10px; bottom: 28px; background: var(--orange); color: var(--ink); padding: 14px 20px; border-radius: 14px; font-family: var(--font-head); font-weight: 700; line-height: 1.15; box-shadow: 0 16px 30px -12px rgba(220, 109, 23, 0.6); }
.split__stamp small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.82rem; opacity: 0.85; }
.facts { display: grid; gap: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.facts li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); transform: translateY(-1px); }

/* ---------- Process ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 28px 0 28px 64px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 26px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; background: var(--ink); color: var(--white);
  transition: background 0.3s, color 0.3s;
}
.step:hover::before { background: var(--orange); color: var(--ink); }
.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); max-width: 26em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding: 70px 0 0; border-top: 2px solid var(--ink); }
  .step::before { top: -23px; }
}

/* ---------- Call to action band ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink-2); color: var(--white); padding: clamp(64px, 9vw, 112px) 0; }
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.cta::before { width: 520px; height: 520px; left: -160px; bottom: -280px; background: radial-gradient(circle, rgba(109, 176, 245, 0.3), transparent 68%); }
.cta::after { width: 420px; height: 420px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(240, 130, 43, 0.35), transparent 68%); }
.cta__inner { position: relative; display: grid; gap: 32px; }
.cta h2 { font-size: clamp(2.1rem, 5.4vw, 4.2rem); max-width: 14em; color: var(--white); }
.cta p { color: var(--muted-light); margin: 0; max-width: 30em; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.page-hero::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(circle, rgba(29, 95, 166, 0.16), transparent 68%); pointer-events: none; }
.page-hero h1 { position: relative; font-size: clamp(2.6rem, 7.4vw, 5.4rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 22px; }
.crumbs { display: flex; gap: 10px; font-size: 0.92rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-underline-offset: 3px; }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: 0.5; }

/* ---------- About ---------- */
.story { display: grid; gap: 36px; }
@media (min-width: 900px) { .story { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; } .story__title { position: sticky; top: 110px; } }
.story__body p { font-size: 1.15rem; }
.story__body p:first-child { font-size: 1.3rem; color: var(--ink); font-weight: 500; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 22px; }
.tcard__img { position: relative; aspect-ratio: 270 / 331; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.5s, transform 0.6s var(--ease); }
.tcard:hover .tcard__img img { filter: none; transform: scale(1.05); }
.tcard h3 { font-size: 1.2rem; margin-top: 16px; }
.tcard p { margin: 2px 0 0; color: var(--blue); font-weight: 500; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.social .icon { width: 18px; height: 18px; }

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.logos li { display: grid; place-items: center; height: 104px; padding: 16px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.logos li:hover { transform: translateY(-4px); border-color: var(--blue); }
.logos img { max-height: 100%; width: auto; object-fit: contain; }

.notice { display: grid; gap: 20px; padding: clamp(28px, 4vw, 48px); background: var(--ink); color: var(--white); border-radius: var(--radius); position: relative; overflow: hidden; }
.notice::after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 130, 43, 0.45), transparent 68%); }
.notice h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.notice p { color: var(--muted-light); margin: 0; max-width: 34em; }
@media (min-width: 820px) { .notice { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Services page detail ---------- */
.sdetail { display: grid; gap: 14px; padding: 38px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.sdetail:last-child { border-bottom: 1px solid var(--line); }
.sdetail h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.sdetail__n { font-family: var(--font-head); font-weight: 600; color: var(--orange); }
.sdetail p { margin: 0 0 6px; color: var(--muted); max-width: 34em; }
.sdetail__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); text-decoration: none; }
.sdetail__link .icon { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.sdetail__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sdetail__link:hover .icon { transform: translateX(4px); }
@media (min-width: 900px) { .sdetail { grid-template-columns: 90px 1fr 1.2fr; gap: 32px; align-items: start; padding: 48px 0; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.25fr 0.75fr; gap: 72px; align-items: start; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-bottom-color: #9aa8bb; border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 8px; font-weight: 500; }
.alert--ok { background: #e3f6ee; color: #0d5a40; border: 1px solid #a8dfc7; }
.alert--error { background: #fdeceb; color: #8d1f19; border: 1px solid #f3b4b0; }
.alert ul { margin: 0; padding-left: 1.1em; list-style: disc; }

.info { display: grid; gap: 16px; }
.info__item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s; }
.info__item:hover { transform: translateY(-3px); border-color: var(--blue); }
.info__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--orange); }
.info__item h3 { font-size: 1rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.info__item p, .info__item a { margin: 0; color: var(--muted); text-underline-offset: 3px; }
.info__item a:hover { color: var(--blue); }

.map { margin-top: clamp(48px, 7vw, 80px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: clamp(56px, 8vw, 88px) 0 0; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.4fr 0.7fr 1fr 1.2fr; gap: 48px; } }
.footer__logo { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.04em; color: var(--white); margin: 0 0 4px; }
.footer__tag { margin-bottom: 22px; }
.footer__title { font-size: 1rem; color: var(--white); margin-bottom: 14px; letter-spacing: -0.01em; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: var(--muted-light); text-underline-offset: 3px; transition: color 0.2s; }
.site-footer a:hover { color: var(--orange); }
.site-footer address { margin-bottom: 10px; }
.site-footer .btn--primary, .site-footer .btn--primary:hover { color: var(--ink); text-decoration: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding: 22px 0 28px; border-top: 1px solid var(--line-light); font-size: 0.93rem; }
.footer__bottom p { margin: 0; }

/* Floating call button (phones) */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: var(--ink); box-shadow: 0 14px 30px -8px rgba(220, 109, 23, 0.7); }
.fab .icon { width: 24px; height: 24px; }
@media (min-width: 900px) { .fab { display: none; } }
.menu-open .fab { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- Reduced motion: no movement, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .swash { background-size: 100% 0.14em; transition: none; }
  .marquee__track, .badge, .hero__ring, .pill i { animation: none; }
  .btn, .round-btn, .srow::before, .pcard, .pcard::after, .tcard__img img { transition: none; }
}

.hero__visual { isolation: isolate; }

/* ---------- Small phones: keep the header on one line ---------- */
@media (max-width: 559px) {
  .header__actions .round-btn { display: none; }   /* the floating call button covers this on phones */
  .header__inner { gap: 12px; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.05rem; }
}
