/* ============================================
   MAIN STYLESHEET - PHP CMS
   Modern Minimal Design System
   ============================================ */

/* --------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------- */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #e94560;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e0e0e0;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --size-base: 16px;
  --size-h1: 42px;
  --size-h2: 32px;
  --size-h3: 24px;
  --size-h4: 20px;
  --size-h5: 18px;
  --size-h6: 16px;
  --size-small: 14px;
  --size-xs: 12px;

  --line-height: 1.6;
  --line-height-heading: 1.2;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-section: 80px;

  --radius: 2px;
  --radius-lg: 4px;

  --container-width: 1200px;
  --container-narrow: 800px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --header-height: 70px;

  --btn-padding-x: 28px;
  --btn-padding-y: 12px;
  --btn-radius: 2px;
}

/* --------------------------------------------
   2. CSS RESET (Minimal)
   -------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

fieldset {
  border: none;
}

/* --------------------------------------------
   3. LAYOUT SYSTEM
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: 1400px;
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
}

.flex--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex--column {
  display: flex;
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--gap {
  gap: var(--spacing-lg);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-size: var(--size-h4); }
h5 { font-size: var(--size-h5); }
h6 { font-size: var(--size-h6); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.text-small {
  font-size: var(--size-small);
}

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

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

.text-accent {
  color: var(--color-accent);
}

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

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  font-style: italic;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: var(--radius);
}

pre {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: var(--spacing-lg);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--spacing-xl) 0;
}

/* --------------------------------------------
   5. BUTTONS
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-accent);
}

.btn--secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: transparent;
  color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  padding: var(--spacing-sm) var(--spacing-md);
}

.btn--ghost:hover {
  background: var(--color-bg-alt);
}

.btn--sm {
  padding: 8px 16px;
  font-size: var(--size-small);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.btn:disabled,
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-group {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* --------------------------------------------
   6. CARDS
   -------------------------------------------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card__body {
  padding: var(--spacing-lg);
}

.card__title {
  font-size: var(--size-h4);
  margin-bottom: var(--spacing-sm);
}

.card__text {
  color: var(--color-text-light);
  font-size: var(--size-small);
  margin-bottom: var(--spacing-md);
}

.card__meta {
  font-size: var(--size-xs);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.card__footer {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

/* --------------------------------------------
   7. FORMS & INPUTS
   -------------------------------------------- */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.form-label--required::after {
  content: ' *';
  color: var(--color-accent);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--size-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-input::placeholder {
  color: #aaa;
}

.form-input--error {
  border-color: var(--color-danger);
}

.form-error {
  font-size: var(--size-xs);
  color: var(--color-danger);
  margin-top: var(--spacing-xs);
}

.form-help {
  font-size: var(--size-xs);
  color: var(--color-text-light);
  margin-top: var(--spacing-xs);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

/* --------------------------------------------
   8. TABLES
   -------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: var(--size-small);
  color: var(--color-primary);
  white-space: nowrap;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--color-bg-alt);
}

.table--striped tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

/* --------------------------------------------
   9. HEADER / NAVIGATION
   -------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav__link {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--spacing-sm) 0;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--spacing-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--size-small);
  color: var(--color-text);
  transition: background var(--transition);
}

.nav__dropdown-item:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.nav__cta {
  margin-left: var(--spacing-md);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition);
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------
   10. HERO SECTION
   -------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  overflow: hidden;
}

.hero--full {
  min-height: calc(100vh - var(--header-height));
}

.hero--clean {
  background: var(--color-bg-alt);
}

.hero--clean .hero__content {
  max-width: 700px;
  margin: 0 auto;
}

.hero--has-bg .hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero--has-bg .hero__title {
  color: var(--color-white);
}

.hero--has-bg .hero__subtitle {
  color: rgba(255,255,255,0.85);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg-picture {
  position: absolute;
  inset: 0;
}

.hero__bg-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--spacing-section) var(--spacing-md);
  width: 100%;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero--align-left .hero__content { text-align: left; }
.hero--align-center .hero__content { text-align: center; }
.hero--align-right .hero__content { text-align: right; }

.hero--align-left .hero__actions { justify-content: flex-start; }
.hero--align-center .hero__actions { justify-content: center; }
.hero--align-right .hero__actions { justify-content: flex-end; }

.hero--align-center .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero--align-right .hero__subtitle {
  margin-left: auto;
}

.hero--video {
  position: relative;
}

.hero--video .hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero--video .hero__title {
  color: var(--color-white);
}

.hero--video .hero__subtitle {
  color: rgba(255,255,255,0.85);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--slider {
  position: relative;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide .hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero__slide .hero__title,
.hero--slider .hero__title {
  color: #ffffff;
}

.hero__slide .hero__subtitle,
.hero--slider .hero__subtitle {
  color: rgba(255,255,255,0.85);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
}

.hero__arrow:hover {
  background: rgba(255,255,255,0.3);
}

.hero__arrow--prev {
  left: 20px;
}

.hero__arrow--next {
  right: 20px;
}

.hero__dots {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}

.hero__dot.active {
  background: var(--color-white);
}

/* --------------------------------------------
   11. SECTIONS
   -------------------------------------------- */
.section {
  padding: var(--spacing-section) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255,255,255,0.8);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-2xl);
}

