/* ═══════════════════════════════════════════════════════════
   KPN Contabilidade — style.css
   Faithfully reproduces the PDF layout structure
═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --navy-900: #0a0e1a;
  --navy-800: #0f1629;
  --navy-700: #162040;
  --navy-600: #1e2d55;
  --navy-500: #243360;

  --gold:        #c8a84b;
  --gold-dim:    #a08535;

  --white:       #ffffff;
  --gray-100:    #f5f5f5;
  --gray-200:    #ebebeb;
  --gray-600:    #666666;
  --gray-800:    #333333;

  --text-on-dark: #c8cfe0;
  --text-muted:   #8a96af;

  --font: 'Montserrat', sans-serif;

  --max-w: 1200px;
  --radius: 3px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { display: block; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── Shared Section Typography ── */
.sec-title {
  font-family: var(--font);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--navy-800);
  text-align: center;
  margin-bottom: 0.75rem;
}
.sec-sub {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--cta {
  background: var(--navy-500);
  color: var(--gray-200);
  border-color: var(--gray-200);
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
}
.btn--cta:hover { background: var(--navy-700); border-color: var(--gray-200); }

.btn--outline-dark {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-600);
}
.btn--outline-dark:hover { background: var(--navy-700); color: var(--white); }

.btn--outline-gold {
  background: transparent;
  color: var(--gray-200);
  border-color: var(--gold-dim);
}
.btn--outline-gold:hover { background: var(--gray-200); color: var(--navy-900); border-color: var(--gray-200); }


/* ════════════════════════════════════════
   SECTION 1 — HERO
   Dark navy bg, logo top, 2-col layout
════════════════════════════════════════ */
.hero {
  position: relative;
  background: url('/img/hero-bg.png') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
  padding: 10rem 0;
}

/* Decorative diagonal geometric shapes from PDF */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.shape {
  position: absolute;
  background: rgba(200, 168, 75, 0.06);
  border: 1px solid rgba(200, 168, 75, 0.10);
}
.shape--1 {
  width: 420px; height: 420px;
  top: -120px; right: -80px;
  transform: rotate(30deg);
  border-radius: 40px;
}
.shape--2 {
  width: 250px; height: 250px;
  bottom: 40px; right: 200px;
  transform: rotate(15deg);
  border-radius: 20px;
  background: rgba(200,168,75,0.03);
}
.shape--3 {
  width: 160px; height: 160px;
  top: 80px; right: 320px;
  transform: rotate(45deg);
  border-radius: 16px;
}

/* Logo bar */
.logo-bar {
  padding: 2rem 0 3.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
}

/* Hero two-column body */
.hero__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding-bottom: 2rem;
}

.hero__title {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

/* Tags — horizontal pill row below title */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  bottom: 0;
  margin-top: -1.75rem;
  background-color: #c8cfe0;
  z-index: 9999;
}
.hero__tag {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy-800);
  width: 25%;
  border: 1px solid rgba(52, 44, 44, 0.312);
  padding: 1.2rem 0;
  text-align: center;
}

.hero__desc {
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.hero__left .btn--cta { margin-top: 0.75rem; }


/* ════════════════════════════════════════
   SECTION 2 — SERVICES
   Light gray bg, title/sub centered,
   Row1: 4 white cards, Row2: 3 dark cards
════════════════════════════════════════ */
.services {
  background: var(--gray-100);
  padding: 5rem 0 4rem;
}

/* Row 1 — 4 columns */
.svc-row--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Row 2 — 3 columns */
.svc-row--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.svc-card {
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  margin-top: 2em;
}

.svc-card--light {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.svc-card--dark {
  background: var(--navy-700);
}

/* Icon container */
.svc-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
  margin-top: -3em;
}
.svc-card__icon i {
  font-size: 1.8rem;
}

.svc-card__icon--navy {
  background: var(--navy-600);
  color: var(--gray-100);
}
.svc-card__icon--gold {
  background: rgba(200,168,75,0.12);
  color: var(--gray-200);
}

.svc-card__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--navy-800);
}
.svc-card--dark .svc-card__title { color: var(--gray-200); }

.svc-card__desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--gray-600);
  flex: 1;
}
.svc-card--dark .svc-card__desc { color: var(--text-muted); }

.svc-card .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding: 0.5rem 1.1rem;
}


