:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --text: #1e2430;
  --muted: #5e6878;
  --line: #d9deea;
  --accent: #204a87;
  --accent-dark: #173760;
  --gold: #b89a5e;
  --shadow: 0 18px 50px rgba(18, 32, 56, 0.08);
  --shadow-soft: 0 10px 30px rgba(18, 32, 56, 0.055);
  --radius: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(circle at top left, rgba(32, 74, 135, 0.06), transparent 34%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

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

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: 980px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 246, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(32, 74, 135, 0.08);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-name {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(32, 74, 135, 0.07);
}

/* TIPOGRAFIA GLOBAL */

h1,
h2,
h3 {
  margin: 0 0 18px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* HOME HERO */

.home-hero {
  padding: 72px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.home-hero h1 {
  max-width: 11.8ch;
  font-size: clamp(3rem, 6.2vw, 5.35rem);
  line-height: 1.06;
}

.lead {
  max-width: 58ch;
  color: #495365;
  font-size: 1.18rem;
}

.hero-copy p:not(.lead) {
  max-width: 56ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: 0.22s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(32, 74, 135, 0.18);
}

.button-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 34px;
  overflow: hidden;
  background: #d7dfe9;
  box-shadow: var(--shadow);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 28, 0.2), rgba(10, 17, 28, 0.02));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TRUST STRIP */

.trust-strip {
  padding: 10px 0 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.trust-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.trust-item p {
  margin: 0;
  font-size: 0.94rem;
}

/* SECTIONS */

.featured-section {
  padding: 50px 0;
}

.curiosidades-section {
  background: linear-gradient(180deg, transparent 0%, rgba(238, 243, 250, 0.68) 100%);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-link {
  flex: none;
  color: var(--accent);
  font-size: 0.96rem;
  font-weight: 700;
  padding-bottom: 8px;
}

.section-link:hover {
  color: var(--accent-dark);
}

.featured-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* POST CARDS */

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 74, 135, 0.22);
  box-shadow: var(--shadow);
}

.post-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d7dfe9;
}

.post-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 28, 0.10), transparent);
  pointer-events: none;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.035);
}

.post-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.post-category {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.post-card h3 {
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.post-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ARCHIVE */

.archive-section {
  padding: 46px 0 80px;
}

.archive-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.archive-heading {
  margin-bottom: 18px;
}

.archive-list {
  display: grid;
}

.archive-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(32, 74, 135, 0.09);
}

.archive-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.archive-item strong {
  font-size: 1.02rem;
}

.archive-item em {
  color: var(--accent);
  font-size: 0.84rem;
  font-style: normal;
}

.archive-item:hover strong {
  color: var(--accent);
}

.pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.pagination a {
  color: var(--accent);
  font-weight: 700;
}

/* CATEGORY / PAGE */

.category-hero,
.page-section {
  padding: 60px 0 40px;
}

.category-hero h1,
.page-section h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
}

.category-hero p {
  max-width: 62ch;
}

.content-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px;
}

/* ARTICLE */

.article-page {
  padding: 48px 0 44px;
}

.article-hero {
  margin-bottom: 28px;
}

.article-page h1 {
  max-width: 880px;
  font-size: clamp(2.15rem, 3.4vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.article-description {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--muted);
}

.article-cover {
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d7dfe9;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px;
}

.article-content h2 {
  margin-top: 34px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.article-content h3 {
  margin-top: 28px;
}

.article-content p {
  font-size: 1.04rem;
  line-height: 1.85;
}

.related-posts {
  margin-top: 58px;
}

.related-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* POST GALLERY */

.post-gallery {
  margin: 30px 0 34px;
}

.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-gallery-item {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #d7dfe9;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.post-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-gallery-item:hover img {
  transform: scale(1.035);
}

/* FORM */

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 15px 16px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(32, 74, 135, 0.08);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* FOOTER */

.footer {
  margin-top: 72px;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(32, 74, 135, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-media {
    max-width: 620px;
  }

  .featured-grid,
  .post-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 8px;
    font-size: 0.9rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
  }

  .home-hero {
    padding: 44px 0 28px;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: 2.55rem;
    line-height: 1.08;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-media {
    border-radius: 24px;
  }

  .hero-media::before {
    inset: 12px;
    border-radius: 18px;
  }

  .actions {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .trust-strip {
    padding-bottom: 24px;
  }

  .featured-section {
    padding: 34px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-link {
    padding-bottom: 0;
  }

  .featured-grid,
  .post-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card {
    border-radius: 22px;
  }

  .post-thumb {
    aspect-ratio: 4 / 3;
  }

  .archive-card {
    padding: 22px;
    border-radius: 24px;
  }

  .archive-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .category-hero,
  .page-section {
    padding: 42px 0 28px;
  }

  .category-hero h1,
  .page-section h1 {
    font-size: 2.15rem;
  }

  .article-page {
    padding: 34px 0 34px;
  }

  .article-page h1 {
    max-width: 100%;
    font-size: 2rem;
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .article-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .content-card,
  .article-content {
    padding: 24px;
    border-radius: 22px;
  }

  .article-cover {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  .post-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
