/* ===== DESIGN SYSTEM (from Next.js reference) ===== */
:root {
  --bg-primary: #F8F9FA;
  --bg-secondary: #FFFFFF;
  --text-primary: #1A1D20;
  --text-secondary: #5F6368;
  --accent: #2B3A4A;
  --accent-light: #E8F0FE;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== GLASS PANEL ===== */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

/* ===== SECTION ===== */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  margin-bottom: 48px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
  color: #FFFFFF;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  color: var(--accent);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
}

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

/* ===== HEADER / NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  text-decoration: none;
}

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

.quote-btn {
  padding: 10px 20px;
  font-size: 14px;
}

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

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

.navbar__mobile {
  display: none;
  padding: 20px 24px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
}

.navbar__mobile.open {
  display: block;
}

.navbar__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.navbar__mobile a {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

/* ===== HERO SLIDER ===== */
/* ===== HERO (Split Layout) ===== */
.hero {
  width: 100%;
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - 80px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  gap: 0;
}

.hero-left {
  padding: 64px 40px 64px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  padding: 24px 24px 24px 0;
  display: flex;
  align-items: center;
  min-height: 0;
}

.hero-photo {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent);
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 15px 30px;
  font-size: 15px;
}

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

.hero .btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.hero-stat h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hero-stat p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== SERVICES (Photo Cards) ===== */
.services-section {
  background-color: var(--bg-primary);
}

.services-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-photo-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.service-photo-card__bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.service-photo-card:hover .service-photo-card__bg {
  transform: scale(1.05);
}

.service-photo-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}

