/* ══════════════════════════════════════════
   MosStack Studio — Design System & Styles
   Minimal / Swiss / Monochrome
══════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────── */
:root,
[data-theme="light"] {
  --color-bg: #f5f5f3;
  --color-surface: #ffffff;
  --color-surface-2: #f9f9f8;
  --color-surface-offset: #f0f0ee;
  --color-divider: #e4e4e2;
  --color-border: #d8d8d6;
  --color-text: #1a1a18;
  --color-text-muted: #6b6b69;
  --color-text-faint: #acacaa;
  --color-text-inverse: #f9f9f8;
  --color-primary: #1a1a18;
  --color-primary-hover: #3a3a38;
  --color-tag-bg: #eeeeec;
  --color-tag-text: #3a3a38;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-default: 960px;
  --content-wide: 1200px;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --font-display: 'Satoshi', 'Inter', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;
}

[data-theme="dark"] {
  --color-bg: #111110;
  --color-surface: #1a1a18;
  --color-surface-2: #202020;
  --color-surface-offset: #252524;
  --color-divider: #2e2e2c;
  --color-border: #383836;
  --color-text: #e8e8e6;
  --color-text-muted: #888886;
  --color-text-faint: #555553;
  --color-text-inverse: #1a1a18;
  --color-primary: #e8e8e6;
  --color-primary-hover: #ffffff;
  --color-tag-bg: #2a2a28;
  --color-tag-text: #c8c8c6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #111110;
    --color-surface: #1a1a18;
    --color-surface-2: #202020;
    --color-surface-offset: #252524;
    --color-divider: #2e2e2c;
    --color-border: #383836;
    --color-text: #e8e8e6;
    --color-text-muted: #888886;
    --color-text-faint: #555553;
    --color-text-inverse: #1a1a18;
    --color-primary: #e8e8e6;
    --color-primary-hover: #ffffff;
    --color-tag-bg: #2a2a28;
    --color-tag-text: #c8c8c6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

/* ── RESET ────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.25s, color 0.25s;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-family: var(--font-display);
}

p { max-width: 72ch; }

button, a {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    opacity var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── LAYOUT ───────────────────────────── */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ── NAV ──────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav__links a:hover { color: var(--color-text); }

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__social {
  display: flex;
  gap: var(--space-3);
}

.nav__social a,
.theme-toggle {
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
}

.nav__social a:hover,
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ── LANG SWITCH ──────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
}

.lang-switch__btn {
  min-width: 44px;
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.lang-switch__btn.is-active {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.lang-switch__btn:hover:not(.is-active) {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* ── HERO ─────────────────────────────── */
.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}

.hero__eyebrow {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.05;
}

.hero__title span { color: var(--color-text-muted); }

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── BUTTONS ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  min-height: 44px;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.btn--primary:hover { opacity: 0.88; }

.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover { background: var(--color-surface-offset); }

/* ── SECTION LABEL ────────────────────── */
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-8);
}

/* ── SECTIONS SPACING ─────────────────── */
.portfolio,
.about,
.contact {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.services,
.about,
.contact {
  border-top: 1px solid var(--color-divider);
}

/* ── ABOUT ────────────────────────────── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-16);
  align-items: start;
}

.about__heading {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  position: sticky;
  top: 80px;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about__body p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ── SKILLS ───────────────────────────── */
.skills__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── TAGS ─────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2em var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-tag-text);
  background: var(--color-tag-bg);
}

/* ── PROJECT CARDS ────────────────────── */
.project-card--featured {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  overflow: hidden;
  margin-bottom: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 320px;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
  color: inherit;
}

.project-card--featured:hover,
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.project-card__info {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.project-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.project-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.project-card__image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-offset);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── PROJECT GRID ─────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
  color: inherit;
}

.project-card .project-card__info { flex: 1; }
.project-card .project-card__image { height: 260px; }
.project-card .project-card__name { font-size: var(--text-lg); }

.portfolio__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ── SERVICES STRIP ───────────────────── */
.services-strip {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-top: 1px solid var(--color-divider);
}

.services-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.service-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  color: inherit;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.service-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-tile__num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
}

.service-tile__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.service-tile__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── CONTACT ──────────────────────────── */
.contact__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 18ch;
}

.contact__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 48ch;
}

.contact__links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* ── FOOTER ───────────────────────────── */
footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

footer p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
  .services-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__social {
    display: none;
  }

  .project-card--featured,
  .project-grid,
  .about__inner {
    grid-template-columns: 1fr;
  }

  .project-card--featured .project-card__image,
  .project-card .project-card__image {
    height: 220px;
  }

  .about__heading {
    position: static;
  }

  footer {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 600px) {
  .services-strip__grid {
    grid-template-columns: 1fr;
  }

  .hero__cta,
  .contact__links {
    flex-direction: column;
  }

  .btn { width: 100%; justify-content: center; }
}

/* ── HAMBURGER ────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE NAV ───────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-6);
  border-top: 1px solid var(--color-divider);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
  letter-spacing: -0.02em;
  transition: color var(--transition-interactive);
}

.mobile-nav a:hover { color: var(--color-text-muted); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
}

/* ── PROCESS ──────────────────────────── */
.process {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
  border-top: 1px solid var(--color-divider);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}

.process__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process__num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
}

.process__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.process__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .process__grid { grid-template-columns: 1fr; }
}

/* ── TESTIMONIALS ─────────────────────── */
.testimonials {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
  border-top: 1px solid var(--color-divider);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.testimonial__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  flex: 1;
  max-width: none;
}

