/* ===== Contábil em Dia - Estilos ===== */
:root {
  --color-primary: #0d3b66;
  --color-primary-dark: #082540;
  --color-accent: #c9a227;
  --color-accent-hover: #b8921f;
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a6e;
  --color-bg: #fafafa;
  --color-bg-dark: #0d3b66;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 4px 24px rgba(13, 59, 102, 0.08);
  --shadow-hover: 0 8px 32px rgba(13, 59, 102, 0.12);
  --radius: 12px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 59, 102, 0.08);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.header__link:hover {
  color: var(--color-primary);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.header__mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
  z-index: 999;
}

.header__mobile-nav.is-open {
  display: flex;
}

.header__mobile-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  .header__menu-btn {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow);
}

.btn--primary.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--primary.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn--primary.btn--light {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--primary.btn--light:hover {
  background: var(--color-bg);
  color: var(--color-primary-dark);
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 25%, rgba(13, 59, 102, 0.75) 50%, rgba(13, 59, 102, 0.3) 75%, transparent 100%),
    url("../../predios.jpg") center / cover no-repeat;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-primary), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin: 0 0 2rem;
  opacity: 0.95;
}

.hero__cta .btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.hero__cta .btn--primary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Section title */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 3rem;
}

.section-title--light {
  color: var(--color-white);
  margin-bottom: 2rem;
}

/* Services */
.services {
  padding: 5rem 1.5rem;
}

.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-card__text {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.service-card .btn {
  align-self: flex-start;
}

/* Offices slider */
.offices {
  padding: 4rem 1.5rem;
  background: var(--color-white);
}

.offices__slider {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.offices__slide {
  display: none;
  padding: 2rem 1rem;
}

.offices__slide.is-active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.offices__counter {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.offices__slide-text {
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 0 0 0.25rem;
}

.offices__slide-city {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.offices__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.offices__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.offices__dot.is-active {
  background: var(--color-accent);
  opacity: 1;
}

.offices__dot:hover {
  opacity: 0.8;
}

/* About */
.about {
  padding: 5rem 1.5rem;
  background: var(--color-bg);
}

.about__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: -2rem 0 1.5rem;
}

.about__text {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: left;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__slogan {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 2rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 1.5rem;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.testimonials__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonials__slider {
  position: relative;
  min-height: 200px;
  margin-bottom: 2rem;
}

.testimonial-card {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-card.is-active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.testimonial-card__text {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.testimonial-card__author strong {
  color: var(--color-accent);
}

.testimonials__nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s;
}

.testimonials__dot.is-active {
  background: var(--color-accent);
}

/* CTA section */
.cta-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
}

.cta-section__inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section__text {
  font-size: 1.1rem;
  margin: 0 0 2rem;
  opacity: 0.95;
}

/* Footer */
.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 3rem 1.5rem 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  opacity: 0.9;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.footer__coverage {
  opacity: 0.85;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.footer__coverage--block {
  margin-top: 1rem;
  margin-bottom: 0;
}

.footer__contact {
  max-width: 320px;
}

.footer__contact-item {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer__contact-item a {
  color: var(--color-white);
  text-decoration: none;
}

.footer__contact-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer__contact-label {
  display: inline-block;
  min-width: 5.5em;
  font-weight: 500;
}

.footer__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.footer__unit {
  margin-bottom: 1.5rem;
}

.footer__unit-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.footer__unit-address,
.footer__unit-phone {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
  display: block;
}

.footer__unit-link {
  color: var(--color-accent);
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 0.25rem;
  display: inline-block;
}

.footer__unit-link:hover {
  text-decoration: underline;
}

.footer__unit-phone {
  color: inherit;
  text-decoration: none;
  margin-top: 0.25rem;
}

.footer__bottom {
  padding: 1.5rem;
  text-align: center;
}

.footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer__cnpj {
  margin-top: 0.5rem !important;
  font-size: 0.8rem !important;
  opacity: 0.6 !important;
}
