/* ========================================
   LAYOUT — structure, header, footer, grid
   ======================================== */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

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

.logo-img {
  height: 36px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  padding: var(--space-xs) 0;
}

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

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* ---- HERO (home) ---- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--color-bg-alt) url('') center/cover no-repeat;
  /* JS or inline style will set the actual background image */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-text-invert);
  padding: var(--space-3xl) 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* ---- PAGE HERO (sub-pages) ---- */
.page-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  background: var(--color-bg-alt) center/cover no-repeat;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.page-hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text-invert);
}

/* ---- SECTIONS ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.content-section {
  padding: var(--space-3xl) 0;
}

/* ---- FEATURES GRID ---- */
.features {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

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

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  object-fit: contain;
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  object-fit: contain;
}

/* ---- TWO-COLUMN LAYOUT ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.content-img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* ---- CTA ---- */
.cta {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt) center/cover no-repeat;
  text-align: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cta-content {
  position: relative;
  z-index: 1;
  color: var(--color-text-invert);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-text {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-text);
  color: var(--color-text-invert);
  padding: var(--space-2xl) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-tagline {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-top: var(--space-xs);
}

.footer-nav ul {
  display: flex;
  gap: var(--space-md);
}

.footer-nav a {
  font-size: var(--text-sm);
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-nav a:hover {
  opacity: 1;
}

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

.footer-social img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-social a:hover img {
  opacity: 1;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: var(--text-xs);
  opacity: 0.5;
  margin-top: var(--space-md);
}
