:root {
  --navy: #17235f;
  --navy-deep: #0b1234;
  --navy-ink: #070b20;
  --ink: #10131a;
  --muted: #5f6673;
  --line: #d9dde6;
  --soft: #f5f7fb;
  --paper: #fbfcff;
  --white: #ffffff;
  --steel: #e9edf4;
  --silver: #b8bfcc;
  --shadow: 0 24px 70px rgba(10, 18, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 188px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav a:hover {
  color: var(--navy);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-cta,
.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.header-cta:hover,
.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(23, 35, 95, 0.28);
}

.btn-secondary:hover {
  border-color: var(--navy);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(86px, 11vw, 142px) clamp(22px, 7vw, 104px);
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 34, 0.99) 0%, rgba(9, 16, 45, 0.92) 50%, rgba(11, 18, 52, 0.74) 100%),
    url("costa-braganca-logo-white.png") right -11vw center / min(54vw, 720px) auto no-repeat;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(18px, 6vw, 84px);
  right: clamp(18px, 6vw, 84px);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .section-kicker,
.authority-panel .section-kicker {
  color: #c9d4ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 7vw, 6.7rem);
  line-height: 0.96;
  font-weight: 500;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.76);
}

.trust-list li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

section {
  padding: clamp(72px, 8vw, 112px) clamp(18px, 6vw, 84px);
}

.executive-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.executive-strip div {
  min-height: 168px;
  padding: 34px clamp(18px, 4vw, 42px);
  background: var(--white);
  border-right: 0;
}

.executive-strip div:last-child {
  border-right: 0;
}

.executive-strip span {
  display: block;
  margin-bottom: 34px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.executive-strip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
}

.executive-strip p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  width: min(790px, 100%);
  margin-bottom: 40px;
}

.section-heading h2,
.diagnostic h2,
.authority h2,
.final-cta h2 {
  margin-bottom: 14px;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.85rem);
  line-height: 1.03;
  font-weight: 500;
}

.section-heading p,
.diagnostic p,
.final-cta p {
  color: var(--muted);
  font-size: 1.04rem;
}

.problem-band {
  background: var(--soft);
}

.problem-grid,
.authority-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.problem-grid article,
.authority-grid article,
.solution-list article {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 26px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.problem-grid article:hover,
.solution-list article:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 35, 95, 0.32);
  box-shadow: 0 20px 48px rgba(10, 18, 42, 0.08);
}

.problem-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.problem-grid h3,
.solution-list h3,
.authority-grid h3 {
  margin-bottom: 10px;
  color: var(--navy-deep);
  font-size: 1.08rem;
}

.problem-grid p,
.solution-list p,
.authority-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.solutions-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1.28fr;
  gap: 18px;
}

.solution-card {
  min-height: 100%;
  padding: 34px;
  border: 1px solid rgba(23, 35, 95, 0.18);
  background:
    var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.method-section {
  background: var(--soft);
  color: var(--ink);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border: 0;
}

.method-grid article {
  min-height: 220px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.method-grid span {
  display: block;
  margin-bottom: 48px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.method-grid h3 {
  margin-bottom: 12px;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 500;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
}

.solution-card h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  font-weight: 500;
}

.solution-card p {
  color: rgba(255, 255, 255, 0.78);
}

.solution-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--white);
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diagnostic {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--soft);
}

.diagnostic ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--navy-deep);
  list-style: none;
}

.diagnostic li {
  padding-left: 28px;
  position: relative;
}

.diagnostic li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 2px;
  background: var(--navy);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.88rem;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid rgba(23, 35, 95, 0.22);
  border-color: var(--navy);
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.authority {
  background:
    var(--navy-deep);
  color: var(--white);
}

.authority-panel {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  margin-bottom: 42px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.authority-panel img {
  width: min(260px, 100%);
}

.authority-panel h2,
.final-cta h2 {
  color: var(--white);
}

.authority-statement {
  width: min(980px, 100%);
  margin: 0 0 38px auto;
}

.authority-statement p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  line-height: 1.12;
}

.authority-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.authority-grid article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.authority-grid h3 {
  color: var(--white);
}

.authority-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.blog-section {
  background: var(--paper);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.featured-article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  padding: clamp(28px, 4vw, 42px);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.featured-article h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.04;
}

.featured-article p:not(.article-category) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
}

.featured-article a {
  display: inline-flex;
  width: fit-content;
  margin-top: 28px;
  color: var(--white);
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.article-category {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-article .article-category {
  color: #c9d4ff;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-list article {
  display: flex;
  flex-direction: column;
  min-height: 206px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.article-list article:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 35, 95, 0.34);
  box-shadow: 0 20px 48px rgba(10, 18, 42, 0.08);
}

.article-list h3 {
  margin-bottom: 12px;
  color: var(--navy-deep);
  font-size: 1.15rem;
  line-height: 1.32;
}

.article-list p:not(.article-category) {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-list span {
  margin-top: auto;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-answer-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.answer-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.answer-grid h3 {
  margin-bottom: 12px;
  color: var(--navy-deep);
  font-size: 1.06rem;
  line-height: 1.28;
}

.answer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  background:
    var(--navy);
  color: var(--white);
}

.final-cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 6vw, 84px);
  background: #070b20;
  color: rgba(255, 255, 255, 0.68);
}

.footer img {
  width: 188px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--white);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  background: #1f7a4f;
  color: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  font-weight: 800;
}

.whatsapp-float:hover {
  background: #17683f;
}

@media (max-width: 1080px) {
  .hero,
  .executive-strip,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .executive-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-grid span {
    margin-bottom: 42px;
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .authority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solutions-layout,
  .diagnostic,
  .final-cta,
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand img {
    width: 148px;
  }

  .nav {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-top: 66px;
    padding-bottom: 76px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(6, 12, 34, 0.98) 0%, rgba(9, 16, 45, 0.9) 58%, rgba(11, 18, 52, 0.72) 100%),
      url("costa-braganca-logo-white.png") center bottom 28px / 76vw auto no-repeat;
    opacity: 0.82;
  }

  .hero-actions,
  .final-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .problem-grid,
  .solution-list,
  .authority-grid,
  .article-list,
  .answer-grid,
  .lead-form,
  .authority-panel {
    grid-template-columns: 1fr;
  }

  .problem-grid article,
  .authority-grid article,
  .article-list article,
  .solution-list article {
    padding: 20px;
  }

  .featured-article {
    min-height: auto;
  }

  .footer {
    padding-bottom: 84px;
  }
}