.section__header h2 {
  margin-bottom: var(--spacing-sm);
}

.section__header p {
  color: var(--color-text-light);
}

.section__label {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

/* --------------------------------------------
   12. SERVICE CARDS
   -------------------------------------------- */
.service-card {
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-md);
  color: var(--color-accent);
  font-size: 1.5rem;
}

.service-card__title {
  font-size: var(--size-h4);
  margin-bottom: var(--spacing-sm);
}

.service-card__text {
  color: var(--color-text-light);
  font-size: var(--size-small);
}

/* --------------------------------------------
   13. TEAM CARDS
   -------------------------------------------- */
.team-card {
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  transition: transform var(--transition);
}

.team-card:hover {
  transform: translateY(-2px);
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card__body {
  padding: var(--spacing-lg);
}

.team-card__name {
  font-size: var(--size-h5);
  margin-bottom: var(--spacing-xs);
}

.team-card__role {
  font-size: var(--size-small);
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
}

.team-card__socials {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.team-card__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-light);
  transition: all var(--transition);
}

.team-card__social:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* --------------------------------------------
   14. PORTFOLIO GRID
   -------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}

.portfolio-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-item__image {
  transform: scale(1.05);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  padding: var(--spacing-md);
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__title {
  color: var(--color-white);
  font-size: var(--size-h5);
  margin-bottom: var(--spacing-xs);
}

.portfolio-item__category {
  color: var(--color-accent);
  font-size: var(--size-small);
  margin-bottom: var(--spacing-md);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.portfolio-filter__btn {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--color-text-light);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.portfolio-filter__btn:hover,
.portfolio-filter__btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* --------------------------------------------
   15. BLOG CARDS
   -------------------------------------------- */
.blog-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition);
}

.blog-card:hover {
  transform: translateY(-2px);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--spacing-lg);
}

.blog-card__date {
  font-size: var(--size-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
}

.blog-card__title {
  font-size: var(--size-h4);
  margin-bottom: var(--spacing-sm);
}

.blog-card__title a {
  color: var(--color-primary);
}

.blog-card__title a:hover {
  color: var(--color-accent);
}

.blog-card__excerpt {
  font-size: var(--size-small);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.blog-card__author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--size-xs);
  color: var(--color-text-light);
}

.blog-card__author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* --------------------------------------------
   16. DETAIL PAGE
   -------------------------------------------- */
.detail {
  padding: var(--spacing-section) 0;
}

.detail__header {
  max-width: var(--container-narrow);
  margin: 0 auto var(--spacing-xl);
}

.detail__title {
  font-size: var(--size-h1);
  margin-bottom: var(--spacing-md);
}

.detail__meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: var(--size-small);
  color: var(--color-text-light);
  flex-wrap: wrap;
}

.detail__cover {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--spacing-xl);
}

.detail__content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.detail__content h2 {
  margin-top: var(--spacing-xl);
}

.detail__content p {
  margin-bottom: var(--spacing-md);
}

