/*
Theme Name: ecount.tax
Theme URI: https://ecount.tax
Author: ecount.tax
Author URI: https://ecount.tax
Description: Temă profesionalistă pentru firmă de contabilitate și consultanță fiscală ecount.tax, Oradea.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: ecount-theme
Tags: business, accounting, tax, professional, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand Colors */
  --color-primary:       #24CAE2;
  --color-primary-dark:  #1692a4;
  --color-primary-xdark: #0a5c68;
  --color-accent:        #FF7F00;
  --color-accent-dark:   #cc6600;

  /* Neutral Palette */
  --color-dark:          #0f1117;
  --color-dark-2:        #181b23;
  --color-mid:           #2d3142;
  --color-gray:          #6b7280;
  --color-light-gray:    #e8eaed;
  --color-off-white:     #f8fafc;
  --color-white:         #ffffff;

  /* Text */
  --text-main:           #1a2035;
  --text-muted:          #64748b;
  --text-light:          #94a3b8;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-xxl:  6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --border-radius:    8px;
  --border-radius-lg: 16px;
  --border-color:     #dde3ec;

  /* Shadows */
  --shadow-sm:      0 1px 4px rgba(15,17,23,.06), 0 1px 2px rgba(15,17,23,.04);
  --shadow-md:      0 4px 20px rgba(15,17,23,.09), 0 2px 6px rgba(15,17,23,.05);
  --shadow-lg:      0 12px 48px rgba(15,17,23,.13), 0 4px 16px rgba(15,17,23,.07);
  --shadow-primary: 0 8px 28px rgba(36,202,226,.3);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--color-primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

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

strong { font-weight: 600; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.section {
  padding-block: var(--space-xxl);
}

.section--sm { padding-block: var(--space-xl); }
.section--lg { padding-block: calc(var(--space-xxl) * 1.3); }

/* Grid */
.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Flex */
.flex     { display: flex; }
.flex-gap { gap: var(--space-md); }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Visibility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
}

.section-title--light { color: var(--color-white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.section-subtitle--center { margin-inline: auto; }

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

.section-divider--center { margin-inline: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,127,0,.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark);
}

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

.btn--lg { padding: 1rem 2.25rem; font-size: 0.95rem; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* ============================================================
   SITE HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Premium 3px gradient top accent bar */
#site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-xdark), var(--color-primary), var(--color-accent));
  z-index: 1;
  pointer-events: none;
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: var(--space-md);
}

/* Lang-switcher is now always in header-inner.
   On desktop it sits at the far right after primary-nav (which has flex:1). */
.header-inner > .lang-switcher {
  order: 99;        /* always last flex item */
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.03em;
}

.logo-name span { color: var(--color-primary); }

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 3px;
}

/* Primary Navigation */
#primary-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.main-nav {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-main);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-ancestor > a {
  color: var(--color-primary);
  background: rgba(36,202,226,.07);
}

/* Dropdown */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;          /* no gap — cursor enters padding of sub-menu directly */
  left: 0;
  min-width: 260px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--color-primary);
  list-style: none;
  padding: 0.6rem 0 0.5rem; /* top padding acts as the visual gap */
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  /* 0s delay on close so it snaps shut immediately when cursor leaves */
  transition: opacity 0.15s ease 0s, transform 0.15s ease 0s, visibility 0.15s 0s;
  z-index: 100;
}

.main-nav > li.nav-dropdown-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.main-nav .sub-menu li a:hover {
  color: var(--color-primary);
  background: var(--color-off-white);
  padding-left: 1.5rem;
}

.main-nav .sub-menu .sub-menu {
  top: -0.5rem;
  left: 100%;
}

/* ── Mega-menu: dropdown that contains nested groups ── */
/* Targets the Servicii sub-menu (any top-level dropdown with sub-groups) */
.main-nav > li > .sub-menu:has(.sub-menu) {
  min-width: 560px;
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
  row-gap: 0;
  align-items: start;
}

/* Each group item in the mega-menu */
.main-nav > li > .sub-menu:has(.sub-menu) > li {
  padding-bottom: 0.75rem;
}

