/* ============================================
   Shop Web Works — layout.css
   Header · Mobile Nav · Footer · Shell
   ============================================ */

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: var(--bg-900);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s, border-color 0.4s;
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Brand / Logo */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.site-header__brand .site-header__logo--light { display: block; }
.site-header__brand .site-header__logo--dark  { display: none; }
body.dark .site-header__brand .site-header__logo--light { display: none; }
body.dark .site-header__brand .site-header__logo--dark  { display: block; }

.site-header__logo { height: 52px; width: auto; }

.site-header__subtitle {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1.25;
  color: var(--text-300);
  max-width: 130px;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border-mid);
}

/* Nav */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  margin-left: auto;
}
.site-header__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-300);
  transition: color 0.25s;
  position: relative;
  padding: 0.35rem 0;
}
.site-header__link:hover,
.site-header__link.is-active { color: var(--accent); }
.site-header__link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange);
}

/* Actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-header__cta {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 2px solid var(--orange);
  padding: 0.6rem 1.15rem;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.site-header__cta:hover {
  background-color: var(--orange);
  color: var(--white);
}

/* Header dark-over-hero state (toggled by IntersectionObserver in main.js) */
.site-header--dark {
  background-color: #0E0F10;
  border-bottom-color: #2A2B2D;
}
.site-header--dark .site-header__link { color: #9B9C9E; }
.site-header--dark .site-header__link:hover,
.site-header--dark .site-header__link.is-active { color: #FF9800; }
.site-header--dark .site-header__subtitle { color: #9B9C9E; border-left-color: #36373A; }
.site-header--dark .site-header__cta { color: #FF9800; border-color: #E65100; }
.site-header--dark .site-header__cta:hover { background-color: #E65100; color: #FFFFFF; }
.site-header--dark .site-header__brand .site-header__logo--light { display: none; }
.site-header--dark .site-header__brand .site-header__logo--dark  { display: block; }
.site-header--dark .theme-toggle { background: #26282A; border-color: #36373A; color: #9B9C9E; }
.site-header--dark .site-header__hamburger span { background: #E8E8E9; }

/* Theme Toggle */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  color: var(--text-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--orange-glow);
  border-color: var(--orange-mid);
  color: var(--accent);
}
.theme-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
body.dark .theme-toggle .icon-sun  { display: block; }
body.dark .theme-toggle .icon-moon { display: none; }

/* Mobile hamburger */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.site-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-100);
  transition: transform 0.3s, opacity 0.3s;
}
.site-header__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.site-header__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.site-header__mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-900);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  z-index: 90;
}
.site-header__mobile-nav.is-open { display: flex; }

.site-header__mobile-link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-100);
  transition: color 0.25s;
}
.site-header__mobile-link:hover,
.site-header__mobile-link.is-active { color: var(--accent); }

.site-header__mobile-cta {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--orange);
  padding: 0.85rem 2.5rem;
  border-radius: 2px;
  margin-top: 0.5rem;
  transition: background-color 0.25s;
}
.site-header__mobile-cta:hover { background-color: var(--orange-mid); }

.site-header__mobile-nav .theme-toggle {
  width: 44px;
  height: 44px;
}
.site-header__mobile-nav .theme-toggle svg { width: 20px; height: 20px; }

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  background-color: var(--bg-900);
  border-top: 1px solid var(--border);
}
.footer__content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem 3rem;
  align-items: start;
}
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col--left  { align-items: flex-start; }
.footer__col--center { align-items: center; text-align: center; }
.footer__col--right { align-items: flex-end; text-align: right; }

.footer__logo { width: 56px; height: auto; opacity: 0.5; filter: grayscale(30%); margin-bottom: 0.25rem; }
.footer__col--left .footer__logo--light { display: block; }
.footer__col--left .footer__logo--dark  { display: none; }
body.dark .footer__col--left .footer__logo--light { display: none; }
body.dark .footer__col--left .footer__logo--dark  { display: block; }
.footer__text    { font-size: 0.78rem; color: var(--text-500); }
.footer__subtext { font-size: 0.72rem; color: var(--text-500); opacity: 0.6; }

/* --- Page hero (inner pages) --- */
.page-hero {
  padding: 5rem 0 4rem;
  background-color: var(--bg-900);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--orange), transparent);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__overline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange-mid);
  margin-bottom: 1rem;
}
.page-hero__overline::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text-100);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1rem;
}
.page-hero__desc {
  font-size: 1rem;
  color: var(--text-300);
  max-width: 560px;
  line-height: 1.75;
}

/* --- Process --- */
.processo {
  padding: 5rem 0;
  background-color: var(--bg-800);
  border-top: 1px solid var(--border);
}
.processo__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.processo__steps::before {
  content: '';
  position: absolute;
  left: 1.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.processo__step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  position: relative;
}
.processo__step-number {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  z-index: 1;
}
.processo__step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-100);
  margin-bottom: 0.4rem;
}
.processo__step-desc {
  font-size: 0.9rem;
  color: var(--text-300);
  line-height: 1.65;
}

/* --- Footer nav & cta --- */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__nav-link {
  font-size: 0.82rem;
  color: var(--text-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__nav-link:hover { color: var(--text-100); }
.footer__nav-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-500);
  margin-bottom: 0.25rem;
}
.footer__cta-text {
  font-size: 0.8rem;
  color: var(--text-400);
  margin-top: 0.5rem;
}
.footer__cta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.footer__cta-link:hover { text-decoration: underline; }

.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__social-link:hover { color: var(--text-100); }
.footer__social-link svg { width: 16px; height: 16px; }

.footer__timezone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
}
.footer__timezone svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.footer__email {
  font-size: 0.82rem;
  color: var(--text-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__email:hover { color: var(--text-100); }

/* --- Contact CTA Band --- */
.cta-band {
  padding: 5rem 0;
  background-color: var(--bg-800);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-band__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  color: var(--text-100);
  margin-bottom: 0.75rem;
}
.cta-band__desc {
  font-size: 0.95rem;
  color: var(--text-300);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .site-header__nav { display: none; }
  .site-header__cta { display: none; }
  .site-header__actions .theme-toggle { display: none; }
  .site-header__actions { margin-left: auto; }
  .site-header__hamburger { display: flex; }
  .site-header__subtitle { display: none; }

  .page-hero { padding: 4rem 0 3rem; }
  .page-hero__title { font-size: 2.2rem; }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__col--left,
  .footer__col--center,
  .footer__col--right {
    align-items: flex-start;
    text-align: left;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header__nav { gap: 1.25rem; }
  .site-header__subtitle { display: none; }

  .footer__content {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col--center { grid-column: 1; align-items: flex-start; text-align: left; }
  .footer__col--right  { grid-column: 2; grid-row: 1 / 3; }
  .footer__col--left   { grid-column: 1; grid-row: 2; }
}