.detail__content ul,
.detail__content ol {
  list-style: disc;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.detail__content ol {
  list-style: decimal;
}

.detail__content li {
  margin-bottom: var(--spacing-sm);
}

.detail__content img {
  border-radius: var(--radius);
  margin: var(--spacing-lg) 0;
}

.detail__sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-lg));
}

.detail__sidebar-section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.detail__sidebar-section h4 {
  margin-bottom: var(--spacing-md);
  font-size: var(--size-h5);
}

/* --------------------------------------------
   17. CONTACT FORM
   -------------------------------------------- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.contact-info {
  padding: var(--spacing-xl);
}

.contact-info__item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: var(--size-small);
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.contact-info__value {
  font-weight: 600;
  color: var(--color-primary);
}

.contact-form {
  padding: var(--spacing-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.contact-map {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: var(--radius);
  margin-top: var(--spacing-xl);
}

/* --------------------------------------------
   18. FAQ ACCORDION
   -------------------------------------------- */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.faq-item__question:hover {
  background: var(--color-border);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-text);
  transition: transform var(--transition);
}

.faq-item__icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-item__question {
  background: var(--color-primary);
  color: var(--color-white);
}

.faq-item.active .faq-item__icon::before,
.faq-item.active .faq-item__icon::after {
  background: var(--color-white);
}

.faq-item.active .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--size-small);
  line-height: 1.7;
}

/* --------------------------------------------
   19. TESTIMONIALS
   -------------------------------------------- */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials-wrapper {
  position: relative;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--spacing-xl);
}

.testimonial-card__quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
  position: relative;
  padding-left: var(--spacing-lg);
}

.testimonial-card__quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 2.5rem;
  color: var(--color-accent);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--size-small);
}

.testimonial-card__role {
  font-size: var(--size-xs);
  color: var(--color-text-light);
}

.testimonials-slider {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--spacing-md);
  scroll-behavior: smooth;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonials-slider .testimonial-card {
  min-width: calc((100% - var(--spacing-lg) * 2) / 3);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.7);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.testimonials-arrow:hover {
  background: rgba(26, 26, 46, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.testimonials-arrow--prev {
  left: -22px;
}

.testimonials-arrow--next {
  right: -22px;
}

.testimonials-arrow svg {
  display: block;
}

/* --------------------------------------------
   20. SHARE BUTTONS & FAB
   -------------------------------------------- */
.share-buttons {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.share-buttons__label {
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--color-text-light);
  margin-right: var(--spacing-sm);
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-light);
  background: var(--color-bg);
  transition: all var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.fab {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: flex-end;
}

.fab__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.fab__btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.fab__btn--top {
  background: var(--color-primary);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transition: all var(--transition);
}

.fab__btn--phone {
  display: none;
}

@media (max-width: 768px) {
  .fab__btn--phone {
    display: flex;
  }
}

/* --------------------------------------------
   21. COOKIE CONSENT
   -------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-lg);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.cookie-banner__text {
  font-size: var(--size-small);
  color: rgba(255,255,255,0.9);
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.cookie-toggle {
  position: fixed;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  z-index: 799;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0.7;
}

.cookie-toggle:hover {
  opacity: 1;
  transform: scale(1.1);
}

.cookie-toggle.visible {
  display: flex;
}

/* --------------------------------------------
   22. BREADCRUMBS
   -------------------------------------------- */
.breadcrumbs {
  padding: var(--spacing-md) 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--size-small);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  color: var(--color-text-light);
}

.breadcrumbs__link {
  color: var(--color-text-light);
}

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

.breadcrumbs__current {
  color: var(--color-primary);
  font-weight: 500;
}

/* --------------------------------------------
   23. PAGINATION
   -------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-2xl);
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--spacing-sm);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.pagination__link:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination__link--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.pagination__link--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination__ellipsis {
  padding: 0 var(--spacing-sm);
  color: var(--color-text-light);
}

/* --------------------------------------------
   24. FOOTER
   -------------------------------------------- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: var(--spacing-section) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  display: block;
}

.footer__desc {
  font-size: var(--size-small);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  color: rgba(255,255,255,0.7);
}

.footer__heading {
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__link {
  font-size: var(--size-small);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__socials {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer__social:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--spacing-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--size-xs);
}

.footer__bottom a {
  color: rgba(255,255,255,0.6);
}

.footer__bottom a:hover {
  color: var(--color-white);
}

/* --------------------------------------------
   25. 404 PAGE
   -------------------------------------------- */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  text-align: center;
  padding: var(--spacing-xl);
}

