/* ========================================
   COMPUTER AGENCY SERVICE - DESIGN SYSTEM
   ======================================== */

/* TOKENS */
:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #475569;
  --card: #fff;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --focus: #a5b4fc;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-lg: 0 20px 60px rgba(2, 6, 23, 0.12);
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --transition: 0.2s ease;
}

/* BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* UTILITIES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

/* HEADER & NAV */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--fg);
  transition: all var(--transition);
  gap: 4px;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__toggle:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav__link:hover {
  color: var(--fg);
  background: var(--bg);
}

.nav__link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
}

.nav__link[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

.nav__submenu-toggle {
  background: rgba(79, 70, 229, 0.1);
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.125rem 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.625rem;
  width: 20px;
  height: 20px;
  line-height: 1;
  font-weight: 600;
  flex-shrink: 0;
}

.nav__submenu-toggle:hover {
  background: rgba(79, 70, 229, 0.2);
  transform: translateY(1px);
  color: var(--accent);
}

.nav__submenu-toggle:active {
  transform: translateY(2px);
}

.nav__submenu-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  background: rgba(79, 70, 229, 0.2);
}

.nav__submenu-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
  background: rgba(79, 70, 229, 0.15);
}

.nav__link:hover .nav__submenu-toggle {
  background: rgba(79, 70, 229, 0.15);
}

.nav__submenu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  margin: 0;
}

.nav__item:hover .nav__submenu,
.nav__submenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav__submenu li {
  margin: 0;
  padding: 0;
}

.nav__submenu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: var(--radius);
  margin-bottom: 0.25rem;
}

.nav__submenu-link:last-child {
  margin-bottom: 0;
}

.nav__submenu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 0 2px 2px 0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__submenu-link::after {
  content: '→';
  position: absolute;
  right: 1rem;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary);
  font-weight: 600;
}

.nav__submenu-link:hover {
  color: var(--fg);
  background: linear-gradient(to right, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0.04));
  padding-left: 1.25rem;
  transform: translateX(2px);
}

.nav__submenu-link:hover::before {
  transform: translateY(-50%) scaleX(1);
}

.nav__submenu-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.nav__submenu-link:active {
  transform: translateX(2px) scale(0.98);
}

.nav__submenu-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  background: rgba(79, 70, 229, 0.1);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover {
  background: var(--accent);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--ghost:hover {
  background: var(--primary);
  color: white;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.3);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  text-align: center;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

/* GRID & CARDS */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.card__title {
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--muted);
  margin-bottom: 1rem;
}

.card__link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 4rem 0;
  border-radius: var(--radius-lg);
  margin: 4rem 0;
}

.cta-banner__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner__text {
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-banner .btn {
  background: white;
  color: var(--primary);
}

.cta-banner .btn:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

/* FORMS */
.form {
  max-width: 600px;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--fg);
}

.form__label .required {
  color: #dc2626;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form__checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form__status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.form__status--success {
  background: #d1fae5;
  color: #065f46;
}

.form__status--error {
  background: #fee2e2;
  color: #991b1b;
}

/* FOOTER */
.footer {
  background: var(--fg);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer__nav {
  list-style: none;
}

.footer__nav-item {
  margin-bottom: 0.5rem;
}

.footer__nav-link {
  color: #cbd5e1;
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* BREADCRUMBS */
.breadcrumbs {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__item::after {
  content: '/';
  color: var(--muted);
  margin-left: 0.5rem;
}

.breadcrumbs__item:last-child::after {
  display: none;
}

.breadcrumbs__link {
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumbs__link:hover {
  color: var(--fg);
}

.breadcrumbs__item:last-child .breadcrumbs__link {
  color: var(--fg);
  font-weight: 600;
}

/* MEDIA QUERIES */
@media (max-width: 960px) {
  .section {
    padding: 3rem 0;
  }

  .grid--two,
  .grid--three,
  .grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 4rem 0;
  }
}

@media (max-width: 680px) {
  .header__inner {
    padding: 1rem 1.5rem;
  }

  .nav__toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__item {
    border-bottom: 1px solid var(--border);
  }

  .nav__item:last-child {
    border-bottom: none;
  }

  .nav__link {
    padding: 1rem 1.5rem;
    display: block;
    border-radius: 0;
  }

  .nav__link::after {
    display: none;
  }

  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
    border-radius: 0;
    background: var(--bg);
    padding: 0.5rem 0;
    min-width: auto;
  }

  .nav__submenu-link {
    padding-left: 2.5rem;
    margin-bottom: 0;
    border-radius: 0;
  }

  .nav__submenu-link::before {
    display: none;
  }

  .nav__submenu-link::after {
    display: none;
  }

  .nav__submenu-link:hover {
    transform: none;
    padding-left: 2.5rem;
  }

  .grid--two,
  .grid--three,
  .grid--four {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* SKIP TO CONTENT */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-to-content:focus {
  top: 0;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 250px;
  font-size: 0.875rem;
  color: var(--muted);
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-banner__btn--accept {
  background: var(--primary);
  color: white;
}

.cookie-banner__btn--accept:hover {
  background: var(--accent);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.cookie-banner__btn--decline:hover {
  background: var(--bg);
  color: var(--fg);
}

@media (max-width: 680px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1;
  }
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links__item {
  margin: 0;
}

.social-links__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  transition: all var(--transition);
  text-decoration: none;
}

.social-links__link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.social-links__link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* NEWSLETTER FORM */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form__input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
}

.newsletter-form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.newsletter-form__btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.newsletter-form__btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form__input,
  .newsletter-form__btn {
    width: 100%;
  }
}

/* CLIENT LOGOS */
.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 2rem 0;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
}

.client-logos:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.client-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: transform var(--transition);
}

.client-logo:hover {
  transform: scale(1.1);
}

/* SEARCH */
.search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar__input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  transition: border-color var(--transition);
}

.search-bar__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-bar__icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}

.search-results {
  margin-top: 2rem;
}

.search-results__item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.search-results__item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.search-results__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.search-results__snippet {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.search-results__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.search-results__empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

/* TIMELINE */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 3rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
}

.timeline__content h3 {
  margin-bottom: 0.5rem;
}

.timeline__content p {
  color: var(--muted);
}

/* SHARE BUTTONS */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.share-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  transition: all var(--transition);
}

.share-button:hover {
  border-color: var(--primary);
  background: var(--bg);
  transform: translateY(-2px);
}

.share-button svg {
  width: 16px;
  height: 16px;
}

/* READING TIME */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.reading-time svg {
  width: 16px;
  height: 16px;
}

/* AUTHOR INFO */
.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  margin-top: 2rem;
}

.author-info__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.author-info__details h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-info__details p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* RELATED CONTENT */
.related-content {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-content__title {
  margin-bottom: 2rem;
}

.related-content__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* FILTER BUTTONS */
.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.filter-button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* DARK MODE */
[data-theme="dark"] {
  --bg: #0f172a;
  --fg: #f8fafc;
  --muted: #94a3b8;
  --card: #1e293b;
  --border: #334155;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--bg);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* RESOURCE CARD */
.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.resource-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.resource-card__title {
  margin-bottom: 0.5rem;
}

.resource-card__description {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.resource-card__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

/* BOOKING CALENDAR */
.booking-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.booking-widget__title {
  margin-bottom: 1rem;
}

.booking-widget__text {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* PRINT STYLES */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .share-buttons,
  .theme-toggle,
  .nav,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .prose {
    max-width: 100%;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
  }
}

