/* ==========================================================================
   LAYOUT CSS - Container, Grid, Header, Footer
   ========================================================================== */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.container-fluid {
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section Spacing */
section {
  padding: var(--spacing-3xl) 0;
}

@media (max-width: 767px) {
  section {
    padding: var(--spacing-2xl) 0;
  }
}

/* Top Header - Ultra Modern Agency Style */
.top-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  border-bottom: 2px solid rgba(240, 151, 63, 0.15);
  position: relative;
  overflow: hidden;
}

.top-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(240, 151, 63, 0.05), transparent);
  animation: shimmer 8s infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(50%); }
}

.top-header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.top-header__left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.top-header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-header__group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(240, 151, 63, 0.15);
  border: 1px solid rgba(240, 151, 63, 0.3);
  border-radius: 20px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.top-header__badge .material-icons-outlined {
  font-size: 0.875rem;
}

.top-header__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  position: relative;
}

.top-header__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240, 151, 63, 0.1);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.top-header__item:hover::before {
  opacity: 1;
}

.top-header__item:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.top-header__item .material-icons-outlined {
  font-size: 1rem;
}

.top-header__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.top-header__social-link:hover {
  background: rgba(240, 151, 63, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px) scale(1.1);
}

.top-header__social-link .material-icons-outlined {
  font-size: 1.125rem;
}

.top-header__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1023px) {
  .top-header {
    padding: 0.625rem 0;
  }
  
  .top-header__left,
  .top-header__right {
    gap: 1rem;
  }
  
  .top-header__badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-header {
    display: none;
  }
}

/* Header - Modern Design */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 2rem;
}

@media (max-width: 1023px) {
  .header__container {
    padding: 1rem 0;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  transition: transform var(--transition-fast);
}

.header__logo:hover {
  transform: scale(1.02);
}

.header__logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

@media (max-width: 767px) {
  .header__logo img {
    height: 32px;
    max-width: 160px;
  }
}

/* Navigation - Modern Design */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.375rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav__list {
    display: flex;
  }
}

.nav__item {
  position: relative;
  margin: 0;
}

.nav__link {
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0.375rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link:hover {
  color: var(--color-primary);
  background: rgba(240, 151, 63, 0.08);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--color-primary);
  background: rgba(240, 151, 63, 0.1);
}

.nav__link.active::after {
  transform: scaleX(1);
}

/* Mega Menu - Modern Design */
.nav__item--has-dropdown {
  position: relative;
}

.nav__item--has-dropdown > .nav__link {
  padding-right: 2rem;
}

.nav__item--has-dropdown > .nav__link::before {
  content: 'expand_more';
  font-family: 'Material Icons Outlined';
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.nav__item--has-dropdown:hover > .nav__link::before {
  transform: translateY(-50%) rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  min-width: 480px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav__dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem;
}

.nav__dropdown-item {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav__dropdown-item:hover {
  background: linear-gradient(135deg, rgba(240, 151, 63, 0.08) 0%, rgba(240, 151, 63, 0.04) 100%);
  border-color: rgba(240, 151, 63, 0.2);
  transform: translateX(4px);
}

.nav__dropdown-icon {
  color: var(--color-primary);
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 151, 63, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav__dropdown-item:hover .nav__dropdown-icon {
  background: rgba(240, 151, 63, 0.2);
  transform: scale(1.1);
}

.nav__dropdown-content {
  flex: 1;
}

.nav__dropdown-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.nav__dropdown-item:hover .nav__dropdown-content h4 {
  color: var(--color-primary);
}

.nav__dropdown-content p {
  font-size: 0.8125rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* CTA Buttons in Header */
.header__cta {
  display: none;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .header__cta {
    display: flex;
  }
}

.header__cta .btn {
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header__cta .btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #e88c3f 100%);
  box-shadow: 0 4px 12px rgba(240, 151, 63, 0.3);
}

.header__cta .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 151, 63, 0.4);
}

/* Mobile Menu Toggle - Modern Hamburger */
.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid rgba(240, 151, 63, 0.2);
  border-radius: 10px;
  cursor: pointer;
  color: var(--color-dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav__toggle:hover {
  background: rgba(240, 151, 63, 0.1);
  border-color: var(--color-primary);
}

.nav__toggle:active {
  background: rgba(240, 151, 63, 0.15);
}

@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
}

.nav__toggle-icon {
  font-size: 1.5rem;
}

/* Mobile Menu Drawer - Redesigned */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Header - Same as Main Header */
.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--container-padding, 1rem);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-menu__header img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.mobile-menu__close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(240, 151, 63, 0.2);
  border-radius: 10px;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu__close .material-icons-outlined {
  font-size: 1.5rem;
}

.mobile-menu__close:hover {
  background: rgba(240, 151, 63, 0.1);
  border-color: var(--color-primary);
}

/* Mobile Menu Navigation */
.mobile-menu__nav {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
}

.mobile-menu__item {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.mobile-menu__link::after {
  content: '';
  font-family: 'Material Icons Outlined';
  font-size: 1.25rem;
  color: #999;
  transition: all 0.3s ease;
}

/* Dropdown indicator */
.mobile-menu__item:has(.mobile-menu__dropdown) .mobile-menu__link::after {
  content: 'expand_more';
}

.mobile-menu__item.active:has(.mobile-menu__dropdown) .mobile-menu__link::after {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--color-primary);
}

/* Dropdown Menu */
.mobile-menu__dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(240, 151, 63, 0.03);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__item.active .mobile-menu__dropdown {
  max-height: 500px;
}

.mobile-menu__dropdown-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-menu__dropdown-item:last-child {
  border-bottom: none;
}

.mobile-menu__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #666;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-menu__dropdown-icon {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.mobile-menu__dropdown-link:hover {
  background: rgba(240, 151, 63, 0.08);
  color: var(--color-primary);
  padding-left: 1.25rem;
}

/* Mobile Menu CTA */
.mobile-menu__cta {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

.mobile-menu__cta .btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu__cta .btn .material-icons-outlined {
  font-size: 1.125rem;
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-bg);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer a {
  color: var(--color-bg);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--color-primary);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

@media (max-width: 639px) {
  .footer__grid {
    gap: var(--spacing-xl);
  }
}

.footer__section h4 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer__logo {
  margin-bottom: var(--spacing-md);
}

.footer__logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

@media (max-width: 767px) {
  .footer__logo img {
    height: 32px;
    max-width: 160px;
  }
}

.footer__description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-border);
  margin-bottom: var(--spacing-lg);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list-item {
  margin-bottom: var(--spacing-sm);
}

.footer__list-item a {
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.footer__contact-icon {
  color: var(--color-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__social {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.footer__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer__badge {
  margin-top: var(--spacing-lg);
  display: inline-block;
}

.footer__badge img {
  height: auto;
  width: auto;
  max-width: 100%;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--color-border);
}


