/* T&S Group - CSS */

:root {
  --color-bg-dark: #1d1d1d;
  --color-bg-black: #000;
  --color-bg-gray: #4c4c4c;
  --color-light: #fff;
  --color-text: #fff;
  --color-text-muted: #cfcfcf;
  --color-text-dark: #1a1a1a;
  --color-accent: #f05a28;
  --font-body: 'Montserrat', sans-serif;
  --font-heading: 'Raleway', sans-serif;
  --max-width: 1040px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-black);
}

.site-header .logo img {
  height: 56px;
  width: auto;
}

.site-header--with-nav {
  justify-content: center;
  padding: 0;
}

.site-header--with-nav .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (min-width: 769px) {
  .site-header--with-nav .header-inner {
    max-width: 680px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

.site-header--with-nav .site-nav {
  position: relative;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-light);
  padding: 8px 14px;
  border: 1px solid var(--color-light);
  user-select: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.nav-dropdown[open] summary::after {
  transform: rotate(-135deg) translateY(2px);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--color-bg-gray);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-light);
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown__menu a:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}

/* Fundo único cobrindo a viewport, atrás das bolotas e do texto */
main {
  background: var(--color-light) url('images/TSg_fundo-mobile.png') center top / cover no-repeat;
  min-height: calc(100vh - var(--header-height));
}

/* Bloco de logos (bolotas) */
.logos {
  background: transparent;
  padding: 64px 24px 32px;
}

.logos .bolotas {
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
}

/* Texto institucional */
.intro {
  background: transparent;
  color: var(--color-text-dark);
  padding: 48px 24px 80px;
}

.intro .container {
  max-width: 720px;
}

.intro p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
  margin: 0 0 18px;
  font-weight: 400;
}

.intro p strong {
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--color-bg-gray);
  border-top: 4px solid var(--color-accent);
  padding: 60px 24px 0;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 20px 0 8px;
}

.footer-col h4:first-child {
  margin-top: 0;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text);
}

.footer-col .legal {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* Social */
.social {
  display: flex;
  gap: 12px;
  margin: 6px 0 8px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  transition: opacity 0.2s;
}

.social a:hover {
  opacity: 0.8;
}

.social svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Footer form */
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-form input,
.footer-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #222;
  width: 100%;
}

.footer-form textarea {
  min-height: 110px;
  resize: vertical;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.footer-form button {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  border: 0;
  border-radius: 6px;
  padding: 12px 30px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.footer-form button:hover {
  opacity: 0.85;
}

.form-feedback {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
}

.form-feedback.ok {
  background: rgba(0, 128, 0, 0.15);
  color: #b8f0b8;
}

.form-feedback.erro {
  background: rgba(200, 0, 0, 0.15);
  color: #ffb8b8;
}

.footer-logo img {
  width: 90px;
  margin-left: 0;
  margin-top: 32px;
}

.copyright {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 20px 0;
  font-size: 11px;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-logo img {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
    padding: 20px 16px;
  }

  .site-header .logo {
    display: block;
    width: 100%;
  }

  .site-header .logo img {
    width: 100%;
    height: auto;
  }

  .site-header--with-nav {
    flex-wrap: nowrap;
    padding: 0;
  }

  .site-header--with-nav .header-inner {
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header--with-nav .logo {
    width: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .site-header--with-nav .logo img {
    width: auto;
    height: 40px;
    max-width: 100%;
  }

  .site-header--with-nav .site-nav {
    flex-shrink: 0;
  }

  .site-header--with-nav .nav-dropdown summary {
    font-size: 11px;
    white-space: nowrap;
  }

  .site-header--with-nav .nav-dropdown__menu {
    min-width: 160px;
  }

  .site-header--with-nav .nav-dropdown__menu a {
    font-size: 13px;
    padding: 9px 16px;
  }

  .logos {
    padding: 40px 20px 24px;
  }

  .intro {
    padding: 36px 20px 60px;
  }
}
