:root {
  --bg-light: #fdfdfd;
  --text-primary: #0a0a0a;
  --text-secondary: #4a4a4a;
  --border-color: #eaeaea;
  --accent-dark: #000000;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd5a;

  /* High-End Agency Accents */
  --accent-gold: #c5a880;
  --accent-subtle: #f4f2ef;

  --font-sans: "Inter", sans-serif;
  --font-heading: "Outfit", sans-serif;
}

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

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 10px;
  border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Firefox Support */
* {
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 transparent;
}

.selected-items {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
  margin-bottom: 1rem;
}

.selected-items::-webkit-scrollbar {
  width: 5px;
}

.selected-items::-webkit-scrollbar-thumb {
  background: #eee;
}

/* Refined texture overlay */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Very subtle organic noise */
  background-image:
    radial-gradient(
      circle at 50% 0%,
      rgba(197, 168, 128, 0.05) 0%,
      transparent 60%
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  background-attachment: fixed;
  background-size:
    100% 100%,
    200px 200px;
}

/* Ensures footer sticks to the bottom */
main {
  flex: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}
.w-full {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px; /* High-end square edge */
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent-dark);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

.btn-outline:hover {
  color: var(--text-secondary);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: white;
  padding: 1rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.btn-whatsapp:hover:not(:disabled) {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:disabled {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.icon-sm {
  width: 1.1rem;
  height: 1.1rem;
}

/* Navbar */
.navbar {
  padding: 2rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
  }
  .nav-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
  }
  .nav-links a:hover {
    color: var(--text-primary);
  }
}

/* Hero Section */
.hero {
  padding-top: 5rem;
  padding-bottom: 6rem;
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 1.75rem;
  letter-spacing: -2px;
  color: var(--text-primary);
}

/* Inline pills within headings */
.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(45px, 4.5vw, 65px);
  width: clamp(90px, 12vw, 160px);
  border-radius: 12px;
  vertical-align: middle;
  margin: 0 0.5rem;
  padding: 0;
  background-color: var(--accent-subtle);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.hero-pill.alt {
  background-color: transparent;
  border: none;
}

.hero-pill img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Image Showcase */
.showcase {
  max-width: 900px;
  margin: 0 auto 4rem;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* Service Selector Container */
.service-selector {
  padding: 6rem 0;
  background-color: #ffffff;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.selector-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-secondary);
}

.selector-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Accordion Phases */
.phases-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  background: #fff;
  user-select: none;
}

.accordion-header:hover {
  background: #fafafa;
}

.accordion-title-wrapper h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

.accordion-title-wrapper p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

/* Granular Options List */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: #fdfdfd;
}

.accordion-item.open .accordion-content {
  max-height: 1000px;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.options-list {
  padding: 0 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
  padding-top: 1.5rem;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.option-checkbox-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
}

.granular-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}

.check-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: white;
  width: 14px;
  height: 14px;
}

.option-row input:checked ~ .custom-checkbox {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.option-row input:checked ~ .custom-checkbox .check-icon {
  opacity: 1;
  transform: scale(1);
}

.option-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.option-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.option-name {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
}

.service-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
  opacity: 0.85;
  margin: 0;
}

.option-price {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Add-ons Styling */
.add-ons-container {
  padding-left: 2.5rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
}

.add-ons-container.visible {
  max-height: 300px;
  opacity: 1;
  margin-bottom: 1rem;
  pointer-events: auto;
}

.add-on-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.add-on-row .option-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.add-on-row .option-price {
  font-size: 0.85rem;
}

/* Calculator Panel */
.calculator-panel {
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 16px;
  position: sticky;
  top: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.calculator-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.empty-state {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.item-list {
  list-style: none;
  margin-bottom: 1.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.item-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border-color);
}

.item-list li:last-child {
  border-bottom: none;
}

.item-list .item-price {
  font-weight: 500;
}

.hidden {
  display: none;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1.5px solid var(--border-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.total-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.panel-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Footer (Sticky functionality supported by flex: 1 on main) */
.footer {
  padding: 3rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .selector-layout {
    grid-template-columns: 1fr;
  }
  .calculator-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 3rem;
  }
  .hero-pill {
    display: none; /* Simplify on small screens */
  }
}
