/* Layout Styles: Header, Footer, Sections, Grids */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo-brand {
  display: flex;
  flex-direction: column;
}

.logo-brand h1 {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

.logo-brand span {
  font-size: clamp(0.6rem, 2.5vw, 0.75rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

/* --- Sections --- */
.section-padding {
  padding: var(--space-lg) 0;
}

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

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

.section-header h2 {
  font-size: 2.5rem;
}

/* --- Grids --- */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

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

/* --- Footer --- */
.site-footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-lg) 0 0;
  margin-top: auto;
}

.footer-top {
  padding-bottom: var(--space-lg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
}

.footer-widget h3 {
  color: var(--surface);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
}

.footer-widget ul li {
  margin-bottom: 0.75rem;
}

.footer-widget ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-widget ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.hide-desktop { display: none !important; }

@media (max-width: 768px) {
  .section-padding { padding: 3rem 0; }
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 992px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-cols-4, .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    clip-path: circle(0 at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-links.open {
    clip-path: circle(150% at 100% 0);
  }
  
  .header-actions { display: none; }
  .mobile-menu-btn { display: block; }
  .hide-desktop { display: block !important; }
}

@media (max-width: 576px) {
  .footer-top { grid-template-columns: 1fr; }
  .grid-cols-2 { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 2rem; }
}
