/* style.css — ProfiWifi Design System
   Palette: Deep navy/slate + electric blue accent derived from ProfiWifi brand */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Type scale */
  --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);

  /* Spacing (4px base) */
  --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;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ============================================
   LIGHT MODE (default)
   ============================================ */
:root, [data-theme='light'] {
  /* Surfaces — cool slate-gray */
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-surface-2: #f9fafb;
  --color-surface-offset: #eef0f3;
  --color-divider: #d5d9e0;
  --color-border: #c8cdd6;

  /* Text */
  --color-text: #1a1d26;
  --color-text-muted: #5c6478;
  --color-text-faint: #9aa2b4;
  --color-text-inverse: #f4f5f7;

  /* Primary — ProfiWifi blue */
  --color-primary: #0077c2;
  --color-primary-hover: #005a96;
  --color-primary-active: #004170;
  --color-primary-highlight: #dbeeff;
  --color-primary-light: #e8f4fd;

  /* Accents */
  --color-success: #1a8754;
  --color-warning: #b45309;
  --color-error: #c62828;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 250 / 0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme='dark'] {
  --color-bg: #0f1117;
  --color-surface: #181b24;
  --color-surface-2: #1e2130;
  --color-surface-offset: #161922;
  --color-divider: #2a2e3c;
  --color-border: #353a4a;

  --color-text: #d6dae4;
  --color-text-muted: #8891a5;
  --color-text-faint: #555d72;
  --color-text-inverse: #1a1d26;

  --color-primary: #4da6e8;
  --color-primary-hover: #6cb8f0;
  --color-primary-active: #3990d4;
  --color-primary-highlight: #1c3048;
  --color-primary-light: #151e2e;

  --color-success: #4caf6e;
  --color-warning: #e6a030;
  --color-error: #ef5350;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1117;
    --color-surface: #181b24;
    --color-surface-2: #1e2130;
    --color-surface-offset: #161922;
    --color-divider: #2a2e3c;
    --color-border: #353a4a;
    --color-text: #d6dae4;
    --color-text-muted: #8891a5;
    --color-text-faint: #555d72;
    --color-text-inverse: #1a1d26;
    --color-primary: #4da6e8;
    --color-primary-hover: #6cb8f0;
    --color-primary-active: #3990d4;
    --color-primary-highlight: #1c3048;
    --color-primary-light: #151e2e;
    --color-success: #4caf6e;
    --color-warning: #e6a030;
    --color-error: #ef5350;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
  }
  :root:not([data-theme]) .header__logo-img {
    background: transparent;
  }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container--narrow {
  max-width: var(--content-default);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s var(--ease-out);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-4);
}
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
/* Dark background behind logo in light mode for visibility (white text on dark bg) */
:root .header__logo-img,
[data-theme='light'] .header__logo-img {
  background: #fcfdff;
  padding: 4px 10px;
}
[data-theme='dark'] .header__logo-img {
  background: transparent;
  padding: 4px 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.nav__link:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.06);
}
.nav__link--active {
  color: var(--color-primary);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.06);
}

/* Mobile nav */
/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-full);
  padding: 2px;
}
.lang-btn {
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  line-height: 1;
  cursor: pointer;
}
.lang-btn:hover {
  color: var(--color-text);
}
.lang-btn--active {
  background: var(--color-primary);
  color: #fff;
}
.lang-btn--active:hover {
  color: #fff;
}

.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
@media (max-width: 767px) {
  .nav { display: none; }
  .nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    z-index: 49;
  }
  .nav--open .nav__link {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }
  .nav-mobile-toggle { display: inline-flex; }
  .lang-switcher {
    order: -1;
    margin-right: auto;
    margin-left: var(--space-2);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.15);
}
.hero__badge svg {
  width: 14px;
  height: 14px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero__title-accent {
  color: var(--color-primary);
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero decoration — animated gradient orb */
.hero__decoration {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, oklch(from var(--color-primary) l c h / 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: hero-pulse 6s var(--ease-in-out) infinite alternate;
}
@keyframes hero-pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(-20px, 15px); opacity: 1; }
}

/* Hero enter animations (JS-driven) */
.hero__badge,
.hero__title,
.hero__subtitle,
.hero__actions {
  opacity: 0;
  transform: translateY(20px);
}
.hero__badge.entered,
.hero__title.entered,
.hero__subtitle.entered,
.hero__actions.entered {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive), color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-surface-offset);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}
.btn--danger {
  background: var(--color-error);
  color: #fff;
}
.btn--danger:hover {
  opacity: 0.9;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) 0;
}
.section--alt {
  background: var(--color-surface);
}
.section__header {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Fade in (opacity only — no layout shift) */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
}

