@import "global.css";

/* Global styles */

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  margin: 0;
  background-color: var(--beige);
}

nav {
  padding: 16px 32px;
  background-color: white;
  height: 70px;
  box-sizing: border-box;
}

nav > div {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

nav ul li span {
  color: var(--willston-main);
}

nav ul li a {
  color: var(--willston-main);
}

/* Language Navigation Styles (matching account-nav pattern) */
.language-nav {
  position: relative;
}

.language-nav-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-8);
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.language-nav-trigger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.language-nav-trigger .flag {
  font-size: 14px;
  line-height: 1;
}

.language-nav-trigger .lang-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.language-nav-icon {
  margin-left: 4px;
  transition: transform 0.2s;
  fill: var(--willston-main);
}

.language-nav-trigger[aria-expanded="true"] .language-nav-icon {
  transform: rotate(180deg);
}

.language-nav-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: white;
  border-radius: var(--radius-8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 160px;
  z-index: 100;
  overflow: hidden;
  display: none;
}

.language-nav-popover.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.language-nav-content {
  padding: 8px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  color: var(--willston-main);
  text-decoration: none;
  border-radius: var(--radius-8);
  transition: background-color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.language-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.language-option .flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.language-option .lang-name {
  font-weight: 500;
  color: var(--willston-main);
  white-space: nowrap;
}

main {
  width: 100%;
}

footer {
  padding: 32px;
  background-color: #e8e2d2;
}

footer > div {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

footer a {
  color: var(--willston-main);
  text-decoration: none;
}

footer a:hover {
  color: var(--willston-main);
  text-decoration: underline;
}

footer ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

footer p,
footer a {
  font-size: 14px;
}

/* Auth container styles */
.auth-container {
  background-image: url("../images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  height: 100%;
  width: 100%;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 50%, var(--beige) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Homepage */

.cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px;
}

.cta h1 {
  font-size: 48px;
  line-height: 1.2;
}

/* Responsive image */
.cta-image-container {
  max-width: 700px;
  width: 100%;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.cta-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Features Section */
.features-section {
  background-color: white;
  padding: 80px 0;
}

.features-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: center;
}

.features-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-tab {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  box-shadow: var(--box-shadow);
  border-radius: var(--radius-8);
}

.feature-tab:hover {
  background-color: var(--white-marble);
}

.feature-tab.active {
  background-color: var(--white-marble);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--willston-deep-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  fill: white;
}

.feature-info h3 {
  margin: 0 0 8px 0;
  color: var(--willston-main);
}

.feature-info p {
  margin: 0;
  font-size: 14px;
  color: var(--black-marble);
  line-height: 1.5;
}

.features-display {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-image-container {
  max-width: 700px;
  width: 100%;
  background-color: var(--white-marble);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.feature-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Enhanced Reviews Section with Carousel */
.reviews-section {
  background-color: var(--beige);
  padding: 80px 0;
}

.reviews-carousel-container {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.reviews-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.review-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.review-card {
  background-color: white;
  padding: 32px;
  border-radius: var(--radius-8);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-stars span {
  color: var(--willston-deep-gold);
  font-size: 20px;
}

.review-text {
  font-style: italic;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.carousel-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  background-color: var(--willston-deep-gold);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background-color: var(--willston-main);
  transform: scale(1.1);
}

.carousel-btn svg {
  fill: white;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: var(--silver);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--willston-deep-gold);
}

/* FAQ Section */
.faq-section {
  background-color: white;
  padding: 80px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--silver);
  margin-bottom: 1px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--willston-main);
  text-align: left;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--willston-deep-gold);
}

.faq-icon {
  flex-shrink: 0;
  fill: var(--willston-deep-gold);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 24px 0;
  margin: 0;
  line-height: 1.6;
  color: var(--black-marble);
}

.faq-item.open .faq-question {
  color: var(--willston-deep-gold);
}

/* Security & Trust Section */
.security-section {
  background-color: var(--white-marble);
  padding: 80px 0;
}

.security-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.security-badge {
  background-color: white;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.security-badge:hover {
  transform: translateY(-5px);
}

.badge-icon {
  width: 64px;
  height: 64px;
  background-color: var(--willston-deep-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.badge-icon svg {
  fill: white;
}

.security-badge h4 {
  margin: 0 0 8px 0;
  color: var(--willston-main);
}

.security-badge .ts {
  color: var(--black-marble);
}

/* Second CTA Section */
.second-cta-section {
  background-color: var(--willston-main);
  padding: 80px 0;
  color: white;
}

.second-cta-container {
  padding: 48px;
  border-radius: var(--radius-8);
}

.second-cta-section h1 {
  color: white;
  margin-bottom: 16px;
}

.second-cta-section p {
  color: white;
  opacity: 0.9;
  font-size: 18px;
  margin-bottom: 16px;
}

.second-cta-section .cta-footer {
  flex-direction: column;
  gap: 8px;
}

/* Pricing Section */
.pricing-section {
  background-color: white;
  padding: 80px 0;
}

.billing-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.billing-option {
  font-weight: bold;
  color: var(--silver);
  transition: color 0.3s ease;
}

.billing-option.active {
  color: var(--willston-deep-gold);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--silver);
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--willston-deep-gold);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.subscription-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.subscription-plan {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  background-color: white;
  border: 2px solid var(--silver);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subscription-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.subscription-plan h2 {
  margin-bottom: 16px;
}

.subscription-plan.popular {
  border-color: var(--willston-deep-gold);
  position: relative;
}

.subscription-plan.popular::before {
  content: attr(data-popular-text);
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  line-height: 14px;
  color: white;
  text-align: top;
  background-color: var(--willston-deep-gold);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-text);
}

.plan-header {
  padding: 32px 24px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--silver);
  min-height: 200px;
  box-sizing: border-box;
}

.plan-header h3 {
  margin: 0 0 16px 0;
  color: var(--willston-main);
}

.plan-header h1 {
  margin: 0 0 8px 0;
  font-size: 36px;
}

.plan-features {
  padding: 24px;
  flex-grow: 1;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.plan-features li svg {
  margin-top: 3px;
  flex-shrink: 0;
}

.feature-included {
  color: var(--success);
  fill: var(--success);
}

.feature-not-included {
  color: var(--silver);
  fill: var(--silver);
}

.plan-footer {
  padding: 0 24px 24px 24px;
  text-align: center;
  margin-top: auto;
}

/* Responsive styles */

/* Tablet styles */
@media (max-width: 1024px) {
  main {
    margin: 24px auto;
  }

  .cta {
    gap: 24px;
    padding: 24px;
  }

  .cta h1 {
    font-size: 40px;
  }

  nav,
  footer {
    padding: 16px;
  }

  .features-container {
    gap: 32px;
  }

  .feature-tab {
    padding: 20px;
  }

  .subscription-plans {
    gap: 20px;
  }

  .security-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .review-card {
    padding: 24px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  nav {
    height: auto;
    padding: 12px 16px;
  }

  .language-nav-container {
    justify-content: flex-end !important;
  }

  .logo {
    order: 1;
  }

  .row-box {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  footer > div {
    flex-direction: column-reverse !important;
    gap: 12px;
  }

  .mobile-column-reverse {
    flex-direction: column-reverse !important;
    gap: 12px;
    margin-top: 12px;
  }

  .mobile-align-center {
    align-items: center !important;
    justify-content: center !important;
  }

  .logo {
    display: flex;
    align-items: center;
  }

  main {
    margin: 16px;
    padding: 0px;
    width: calc(100% - 32px);
  }

  .cta {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    text-align: center;
  }

  .cta h1 {
    font-size: 32px;
  }

  footer {
    padding: 24px 16px;
  }

  footer ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-image-container {
    margin: 0 auto;
  }

  .cta-footer {
    flex-direction: column;
  }

  .language-nav-popover {
    width: 140px;
    right: -16px;
  }

  .language-nav-trigger {
    padding: 5px 8px;
  }

  .language-nav-trigger .flag {
    font-size: 12px;
  }

  .language-nav-icon {
    width: 10px;
    height: 10px;
  }

  .language-option {
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
  }

  .language-option .flag {
    font-size: 14px;
  }

  /* Features responsive */
  .features-section,
  .reviews-section,
  .second-cta-section,
  .pricing-section,
  .faq-section,
  .security-section {
    padding: 48px 0;
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-tab {
    padding: 16px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .review-card {
    padding: 16px;
  }

  .second-cta-container {
    padding: 32px 16px;
  }

  .subscription-plans {
    flex-direction: column;
    align-items: center;
  }

  .subscription-plan {
    width: 100%;
    max-width: 400px;
  }

  .security-badges {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-question {
    font-size: 16px;
    padding: 20px 0;
  }

  .carousel-navigation {
    gap: 12px;
    margin-top: 24px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .hide-desktop {
    display: flex;
  }

  .hide-mobile {
    display: none;
  }

  body {
    height: auto;
    min-height: 100vh;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta {
    padding: 12px;
  }

  .cta h1 {
    font-size: 28px;
  }

  footer {
    padding: 16px;
  }

  footer > div {
    gap: 8px;
  }

  .features-section,
  .reviews-section,
  .second-cta-section,
  .pricing-section,
  .faq-section,
  .security-section {
    padding: 32px 0;
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-tab {
    padding: 12px;
    gap: 12px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .review-slide {
    width: 100%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .review-card {
    padding: 16px;
  }

  .second-cta-container {
    padding: 24px 12px;
  }

  .plan-header {
    padding: 24px 20px 20px 20px;
  }

  .plan-features {
    padding: 20px;
  }

  .plan-footer {
    padding: 0 20px 20px 20px;
  }

  .security-badge {
    padding: 24px 16px;
  }

  .badge-icon {
    width: 48px;
    height: 48px;
  }

  .badge-icon svg {
    width: 24px;
    height: 24px;
  }

  .faq-question {
    font-size: 15px;
    padding: 16px 0;
  }

  .faq-answer p {
    padding: 0 0 16px 0;
    font-size: 14px;
  }
}
