/* ==========================================
   CRISTECH TECNOLOGIA
   HEADER + FOOTER + RESPONSIVOS
========================================== */

/* CORES E TEMAS */
:root,
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #08080d;
  --bg-secondary: #101017;
  --surface: #15151e;
  --surface-hover: #1d1b28;
  --text: #f9f9fc;
  --text-muted: #aaaab8;
  --border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(8, 8, 13, 0.94);
  --pink: #f72585;
  --pink-light: #ff5eaa;
  --pink-soft: rgba(247, 37, 133, 0.1);
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #fff;
  --bg-secondary: #f8f7fb;
  --surface: #fff;
  --surface-hover: #fff0f7;
  --text: #191722;
  --text-muted: #625d6b;
  --border: rgba(20, 15, 35, 0.12);
  --header-bg: rgba(255, 255, 255, 0.95);
  --pink: #dc1675;
  --pink-light: #ed4598;
  --pink-soft: rgba(220, 22, 117, 0.08);
  --shadow: 0 12px 35px rgba(30, 20, 40, 0.07);
}

/* RESET GERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.container {
  width: min(calc(100% - 40px), 1200px);
  margin-inline: auto;
}

/* ==========================================
   HEADER
========================================== */

.header {
  width: 100%;
  height: 86px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

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

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 155px;
  height: 64px;
  object-fit: contain;
}

/* MENU */
.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-list a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--pink);
}

.nav-list a.active::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--pink);
  left: 0;
  bottom: -9px;
}

/* AÇÕES */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BOTÕES DE TEMA E MENU */
.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.menu-toggle {
  display: none;
}

/* BOTÃO ORÇAMENTO */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f72585, #df1874);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.3s;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(247, 37, 133, 0.3);
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  padding: 75px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 45px;
  padding-bottom: 60px;
}

/* LOGO DO FOOTER */
.footer-logo img {
  width: 185px;
  height: auto;
  margin-bottom: 20px;
}

.footer-brand > p {
  max-width: 280px;
  color: var(--text-muted);
  font-size: 14px;
}

/* REDES SOCIAIS */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.social-links a:hover {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.social-links svg {
  width: 18px;
}

/* COLUNAS DO FOOTER */
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column h3 {
  font-size: 15px;
  margin-bottom: 9px;
}

.footer-column a,
.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
  transition: 0.3s;
}

.footer-column a:hover {
  color: var(--pink);
}

.footer-column svg {
  width: 16px;
}

/* RODAPÉ INFERIOR */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

/* ==========================================
   RESPONSIVO - 1100PX
========================================== */

@media (max-width: 1100px) {
  .nav-list {
    gap: 15px;
  }

  .nav-list a {
    font-size: 12px;
  }

  .header-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================
   RESPONSIVO - 900PX
========================================== */

@media (max-width: 900px) {
  .header {
    height: 75px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;

    transition:
      max-height 0.35s,
      padding 0.35s,
      visibility 0.35s;
  }

  .nav.open {
    max-height: min(420px, calc(100dvh - 75px));
    padding: 20px;
    visibility: visible;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    font-size: 15px;
    padding: 13px 5px;
    border-bottom: 1px solid var(--border);
  }

  .nav-list a.active::after {
    display: none;
  }
}

/* ==========================================
   RESPONSIVO - 768PX
========================================== */

@media (max-width: 768px) {
  .footer-grid {
    gap: 35px;
  }
}

/* ==========================================
   RESPONSIVO - 480PX
========================================== */

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 30px), 1200px);
  }

  .logo img {
    width: 130px;
    height: 55px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   RESPONSIVO - 400PX
========================================== */

@media (max-width: 400px) {
  .logo img {
    width: 115px;
    height: 48px;
  }

  .header-content {
    gap: 10px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
