/* Minimal Footer Styles */

.section-3.minimal {
  background-color: var(--light-bg-primar);
  width: 100%;
  margin-top: 40px;
  padding: 30px 100px 20px;
  box-shadow: 0 -3px 3px -3px #0003;
}

.footer-content {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

/* Top Row: Logo, Nav, Socials */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-logo img {
  height: auto;
  display: block;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Footer Menu (with dropdown) */
.footer-menu {
  position: relative;
}

.footer-menu-title {
  color: var(--text-on-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.footer-menu-title::after {
  content: '';
  border: solid var(--text-on-primary);
  border-width: 0 1.5px 1.5px 0;
  padding: 2px;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer-menu:hover .footer-menu-title {
  color: var(--primary);
}

.footer-menu:hover .footer-menu-title::after {
  border-color: var(--primary);
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* Dropdown */
.footer-dropdown {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  margin-bottom: 8px;
}

.footer-dropdown::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
}

.footer-menu:hover .footer-dropdown {
  opacity: 1;
  visibility: visible;
}

.footer-dropdown a {
  display: block;
  padding: 8px 16px;
  color: var(--text-on-primary);
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-dropdown a:hover {
  background-color: var(--light-bg-primar);
  color: var(--primary);
}

/* Direct Footer Links */
.footer-link {
  color: var(--text-on-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: var(--text-on-primary);
  transition: all 0.2s ease;
}

.social-icon:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.social-icon svg {
  width: 15px;
  height: 15px;
}

/* Newsletter Section */
.footer-newsletter {
  margin-bottom: 0;
}

.newsletter-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.newsletter-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.newsletter-title {
  color: var(--text-on-primary);
  font-size: 14px;
  font-weight: 600;
}

.newsletter-desc {
  color: var(--text-on-primary);
  opacity: 0.7;
  font-size: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.newsletter-input {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  width: 220px;
  background: #fff;
  color: var(--text-on-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-input::placeholder {
  color: #999;
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.newsletter-btn {
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  opacity: 0.9;
}

/* Newsletter Form Wrapper & Skeleton */
.newsletter-form-wrapper {
  position: relative;
  display: flex;
  flex-shrink: 0;
}

.newsletter-skeleton {
  display: flex;
  gap: 8px;
}

.skeleton-input {
  width: 220px;
  height: 36px;
  border-radius: 6px;
  background: #e0e0e0;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-button {
  width: 80px;
  height: 36px;
  border-radius: 6px;
  background: #d0d0d0;
  background: linear-gradient(90deg, #d0d0d0 25%, #e5e5e5 50%, #d0d0d0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hide skeleton when Klaviyo form loads */
.newsletter-form-wrapper:has(.klaviyo-form-T75S2K form) .newsletter-skeleton {
  display: none;
}

/* Hide Klaviyo container until loaded */
.klaviyo-form-T75S2K:empty {
  display: none;
}

/* Klaviyo Success/Confirmation Message Overrides */
.klaviyo-form-T75S2K > div {
  min-height: auto !important;
}

.klaviyo-form-T75S2K h1,
.klaviyo-form-T75S2K h1 span {
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: var(--text-on-primary) !important;
}

.klaviyo-form-T75S2K p,
.klaviyo-form-T75S2K p span {
  font-size: 12px !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  color: var(--text-on-primary) !important;
  opacity: 0.8;
}

.klaviyo-form-T75S2K [data-testid="form-component"]:has(h1),
.klaviyo-form-T75S2K [data-testid="form-component"]:has(p) {
  padding: 4px 0 !important;
}

.klaviyo-form-T75S2K [data-testid="form-row"]:has(h1),
.klaviyo-form-T75S2K [data-testid="form-row"]:has(p) {
  justify-content: flex-start !important;
}

/* Klaviyo Form Overrides */
.klaviyo-form-T75S2K {
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.klaviyo-form-T75S2K > div {
  min-height: auto !important;
}

.klaviyo-form-T75S2K [data-testid="form-row"] {
  gap: 8px !important;
  align-items: center !important;
}

.klaviyo-form-T75S2K [data-testid="form-component"] {
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.klaviyo-form-T75S2K [data-testid="form-component"] > div {
  align-self: center !important;
}

.klaviyo-form-T75S2K input[type="email"] {
  padding: 0 14px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  width: 220px !important;
  height: 36px !important;
  line-height: 36px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-on-primary) !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.klaviyo-form-T75S2K input[type="email"]::placeholder {
  color: #999 !important;
  font-size: 13px !important;
}

.klaviyo-form-T75S2K input[type="email"]:focus {
  border-color: var(--primary) !important;
}

.klaviyo-form-T75S2K button {
  padding: 0 18px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  height: 36px !important;
  line-height: 36px !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
  transition: all 0.2s ease !important;
  align-self: center !important;
}

.klaviyo-form-T75S2K button:hover {
  opacity: 0.9 !important;
}

.klaviyo-form-T75S2K button:disabled {
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

/* Hide Klaviyo label */
.klaviyo-form-T75S2K label {
  display: none !important;
}

/* Divider */
.footer-divider {
  border-bottom: 1px solid #e3e3e3;
  margin: 20px 0 15px;
}

/* Bottom Row */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  color: var(--text-on-primary);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal .separator {
  color: #ccc;
  font-size: 12px;
}

.footer-copyright {
  margin: 0;
  font-size: 12px;
  color: var(--text-on-primary);
  opacity: 0.6;
}

/* Responsive */
@media screen and (max-width: 991px) {
  .section-3.minimal {
    padding: 30px 60px 20px;
  }

  .footer-top {
    gap: 30px;
  }

  .footer-nav {
    gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  .section-3.minimal {
    padding: 30px 30px 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 25px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
  }

  .footer-dropdown {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 8px;
  }

  .footer-dropdown::after {
    bottom: auto;
    top: -6px;
    border-top: none;
    border-bottom: 6px solid #fff;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-text {
    align-items: center;
  }

  .newsletter-form {
    width: 100%;
    max-width: 360px;
  }

  .newsletter-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  /* Klaviyo tablet overrides */
  .klaviyo-form-T75S2K {
    width: 100% !important;
    max-width: 360px !important;
  }

  .klaviyo-form-T75S2K input[type="email"] {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  /* Skeleton tablet overrides */
  .newsletter-skeleton {
    width: 100%;
    max-width: 360px;
  }

  .skeleton-input {
    flex: 1;
    width: auto;
  }
}

@media screen and (max-width: 479px) {
  .section-3.minimal {
    padding: 25px 20px 15px;
  }

  .footer-nav {
    gap: 12px 20px;
  }

  .footer-menu-title,
  .footer-link {
    font-size: 13px;
  }

  .social-icon {
    width: 32px;
    height: 32px;
  }

  .social-icon svg {
    width: 14px;
    height: 14px;
  }

  .newsletter-title {
    font-size: 13px;
  }

  .newsletter-desc {
    font-size: 11px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
  }

  /* Klaviyo mobile overrides */
  .klaviyo-form-T75S2K [data-testid="form-row"] {
    flex-direction: column !important;
  }

  .klaviyo-form-T75S2K input[type="email"],
  .klaviyo-form-T75S2K button {
    width: 100% !important;
  }

  /* Skeleton mobile overrides */
  .newsletter-skeleton {
    flex-direction: column;
  }

  .skeleton-input,
  .skeleton-button {
    width: 100%;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .footer-legal .separator {
    display: none;
  }

  .footer-legal a {
    padding: 2px 8px;
  }
}
