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

:root {
  --color-primary: #0f172a;
  --color-primary-mid: #1e3a5f;
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;
  --color-accent-dark: #d97706;
  --color-white: #ffffff;
  --color-off-white: #f8fafc;
  --color-light: #f1f5f9;
  --color-gray-100: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-500: #64748b;
  --color-gray-700: #334155;
  --color-gray-900: #0f172a;
  --color-success: #10b981;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-gray-900);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-primary-sm {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

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

.btn-ghost-sm {
  background: transparent;
  color: var(--color-gray-700);
  border-color: var(--color-gray-300);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.btn-ghost-sm:hover {
  border-color: var(--color-gray-500);
  color: var(--color-primary);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-mid) 40%, #1a3a5c 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.8)), url('../hero.jpg') center/cover no-repeat;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  text-align: center;
  color: var(--color-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-logo {
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

.hero-brand-divider {
  width: 2px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.hero-brand-powered {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero-brand-powered img {
  height: 36px;
  width: auto;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-lead {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Category Selector */
.category-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: cardBounce 2.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.category-card:nth-child(2) {
  animation-delay: 0.7s;
}

.category-card:nth-child(3) {
  animation-delay: 0.9s;
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  animation: none;
}

.category-card:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease;
  animation: none;
}

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

.category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  color: var(--color-accent-light);
  transition: all var(--transition);
}

.category-card:hover .category-icon {
  background: var(--color-accent);
  color: var(--color-white);
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.category-sub {
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.4;
}

/* Video Section */
.video-section {
  padding: 100px 0;
  background: var(--color-off-white);
  border-top: 1px solid var(--color-gray-100);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.video-text {
  max-width: 520px;
}

.video-text .section-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.video-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.video-text p {
  font-size: 1.05rem;
  color: var(--color-gray-500);
  margin-bottom: 16px;
  line-height: 1.7;
}

.video-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.video-list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-gray-700);
  font-weight: 500;
}

.video-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-primary);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
}

.video-placeholder-content {
  text-align: center;
  color: var(--color-white);
}

.video-placeholder-content svg {
  margin-bottom: 16px;
  opacity: 0.9;
}

.video-placeholder-content p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-placeholder-content span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Closings Section */
.closings-section {
  padding: 100px 0;
  background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.75)), url('../Closed Deals.jpg') center/cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.closings-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.closings-section .section-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.closings-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.closings-section .section-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.carousel-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  background: #f1f5f9;
  transition: width 0.3s ease, height 0.3s ease;
  flex-shrink: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.carousel-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.carousel-btn {
  position: static;
  transform: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

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

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 10px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-btn--prev {
  left: 20px;
}

.lightbox-btn--next {
  right: 20px;
}

/* Category Page Header */
.category-page-header {
  background: var(--color-primary);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.category-page-header .category-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  text-decoration: none;
}

.category-page-header .category-back:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.3px;
}

.header-brand-divider {
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.header-brand-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.header-brand-powered img {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Category Sections */
.category-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  background: var(--color-white);
}

.category-section-residential {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../Residential.jpg') center/cover no-repeat;
}

.category-section-investment {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../Investment.jpg') center/cover no-repeat;
}

.category-section-commercial {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../Commercial.jpg') center/cover no-repeat;
}

.category-section-residential .category-header h2,
.category-section-investment .category-header h2,
.category-section-commercial .category-header h2 {
  color: var(--color-white);
}

.category-section-residential .category-header p,
.category-section-investment .category-header p,
.category-section-commercial .category-header p {
  color: rgba(255, 255, 255, 0.8);
}

.category-header {
  text-align: center;
  margin-bottom: 48px;
}

.category-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  color: var(--color-gray-700);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.category-back:hover {
  border-color: var(--color-gray-500);
  color: var(--color-primary);
}

.category-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.category-header p {
  font-size: 1.1rem;
  color: var(--color-gray-500);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.program-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.program-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.program-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 50px;
}

.program-summary {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
  flex-grow: 0;
}

.program-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-100);
}

.program-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.program-expandable.expanded {
  max-height: 500px;
  opacity: 1;
  margin-top: 16px;
}

.program-expandable p {
  font-size: 0.9rem;
  color: var(--color-gray-700);
  margin-bottom: 10px;
  line-height: 1.5;
}

.program-expandable ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-expandable li {
  padding-left: 20px;
  position: relative;
  font-size: 0.85rem;
  color: var(--color-gray-700);
  line-height: 1.5;
}

.program-expandable li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.program-toggle {
  cursor: pointer;
  user-select: none;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gray-500);
  cursor: pointer;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-gray-500);
  margin-bottom: 24px;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-gray-100);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-gray-900);
  background: var(--color-off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  background: var(--color-white);
}

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

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-success h3 {
  color: #065f46;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-success p {
  color: #064e3b;
}

.btn-full {
  width: 100%;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: all var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.5);
}

.chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 480px;
}

.chat-panel.active {
  display: flex;
}

.chat-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity var(--transition);
  padding: 4px;
}

.chat-close:hover {
  opacity: 1;
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg--bot {
  background: var(--color-light);
  color: var(--color-gray-900);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  background: var(--color-accent);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-gray-100);
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-gray-100);
  border-radius: 24px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
}

.chat-input input:focus {
  border-color: var(--color-accent);
}

.chat-input button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: background var(--transition);
  flex-shrink: 0;
}

.chat-input button:hover {
  background: var(--color-accent-dark);
}

/* Footer */
.site-footer {
  background: #0b1220;
  color: var(--color-white);
  padding: 72px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-brand-divider {
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.footer-brand-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.footer-brand-powered img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
  text-decoration: none;
}

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

.footer-contact {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-content {
    padding: 80px 0 60px;
  }

  .category-selector {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .category-section {
    padding: 60px 0;
  }

  .category-header h2 {
    font-size: 1.8rem;
  }

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

  .video-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .video-text {
    max-width: 100%;
    text-align: center;
  }

  .video-list {
    align-items: center;
  }

  .closings-section {
    padding: 60px 0;
  }

  .closings-section h2 {
    font-size: 1.8rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-viewport {
    gap: 12px;
  }

  .lightbox-btn {
    width: 44px;
    height: 44px;
  }

  .lightbox-btn--prev {
    left: 10px;
  }

  .lightbox-btn--next {
    right: 10px;
  }

  .modal {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-desc {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .chat-panel {
    width: 300px;
    right: -40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-trust {
    gap: 16px;
  }

  .video-text h2 {
    font-size: 1.6rem;
  }

  .closings-section h2 {
    font-size: 1.5rem;
  }

  .carousel-viewport {
    gap: 8px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

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

  .chat-panel {
    width: calc(100vw - 48px);
    right: -60px;
  }
}