/* ════════════════════════════════════════
   SECTION 3 — STORY / TIMELINE
   Dark bg | left = photo | right = content
   Timeline: 3 cols with horizontal line
════════════════════════════════════════ */
.story {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 100%);
  padding: 5.5rem 0;
  overflow: hidden;
}

/* Outer flex: photo left, content right */
.story__wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Photo column */
.story__photo-col {
  position: relative;
}
.story__photo-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 2px solid rgba(200,168,75,0.2);
}
.story__photo-svg {
  width: 100%;
  height: auto;
  display: block;
}

.story__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-200);
  margin-bottom: 1rem;
}

.story__quote {
  font-family: var(--font);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* Timeline: 3 columns */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Horizontal line connecting the 3 dots */
.timeline__line {
  position: absolute;
  top: 7px; /* align with dot centers */
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(to right, var(--gold-dim), var(--gray-200), var(--gold-dim));
  z-index: 0;
}

.timeline__col { position: relative; }

.timeline__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 3px solid var(--navy-700);
  box-shadow: 0 0 0 2px var(--gray-200);
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.timeline__year {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-200);
  margin-bottom: 0.9rem;
  font-family: var(--font);
  text-align: right;
}

.timeline__text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.65rem;
}
.timeline__text strong { color: var(--white); font-weight: 600; }


/* ════════════════════════════════════════
   SECTION 4 — AUDIENCE + WHY US
   Light bg | 2-col: left text | right bullets
════════════════════════════════════════ */
.audience {
  background: var(--white);
  padding: 5rem 0;
}

.audience__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.audience__left p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.audience__list {
  margin-top: 0.5rem;
}
.audience__list li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-700);
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.audience__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-600);
  font-weight: 400;
}

.audience__why-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
  display: inline-block;
}

.audience__why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.audience__why-list li {
  font-size: 0.9rem;
  color: var(--gray-800);
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.audience__why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy-500);
  font-weight: 700;
  font-size: 0.85rem;
}


/* ════════════════════════════════════════
   SECTION 5 — TESTIMONIALS
   Light gray bg | 3+3 card grid
════════════════════════════════════════ */
.testimonials {
  background: var(--gray-100);
  padding: 5rem 0;
}

/* 3 columns, 2 rows = 6 cards */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.review-card__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
}

.review-card__stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.review-card p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.reviews__cta {
  text-align: center;
}
.reviews__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-600);
  border-bottom: 2px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.reviews__link:hover { color: var(--gold-dim); border-color: var(--gray-200); }


/* ════════════════════════════════════════
   SECTION 6 — CONTACT
   Dark bg, centered, 3 channel items in a row
════════════════════════════════════════ */
.contact {
  background: var(--navy-700);
  padding: 5.5rem 0;
  text-align: center;
}

.contact__title {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact__sub {
  font-size: 0.9rem;
  color: var(--text-on-dark);
  max-width: 560px;
  margin: 0 auto 0.5rem;
  line-height: 1.75;
}

.contact__sub2 {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* 3 items in a row */
.contact__row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-on-dark);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  min-width: 260px;
  justify-content: center;
}
.contact__item:hover {
  background: rgba(200,168,75,0.1);
  border-color: var(--gray-200);
  color: var(--gray-200);
}

.contact__icon {
  width: 36px;
  height: 36px;
  background: rgba(200,168,75,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__icon svg { width: 18px; height: 18px; color: var(--gray-200); }


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  background: var(--navy-900);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(200,168,75,0.1);
}

.footer__top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

.footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 1.25rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(138,150,175,0.5);
}


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .svc-row--4 { grid-template-columns: repeat(2, 1fr); }
  .svc-row--3 { grid-template-columns: repeat(3, 1fr); }
  .story__wrap { grid-template-columns: 240px 1fr; gap: 2.5rem; }
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .timeline__line { display: none; }
  .audience__wrap { gap: 3rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .hero__body { grid-template-columns: 1fr; gap: 2rem; }
  .svc-row--4 { grid-template-columns: 1fr; }
  .svc-row--3 { grid-template-columns: 1fr; }
  .story__wrap { grid-template-columns: 1fr; }
  .story__photo-col { max-width: 240px; }
  .audience__wrap { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .contact__row { flex-direction: column; align-items: center; }
  .contact__item { min-width: 0; width: 100%; max-width: 360px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}