/* main.css - Global Layout, Header, Footer & Components */

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

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

/* Typography Helpers */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-teal { color: var(--accent-teal); }
.font-title { font-family: var(--font-primary); }

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--primary-600);
  max-width: 600px;
  margin: 0 auto 48px auto;
}

@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 32px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-full);
  font-size: 1rem;
  font-family: var(--font-primary);
  font-weight: 600;
  gap: 8px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--gradient-teal);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.4);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white) !important;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-secondary {
  background: var(--primary-900);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.4);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--white);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary-200);
  background: transparent;
  color: var(--primary-900);
}

.btn-outline:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(13, 148, 136, 0.05);
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-900);
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-800);
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-teal);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-teal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Premium Dropdown Menus */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown .chevron-icon {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
  color: var(--accent-teal);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  padding: 12px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1100;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 24px;
  font-size: 0.95rem;
  color: var(--primary-700);
  font-weight: 500;
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  text-align: left;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--primary-50);
  color: var(--accent-teal);
  padding-left: 28px;
}

@media (max-width: 992px) {
  /* Stack dropdowns cleanly in mobile view if responsive toggle is active */
  .nav-links.active {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
  }
  
  .nav-item-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: rgba(15, 23, 42, 0.02);
    padding: 8px 0;
    min-width: 100%;
    display: block;
    margin-top: 4px;
  }
  
  .dropdown-item {
    padding: 8px 16px;
  }
}

/* Language Selector */
.lang-selector {
  position: relative;
  font-family: var(--font-primary);
  font-weight: 600;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--primary-200);
  color: var(--primary-900);
}

.header:not(.scrolled) .lang-btn {
  color: var(--primary-900);
  border-color: rgba(15, 23, 42, 0.15);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary-100);
  width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1010;
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}

.lang-dropdown-item:hover {
  background: var(--primary-50);
  color: var(--accent-teal);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-900);
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .header-actions {
    display: none;
  }
}

/* Badge list (Trust Logos) */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.8;
  margin-top: 48px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-600);
}

.trust-badge-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
}

/* Footer Section */
.footer {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer h3, .footer h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-info p {
  margin: 16px 0;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

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

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn-accept {
  background: var(--accent-teal);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
}

.cookie-btn-decline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
}

/* --- Logo Size Increase (+30%) --- */
.header .logo-wrapper {
  transform: scale(1.3);
  transform-origin: left center;
}

.footer .logo-wrapper {
  transform: scale(1.3);
  transform-origin: left center;
}

/* Remove Footer License Text */
.footer-info p:last-child {
  display: none !important;
}

