/**
 * Elegant Theme
 * Sophisticated gradients, refined typography, luxury feel, timeless beauty
 * Uses CSS custom properties for brand colors (--color-primary, --color-secondary, --color-accent)
 */

/* ============================================
   TRANSITIONS & ANIMATIONS
   ============================================ */
.theme * {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes elegantPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

@keyframes elegantGlow {
  from { box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  to { box-shadow: 0 12px 50px rgba(var(--color-primary-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.theme .site-nav {
  background: linear-gradient(135deg,
    rgba(var(--color-primary-rgb), 0.03) 0%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(var(--color-secondary-rgb), 0.03) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.theme .nav-logo-text {
  font-weight: 300;
  letter-spacing: 0.1em;
}

.theme .nav-link {
  font-weight: 400;
  color: #475569;
  letter-spacing: 0.03em;
  position: relative;
}

.theme .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.theme .nav-link:hover,
.theme .nav-link.active {
  color: var(--color-primary);
}

.theme .nav-link:hover::after,
.theme .nav-link.active::after {
  width: 80%;
}

.theme .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 30px;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.35);
}

.theme .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1) !important;
  padding: 0.5rem !important;
}

.theme .nav-dropdown-menu a {
  color: #475569 !important;
  border-radius: 8px;
  margin-bottom: 2px;
}

.theme .nav-dropdown-menu a:hover {
  background: rgba(var(--color-primary-rgb), 0.03) !important;
  color: var(--color-primary) !important;
  transform: translateX(2px);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.theme .hero-section {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(var(--color-secondary-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(var(--color-accent-rgb), 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.03) 0%, #fafbfc 50%, rgba(var(--color-secondary-rgb), 0.02) 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* Elegant theme uses split layout - hide full-page background image */
.theme .hero-bg-image {
  display: none !important;
}

/* Light overlay for hero with background image (hidden by default) */
.theme .hero-overlay {
  background: rgba(255, 255, 255, 0.88) !important;
}

/* Dark text for elegant theme (light backgrounds) */
.theme .hero-title {
  color: #1e293b !important;
  text-shadow: none !important;
}

.theme .hero-description {
  color: #64748b !important;
  text-shadow: none !important;
}

.theme .hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.03) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: elegantPulse 8s ease-in-out infinite;
}

@keyframes elegantPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

.theme .hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.theme .hero-content {
  text-align: left;
}

.theme .hero-title {
  font-size: 4rem !important;
  color: #1e293b !important;
  position: relative;
  text-shadow: none !important;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* Decorative line under title */
.theme .hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 2rem 0;
}

.theme .hero-description {
  color: #64748b !important;
  text-shadow: none !important;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.theme .hero-image {
  display: block !important;
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 10px 25px rgba(var(--color-primary-rgb), 0.08);
  position: relative;
}

.theme .hero-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  border-radius: 32px;
  z-index: -1;
}

.theme .hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .theme .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .theme .hero-content {
    text-align: center;
  }
  
  .theme .hero-title::after {
    margin: 2rem auto;
  }
  
  .theme .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .theme .hero-buttons {
    justify-content: center;
  }
  
  .theme .hero-image {
    height: 400px;
  }
}

/* Hero CTA Buttons */
.theme .hero-cta.primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
  border-radius: 50px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: elegantGlow 3s infinite alternate;
  padding: 1rem 2.5rem;
  color: white;
  text-decoration: none;
  display: inline-block;
}

@keyframes elegantGlow {
  from { box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  to { box-shadow: 0 12px 50px rgba(var(--color-primary-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

.theme .hero-cta.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255, 215, 150, 0.3) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 215, 150, 0.3) 100%
  );
  transition: left 0.7s ease;
}

.theme .hero-cta.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(var(--color-primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme .hero-cta.primary:hover::before {
  left: 100%;
}

.theme .hero-cta.secondary {
  background: transparent !important;
  border: 1px solid rgba(var(--color-primary-rgb), 0.3) !important;
  color: var(--color-primary) !important;
  border-radius: 50px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em;
  padding: 1rem 2.5rem;
  text-decoration: none;
  display: inline-block;
}

.theme .hero-cta.secondary:hover {
  border-color: var(--color-primary) !important;
  background: rgba(var(--color-primary-rgb), 0.05) !important;
}

/* ============================================
   GRID SECTION
   ============================================ */
.theme .grid-section {
  background: linear-gradient(180deg,
    rgba(var(--color-primary-rgb), 0.02) 0%,
    rgba(var(--color-secondary-rgb), 0.03) 50%,
    #fafbfc 100%
  );
}

/* ============================================
   ALTERNATING SECTION BACKGROUNDS
   ============================================ */
.theme .paragraph-image-section:nth-of-type(odd) {
  background: linear-gradient(135deg,
    rgba(var(--color-primary-rgb), 0.04) 0%,
    rgba(var(--color-secondary-rgb), 0.02) 100%
  );
}

.theme .paragraph-image-section:nth-of-type(even) {
  background: linear-gradient(135deg,
    rgba(var(--color-secondary-rgb), 0.03) 0%,
    rgba(var(--color-accent-rgb), 0.02) 100%
  );
}

.theme .grid-title {
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.theme .grid-description {
  font-weight: 300;
  line-height: 1.9;
}

.theme .grid-card {
  border-radius: 20px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.theme .grid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.theme .grid-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--color-primary-rgb), 0.15);
}

.theme .grid-card:hover::before {
  opacity: 1;
}

.theme .grid-card-icon {
  background: linear-gradient(135deg,
    rgba(var(--color-primary-rgb), 0.1) 0%,
    rgba(var(--color-secondary-rgb), 0.1) 100%
  );
  border-radius: 16px;
}

.theme .grid-card:hover .grid-card-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.3);
}

.theme .grid-card-title {
  font-weight: 500;
}

.theme .grid-card-description {
  font-weight: 300;
  line-height: 1.9;
}

.theme .grid-card-button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ============================================
   PARAGRAPH + IMAGE SECTION
   ============================================ */
.theme .paragraph-title {
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.theme .paragraph-text {
  font-weight: 300;
  line-height: 1.9;
}

.theme .paragraph-image {
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.theme .paragraph-image:hover {
  transform: scale(1.02);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.12);
}

.theme .paragraph-button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ============================================
   LOGOS SECTION
   ============================================ */
.theme .logos-title {
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.theme .logo-image {
  filter: grayscale(100%);
  opacity: 0.4;
}

.theme .logo-item:hover .logo-image {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ============================================
   CUSTOM HTML SECTION
   ============================================ */
.theme .custom-html-title {
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ============================================
   FOOTER
   ============================================ */
.theme .site-footer {
  background: linear-gradient(135deg,
    rgba(var(--color-primary-rgb), 0.03) 0%,
    #fafbfc 50%,
    rgba(var(--color-secondary-rgb), 0.03) 100%
  );
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
  color: #64748b;
  position: relative;
  overflow: hidden;
}

.theme .site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-accent)
  );
}

.theme .footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  display: inline-block;
}

.theme .footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.theme .footer-content,
.theme .footer-address,
.theme .footer-contact {
  color: #64748b !important;
  font-weight: 300;
}

.theme .footer-subheading {
  color: #334155 !important;
  font-weight: 500;
}

.theme .footer-link {
  color: #475569 !important;
  font-weight: 300;
}

.theme .footer-link:hover {
  color: var(--color-primary) !important;
  transform: translateX(4px);
}

.theme .footer-copyright {
  color: #94a3b8 !important;
}

.theme .footer-button {
  border-radius: 50px;
  border-color: rgba(var(--color-primary-rgb), 0.3);
  color: #64748b;
}

.theme .footer-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.theme .footer-compliance-box {
  background: rgba(var(--color-primary-rgb), 0.03);
  border-radius: 16px;
}

.theme .footer-bottom {
  border-top-color: rgba(var(--color-primary-rgb), 0.1);
}

/* ============================================
   TEMPLATE COMPONENTS
   ============================================ */
.theme .template-hero-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50px;
  font-weight: 500;
}

.theme .template-benefit-card {
  border-radius: 20px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.theme .template-benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