.service-photo-card__overlay h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.service-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-price {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Service Modal with hero image */
.service-modal__content {
  max-width: 520px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.service-modal__hero {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-modal__body {
  padding: 32px;
  text-align: center;
}

.service-modal__body .modal__features {
  text-align: left;
}

.service-modal__body .modal__cta {
  width: 100%;
}

/* ===== GALLERY ===== */
.gallery-section {
  background-color: var(--bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.5s ease;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fallback-cameras { background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%); }
.fallback-lighting { background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }
.fallback-tv-audio { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.fallback-locks { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.fallback-full-setup { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }

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

.gallery-item:hover .gallery-image-placeholder,
.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 24px 24px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.gallery-item-overlay p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ===== REVIEWS (Carousel) ===== */
.reviews-section {
  background-color: var(--bg-primary);
}

.reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.reviews-overall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.overall-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.stars {
  color: #fbbc04;
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.reviews-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

.reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.reviews-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.reviews-arrow--left { left: 0; }
.reviews-arrow--right { right: 0; }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.reviews-dot.active {
  background: var(--accent);
}

.review-card {
  flex: 0 0 340px;
  padding: 32px;
  transition: transform 0.3s ease;
}

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

.review-author-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.review-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.review-stars {
  color: #fbbc04;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}

/* Google Reviews Button */
.reviews-google {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.google-badge svg {
  flex-shrink: 0;
}

/* ===== PORTFOLIO CATEGORIES ===== */
.portfolio-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-category-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.portfolio-category-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.portfolio-category-card:hover .portfolio-category-bg {
  transform: scale(1.05);
}

.portfolio-category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}

.portfolio-category-overlay h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.portfolio-category-overlay p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Portfolio Project Detail Modal */
.portfolio-modal__content {
  max-width: 800px;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.portfolio-detail__hero {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-detail__hero-icon {
  font-size: 5rem;
}

.portfolio-detail__body {
  padding: 32px;
}

.portfolio-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.portfolio-detail__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.portfolio-detail__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: 100px;
}

.portfolio-detail__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.portfolio-detail__highlights {
  margin-bottom: 28px;
}

.portfolio-detail__highlights h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.portfolio-detail__highlights ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
}

.portfolio-detail__highlights li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.portfolio-detail__highlights li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

.portfolio-detail__video {
  margin-bottom: 28px;
}

.portfolio-detail__video h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.portfolio-detail__video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.portfolio-detail__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.portfolio-detail__gallery {
  margin-bottom: 28px;
}

.portfolio-detail__gallery h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.portfolio-detail__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.portfolio-detail__photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

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

.portfolio-detail__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.portfolio-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-detail__photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.portfolio-detail__cta {
  padding-top: 8px;
}

/* ===== QUIZ MODAL ===== */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quiz-modal.open {
  display: flex;
}

.quiz-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.quiz-modal__content {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.quiz-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

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

.quiz-progress {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 4px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--accent);
  transition: width 0.4s ease;
  border-radius: 4px;
}

.quiz-progress-text {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  margin-bottom: 16px;
}

.quiz__step {
  display: none;
  flex-direction: column;
  animation: quizFadeIn 0.4s ease;
}

.quiz__step.active {
  display: flex;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.quiz-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

.quiz-step-title {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.quiz-step-hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.quiz-option {
  padding: 24px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.quiz-option:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quiz-option.selected {
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--accent);
}

/* Hidden inputs for quiz options */
.quiz-option input {
  display: none;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  gap: 12px;
}

/* Quiz Form */
.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quiz-form input,
.form-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.quiz-form input:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.quiz-form input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.quiz__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 8px;
}

.quiz__agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

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

/* Form validation */
.form-group input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: #EF4444;
  font-size: 13px;
  margin-top: 4px;
}

/* ===== FAQ ===== */
.faq-section {
  background-color: var(--bg-secondary);
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  overflow: hidden;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.faq__item:hover {
  border-left-color: var(--accent-light);
}

.faq__item.open {
  border-left-color: var(--accent);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq__arrow {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
  font-size: 18px;
}

.faq__item.open .faq__arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__item.open .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 24px 24px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.footer-contact-item:hover {
  color: var(--accent);
}

.footer-contact-icon {
  font-size: 18px;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 64px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 12px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.lightbox__close { top: 20px; right: 20px; font-size: 2.5rem; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ===== MODAL (kept for JS) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal__icon { font-size: 3rem; margin-bottom: 1rem; }
.modal__title { font-size: 1.5rem; margin-bottom: 1rem; }
.modal__desc { color: var(--text-secondary); margin-bottom: 1.5rem; }
.modal__features { text-align: left; margin-bottom: 1.5rem; list-style: none; }
.modal__features li { padding: 6px 0; color: var(--text-secondary); }
.modal__features li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.modal__price { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.modal__disclaimer { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 1.5rem; }
.modal__cta { width: 100%; }

/* ===== STICKY CALL ===== */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===== SELECTION ===== */
::selection {
  background: var(--accent-light);
  color: var(--text-primary);
}

/* Loading spinner */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

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

/* ===== BRANDS STRIP ===== */
.brands-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.brands-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.brands-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
}

.brands-grid {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  flex: 1;
}

.brand-item {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  cursor: default;
  white-space: nowrap;
  color: var(--text-primary);
}

.brand-item:hover { opacity: 0.8; }

.brand-ring { color: #1C8FDD; }
.brand-google { color: #5F6368; font-weight: 500; }
.brand-nest-word { color: #34A853; }
.brand-ecobee { color: #3DAD57; }
.brand-amazon { color: #232F3E; font-weight: 500; }
.brand-alexa-word { color: #00A8CC; }
.brand-smartthings { color: #1428A0; }
.brand-apple { color: #555; font-weight: 500; }
.brand-homekit-word { color: #FF6B35; }

@media (max-width: 992px) {
  .brands-container {
    gap: 20px;
  }
  .brands-grid {
    gap: 20px;
  }
  .brand-item {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .brands-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .brands-grid {
    gap: 16px;
  }
}

/* ===== HEADER PHONE ===== */
.header-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

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

.brand-arlo { color: #E4002B; }
.brand-eufy { color: #00AEEF; }
.brand-schlage { color: #C8102E; }
.brand-august { color: #F7941D; }
.brand-yale { color: #00205B; }

/* ===== BRAND LOGOS (img) ===== */
.brand-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  display: block;
}

.brand-logo:hover {
  opacity: 1;
}

/* No special filter for dark-bg logos - show as-is */

/* Brand logo fixes - dark background PNGs */
.brand-logo--invert {
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.brand-logo--invert:hover {
  opacity: 1;
}

/* Brands "more" note */
.brands-more {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brands-ask-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brands-ask-btn:hover {
  opacity: 0.75;
}

/* ===== QUIZ SUCCESS ===== */
.quiz__success {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 0 8px;
  gap: 16px;
}

.quiz-success-icon {
  width: 72px;
  height: 72px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.quiz-success-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.quiz-success-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

.quiz-success-call {
  width: 100%;
  max-width: 360px;
  padding: 16px 24px;
  font-size: 17px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.quiz-success-close {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.quiz-success-close:hover {
  color: var(--text-primary);
}

/* ===== QUIZ SUCCESS ===== */
.quiz__success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 8px 0;
}

.quiz__success .ty-icon {
  width: 72px;
  height: 72px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto;
}

.quiz__success .ty-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.quiz__success .ty-title span {
  color: var(--accent);
}

.quiz__success .ty-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

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

.quiz__success .ty-steps {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  width: 100%;
}

.quiz__success .ty-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 90px;
}

.quiz__success .ty-step-num {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.quiz__success .ty-step p {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

.quiz__success .ty-call-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  width: 100%;
}

.quiz__success .ty-call-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.quiz__success .ty-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  transition: opacity 0.2s;
}

.quiz__success .ty-call-btn:hover {
  opacity: 0.9;
}

.quiz-success-close {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.quiz-success-close:hover {
  color: var(--text-primary);
}



