@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');
@import url('palette.css');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-corpo);
  color: var(--texto-escuro);
  background: var(--fundo-quente);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--vinho-profundo);
  border-bottom: 1px solid rgba(196, 146, 106, 0.15);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo svg {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header-nav a {
  color: var(--carvalho-claro);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--dourado-suave);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--vinho-profundo);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(107, 58, 42, 0.12) 3px,
      rgba(107, 58, 42, 0.12) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 60px,
      rgba(107, 58, 42, 0.06) 60px,
      rgba(107, 58, 42, 0.06) 62px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 140px,
      rgba(107, 58, 42, 0.04) 140px,
      rgba(107, 58, 42, 0.04) 141px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--madeira-media);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin-bottom: 48px;
  display: inline-block;
}

.hero-logo svg {
  width: 320px;
  height: auto;
}

.hero h1 {
  font-family: var(--font-titulo);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--branco);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero h1 strong {
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  color: var(--carvalho-claro);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: var(--font-corpo);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--dourado-suave);
  color: var(--texto-escuro);
}

.btn-primary:hover {
  background: var(--carvalho-claro);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--carvalho-claro);
  border: 1px solid var(--carvalho-claro);
}

.btn-secondary:hover {
  background: rgba(196, 146, 106, 0.1);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-titulo);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--vinho-profundo);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--texto-suave);
  max-width: 500px;
  margin: 0 auto;
}

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--carvalho-claro);
  margin: 16px auto 20px;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--madeira-media);
  border-radius: 0;
}

.section-divider::before {
  left: -4px;
}

.section-divider::after {
  right: -4px;
}

/* Services */
.services {
  background: var(--branco);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--fundo-quente);
  border: 1px solid rgba(196, 146, 106, 0.2);
  border-radius: var(--radius);
  padding: 36px 28px;
  padding-top: 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--madeira-media);
  border-radius: 0 0 2px 2px;
}

.service-card:hover {
  border-color: var(--carvalho-claro);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(61, 12, 20, 0.08);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 0;
  border: 1px solid var(--carvalho-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vinho-medio);
  position: relative;
}

.service-card-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid rgba(196, 146, 106, 0.15);
}

.service-card h3 {
  font-family: var(--font-titulo);
  font-size: 1.15rem;
  color: var(--vinho-profundo);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--texto-suave);
  line-height: 1.6;
}

/* About */
.about {
  background: var(--fundo-quente);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-titulo);
  font-size: 2rem;
  font-weight: 700;
  color: var(--vinho-profundo);
  margin-bottom: 8px;
}

.about-text h3 {
  font-family: var(--font-titulo);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--vinho-suave);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--texto-suave);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-visual svg {
  width: 200px;
  height: auto;
}

.about-visual rect {
  fill: var(--vinho-profundo);
}

.about-visual line {
  stroke: var(--carvalho-claro);
}

/* Contact */
.contact {
  background: var(--vinho-profundo);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 4px,
      rgba(107, 58, 42, 0.08) 4px,
      rgba(107, 58, 42, 0.08) 5px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 70px,
      rgba(107, 58, 42, 0.04) 70px,
      rgba(107, 58, 42, 0.04) 72px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 150px,
      rgba(107, 58, 42, 0.04) 150px,
      rgba(107, 58, 42, 0.04) 151px
    );
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact .section-header h2 {
  color: var(--branco);
}

.contact .section-header p {
  color: var(--carvalho-claro);
}

.contact .section-divider {
  background: var(--dourado-suave);
}

.contact .section-divider::before,
.contact .section-divider::after {
  background: var(--dourado-suave);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.contact-item {
  color: var(--carvalho-claro);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 1px solid rgba(196, 146, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dourado-suave);
  position: relative;
}

.contact-item-icon::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 1px solid rgba(196, 146, 106, 0.1);
}

.contact-item h4 {
  font-family: var(--font-titulo);
  color: var(--branco);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--carvalho-claro);
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--vinho-profundo);
  border-top: 1px solid rgba(196, 146, 106, 0.1);
  padding: 32px 0;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--madeira-media);
}

.footer p {
  color: var(--texto-suave);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.footer a {
  color: var(--carvalho-claro);
  text-decoration: none;
}

.footer a:hover {
  color: var(--dourado-suave);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-logo svg {
    width: 240px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .header-nav {
    gap: 16px;
  }

  .header-nav a {
    font-size: 0.75rem;
  }

  .header-logo svg {
    height: 36px;
  }
}
