/* ─── Navbar ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  border-bottom: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  color: var(--neutral-0);
  letter-spacing: -0.01em;
}

.nav-brand:hover { color: rgba(255,255,255,0.8); }

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

.nav-link {
  font-size: var(--text-heading);
  font-weight: var(--weight-regular);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  transition: color var(--duration-fast) var(--easing-base);
}

.nav-link:hover { color: var(--neutral-0); }

.nav-link.is-active {
  color: var(--neutral-0);
  font-weight: var(--weight-semibold);
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

/* ─── Hamburger ──────────────────────────────────────── */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--neutral-0);
  transition: background var(--duration-fast) var(--easing-base);
}

.nav-toggle:hover { background: rgba(255,255,255,0.15); }

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

.nav-toggle-icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration-base) var(--easing-base),
              opacity var(--duration-base) var(--easing-base),
              top var(--duration-base) var(--easing-base);
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 6px; }
.nav-toggle-icon span:nth-child(3) { top: 12px; }

/* open state — X */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--accent);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: var(--space-3) 0;
}

.nav-drawer.is-open { display: flex; }

.nav-drawer .nav-link {
  padding: var(--space-3) var(--space-4);
  border-radius: 0;
}

.nav-drawer .lang-switcher {
  margin: var(--space-3) var(--space-4) 0;
  padding: var(--space-3) 0 0;
  border-left: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-left: 0;
  margin-left: var(--space-4);
}

.nav-desktop {
  display: flex;
  align-items: center;
}

@media (max-width: 639px) {
  .nav-toggle  { display: flex; align-items: center; justify-content: center; }
  .nav-desktop { display: none; }
}

/* ─── Language Switcher ──────────────────────────────── */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-4);
  padding-left: var(--space-4);
  border-left: 1px solid rgba(255,255,255,0.3);
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  color: rgba(255,255,255,0.7);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--easing-base),
              background var(--duration-fast) var(--easing-base);
}

.lang-btn:hover { color: var(--neutral-0); background: rgba(255,255,255,0.15); }

.lang-btn.is-active {
  color: var(--neutral-0);
  font-weight: var(--weight-semibold);
}

.lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

/* ─── Button ─────────────────────────────────────────── */

.btn {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-body);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);  /* 16px 24px — spec: Button padding */
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--easing-base),
    border-color var(--duration-fast) var(--easing-base),
    color var(--duration-fast) var(--easing-base);
  text-decoration: none;
  white-space: nowrap;
}

/* Primary — Orange */
.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}
.btn-primary:hover  { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); border-color: var(--accent-active); }

/* Secondary — Green (outlined) */
.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-secondary:hover  { background: var(--secondary-tint); border-color: var(--secondary-hover); color: var(--secondary-hover); }
.btn-secondary:active { background: var(--green-tint); }

/* Ghost — neutral */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover  { background: var(--bg-subtle); color: var(--text-primary); }
.btn-ghost:active { background: var(--border-default); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Card ───────────────────────────────────────────── */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--gap-inner);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 24px;
  height: 24px;
  color: var(--secondary);
  flex-shrink: 0;
}

.card-title {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-heading);
  color: var(--text-primary);
}

.card-body {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--text-secondary);
}

/* ─── Input Field ────────────────────────────────────── */

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

.field-label {
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-caption);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-input,
.field-textarea {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  width: 100%;
  transition:
    border-color var(--duration-fast) var(--easing-base),
    box-shadow var(--duration-fast) var(--easing-base);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-muted); }

.field-input:hover,
.field-textarea:hover { border-color: var(--text-muted); }

.field-input:focus-visible,
.field-textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.field-input:disabled,
.field-textarea:disabled {
  background: var(--bg-subtle);
  color: var(--text-disabled);
  cursor: not-allowed;
}

.field-hint {
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: var(--leading-caption);
}

/* ─── Callout ────────────────────────────────────────── */

.callout {
  background: var(--orange-tint);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.callout-title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--accent-active);
  line-height: var(--leading-body);
}

.callout-body {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--text-secondary);
}

/* ─── Profile Layout ─────────────────────────────────── */

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

@media (min-width: 768px) {
  .profile-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-7);
  }
}

.profile-image-wrap {
  flex-shrink: 0;
}

.profile-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border-default);
  display: block;
}

@media (min-width: 768px) {
  .profile-image {
    width: 200px;
    height: 200px;
  }
}

/* ─── Bio ────────────────────────────────────────────── */

.bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bio p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text-secondary);
}

/* ─── Sidebar ────────────────────────────────────────── */

.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-default);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--gap-inner);
}

.sidebar-title {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-link {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition:
    background var(--duration-fast) var(--easing-base),
    color var(--duration-fast) var(--easing-base);
}

.sidebar-link:hover { background: var(--bg-subtle); color: var(--text-primary); }

.sidebar-link.is-active {
  background: var(--orange-tint);
  color: var(--accent);
  font-weight: var(--weight-semibold);
}

/* ─── Slide-in ───────────────────────────────────────── */

.slide-in {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}

.slide-in.is-open { visibility: visible; }

.slide-in-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 43, 0.35);
  opacity: 0;
  transition: opacity var(--duration-base) var(--easing-base);
}

.slide-in.is-open .slide-in-backdrop { opacity: 1; }

.slide-in-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--gap-inner);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--easing-base);
}

.slide-in.is-open .slide-in-panel { transform: translateX(0); }

.slide-in-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-default);
}

.slide-in-title {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-heading);
  color: var(--text-primary);
}

.slide-in-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition:
    background var(--duration-fast) var(--easing-base),
    color var(--duration-fast) var(--easing-base);
}

.slide-in-close:hover { background: var(--bg-subtle); color: var(--text-primary); }

.slide-in-close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Legal Document ─────────────────────────────────── */

.legal-doc {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.legal-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.legal-heading {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-heading);
  color: var(--text-primary);
}

.legal-subheading {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-body);
  color: var(--text-primary);
  margin-top: var(--space-2);
}

.legal-meta {
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: var(--leading-caption);
}

.legal-block p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text-secondary);
}

.legal-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover { color: var(--accent-hover); }

.legal-divider {
  height: 1px;
  background: var(--border-default);
}

/* ─── Footer ─────────────────────────────────────────── */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  padding: var(--space-5) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copy {
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: var(--leading-caption);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.visitor-counter {
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: var(--leading-caption);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.visitor-count-value {
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}

/* ─── Service List ───────────────────────────────────── */

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.service-list-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text-primary);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border-default);
}

.service-list-item::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}
