@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --cream: #F4E6D4;
  --teal: #429197;
  --brown: #9C8060;
  --dark: #3D2B1F;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--dark);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Splash Screen */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash svg {
  width: 120px;
  height: 120px;
}

.butterfly-wing-left,
.butterfly-wing-right {
  transform-origin: center;
  animation: wingFlap 0.8s ease-in-out infinite alternate;
}

.butterfly-wing-right {
  animation-delay: 0.1s;
}

@keyframes wingFlap {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0.6); }
}

/* Main Content */
.main-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: var(--cream);
}

.hero-logo {
  max-width: 240px;
  width: 80%;
  margin: 0 auto 20px;
  display: block;
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.hero-cta:active {
  transform: scale(0.96);
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Accordion Cards */
.section-cards {
  padding: 20px 0 40px;
}

.accordion-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  overflow: hidden;
  border-right: 4px solid transparent;
  transition: border-color 0.3s ease;
}

.accordion-card.open {
  border-right-color: var(--teal);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  cursor: pointer;
  user-select: none;
}

.accordion-header svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.accordion-header h2 {
  font-size: 1.15rem;
  color: var(--teal);
  font-weight: 700;
  flex: 1;
}

.accordion-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-card.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-card.open .accordion-body {
  max-height: 5000px;
}

.accordion-content {
  padding: 0 20px 20px;
}

/* Service Rows */
.service-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(156,128,96,0.15);
}

.service-row:last-child {
  border-bottom: none;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.service-name {
  font-weight: 700;
  color: var(--brown);
  font-size: 0.95rem;
}

.service-duration {
  font-size: 0.75rem;
  background: var(--cream);
  color: var(--brown);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.service-desc {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
  line-height: 1.5;
}

.service-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-old {
  text-decoration: line-through;
  color: #c0392b;
  font-size: 0.95rem;
  font-weight: 600;
}

.price-new {
  color: var(--teal);
  font-weight: 800;
  font-size: 1.1rem;
}

.btn-book {
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: transform 0.2s;
  min-width: 90px;
  text-align: center;
  display: inline-block;
}

.btn-inquire {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  margin-right: 6px;
  min-width: 90px;
  text-align: center;
  display: inline-block;
}

.btn-inquire:active {
  transform: scale(0.94);
  background: rgba(66,145,151,0.1);
}

.btn-book:active {
  transform: scale(0.94);
}

/* Sub-section */
.sub-section-title {
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 700;
  margin: 20px 0 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(66,145,151,0.3);
}

/* Extensions Grid */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.ext-item {
  background: var(--cream);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.8rem;
}

.ext-item .ext-name {
  font-weight: 700;
  color: var(--brown);
  display: block;
  margin-bottom: 4px;
}

.ext-item .price-old {
  font-size: 0.75rem;
}

.ext-item .price-new {
  font-size: 0.9rem;
}

.ext-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ext-tag {
  background: var(--cream);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--brown);
  font-weight: 500;
}

/* Packages */
.package-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(156,128,96,0.15);
}

.package-row:last-child {
  border-bottom: none;
}

.package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.package-name {
  font-weight: 700;
  color: var(--brown);
  font-size: 1rem;
}

.package-price .price-old {
  font-size: 0.8rem;
}

.package-price .price-new {
  font-size: 1.05rem;
}

.package-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.package-tag {
  background: var(--cream);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.package-book {
  margin-top: 12px;
  text-align: left;
}

/* Includes Section */
.section-includes {
  padding: 30px 0;
  text-align: center;
}

.section-includes h3 {
  color: var(--teal);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.includes-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.include-item {
  background: var(--white);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  color: var(--brown);
  font-weight: 500;
}

/* Notes */
.section-notes {
  padding: 20px 0 40px;
}

.section-notes h3 {
  color: var(--teal);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.section-notes ul {
  list-style: none;
  padding: 0;
}

.section-notes li {
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--brown);
  border-bottom: 1px solid rgba(156,128,96,0.1);
  padding-right: 16px;
  position: relative;
}

.section-notes li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* Footer */
.footer {
  background: var(--dark);
  padding: 40px 20px;
  text-align: center;
}

.footer-brand {
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-icons a {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links span {
  color: var(--cream);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* Bottom Sheet Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  max-width: 600px;
  margin: 0 auto;
}

.modal-backdrop.active + .modal-sheet,
.modal-sheet.active {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--brown);
  opacity: 0.3;
  border-radius: 4px;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.modal-service-name {
  background: var(--cream);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 16px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--brown);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(156,128,96,0.3);
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  direction: rtl;
}

.form-group input:focus {
  border-color: var(--teal);
}

.form-group input[readonly] {
  background: var(--cream);
  cursor: default;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s;
}

.btn-submit:active {
  transform: scale(0.97);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.modal-message {
  display: none;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.modal-message.success {
  display: block;
  background: rgba(66,145,151,0.12);
  color: var(--teal);
}

.modal-message.error {
  display: block;
  background: rgba(192,57,43,0.1);
  color: #c0392b;
}

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waFloat 2s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop */
@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
}