/* Group heading link (level-1 item that has children) */
.main-nav > li > .sub-menu:has(.sub-menu) > li.menu-item-has-children > a {
  display: block;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  padding: 0.4rem 0 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-bottom: 0.35rem;
  background: none;
}

.main-nav > li > .sub-menu:has(.sub-menu) > li.menu-item-has-children > a:hover {
  color: var(--color-primary);
  background: none;
  padding-left: 0;
}

/* Standalone items in mega-menu (level-1 with no children) */
.main-nav > li > .sub-menu:has(.sub-menu) > li:not(.menu-item-has-children) > a {
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  background: none;
}

.main-nav > li > .sub-menu:has(.sub-menu) > li:not(.menu-item-has-children) > a:hover {
  color: var(--color-primary);
  background: none;
  padding-left: 0.25rem;
}

/* Level-2 sub-menus: inline, not flyout */
.main-nav > li > .sub-menu:has(.sub-menu) > li > .sub-menu {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0.1rem 0 0;
  min-width: 0;
  border-radius: 0;
}

/* Level-2 item links */
.main-nav > li > .sub-menu:has(.sub-menu) > li > .sub-menu li a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.25rem 0 0.25rem 0.65rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
  background: none;
}

.main-nav > li > .sub-menu:has(.sub-menu) > li > .sub-menu li a:hover {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: transparent;
  padding-left: 0.9rem;
}

/* Dropdown arrow indicator */
.main-nav > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.5;
  transition: var(--transition);
}

.main-nav > li:hover > a::after { opacity: 1; }

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-left: var(--space-sm);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.header-phone svg { width: 16px; height: 16px; color: var(--color-primary); }

/* Phone number label — hidden on desktop header, shown in mobile nav panel */
.header-phone-label { display: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  border: 1.5px solid var(--color-light-gray);
  background: var(--color-off-white);
  border-radius: var(--border-radius);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: rgba(36,202,226,.10);
  border-color: var(--color-primary);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(0, 7.5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(0, -7.5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2022/03/CoverCFBaraEcount.png');
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(15,17,23,0.96) 0%,
    rgba(10,92,104,0.58) 50%,
    rgba(15,17,23,0.88) 100%
  );
  z-index: 1;
}

/* Subtle dot-grid texture overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 1;
  pointer-events: none;
}

/* Decorative glow shapes */
.hero-shape {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,202,226,.1) 0%, transparent 65%);
  z-index: 1;
}

.hero-shape-2 {
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,127,0,.07) 0%, transparent 65%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding-block: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(36,202,226,.12);
  border: 1px solid rgba(36,202,226,.25);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: var(--space-md);
}

.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,.08);
}

.stat-item {}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-top: 0.3rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,.35);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  animation: bounce 2.5s ease-in-out infinite;
}

.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services {
  background: var(--color-off-white);
}

.services-header {
  margin-bottom: var(--space-xl);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

/* Left accent line on hover — more refined than top gradient */
.service-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 3px 0 0 3px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(36,202,226,.15);
}

.service-card:hover::after {
  transform: scaleY(1);
}

/* Circle icon — cleaner and more premium than rounded square */
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(36,202,226,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  color: var(--color-white);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  line-height: 1.65;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.service-card .service-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.service-card .service-link:hover { color: var(--color-primary-dark); }
.service-card .service-link:hover svg { transform: translateX(4px); }

/* ============================================================
   OBIECTIVE GRID (Despre Noi — Obiectivul nostru section)
   ============================================================ */
.obiective-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.obiectiv-card {
  background: var(--color-off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.obiectiv-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(36,202,226,.1);
}

.obiectiv-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(36,202,226,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  flex-shrink: 0;
}

.obiectiv-icon svg { width: 18px; height: 18px; }

.obiectiv-card h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.obiectiv-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.obiectiv-card ul li {
  font-size: 0.845rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 1.1rem;
  position: relative;
}

.obiectiv-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

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

/* ============================================================
   WHY US / FEATURES SECTION
   ============================================================ */
#why-us {
  background: var(--color-white);
}

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.why-us-visual {
  position: relative;
}

.why-us-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.why-us-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--color-primary);
  color: white;
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-primary);
  min-width: 100px;
}

