/*
 * WORDPRESS ARCHITECT DECISIONS:
 * - DB Tables: israpet_leads, israpet_tickets, israpet_audit_log, israpet_custom_statuses
 * - CPTs: None needed - all content via options API + israpet_register_page()
 * - Hooks: israpet_after_lead_saved, israpet_after_ticket_created, israpet_content_updated
 * - Plugin-Theme Communication: Via WordPress options API + custom hooks
 * - Customer Panel: template-login.php with custom auth (wp_hash_password/wp_check_password)
 * - SMTP: PHPMailer via wp_mail() with SMTP config in options
 * - All editable content stored in wp_options with prefix israpet_
 */

/* ========================================
   CSS VARIABLES - DESIGN SYSTEM
   ======================================== */
:root {
  /* Colors - from brief */
  --color-primary: #1D4ED8;
  --color-secondary: #0A1628;
  --color-accent: #1D4ED8;
  --color-accent-hover: #1A44C2;
  --color-accent-soft: rgba(29,78,216,0.15);
  --color-accent-glow: rgba(29,78,216,0.3);

  /* Backgrounds */
  --bg-primary: #F8F9FB;
  --bg-primary-rgb: 248,249,251;
  --bg-secondary: #EFF2F7;
  --bg-dark: #0A1628;
  --bg-darkest: #060F1D;
  --bg-card: #FFFFFF;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-on-accent: #FFFFFF;
  --text-on-dark: #F8F9FB;
  --text-on-dark-muted: rgba(248,249,251,0.7);

  /* Borders */
  --border-color: rgba(0,0,0,0.08);
  --border-color-dark: rgba(255,255,255,0.08);

  /* Typography */
  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: clamp(40px, 5vw, 56px);
  --text-hero: clamp(48px, 8vw, 96px);
  --line-height-base: 1.6;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 128px;

  /* Design */
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-xs: 4px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-accent: 0 6px 20px rgba(29,78,216,0.25);

  /* Transitions */
  --transition-fast: 0.22s ease;
  --transition-medium: 0.36s ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  max-width: 65ch;
  line-height: var(--line-height-base);
}

::placeholder {
  text-align: right;
  direction: rtl;
  color: var(--text-muted);
}

input, textarea, select {
  text-align: right;
  font-family: var(--font-body);
}

/* Focus accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

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

.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-darkest {
  background: var(--bg-darkest);
  color: var(--text-on-dark);
}

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

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

/* Section tag */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-dark .section-tag {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--text-on-dark);
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin: 0 auto;
}

.section-dark .section-header p {
  color: var(--text-on-dark-muted);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(var(--bg-primary-rgb), 0.85);
  border-bottom: 0.5px solid var(--border-color);
  transition: height var(--transition-medium), box-shadow var(--transition-medium);
}

.site-header.scrolled {
  height: 56px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-accent);
  z-index: 1001;
}

.site-logo svg {
  width: 40px;
  height: 40px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
}

.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.main-nav .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 50%;
  transform: translateX(50%);
  min-width: 160px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
  z-index: 9999;
}

.main-nav .nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.main-nav .nav-dropdown-menu a {
  display: block !important;
  padding: 8px 20px !important;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: center;
  transition: background 0.22s, color 0.22s;
}

.main-nav .nav-dropdown-menu a::after {
  display: none !important;
}

.main-nav .nav-dropdown-menu a:hover {
  background: #f5f5f5;
  color: var(--color-accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 1001;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--text-primary);
  direction: ltr;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px auto;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-primary);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-medium);
  padding: 100px var(--space-lg) var(--space-lg);
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-drawer nav a {
  font-size: var(--text-lg);
  font-weight: 500;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  display: block;
  text-align: center;
}

.mobile-drawer nav a.active {
  color: var(--color-accent);
}

/* Mobile nav sub-items */
.mobile-nav-group {
  display: flex;
  flex-direction: column;
}

.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: var(--space-md);
}

.mobile-nav-sub a {
  font-size: var(--text-base) !important;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-xs) 0 !important;
}

.mobile-nav-sub a:hover {
  color: var(--color-accent);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.4) 50%, rgba(10,22,40,0.6) 100%);
  z-index: 1;
}

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

.hero .section-tag {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--text-on-dark);
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

.hero-social-proof .stars {
  color: #FBBF24;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--text-on-accent);
}

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

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent-soft);
}

.btn-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--text-on-dark);
}

.btn-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-lg);
}

.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.loading .spinner {
  display: block;
}

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

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 0.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--border-color-dark);
  backdrop-filter: blur(12px);
}

