/* SUTRA - Layout System */

/* Container */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-4);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* Section Spacing */
.section {
  padding-block: var(--space-12);
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-16);
  }
}

.section--alt {
  background-color: var(--sutra-light-bg);
}

.section--image-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section--image-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31, 67, 54, 0.7), rgba(31, 67, 54, 0.3), transparent);
  z-index: 1;
}

/* For V1, reduce overlay opacity at top where header is */
.nav-v1 ~ main .hero.section--image-bg::before {
  background: linear-gradient(to bottom, 
    rgba(31, 67, 54, 0.2) 0%, 
    rgba(31, 67, 54, 0.2) 15%, 
    rgba(31, 67, 54, 0.4) 30%, 
    rgba(31, 67, 54, 0.5) 50%, 
    rgba(31, 67, 54, 0.3) 70%, 
    transparent 100%);
  z-index: 1;
}

/* Header Layout - Modern State-of-the-Art Design */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  overflow-x: hidden;
  border-block-end: 1px solid rgba(42, 106, 84, 0.08);
}

.site-header.scrolled {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05), 0 8px 30px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.99);
}

/* V1 Header - Overlay on Hero (override base styles) */
.nav-v1.site-header {
  position: absolute !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-block-end: none !important;
}

/* Ensure hero overlay doesn't affect header/logo */
.nav-v1 ~ main .hero.section--image-bg::before {
  z-index: 1;
}

.nav-v1 .site-header,
.nav-v1 .site-header__inner {
  z-index: 1002 !important;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding-block: var(--space-5);
  }
  
  .nav {
    gap: var(--space-4);
  }
  
  .nav__link {
    font-size: 0.9rem;
    padding: var(--space-3) var(--space-4);
  }
}

@media (min-width: 1280px) {
  .nav__link {
    font-size: 0.95rem;
    padding: var(--space-3) var(--space-5);
  }
}

.site-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

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

.site-logo img {
  height: 44px;
  width: auto;
  transition: filter 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (min-width: 1024px) {
  .site-logo img {
    height: 52px;
  }
}

/* Navigation - Modern Clean Design */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    justify-content: center;
  }
}

.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--sutra-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.nav__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sutra-green), var(--sutra-dark));
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
  z-index: -1;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sutra-green), transparent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-pill);
}

.nav__link:hover {
  color: var(--sutra-green);
  transform: translateY(-1px);
}

.nav__link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav__link:active {
  transform: translateY(0);
}

.nav__link.active {
  color: var(--sutra-green);
  font-weight: 600;
}

.nav__link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle - Animated Hamburger */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  transition: background-color 0.3s ease;
  position: relative;
}

.mobile-menu-toggle:hover {
  background-color: var(--sutra-light-bg);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2.5px;
  background-color: var(--sutra-dark);
  border-radius: var(--radius-pill);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--sutra-green);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--sutra-green);
}

/* Language Switcher - Modern Design */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--sutra-dark);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .lang-switcher {
    font-size: 0.9rem;
    padding: var(--space-2) var(--space-4);
  }
}

.lang-switcher::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sutra-light-bg);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.lang-switcher:hover::before {
  opacity: 1;
}

.lang-switcher span {
  color: var(--sutra-green);
  font-weight: 600;
}

.lang-switcher a {
  color: rgba(31, 67, 54, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  position: relative;
}

.lang-switcher a:hover {
  color: var(--sutra-green);
  background-color: rgba(42, 106, 84, 0.08);
}

.lang-switcher a:active {
  transform: scale(0.95);
}

/* Footer Layout - Modern Design */
.site-footer {
  background: linear-gradient(180deg, var(--sutra-dark) 0%, #1a3529 100%);
  color: #ffffff;
  padding-block: var(--space-16);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(42, 106, 84, 0.5) 20%, 
    rgba(42, 106, 84, 0.8) 50%, 
    rgba(42, 106, 84, 0.5) 80%, 
    transparent 100%);
}

.site-footer__border {
  display: none;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    gap: var(--space-16);
  }
}

/* Footer Brand Section */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.site-footer__logo {
  display: inline-block;
  transition: transform var(--transition-base);
}

.site-footer__logo:hover {
  transform: translateY(-2px);
}

.site-footer__logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-base);
}

@media (min-width: 768px) {
  .site-footer__logo img {
    height: 52px;
  }
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
  margin-block-start: var(--space-2);
}

/* Footer Navigation */
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-footer__nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-block-end: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  padding: var(--space-1) 0;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.site-footer__links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sutra-green);
  transition: width var(--transition-base);
}

.site-footer__links a:hover {
  color: #ffffff;
  padding-inline-start: var(--space-2);
}

.site-footer__links a:hover::before {
  width: 20px;
}

/* Footer Contact Section */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.site-footer__contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-block-start: 2px;
  color: var(--sutra-green);
}

.site-footer__contact-icon svg {
  width: 100%;
  height: 100%;
}

.site-footer__contact-info {
  flex: 1;
}

.site-footer__contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-block-end: var(--space-1);
  font-weight: 600;
}

.site-footer__contact-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-footer__contact-value a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-footer__contact-value a:hover {
  color: var(--sutra-green);
}

/* Footer Social */
.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.site-footer__social-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-block-end: var(--space-2);
}

.site-footer__social-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-footer__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.site-footer__social-link:hover {
  background: var(--sutra-green);
  border-color: var(--sutra-green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 106, 84, 0.3);
}

/* Footer Copyright */
.site-footer__copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding-block-start: var(--space-10);
  border-block-start: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

@media (min-width: 768px) {
  .site-footer__copyright {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer__copyright p {
  margin: 0;
}

.site-footer__copyright-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__copyright-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-base);
  position: relative;
}

.site-footer__copyright-links a:hover {
  color: var(--sutra-green);
}

@media (max-width: 767px) {
  .site-footer {
    padding-block: var(--space-12);
  }
  
  .site-footer__inner {
    gap: var(--space-10);
  }
  
  .site-footer__nav-title,
  .site-footer__social-title {
    margin-block-end: var(--space-3);
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive Breakpoints */
@media (max-width: 767px) {
  /* Mobile styles */
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet styles */
}

@media (min-width: 1024px) {
  /* Desktop styles */
}