.why-us-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.why-us-badge .badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-top: 3px;
}

.why-us-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-sm) 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(36,202,226,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background: var(--color-primary);
}

.feature-icon svg { width: 20px; height: 20px; color: var(--color-primary); transition: var(--transition); }
.feature-item:hover .feature-icon svg { color: var(--color-white); }

.feature-text h4 {
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  color: var(--color-dark);
}

.feature-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
#testimonials {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22rem;
  font-family: Georgia, serif;
  color: rgba(36,202,226,.04);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.testimonials-header {
  position: relative;
  z-index: 1;
}

.testimonials-header .section-title { color: var(--color-white); }
.testimonials-header .section-subtitle { color: rgba(255,255,255,.55); }
.testimonials-header .section-label { color: var(--color-primary); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  background: rgba(36,202,226,.07);
  border-color: rgba(36,202,226,.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-sm);
  color: #fbbf24;
}

.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-text {
  color: rgba(255,255,255,.8);
  font-size: 0.925rem;
  line-height: 1.75;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,.06);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.author-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.author-company {
  font-size: 0.775rem;
  color: rgba(255,255,255,.4);
  margin-top: 1px;
  font-weight: 500;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  margin-top: var(--space-lg);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TESTIMONIAL CARDS — LIGHT BACKGROUND VARIANT (Recenzii page)
   ============================================================ */
.reviews-section .testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.reviews-section .testimonial-card:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(36,202,226,.14);
}

.reviews-section .testimonial-text {
  color: var(--text-muted);
}

.reviews-section .testimonial-author {
  border-top-color: var(--border-color);
}

.reviews-section .author-name {
  color: var(--color-dark);
}

.reviews-section .google-badge {
  background: var(--color-white);
  border-color: var(--border-color);
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: var(--color-off-white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xxl);
  align-items: start;
}

.contact-info {}

.contact-info h2 {
  margin-bottom: var(--space-sm);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.875rem;
  background: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,.05);
  transition: var(--transition);
}

.contact-detail-item:hover {
  border-color: rgba(36,202,226,.2);
  box-shadow: var(--shadow-sm);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(36,202,226,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 18px; height: 18px; color: var(--color-primary); }

.contact-detail-content label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.contact-detail-content a,
.contact-detail-content span {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
}

.contact-detail-content a:hover { color: var(--color-primary); }

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.05);
}

.contact-form-wrapper h3 {
  margin-bottom: var(--space-lg);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

/* CF7 Overrides */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: var(--space-sm);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--color-light-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-main);
  background: var(--color-off-white);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(36,202,226,.1);
  background: var(--color-white);
}

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

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.wpcf7-form p { margin-bottom: var(--space-sm); }

.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.wpcf7-response-output {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-top: var(--space-sm) !important;
  font-size: 0.875rem;
  font-weight: 600;
}

.wpcf7-mail-sent-ok {
  background: #d1fae5;
  border: 1px solid #34d399 !important;
  color: #065f46;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
  background: #fee2e2;
  border: 1px solid #fca5a5 !important;
  color: #991b1b;
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
#portfolio-preview {
  background: var(--color-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.portfolio-item {
  background: var(--color-off-white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--border-radius);
  padding: 1.25rem var(--space-sm);
  text-align: center;
  transition: var(--transition);
}

.portfolio-item:hover {
  border-color: rgba(36,202,226,.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  background: var(--color-white);
}

.portfolio-item .company-name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-dark-2);
  color: rgba(255,255,255,.7);
}

.footer-top {
  padding-block: var(--space-xxl);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
}

.footer-brand .site-logo { margin-bottom: var(--space-md); }
.footer-brand .site-logo .logo-name { color: var(--color-white); }
.footer-brand .site-logo .logo-tagline { color: rgba(255,255,255,.4); }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: var(--space-md);
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.06);
}

