/* ========== CSS Variables - Botanical Luxe Theme ========== */
:root {
  --primary: #718673;
  --primary-dark: #5a6b5c;
  --primary-light: #8fa291;
  --secondary: #4a5a4c;
  --secondary-dark: #3a4a3c;
  --accent: #9ab89d;
  --gold: #D4AF37;
  --text: #2a2a2a;
  --text-light: #6B7280;
  --bg: #F5F1E8;
  --bg-light: #FDFCF9;
  --bg-dark: #E8E2D5;
  --card-bg: #FFFFFF;
  --border: #D8D1C3;
  --shadow-sm: 0 1px 2px 0 rgba(113, 134, 115, 0.08);
  --shadow: 0 4px 6px -1px rgba(113, 134, 115, 0.12), 0 2px 4px -1px rgba(113, 134, 115, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(113, 134, 115, 0.15), 0 4px 6px -2px rgba(113, 134, 115, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(113, 134, 115, 0.2), 0 10px 10px -5px rgba(113, 134, 115, 0.15);
  --glow: 0 0 20px rgba(113, 134, 115, 0.2);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

.small, small {
  color: var(--text-light) !important;
  font-size: 0.875rem;
}

.text-muted {
  color: var(--text-light) !important;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section:last-of-type {
  padding-bottom: 80px;
  margin-bottom: 0;
}

/* ========== Navigation ========== */
.topnav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(253, 252, 249, 0.95);
}

.topnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.topnav .logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.topnav nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.topnav a:not(.logo) {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.topnav a:not(.logo):hover {
  color: var(--primary);
}

.topnav a:not(.logo)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.topnav a:not(.logo):hover::after {
  width: 100%;
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg) 50%, var(--bg-light) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(113, 134, 115, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.stat-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.stat-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* ========== Cards & Components ========== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.card h3 {
  color: var(--primary-light);
  margin-bottom: 16px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  display: block;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-dark);
  color: var(--text);
  font-size: 0.875rem;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* ========== Grid Layouts ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-dark);
  color: var(--secondary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

/* ========== Forms ========== */
label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group {
  margin-bottom: 24px;
}

/* ========== Lists ========== */
ul.clean {
  list-style: none;
  padding: 0;
}

ul.clean li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
}

ul.clean li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: bold;
}

/* ========== Section Headers ========== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
}

/* ========== Footer ========== */
footer {
  background: var(--card-bg);
  border-top: 2px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
  color: var(--text);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.footer-section h4 {
  color: var(--secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.social-link svg {
  flex-shrink: 0;
}

.payment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-list li {
  padding: 10px 0;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.payment-list li:last-child {
  border-bottom: none;
}

.payment-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  margin-right: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
}

.footer-bottom p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.875rem;
}

footer .container {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========== Utilities ========== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ========== Responsive ========== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .topnav nav {
    gap: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 80px 0 60px;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .topnav nav {
    display: none;
  }
}

/* ========== Feature Highlights ========== */
.feature-highlight {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  padding: 64px 0;
  margin: 80px 0;
  border-radius: var(--radius-lg);
}

.feature-highlight h2,
.feature-highlight p {
  color: white;
}

/* ========== Contact Section Styling ========== */
.contact-form {
  background: var(--card-bg);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ========== Calculator Styling ========== */
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calculator-inputs h3 {
  color: var(--secondary);
}

.calculator-results {
  position: sticky;
  top: 100px;
}

.estimate-breakdown {
  font-size: 1.1rem;
}

.estimate-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 16px;
}

.estimate-line span {
  opacity: 0.95;
}

@media (max-width: 968px) {
  .calculator-container {
    grid-template-columns: 1fr;
  }

  .calculator-results {
    position: static;
  }
}

/* ========== Quick Calculator (Home Page) ========== */
.calculator-embed-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: start;
}

.quick-calculator {
  position: sticky;
  top: 100px;
}

.quick-calculator h3 {
  color: var(--secondary);
  margin-bottom: 8px;
}

.estimate-result {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  padding: 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  text-align: center;
}

.estimate-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.estimate-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.estimate-detail {
  font-size: 0.9rem;
  opacity: 0.9;
}

.calculator-info h3 {
  color: var(--primary-light);
}

.info-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ========== Testimonials ========== */
.testimonial-card {
  text-align: left;
}

.testimonial-card .stars {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author strong {
  color: var(--text);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.875rem;
}

/* ========== FAQ Section ========== */
.faq-grid {
  display: grid;
  gap: 20px;
}

.faq-item h4 {
  color: var(--primary-light);
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.faq-item p {
  margin: 0;
  line-height: 1.7;
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  padding: 80px 0;
  text-align: center;
  margin: 0;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-banner p {
  color: white;
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

/* ========== Gallery Section ========== */
.gallery-section {
  padding: 0;
  margin: 0;
}

.gallery-bg {
  background: var(--secondary);
  padding: 40px 0;
}

.gallery-header-styled {
  text-align: center;
  margin-bottom: 28px;
}

.gallery-header-styled h2 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.gallery-header-styled p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-viewport {
  flex: 1;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  flex: 0 0 25%;
  padding: 0 6px;
  box-sizing: border-box;
}

.gallery-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-slide img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 48px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-caption {
  color: white;
  margin-top: 16px;
  font-size: 1rem;
  opacity: 0.8;
  text-align: center;
}

/* Gallery Navigation */
.gallery-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.gallery-nav svg {
  width: 16px;
  height: 16px;
}

/* Gallery Indicators */
.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.gallery-indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

.gallery-indicator.active {
  background: white;
}

/* Gallery Responsive - 3 on tablet */
@media (max-width: 1024px) {
  .gallery-slide {
    flex: 0 0 33.333%;
  }
  
  .gallery-slide img {
    height: 200px;
  }
}

/* Gallery Responsive - 2 on small tablet */
@media (max-width: 768px) {
  .gallery-bg {
    padding: 32px 0;
  }
  
  .gallery-slide {
    flex: 0 0 50%;
  }
  
  .gallery-slide img {
    height: 180px;
  }
}

/* Gallery Responsive - 1 on mobile */
@media (max-width: 480px) {
  .gallery-slide {
    flex: 0 0 100%;
  }
  
  .gallery-slide img {
    height: 260px;
  }
  
  .gallery-nav {
    width: 32px;
    height: 32px;
  }
}

/* ========== Additional Responsive Styles ========== */
@media (max-width: 968px) {
  .calculator-embed-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quick-calculator {
    position: static;
  }
}