/* Clip-path reveal from bottom */
.reveal-up {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}
.reveal-up.visible {
  clip-path: inset(0 0 0 0);
}

/* Clip-path reveal from left */
.reveal-left {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease-out);
}
.reveal-left.visible {
  clip-path: inset(0 0 0 0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children — each child gets a delay set by JS via --stagger-i */
.stagger-children > * {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  transition-delay: calc(var(--stagger-i, 0) * 60ms);
}
.stagger-children.visible > * {
  opacity: 1;
}

/* Section header reveal */
.section__header .section__label,
.section__header .section__title,
.section__header .section__subtitle {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.section__header.visible .section__label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}
.section__header.visible .section__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}
.section__header.visible .section__subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 160ms;
}

/* Parallax background decoration */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============================================
   CSS-NATIVE SCROLL ANIMATIONS (modern browsers)
   ============================================ */
@supports (animation-timeline: scroll()) {
  /* Horizontal progress bar at top */
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform-origin: left;
    z-index: 60;
    animation: scroll-scale linear both;
    animation-timeline: scroll();
  }
  @keyframes scroll-scale {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}
.service-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
  overflow: hidden;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.service-card__icon svg {
  width: 24px;
  height: 24px;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
/* Service card image */
.service-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}
.project-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.project-card__visual {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-highlight), var(--color-surface-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card__visual-icon {
  color: var(--color-primary);
  opacity: 0.3;
}
.project-card__visual-icon svg {
  width: 64px;
  height: 64px;
}
.project-card__body {
  padding: var(--space-5);
}
.project-card__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}
.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.project-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   ABOUT
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 767px) {
  .about-layout { grid-template-columns: 1fr; gap: var(--space-8); }
}
.about__text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}
.stat-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================================
   TECHNOLOGIES
   ============================================ */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.tech-tag:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ============================================
   PARTNERS CAROUSEL
   ============================================ */
.partners-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: var(--space-4) 0;
}
/* Fade edges */
.partners-carousel::before,
.partners-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.partners-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--color-surface), transparent);
}
.partners-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--color-surface), transparent);
}

.partners-track {
  display: flex;
  gap: var(--space-8);
  width: max-content;
  animation: partners-scroll 40s linear infinite;
}
.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo {
  flex-shrink: 0;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.partner-logo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition-interactive);
}
.partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .partner-logo {
    width: 100px;
    height: 50px;
  }
  .partners-carousel::before,
  .partners-carousel::after {
    width: 40px;
  }
}

/* Reduced motion: stop scrolling */
@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 767px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.contact-item__icon svg {
  width: 20px;
  height: 20px;
}
.contact-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.contact-item__value {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-top: var(--space-1);
}
.contact-item__value a {
  color: var(--color-primary);
  text-decoration: none;
}
.contact-item__value a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.form-group {
  margin-bottom: var(--space-4);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-8) 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer__links {
  display: flex;
  gap: var(--space-4);
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--color-primary);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  overflow-y: auto;
}
.admin-overlay.active {
  display: block;
}
.admin-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 101;
}
.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.admin-login {
  max-width: 360px;
  margin: var(--space-16) auto;
  text-align: center;
}
.admin-login h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.admin-login .form-group {
  text-align: left;
}

.admin-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-1);
  overflow-x: auto;
}
.admin-tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: color var(--transition-interactive), background var(--transition-interactive);
  white-space: nowrap;
}
.admin-tab:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.04);
}
.admin-tab.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.admin-section {
  display: none;
  padding: var(--space-4) 0;
}
.admin-section.active {
  display: block;
}

.admin-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.admin-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.admin-row:last-child { border-bottom: none; }
.admin-row__info { flex: 1; min-width: 0; }
.admin-row__title {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.admin-row__subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-row__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Image management in admin */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.image-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition-interactive);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.image-item:hover {
  border-color: var(--color-primary);
}
.image-item.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-item__delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: oklch(0 0 0 / 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-interactive);
  cursor: pointer;
}
.image-item:hover .image-item__delete {
  opacity: 1;
}
.image-item__delete:hover {
  background: var(--color-error);
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.upload-area:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.upload-area.dragging {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.upload-area__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.upload-area__icon {
  color: var(--color-primary);
}

/* Admin modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-backdrop.active {
  display: flex;
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}
.modal__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-5);
}

/* Thumbnail preview in modal */
.image-preview {
  margin-top: var(--space-2);
  max-width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.image-preview img {
  width: 100%;
  height: auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-success);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 300;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--error {
  background: var(--color-error);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-scale,
  .stagger-children > * {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__decoration {
    animation: none !important;
  }
  .section__header .section__label,
  .section__header .section__title,
  .section__header .section__subtitle {
    opacity: 1 !important;
    transform: none !important;
  }
}