.social-link:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.social-link svg { width: 16px; height: 16px; }

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  padding-block: 0.3rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-nav a::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1.5px;
  background: rgba(36,202,226,.5);
  border-radius: 1px;
  transition: width 0.2s ease;
  flex-shrink: 0;
}

.footer-nav a:hover { color: var(--color-primary); padding-left: 0.2rem; }
.footer-nav a:hover::before { width: 16px; background: var(--color-primary); }

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
}

.footer-contact-list svg {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-list a {
  color: rgba(255,255,255,.55);
}

.footer-contact-list a:hover { color: var(--color-primary); }

.footer-bottom {
  padding-block: var(--space-md);
}

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

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,.3);
  font-weight: 500;
}

.footer-copyright a { color: rgba(255,255,255,.4); }
.footer-copyright a:hover { color: var(--color-primary); }

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,.3);
  transition: var(--transition);
}

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

/* ============================================================
   PAGE HEADER (for interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary-xdark) 100%);
  padding-block: var(--space-xxl);
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture on page hero */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(36,202,226,.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 500;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.4;
}

.breadcrumbs a { color: rgba(255,255,255,.6); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .current { color: var(--color-primary); }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content-area {
  padding-block: var(--space-xxl);
}

.entry-content {
  max-width: 800px;
}

.entry-content p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary-dark);
  font-size: 1.5rem;
}

.entry-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--color-primary-dark);
  font-size: 1.2rem;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--color-light-gray);
  margin: var(--space-lg) 0 var(--space-md);
}

.entry-content ul, .entry-content ol {
  margin-bottom: var(--space-md);
  padding-left: 1.5rem;
  color: var(--text-main);
}

.entry-content li { margin-bottom: 0.5rem; line-height: 1.7; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.entry-content table th,
.entry-content table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-light-gray);
}

.entry-content table th {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
}

.entry-content table tr:last-child td { border-bottom: none; }
.entry-content table tr:nth-child(even) td { background: #f7fafb; }

.entry-content a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(22,146,164,.3);
  text-underline-offset: 2px;
}

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

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

/* Card wrapper */
.post-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,.07);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  transform: translateY(-5px);
  border-color: rgba(36,202,226,.2);
}

/* Thumbnail — real photo */
.post-card-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-light-gray);
  flex-shrink: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(.25,.46,.45,.94);
}

.post-card:hover .post-card-thumb img { transform: scale(1.05); }

/* Thumbnail — placeholder (no photo) */
.post-card-thumb--placeholder {
  background: linear-gradient(135deg, var(--color-dark-2) 0%, #1a2540 50%, rgba(36,202,226,.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-card-thumb--placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(36,202,226,.08) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255,127,0,.06) 0%, transparent 50%);
}

.post-card-thumb--placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(36,202,226,.45);
  position: relative;
  z-index: 1;
}

/* Card body */
.post-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Top accent line replaces the removed thumbnail */
  border-top: 3px solid var(--color-primary);
}

/* Meta row: category badge + date */
.post-card-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.post-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(36,202,226,.1);
  padding: 2px 8px;
  border-radius: 50px;
}

.post-card-date {
  font-size: 0.775rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Title */
.post-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.post-card-title a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover { color: var(--color-primary); }

/* Excerpt */
.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-md);
}

/* Footer row: read more + read time */
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.post-read-more:hover { gap: 0.55rem; }

.post-read-more svg { width: 14px; height: 14px; }

.post-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.post-read-time svg { width: 12px; height: 12px; color: var(--text-light); }

/* Legacy selectors kept for compatibility */
.post-meta {
  font-size: 0.775rem;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-weight: 500;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  border: 1.5px solid var(--color-light-gray);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-xdark) 0%, var(--color-primary-dark) 60%, var(--color-primary) 100%);
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture overlay */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Decorative radial glow */
.cta-banner::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: white;
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}
.cta-banner p {
  color: rgba(255,255,255,.8);
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-xxl);
}

.error-404 .error-code {
  font-size: 8rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--color-light-gray);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.04em;
}

