/* 
  FlexTritt Design System 
  Theme: Dark Brown (#3E2723), White (#FFFFFF), Black (#121212)
*/

:root {
  --primary-color: #3E2723;
  --secondary-color: #5D4037;
  --accent-color: #121212;
  --bg-color: #FFFFFF;
  --text-color: #333333;
  --light-text: #757575;
  --white: #FFFFFF;
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

.flextritt-app-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Advertisement Note Top */
.adv-note-top {
  background-color: #f5f5f5;
  color: #666;
  text-align: center;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid #ddd;
}

/* Page Loader */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease-in-out;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 2px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

/* Header */
.header-main {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item-link {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-item-link:hover {
  color: var(--primary-color);
}

.header-cta {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition-speed), transform 0.2s;
}

.header-cta:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.flextritt-app-body *,
.flextritt-app-body *::before,
.flextritt-app-body *::after {
  box-sizing: border-box;
}

/* Hamburger Menu */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile Nav & Backdrop */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1900;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  background-color: var(--white);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
}

.no-scroll {
  overflow: hidden !important;
}

@media (min-width: 769px) {

  .mobile-nav,
  .nav-backdrop {
    display: none !important;
  }
}

.close-nav {
  align-self: flex-end;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
  padding: 0;
}

.close-nav::before,
.close-nav::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.close-nav::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-nav::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-nav:hover::before,
.close-nav:hover::after {
  background-color: var(--primary-color);
}

.mobile-links {
  list-style: none;
  padding: 0;
}

.mobile-link-item {
  margin-bottom: 25px;
}

.mobile-link-item-a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  background-color: #fcf9f7;
  display: flex;
  align-items: center;
}

.hero-flex {
  display: flex;
  gap: 50px;
  align-items: center;
}

.hero-content {
  flex: 1;
}

.hero-image-box {
  flex: 1;
  text-align: center;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--light-text);
  margin-bottom: 35px;
}

.hero-img {
  max-width: 100%;
  border-radius: var(--border-radius);
  transition: transform 0.5s;
}

.hero-img:hover {
  transform: scale(1.05);
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  padding: 30px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed);
}

.card:hover {
  transform: translateY(-10px);
}

/* Testimonials */
.testimonial-card {
  font-style: italic;
  position: relative;
}

.testimonial-author {
  margin-top: 15px;
  font-weight: 700;
  font-style: normal;
}

/* FAQ Accordion */
.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--light-text);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-bottom: 20px;
}

/* Footer */
.footer-main {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-heading {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.footer-text {
  color: #ccc;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-link-item {
  margin-bottom: 12px;
}

.footer-link-a {
  color: #ccc;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-link-a:hover {
  color: var(--white);
}

.adv-note-footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid #333;
  color: #888;
  font-size: 14px;
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* Cookies Popup */
.cookies-overlay {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: none;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
  font-size: 14px;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-accept {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-reject {
  background-color: #eee;
  color: #333;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 4000;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-container {
  background: var(--white);
  width: 90%;
  max-width: 600px;
  padding: 40px;
  border-radius: var(--border-radius);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .header-cta {
    display: none;
  }

  .hamburger-toggle {
    display: block;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookies-overlay {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cookie-text {
    padding-right: 0;
  }
}