.testimonial__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ── CONTACT FORM ─────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.contact__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: 80px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 12%, transparent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b69' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.btn--submit { align-self: flex-start; min-width: 140px; justify-content: center; }
.btn--submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
}

.form-success p {
  font-size: var(--text-base);
  color: var(--color-text);
  max-width: none;
}

@media (max-width: 768px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__header { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .btn--submit { width: 100%; }
}

/* ── NAV ACTIVE LINK ──────────────────── */
.nav__link--active {
  color: var(--color-text) !important;
  font-weight: 600;
}

/* ── CONTACT PAGE ─────────────────────── */
.contact-process {
  border-top: 1px solid var(--color-divider);
}

.contact-page {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
  border-top: 1px solid var(--color-divider);
}

.contact-page__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(var(--space-12), 7vw, var(--space-24));
  align-items: start;
}

.contact-page__info {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-page__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
}

.contact-page__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.contact-page__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-detail svg { flex-shrink: 0; }
.contact-detail a {
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}
.contact-detail a:hover { color: var(--color-text); }

.contact-page__availability {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* Form on contact page */
.contact-form--page {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: color-mix(in oklab, #22c55e 8%, var(--color-surface));
  border: 1px solid color-mix(in oklab, #22c55e 25%, transparent);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-success svg { color: #22c55e; flex-shrink: 0; }
.form-success p { max-width: none; }

/* ── FAQ ──────────────────────────────── */
.faq {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
  border-top: 1px solid var(--color-divider);
}

.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-divider);
}

.faq__item {
  border-bottom: 1px solid var(--color-divider);
}

.faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b6b69' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
}

.faq__item[open] .faq__q::after {
  transform: rotate(180deg);
}

.faq__a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  padding-bottom: var(--space-6);
  max-width: 65ch;
}

/* ── CONTACT PAGE RESPONSIVE ──────────── */
@media (max-width: 768px) {
  .contact-page__inner {
    grid-template-columns: 1fr;
  }
  .contact-page__info { position: static; }
  .form-actions { flex-direction: column; align-items: flex-start; }
  .btn--submit { width: 100%; justify-content: center; }
}

/* ── CONTACT CTA (homepage) ───────────── */
.contact-cta {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  border-top: 1px solid var(--color-divider);
}

.contact-cta__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  max-width: 18ch;
}

.contact-cta__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.contact-cta__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .contact-cta__actions { flex-direction: column; }
  .contact-cta__actions .btn { width: 100%; justify-content: center; }
}

/* form-success 預設隱藏，送出後顯示 */
.form-success { display: none; }
.form-success.is-visible { display: flex; }

/* ── CONSULT CTA ──────────────────────── */
.contact-cta__consult {
  margin-top: var(--space-8);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 640px;
}

.consult-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #22c55e;
}

.consult-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s infinite;
}

.consult-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.consult-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 52ch;
}

/* ── CONTACT INSTANT BTNS ─────────────── */
.contact-instant {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-2);
}

.contact-instant__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  max-width: none;
}

.contact-instant__btns {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.btn--instant {
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
}

/* ── FLOATING CONTACT BUTTONS ─────────── */
.float-contact {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.float-btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.float-btn--line {
  background: #06c755;
  color: #fff;
}

@media (max-width: 480px) {
  .float-contact {
    bottom: var(--space-4);
    right: var(--space-4);
  }
  .float-btn {
    width: 46px;
    height: 46px;
  }
}

/* ── SERVICE PAGE ─────────────────────── */
.service-price-badge {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}
.service-price__from {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
}
.service-price__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.service-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: var(--color-text);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
}
.service-includes {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.service-includes__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
  max-width: none;
}
.service-includes ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-includes li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}
.service-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--text-xs);
}
.services__highlight {
  background: var(--color-surface);
  border-top: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
}

/* ── SERVICES OVERVIEW STRIP ──────────── */
.services-overview {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: var(--space-5);
}
.services-overview__grid {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.services-overview__grid::-webkit-scrollbar { display: none; }
.services-overview__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-right: 1px solid var(--color-divider);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition-interactive);
}
.services-overview__item:last-child { border-right: none; }
.services-overview__item:hover { background: var(--color-surface-offset); }
.services-overview__num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
}
.services-overview__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* ── SERVICE SECTION ──────────────────── */
.service-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  border-top: 1px solid var(--color-divider);
}
.service-section--alt {
  background: var(--color-surface);
}
.service-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.service-section__header {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-section__num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}
.service-section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.15;
}
.service-section__price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.service-section__price strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-left: var(--space-2);
}
.service-section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: none;
  margin-top: var(--space-2);
}
.service-section__cases {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.service-case-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* Service body blocks */
.service-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.service-detail-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-detail-block__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  max-width: none;
}
.service-detail-block p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}
.service-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-checklist li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.65;
}
.service-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--text-xs);
  top: 2px;
}

@media (max-width: 768px) {
  .service-section__inner { grid-template-columns: 1fr; }
  .service-section__header { position: static; }
  .services-overview__item { padding-inline: var(--space-4); }
}

/* ── FLOAT CONTACT z-index fix ────────── */
/* 確保浮動按鈕不遮住 nav 的點擊範圍 */
.float-contact {
  pointer-events: none;
}
.float-btn {
  pointer-events: auto;
}
.nav {
  z-index: 300;
}
.mobile-nav {
  z-index: 299;
}