/* ============================================================
   ACCESSIBILITY SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .why-us-inner {
    grid-template-columns: 1fr;
  }

  .why-us-visual { display: none; }
}

@media (max-width: 768px) {
  :root {
    --space-xxl: 4rem;
    --space-xl: 3rem;
  }

  /* ── Fix iOS Safari: position:fixed inside backdrop-filter is broken.
     Remove backdrop-filter on mobile and use a solid background instead. ── */
  #site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,1);
    /* Stay above the nav panel (z:9999) so the hamburger/X is always tappable */
    z-index: 10000;
  }

  /* Overlay when nav is open */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15,17,23,.4);
    z-index: 9998;
  }

  .nav-toggle { display: flex; }

  #primary-nav {
    /* Use display:none / display:flex to show/hide — avoids ALL transform
       stacking-context and position:fixed containing-block issues in every
       browser including Chrome DevTools device simulation. */
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 84px;         /* clear the 74px header + 10px breathing room */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 3rem;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }

  #primary-nav.is-open {
    display: flex !important;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: var(--space-md);
  }

  .main-nav > li > a {
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;               /* ExtraBold — iOS grayscale AA makes 700 look thin */
    color: #0f1117;                 /* hard-coded dark, no CSS var lookup delay */
    letter-spacing: -0.02em;
    border-radius: 0;
    border-bottom: 1px solid var(--color-light-gray);
    /* iOS text-thickening trick: invisible shadow adds microscopic ink spread */
    text-shadow: 0 0 0.5px rgba(15, 17, 23, 0.6);
    -webkit-font-smoothing: antialiased;
  }

  .main-nav > li:last-child > a {
    border-bottom: none;
  }

  /* Keep current-page link teal */
  .main-nav > li.current-menu-item > a,
  .main-nav > li.current-menu-ancestor > a {
    color: var(--color-primary);
    text-shadow: 0 0 0.5px rgba(36, 202, 226, 0.5);
  }

  .main-nav > li.menu-item-has-children > a::after {
    float: right;
    margin-top: 5px;
  }

  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: var(--color-off-white);
    display: none;
    border-radius: 0;
  }

  .main-nav > li.open > .sub-menu { display: block; }

  .main-nav .sub-menu li a {
    padding-left: 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
  }

  /* Mega-menu: single column on mobile */
  .main-nav > li > .sub-menu:has(.sub-menu) {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 0;
  }

  /* Show grandchildren inline when parent is open */
  .main-nav > li.open > .sub-menu:has(.sub-menu) > li > .sub-menu {
    display: block;
  }

  .main-nav > li > .sub-menu:has(.sub-menu) > li.menu-item-has-children > a {
    padding: 0.6rem 2rem;
    border-bottom: none;
    font-size: 0.75rem;
    margin-bottom: 0;
  }

  .main-nav > li > .sub-menu:has(.sub-menu) > li > .sub-menu li a {
    padding-left: 2.75rem;
    border-left: none;
  }

  .main-nav > li > .sub-menu:has(.sub-menu) > li:not(.menu-item-has-children) > a {
    padding: 0.6rem 2rem;
  }

  /* Show CTA (phone + lang + contact button) inside the open nav panel */
  .header-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-light-gray);
  }

  .header-phone {
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-light-gray);
    justify-content: flex-start;
  }

  .header-phone-label {
    display: inline;
  }

  /* CTA button in mobile nav panel: full-width */
  .header-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .hero-stats { gap: var(--space-md); }
  .stat-number { font-size: 1.7rem; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-inner > div:last-child {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .contact-form-wrapper {
    padding: var(--space-md);
  }

  .hero-badge {
    font-size: 0.68rem;
  }
}

/* ============================================================
   iOS SAFARI ONLY — font thickening for mobile nav
   @supports (-webkit-touch-callout: none) matches iOS Safari ONLY,
   not desktop Safari, not Chrome, not Android.
   -webkit-text-stroke adds a real ink stroke around each letter,
   making text visually heavier on high-DPI Retina/OLED displays.
   ============================================================ */
@supports (-webkit-touch-callout: none) {
  .main-nav > li > a {
    -webkit-text-stroke: 1px #0f1117;
  }
  .main-nav > li.current-menu-item > a,
  .main-nav > li.current-menu-ancestor > a {
    -webkit-text-stroke: 1px #24CAE2;
  }
  /* Sub-menu items: no stroke — they are intentionally lighter gray */
  .main-nav .sub-menu li a {
    -webkit-text-stroke: 0;
  }
}

/* ============================================================
   UTILITY — Scroll animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-color);
}

.comments-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.ecount-comment {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.ecount-comment:last-child { border-bottom: none; }

.comment-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comment-avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.comment-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-author-name {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--color-dark);
}

.comment-author-name a {
  color: var(--color-dark);
  text-decoration: none;
}

.comment-author-name a:hover { color: var(--color-primary); }

.comment-time {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.comment-content {
  padding-left: 60px;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.comment-content p { margin-bottom: var(--space-sm); }

.comment-awaiting-moderation {
  padding-left: 60px;
  font-size: 0.825rem;
  color: var(--color-accent);
  font-style: italic;
}

.comment-reply-link-wrap { padding-left: 60px; display: inline-block; }

.comment-reply-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
}

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

/* Nested comments */
.children {
  list-style: none;
  margin: 0;
  padding-left: var(--space-xl);
  border-left: 2px solid var(--border-color);
  margin-left: 60px;
}

/* Comment Form */
#respond {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-color);
}

