/* assets/css/base.css
   Core styles for exported pages + builder preview.
*/

/* CSS variables */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f97316;
  --bg: #0f172a;
  --text-light: #e5e7eb;
  --muted: #6b7280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.6;
}

.page-wrapper {
  background: #f3f4f6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HERO */

.hero-section {
  background: radial-gradient(circle at top left, #4f46e5, #0f172a);
  color: var(--text-light);
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 24px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 16px;
  margin-bottom: 24px;
  color: #cbd5f5;
}

.hero-media .hero-image-placeholder {
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

/* Buttons */

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #111827;
}

.btn-primary:hover {
  background: #fb923c;
}

.btn-outline {
  border: 1px solid #e5e7eb;
  color: #e5e7eb;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */

section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 16px;
}

/* Features */

.features-section {
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px;
  margin-top: 16px;
}

.feature-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.08);
  font-size: 14px;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 17px;
}

/* Split section */

.split-section {
  background: #f3f4f6;
}

.split-inner {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 24px;
  align-items: center;
}

.split-image-placeholder {
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #4b5563;
  text-align: center;
  padding: 16px;
}

/* Testimonials */

.testimonials-section {
  background: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 16px;
  margin-top: 16px;
}

.testimonial-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.06);
  font-size: 14px;
}

.testimonial-card span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

/* Contact */

.contact-section {
  background: #f3f4f6;
}

.contact-section > .container > p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 16px;
}

.contact-info p i {
  margin-right: 6px;
}

/* Footer */

.footer-section {
  padding: 16px 0;
  background: #0f172a;
  color: #9ca3af;
  text-align: center;
  font-size: 13px;
}

/* Basic text sections */

.text-section {
  background: #ffffff;
}

.text-section p {
  max-width: 720px;
  margin: 0 auto;
  color: #6b7280;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 12px;
}

.gallery-item {
  border-radius: 10px;
  background: #e5e7eb;
  height: 160px;
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px;
}

.team-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.08);
  text-align: center;
  font-size: 14px;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 0 auto 8px;
}

/* Hover effects */

.hover-grow {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-grow:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 30px rgba(15,23,42,0.15);
}

/* === WOW-STYLE ANIMATIONS === */

.wow {
  visibility: hidden;
}

.wow.animate-active {
  visibility: visible;
}

/* Base animation helper */
.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

/* Keyframes */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.8, 0.8, 0.8);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Animation name helpers */

.fadeInUp { animation-name: fadeInUp; }
.fadeInDown { animation-name: fadeInDown; }
.fadeInLeft { animation-name: fadeInLeft; }
.fadeInRight { animation-name: fadeInRight; }
.zoomIn { animation-name: zoomIn; }
.fadeIn { animation-name: fadeIn; }

/* Progress bar */

.progress-wrapper {
  max-width: 480px;
  margin: 0 auto;
}
.progress-label {
  font-size: 14px;
  margin-bottom: 4px;
}
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #2563eb;
  width: 50%;
}

/* Counter */

.counter-card {
  text-align: center;
}
.counter-number {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 4px;
}

/* Scroll-to-top button */

.scroll-top-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15,23,42,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Tabs */

.tabs {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #ffffff;
}
.tabs-nav {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}
.tab-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: #f9fafb;
  cursor: pointer;
  font-size: 14px;
}
.tab-btn.active {
  background: #2563eb;
  color: #ffffff;
}
.tab-panel {
  display: none;
  padding: 14px 16px;
}
.tab-panel.active {
  display: block;
}

/* Accordion */

.accordion {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.accordion-item + .accordion-item {
  border-top: 1px solid #e5e7eb;
}
.accordion-header {
  padding: 12px 14px;
  background: #f9fafb;
  cursor: pointer;
  font-weight: 600;
}
.accordion-body {
  padding: 12px 14px;
  display: none;
  background: #ffffff;
}
.accordion-item.open .accordion-body {
  display: block;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .split-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 36px 0;
  }
}
