/* True Glow Custom Styles */

:root {
  --tg-green: #1F4B45;
  --tg-gold: #C6A15A;
  --tg-bg: #F8FAF9;
  --tg-text: #1F2937;
}

/* Global Styles */
* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--tg-text);
  background-color: var(--tg-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

/* Gold Line Accent */
.gold-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--tg-gold) 50%,
    transparent 100%
  );
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--tg-green);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid var(--tg-green);
}

.btn-primary:hover {
  background-color: #163832;
  border-color: #163832;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(31, 75, 69, 0.2);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 161, 90, 0.5);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: white;
  color: var(--tg-green);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid var(--tg-green);
}

.btn-secondary:hover {
  background-color: var(--tg-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(31, 75, 69, 0.2);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 161, 90, 0.5);
}

/* Hero Buttons */
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  background-color: var(--tg-green);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid var(--tg-green);
  box-shadow: 0 4px 15px rgba(31, 75, 69, 0.2);
}

.btn-primary-hero:hover {
  background-color: #163832;
  border-color: #163832;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(31, 75, 69, 0.3);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  background-color: transparent;
  color: var(--tg-green);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid var(--tg-green);
}

.btn-secondary-hero:hover {
  background-color: var(--tg-green);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(31, 75, 69, 0.2);
}

/* Secondary button for hero (light on dark background) */
.btn-secondary-hero-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-hero-light:hover {
  background-color: white;
  color: var(--tg-green);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Navbar */
#navbar {
  transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  font-weight: 500;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--tg-gold);
  transition: width 0.3s ease;
}

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

/* Service Cards */
.service-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--tg-gold);
}

.service-card .icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(31, 75, 69, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card .icon i {
  font-size: 1.5rem;
  color: var(--tg-green);
}

.service-card .gold-accent {
  width: 3rem;
  height: 2px;
  background-color: var(--tg-gold);
  margin: 1rem 0;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tg-text);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card ul li {
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.service-card ul li::before {
  content: '•';
  color: var(--tg-gold);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  text-align: center;
}

.pricing-card:hover {
  border-color: var(--tg-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tg-text);
  margin-bottom: 0.5rem;
}

.pricing-card .gold-accent {
  width: 2rem;
  height: 2px;
  background-color: var(--tg-gold);
  margin: 1rem auto;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tg-green);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* FAQ Accordion */
.faq-item {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--tg-gold);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--tg-text);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--tg-bg);
}

.faq-question i {
  color: var(--tg-green);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: #6b7280;
  line-height: 1.7;
}

/* Reveal Animation */
.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section Styles */
#hero {
  position: relative;
}

/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(31, 75, 69, 0.2);
  background-color: var(--tg-bg);
}

/* Social Icons for Hero (on dark background) */
.social-icon-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--tg-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.social-icon-hero:hover {
  transform: translateY(-3px);
  background-color: white;
  color: var(--tg-gold);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Treatment Cards Float */
.treatment-card-float {
  background: white;
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  border: 1px solid rgba(198, 161, 90, 0.1);
  animation: float 3s ease-in-out infinite;
}

.treatment-card-float:nth-child(2) {
  animation-delay: 1s;
}

.treatment-card-float:nth-child(3) {
  animation-delay: 2s;
}

.treatment-card-float:hover {
  transform: translateY(-5px) translateX(5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border-color: var(--tg-gold);
}

.treatment-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Treatment Cards Float for Hero (with glassmorphism) */
.treatment-card-float-hero {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
              0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.treatment-card-float-hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
              0 0 1px rgba(255, 255, 255, 0.6) inset;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(198, 161, 90, 0.4);
}

.treatment-card-icon-hero {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.treatment-card-icon-hero i {
  color: white !important;
}

.treatment-card-float-hero h3 {
  color: white;
  font-weight: 600;
}

.treatment-card-float-hero p {
  color: rgba(255, 255, 255, 0.9);
}

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

/* Hero Image Enhancement */
#hero .aspect-\[4\/5\] {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 4 / 5) {
  #hero .aspect-\[4\/5\] {
    padding-bottom: 125%; /* 5/4 = 1.25 = 125% */
    height: 0;
  }
  
  #hero .aspect-\[4\/5\] > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

#hero .aspect-\[4\/5\]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(31, 75, 69, 0.05) 0%, rgba(198, 161, 90, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, var(--tg-green) 0%, var(--tg-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
  .treatment-card-float {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
}

/* Smooth page load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero > * {
  animation: fadeInUp 0.8s ease-out forwards;
}

#hero > *:nth-child(2) {
  animation-delay: 0.2s;
}

#hero > *:nth-child(3) {
  animation-delay: 0.4s;
}

/* Smooth Scroll Offset for Fixed Navbar */
section {
  scroll-margin-top: 5rem;
}

/* Mobile Menu */
#mobile-menu {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.active {
  display: block;
  max-height: 500px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .btn-primary-hero,
  .btn-secondary-hero,
  .btn-secondary-hero-light {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  #hero {
    height: 100vh;
  }
  
  #hero .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  /* Mobile Hero Image Overlay - Darken more for readability */
  #hero .absolute.inset-0.bg-gradient-to-r {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
  }
  
  .treatment-card-float,
  .treatment-card-float-hero {
    margin-top: 1rem;
  }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--tg-gold);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: var(--tg-gold);
  color: white;
}

::-moz-selection {
  background-color: var(--tg-gold);
  color: white;
}
