/* Layout Styles */
/* Header, Footer, Navigation, and page structure */

/* ========================================
   HEADER
   ======================================== */

.header {
  position: sticky;
  top: 0;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-sticky);
  height: var(--header-height);
}

.header-container {
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  transition: transform var(--transition-base);
}

.logo-img:hover {
  transform: scale(1.05);
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-semibold);
  color: var(--primary-teal);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

.logo-subtitle {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  text-transform: none;
}

/* Navigation */
.nav-container {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.main-nav {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width var(--transition-base);
}

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

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

.nav-link.active {
  color: var(--primary-teal);
  font-weight: var(--fw-semibold);
}

.nav-link.active::after {
  width: 80%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--bg-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.lang-btn {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--primary-teal);
  background-color: var(--bg-teal-light);
}

.lang-btn.active {
  color: var(--text-white);
  background-color: var(--primary-teal);
  font-weight: var(--fw-semibold);
}

.lang-separator {
  color: var(--border-medium);
  font-weight: var(--fw-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--primary-teal);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--primary-teal);
  color: var(--text-white);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: var(--space-4xl);
}

.footer-container {
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-column h3 {
  font-size: var(--fs-h4);
  color: var(--accent-gold);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--ls-wider);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: var(--space-md);
  color: var(--text-white);
}

.footer-column li span {
  color: var(--text-white);
}

.footer-link {
  color: var(--text-white);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

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

.footer-contact p {
  margin-bottom: var(--space-md);
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-white);
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.main-content {
  min-height: calc(100vh - var(--header-height));
}

/* Section Styling */
.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: var(--space-5xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* Flex Layouts */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