.page-404__code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--color-bg-alt);
  line-height: 1;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404__title {
  font-size: var(--size-h2);
  margin-bottom: var(--spacing-md);
}

.page-404__text {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  max-width: 400px;
}

/* --------------------------------------------
   26. ALERTS / NOTIFICATIONS
   -------------------------------------------- */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius);
  font-size: var(--size-small);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.alert--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert--danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert--warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.alert--info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert__close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}

.alert__close:hover {
  opacity: 1;
}

/* --------------------------------------------
   27. BADGE / TAG
   -------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: var(--size-xs);
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.badge--primary { background: var(--color-primary); color: var(--color-white); }
.badge--accent { background: var(--color-accent); color: var(--color-white); }
.badge--success { background: var(--color-success); color: var(--color-white); }
.badge--warning { background: var(--color-warning); color: #333; }
.badge--danger { background: var(--color-danger); color: var(--color-white); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--size-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-light);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --------------------------------------------
   28. LOADING / SPINNER
   -------------------------------------------- */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  z-index: 9999;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
  display: block;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--color-white);
  font-size: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  color: var(--color-white);
  font-size: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 1;
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  color: var(--color-white);
  font-size: 14px;
}

/* --------------------------------------------
   29. RESPONSIVE DESIGN
   -------------------------------------------- */

/* Tablet: 768px */
@media (max-width: 768px) {
  :root {
    --spacing-section: 48px;
    --size-h1: 32px;
    --size-h2: 26px;
    --size-h3: 22px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    padding: var(--spacing-lg);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: var(--spacing-md) 0;
    font-size: var(--size-base);
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--spacing-md);
    width: 100%;
  }

  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    padding-left: var(--spacing-md);
    box-shadow: none;
  }

  .hero {
    min-height: 350px;
  }

  .hero--full {
    min-height: 60vh;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-slider .testimonial-card {
    min-width: calc(100% - 0px);
    width: 100%;
  }

  .testimonials-arrow {
    width: 36px;
    height: 36px;
  }

  .testimonials-arrow--prev {
    left: -4px;
  }

  .testimonials-arrow--next {
    right: -4px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .detail__header {
    padding: 0 var(--spacing-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  :root {
    --size-h1: 28px;
    --size-h2: 22px;
    --size-h3: 20px;
    --spacing-section: 40px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .share-buttons {
    flex-wrap: wrap;
  }
}

/* Desktop large: 1024px+ */
@media (min-width: 1024px) {
  .grid--2-md { grid-template-columns: repeat(2, 1fr); }
  .grid--3-md { grid-template-columns: repeat(3, 1fr); }
  .grid--4-md { grid-template-columns: repeat(4, 1fr); }

  .detail--with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-2xl);
    max-width: var(--container-width);
    margin: 0 auto;
  }
}

/* --------------------------------------------
   30. PRINT STYLES
   -------------------------------------------- */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .fab,
  .hamburger,
  .share-buttons {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
  }
}

/* --------------------------------------------
   31. ANIMATIONS
   -------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animation */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------
   32. STATS / COUNTERS
   -------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.stat-item__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0;
}

.stat-item__bar {
  width: 60%;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  margin: var(--spacing-sm) auto;
  overflow: hidden;
}
.stat-item__bar-fill {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-item.animated .stat-item__bar-fill {
  width: 100%;
}

.stat-item__label {
  font-size: var(--size-small);
  color: var(--color-text-light);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item__number {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------
   33. MODAL
   -------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg);
  border-radius: var(--radius);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-backdrop.active .modal {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-size: var(--size-h4);
  margin-bottom: 0;
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.modal__close:hover {
  background: var(--color-bg-alt);
}

.modal__body {
  padding: var(--spacing-lg);
}

.modal__footer {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

/* --------------------------------------------
   33. TOOLTIP
   -------------------------------------------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-size: var(--size-xs);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}