.card-dark:hover {
  background: rgba(255,255,255,0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.section-dark .card p {
  color: var(--text-on-dark-muted);
}

/* ========================================
   FORMS
   ======================================== */
.field {
  position: relative;
  margin-bottom: var(--space-md);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-base);
  background: var(--bg-card);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 52px;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.field input.error,
.field textarea.error {
  border-color: #DC2626;
}

.field-error {
  color: #DC2626;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  display: none;
}

.field input.error + .field-error,
.field textarea.error + .field-error {
  display: block;
}

/* Floating label */
.field label {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-base);
  color: var(--text-muted);
  pointer-events: none;
  transition: top var(--transition-fast), font-size var(--transition-fast), color var(--transition-fast);
  background: var(--bg-card);
  padding: 0 4px;
}

.field textarea ~ label {
  top: 14px;
  transform: none;
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: -8px;
  transform: none;
  font-size: var(--text-xs);
  color: var(--color-accent);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.36s ease;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: #10B981;
  margin: 0 auto var(--space-md);
}

.form-success h3 {
  margin-bottom: var(--space-sm);
}

/* Honeypot */
.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* ========================================
   STATS / NUMBERS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.section-dark .stat-item .stat-number {
  color: var(--text-on-accent);
}

.stat-item .stat-label {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.section-dark .stat-item .stat-label {
  color: var(--text-on-dark-muted);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 0.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
}

.testimonial-stars {
  color: #FBBF24;
  margin-bottom: var(--space-md);
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-size: var(--text-base);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-accent-soft);
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  gap: var(--space-md);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  stroke-width: 1.5;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: var(--line-height-base);
}

.section-dark .faq-question {
  color: var(--text-on-dark);
}

.section-dark .faq-answer-inner {
  color: var(--text-on-dark-muted);
}

.section-dark .faq-item {
  border-color: var(--border-color-dark);
}

/* ========================================
   GALLERY GRID
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-darkest);
  color: var(--text-on-dark);
  padding-top: var(--space-2xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color-dark);
}

.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer-nav h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  color: var(--text-on-dark);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  stroke-width: 1.5;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color-dark);
  color: var(--text-on-dark-muted);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--text-on-accent);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

.footer-credit a {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */
.floating-buttons {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 900;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.floating-whatsapp {
  background: #25D366;
}

.floating-phone {
  background: var(--color-accent);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.breadcrumbs span {
  margin: 0 var(--space-xs);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

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

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; }

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

/* ========================================
   DECORATIVE ELEMENTS
   ======================================== */

/* Grain overlay */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Gradient orb */
.gradient-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .animate-on-scroll,
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   RESPONSIVE - TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ========================================
   RESPONSIVE - DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none !important;
  }

  .mobile-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }

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

/* ========================================
   PROBLEMS GRID (Method page)
   ======================================== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: var(--space-xl);
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.problem-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.problem-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .problems-grid { grid-template-columns: 1fr; }
}

/* ========================================
   INPUTS ON COLORED BACKGROUNDS
   ======================================== */
.section-accent input,
.section-accent textarea,
.section-accent select,
.section-dark input,
.section-dark textarea,
.section-dark select,
.section-darkest input,
.section-darkest textarea,
.section-darkest select {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}

.section-accent input::placeholder,
.section-accent textarea::placeholder,
.section-dark input::placeholder,
.section-dark textarea::placeholder,
.section-darkest input::placeholder,
.section-darkest textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.section-accent input:focus,
.section-accent textarea:focus,
.section-dark input:focus,
.section-dark textarea:focus,
.section-darkest input:focus,
.section-darkest textarea:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.section-accent .field label,
.section-dark .field label,
.section-darkest .field label {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   FLOATING CONTACT BUTTONS
   ======================================== */
.floating-btns {
  position: fixed;
  bottom: 24px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  color: #fff;
}
.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.floating-btn--wa { background: #25D366; }
.floating-btn--phone { background: var(--color-accent); }

/* ========================================
   RESPONSIVE - MOBILE (< 768px)
   ======================================== */
@media (max-width: 767px) {
  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }
  img { max-width: 100%; height: auto; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero h1 { font-size: clamp(28px, 8vw, 44px); line-height: 1.2; }
  .hero-subtitle { font-size: 15px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Inner hero */
  .inner-hero { padding: calc(80px + var(--space-lg)) 0 var(--space-lg); }
  .inner-hero h1 { font-size: clamp(24px, 7vw, 36px); }

  /* Navigation */
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-phone { display: none; }

  /* Header mobile - single line everything */
  .header-inner { gap: 6px; padding-inline: 12px; }
  .site-logo { flex: 1; min-width: 0; overflow: hidden; }
  .site-logo span { white-space: nowrap; font-size: clamp(11px, 3.2vw, 15px); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
  .header-cta .btn { white-space: nowrap; font-size: 12px; padding: 7px 12px; line-height: 1.2; width: auto; min-height: auto; }

  /* Buttons (not in header) */
  .btn { width: 100%; min-height: 52px; }
  .header-cta .btn { width: auto !important; min-height: auto !important; }

  /* Typography */
  h1 { font-size: clamp(26px, 7vw, 40px); }
  h2 { font-size: clamp(22px, 6vw, 32px); }
  h3 { font-size: clamp(17px, 5vw, 22px); }
  p, li { font-size: 15px; line-height: 1.7; }

  /* Sections */
  .section { padding-block: var(--space-xl); }
  .container { padding-inline: 20px; }

  /* Two-column layouts → stack */
  .two-col,
  .two-col-reversed {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg);
  }
  .two-col-reversed { direction: rtl; }
  .two-col-image { max-height: 280px; }
  .two-col-image img { max-height: 280px; border-radius: var(--border-radius); }

  /* Grids → single column */
  .services-grid,
  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .pricing-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item .stat-number { font-size: clamp(36px, 10vw, 48px); }

  /* Contact split */
  .contact-split { grid-template-columns: 1fr !important; }

  /* Process steps */
  .process-steps { grid-template-columns: 1fr !important; }
  .method-steps-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Forms */
  input, textarea, select { font-size: 16px !important; }
  .field input, .field textarea { width: 100%; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-md); }
  .footer-brand { text-align: center; align-items: center; display: flex; flex-direction: column; }
  .footer-brand p { margin: var(--space-sm) auto 0; }
  .footer-social { justify-content: center; }
  .footer-nav { text-align: center; }
  .footer-nav ul { align-items: center; }
  .footer-contact { align-items: center; }
  .footer-contact-item { justify-content: center; }

  /* Floating buttons - slightly smaller on mobile */
  .floating-btns { bottom: 16px; left: 16px; gap: 10px; }
  .floating-btn { width: 48px; height: 48px; }
}

/* Tablet tweaks */
@media (min-width: 480px) and (max-width: 767px) {
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-why-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
