/* Tech & Soul - EDSON - CSS Otimizado */

: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: #222;
  --color-accent: #f05a28;
  --font-body: 'Montserrat', sans-serif;
  --font-heading: 'Raleway', sans-serif;
  --max-width: 1040px;
  --header-height: 80px;
}

* {
  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 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Botao CTA */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d1d1d;
  background: #fff;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 12px 28px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Hero */
.hero {
  min-height: 83vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 80px) 24px 64px;
  background: var(--color-bg-dark) url('images/hero-capa_neue.png') left center / cover no-repeat fixed;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  text-align: left;
}

.hero-logo {
  width: clamp(340px, 46vw, 540px);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-transform: uppercase;
  color: #1a1a1a;
  max-width: 520px;
}

.hero .subtitle {
  font-size: clamp(0.9rem, 1.4vw, 1.12rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-top: 6px;
}

/* Sections */
.section {
  padding: 90px 24px;
}

.section-black {
  background: var(--color-bg-black);
}

.section-dark {
  background: var(--color-bg-dark);
}

.section-light {
  background: var(--color-light);
  color: var(--color-text-dark);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.section > .container > .accent-center {
  margin-bottom: 48px;
}

/* Sobre */
#sobre .container {
  max-width: var(--max-width);
}

#sobre h2 {
  text-align: left;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.accent {
  width: 275px;
  height: 3px;
  background: var(--color-accent);
  border: 0;
  margin: 0 0 32px;
}

.accent-center {
  margin-left: auto;
  margin-right: auto;
}

.hero .accent {
  margin: 18px 0 0;
}

#sobre p {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

#sobre .btn {
  margin-top: 24px;
}

/* Grid Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.2s;
}

.card a:hover {
  transform: translateY(-4px);
}

.card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #333;
  width: 100%;
  height: 100%;
}

.card a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.card-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.card-caption h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-caption .tag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 6px;
}

/* 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: 110px;
  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) {
  .hero {
    background-attachment: scroll;
    min-height: 80vh;
  }

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

  .section {
    padding: 60px 20px;
  }
}