.comment-reply-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.comment-reply-title small { margin-left: var(--space-sm); font-size: 0.8rem; font-weight: 500; }
.comment-reply-title small a { color: var(--color-primary); text-decoration: none; }

.comment-notes {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.comment-notes .required { color: var(--color-accent); }

/* Form rows */
.comment-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.comment-form-row label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.02em;
}

.comment-form-row label .required { color: var(--color-accent); margin-left: 2px; }

.comment-form-row input[type="text"],
.comment-form-row input[type="email"],
.comment-form-row input[type="url"],
.comment-form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.comment-form-row input[type="text"]:focus,
.comment-form-row input[type="email"]:focus,
.comment-form-row input[type="url"]:focus,
.comment-form-row textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(36,202,226,.12);
}

.comment-form-row textarea {
  resize: vertical;
  min-height: 140px;
}

/* Math CAPTCHA row */
.comment-form-captcha label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: block;
}

.comment-form-captcha input[type="number"] {
  width: 140px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.comment-form-captcha input[type="number"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(36,202,226,.12);
}

/* Cookies checkbox row */
.comment-form-cookies {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.comment-form-cookies input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.comment-form-cookies label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  cursor: pointer;
}

/* Submit */
.form-submit {
  margin-top: var(--space-md);
}

.form-submit .btn {
  min-width: 200px;
}

/* ============================================================
   SERVICE PAGE — PREMIUM LAYOUT  (page-service.php)
   ============================================================ */

/* ── Section wrapper ── */
.srv-section {
  padding: 4.5rem 0 5rem;
  background: var(--color-white);
}

/* ── Two-column grid ── */
.srv-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

/* ── Eyebrow label ── */
.srv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.srv-eyebrow::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  display: inline-block;
}

/* ── Section heading ── */
.srv-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ── Feature cards grid ── */
.srv-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.srv-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.1rem 1.1rem 1.1rem 1rem;
  background: var(--color-off-white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.055);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.srv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(36, 202, 226, 0.12);
  border-color: rgba(36, 202, 226, 0.35);
}

.srv-card__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: rgba(36, 202, 226, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.srv-card__icon svg { width: 15px; height: 15px; }

.srv-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  padding-top: 0.3rem;
}

/* ── Intro paragraph (pages with no feature list, e.g. PFA, Online) ── */
.srv-intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--color-off-white);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--color-primary);
}

/* ── Pricing note ── */
.srv-pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 127, 0, 0.06);
  border: 1px solid rgba(255, 127, 0, 0.18);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  color: var(--color-dark);
  font-weight: 500;
}
.srv-pricing-note svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Sidebar ── */
.srv-aside {
  position: sticky;
  top: calc(var(--header-h, 80px) + 1.5rem);
}

