:root {
  --navy: #08224a;
  --navy-2: #0c315f;
  --ink: #102033;
  --muted: #607086;
  --line: #dfe5ed;
  --soft: #f6f8fb;
  --white: #ffffff;
  --sand: #f3eee5;
  --gold: #c7a563;
  --green: #0fab58;
  --shadow: 0 20px 60px rgba(8, 34, 74, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.resource-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(8, 34, 74, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.resource-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.resource-brand strong,
.resource-brand small {
  display: block;
}

.resource-brand strong {
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.resource-brand small {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.resource-nav {
  display: flex;
  gap: 30px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.nav-cta,
.search-box button,
.sidebar-cta a,
.conversion-band a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 13px 20px;
  color: var(--white);
  background: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.resource-hero {
  position: relative;
  min-height: 310px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.resource-hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 34, 74, 0.82), rgba(8, 34, 74, 0.28));
}

.resource-hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 58px;
}

.resource-hero-copy p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(44px, 6vw, 70px);
  line-height: 0.98;
}

.resource-hero-copy span {
  display: block;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.search-band {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 40px));
  margin: -28px auto 0;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(8, 34, 74, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box input {
  min-width: 0;
  min-height: 48px;
  border: 0;
  padding: 0 16px;
  color: var(--ink);
  outline: 0;
}

.content-shell {
  display: grid;
  width: min(var(--max), calc(100% - 40px));
  grid-template-columns: 260px 1fr;
  gap: 54px;
  margin: 70px auto 64px;
}

.content-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sidebar-card,
.whatsapp-card,
.article-card,
.seo-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 34, 74, 0.06);
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h2,
.sidebar-cta h2,
.whatsapp-card span,
.resource-footer h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 16px;
}

.category-filter {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(8, 34, 74, 0.07);
  padding: 13px 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.category-filter.active,
.category-filter:hover {
  color: var(--navy);
  background: var(--soft);
}

.sidebar-cta {
  min-height: 180px;
  display: grid;
  align-content: end;
  padding: 22px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(8, 34, 74, 0.88), rgba(8, 34, 74, 0.38)),
    url("assets/hero-aerial.jpg") center / cover;
}

.sidebar-cta h2 {
  color: var(--white);
  font-size: 22px;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.86);
}

.whatsapp-card {
  padding: 20px;
}

.whatsapp-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

.whatsapp-card a {
  display: inline-flex;
  border-radius: 6px;
  padding: 11px 16px;
  color: var(--white);
  background: var(--green);
  font-size: 14px;
  font-weight: 900;
}

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

.resource-eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.seo-content h2,
.conversion-band h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-heading span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.article-card {
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.article-card[hidden] {
  display: none;
}

.article-card:hover,
.article-card:focus-visible {
  border-color: rgba(8, 34, 74, 0.34);
  box-shadow: 0 18px 46px rgba(8, 34, 74, 0.14);
  transform: translateY(-3px);
}

.article-card:focus-visible {
  outline: 3px solid rgba(199, 165, 99, 0.42);
  outline-offset: 3px;
}

.article-card img {
  height: 150px;
  object-fit: cover;
}

.article-card div {
  padding: 20px;
}

.article-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.article-card p {
  color: var(--muted);
  font-size: 15px;
}

.article-card a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.article-card a::after {
  content: " ->";
}

.seo-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 76px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.seo-grid article {
  padding: 24px;
  scroll-margin-top: 110px;
}

.seo-grid h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 22px;
}

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

.conversion-band {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 86px;
  padding: 34px;
  border-radius: 10px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 34, 74, 0.94), rgba(12, 49, 95, 0.84)),
    url("assets/ocean-view.jpg") center / cover;
}

.conversion-band p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.conversion-band h2 {
  max-width: 720px;
  color: var(--white);
}

.conversion-band a {
  min-width: max-content;
  color: var(--navy);
  background: var(--gold);
}

.resource-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 42px;
  padding: 46px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy);
}

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

.resource-footer p {
  max-width: 310px;
  margin: 18px 0 0;
}

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

.resource-footer a:not(.resource-brand) {
  display: block;
  margin: 8px 0;
}

@media (max-width: 980px) {
  .resource-nav {
    display: none;
  }

  .content-shell {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-card {
    grid-column: 1 / -1;
  }

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

  .conversion-band,
  .resource-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .resource-header {
    padding: 14px 16px;
  }

  .nav-cta {
    display: none;
  }

  .resource-brand strong {
    font-size: 17px;
  }

  .resource-brand small {
    display: none;
  }

  .resource-hero {
    min-height: 360px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box button {
    width: 100%;
  }

  .resource-hero-copy span,
  .resource-hero-copy p,
  .resource-hero-copy h1 {
    max-width: 330px;
    overflow-wrap: anywhere;
  }

  .content-sidebar,
  .article-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .conversion-band {
    display: grid;
    align-items: start;
  }

  .seo-content {
    padding: 30px 20px;
  }
}