.srv-cta-card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.srv-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.srv-cta-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 127, 0, 0.1);
  color: var(--color-accent);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.srv-cta-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.srv-cta-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.srv-cta-btn {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.srv-cta-btn svg { width: 16px; height: 16px; }

.srv-divider {
  border: none;
  border-top: 1px solid var(--color-light-gray);
  margin: 1.25rem 0;
}

.srv-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.srv-contact-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.srv-contact-link:hover { color: var(--color-primary); }
.srv-contact-link svg {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.srv-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.srv-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark);
}
.srv-trust-list svg {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ── Why-us strip ── */
.srv-why-strip {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
  padding: 2.5rem 0;
}

.srv-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.srv-why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.srv-why-item svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.srv-why-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}
.srv-why-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Bottom CTA banner ── */
.srv-cta-banner {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 60%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.srv-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(36, 202, 226, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.srv-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.srv-banner-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.srv-banner-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 460px;
  line-height: 1.6;
}

.srv-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.srv-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.srv-phone-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
}
.srv-phone-btn svg { width: 17px; height: 17px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .srv-layout { grid-template-columns: 1fr 300px; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .srv-layout { grid-template-columns: 1fr; }
  .srv-aside { position: static; }
  .srv-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .srv-features-grid { grid-template-columns: 1fr; }
  .srv-why-grid { grid-template-columns: 1fr; }
  .srv-banner-inner { flex-direction: column; text-align: center; }
  .srv-banner-text p { max-width: 100%; }
  .srv-banner-actions { flex-direction: column; width: 100%; }
  .srv-phone-btn { justify-content: center; }
}

/* ============================================================
   BLOG FILTER BAR  (index.php / category.php)
   ============================================================ */

/* Horizontal scrollable pill row */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* Individual pill */
.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--color-off-white);
  border: 1.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.blog-filter-pill:hover {
  background: rgba(36,202,226,.08);
  color: var(--color-primary);
  border-color: rgba(36,202,226,.25);
}

/* Active / current category */
.blog-filter-pill--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 3px 10px rgba(36,202,226,.30);
  pointer-events: none;   /* prevent clicking on already-active pill */
}

.blog-filter-pill--active:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Post-count badge inside pill */
.blog-filter-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgba(0,0,0,.08);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  transition: background 0.18s ease;
}

.blog-filter-pill--active .blog-filter-pill__count {
  background: rgba(255,255,255,.25);
}

/* Responsive: allow horizontal scroll on very small screens */
@media (max-width: 540px) {
  .blog-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 1.25rem;
  }
  .blog-filter-bar::-webkit-scrollbar { display: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, #site-footer, .nav-toggle, .hero-scroll, .cta-banner { display: none; }
  body { font-size: 12pt; color: black; }
  a { color: black; }
  .page-hero { background: #f0f0f0 !important; }
  .page-hero h1, .page-hero-label { color: black !important; }
}

/* ============================================================
   COOKIE CONSENT BANNER + MODAL  — v3 Premium
   ============================================================ */

/* ── Shared: hide when [hidden] ── */
#cookie-banner[hidden],
#cookie-modal[hidden]   { display: none !important; }

/* ══════════════════════════════════════════════════════════
   BANNER
══════════════════════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15,17,23,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
  animation: cbSlideUp .4s cubic-bezier(.16,1,.3,1);
}

@keyframes cbSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cb-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.cb-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(36,202,226,.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cb-text { flex: 1; min-width: 0; }

.cb-title {
  margin: 0 0 .3rem;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.cb-desc {
  margin: 0;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.cb-link {
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  margin-left: .25rem;
  font-weight: 500;
}
.cb-link:hover { text-decoration: underline; }

.cb-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   SHARED BUTTONS
══════════════════════════════════════════════════════════ */
.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: .01em;
  transition: background .18s, color .18s, opacity .18s, transform .15s;
  text-decoration: none;
}
.cb-btn:hover  { transform: translateY(-1px); }
.cb-btn:active { transform: translateY(0); }

.cb-btn--primary {
  background: var(--color-primary);
  color: #0f1117;
}
.cb-btn--primary:hover { background: #1ab8ce; }

.cb-btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
}
.cb-btn--outline:hover {
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

.cb-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.4);
  padding-left: .5rem;
  padding-right: .5rem;
  font-size: .8rem;
  font-weight: 500;
}
.cb-btn--ghost:hover { color: rgba(255,255,255,.75); transform: none; }

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cm-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cm-box {
  position: relative;
  z-index: 2;
  background: #12151f;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
  animation: cmFadeIn .3s cubic-bezier(.16,1,.3,1);
}

@keyframes cmFadeIn {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.cm-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.4);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.cm-close:hover { background: rgba(255,255,255,.12); color: #fff; }

.cm-header { margin-bottom: 1.5rem; }

.cm-title {
  margin: 0 2rem .4rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.cm-subtitle {
  margin: 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
}

/* ── Categories ── */
.cm-categories {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.cm-category {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: .9rem 1rem;
  transition: border-color .2s;
}
.cm-category:has(.cm-toggle[aria-checked="true"]:not(.cm-toggle--locked)) {
  border-color: rgba(36,202,226,.2);
  background: rgba(36,202,226,.03);
}

.cm-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.cm-category-info {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.cm-category-name {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
}

.cm-badge {
  display: inline-flex;
  align-items: center;
  padding: .1rem .45rem;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: rgba(36,202,226,.1);
  color: var(--color-primary);
}

.cm-category-desc {
  margin: .5rem 0 0;
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  line-height: 1.65;
}

/* ── Toggle ── */
.cm-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background .22s;
  padding: 0;
}
.cm-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: transform .22s, background .22s;
}
.cm-toggle[aria-checked="true"] { background: var(--color-primary); }
.cm-toggle[aria-checked="true"] span { transform: translateX(18px); background: #fff; }
.cm-toggle--locked { cursor: default; opacity: .4; }

/* ── Modal footer ── */
.cm-footer {
  display: flex;
  gap: .6rem;
}
.cm-footer .cb-btn {
  flex: 1;
  text-align: center;
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════
   FLOATING REOPEN BUTTON
══════════════════════════════════════════════════════════ */
.cookie-reopen {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9990;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(15,17,23,.9);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.cookie-reopen:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.08);
}

/* ══════════════════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .cb-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .cb-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .cb-btn--ghost { grid-column: 1 / -1; text-align: center; order: -1; }
  .cb-btn--primary, .cb-btn--outline { width: 100%; }
}

@media (max-width: 480px) {
  .cm-box { padding: 1.5rem 1.25rem; }
}


/* ═══════════════════════════════════════════════════════
   Language Switcher
══════════════════════════════════════════════════════════ */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 1px solid rgba(0,0,0,.15);
  color: var(--color-dark);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .35rem .65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.lang-current:hover,
.lang-current[aria-expanded="true"] {
  border-color: var(--color-primary);
  background: rgba(36,202,226,.08);
  color: var(--color-primary);
}
.lang-current svg { transition: transform .2s; stroke: currentColor; }
.lang-current[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  min-width: 70px;
  padding: .35rem 0;
  list-style: none;
  margin: 0;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden;
}
.lang-switcher.open .lang-dropdown { display: block; }

.lang-dropdown li a {
  display: block;
  padding: .45rem .85rem;
  color: var(--color-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.lang-dropdown li a:hover {
  color: var(--color-primary);
  background: rgba(36,202,226,.06);
}

@media (max-width: 768px) {
  /* On mobile: logo left, then lang-switcher + hamburger grouped right.
     primary-nav is position:fixed so not in flex flow. */
  .header-inner {
    justify-content: flex-start;
  }

  .header-inner .site-logo {
    flex: 1; /* logo takes all available space, pushing the rest right */
  }

  .header-inner > .lang-switcher {
    order: 2;
    margin-left: 0;
    margin-right: 0.5rem;
  }

  .header-inner > .lang-switcher .lang-current {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  .header-inner > .lang-switcher .lang-dropdown {
    right: 0;
    left: auto;
    min-width: 64px;
  }

  .nav-toggle {
    order: 3;
    flex-shrink: 0;
  }
}
