/* SEAL — light flexbox redesign (brand palette) */
:root {
  --seal-blue: #0b7dbd;
  --seal-blue-deep: #325197;
  --seal-navy: #29398a;
  --seal-teal: #a5d5d7;
  --seal-teal-soft: #e8f4f5;
  --seal-orange: #f6922e;
  --seal-gold: #fdc455;
  --seal-text: #464646;
  --seal-muted: #858585;
  --seal-border: #e5e5e5;
  --seal-bg: #f7fafb;
  --seal-white: #ffffff;
  --seal-max: 1100px;
  --seal-font: "Open Sans", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--seal-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--seal-text);
  background: linear-gradient(180deg, var(--seal-teal-soft) 0%, var(--seal-white) 220px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--seal-blue);
  text-decoration: none;
}

a:hover {
  color: var(--seal-blue-deep);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--seal-white);
  padding: 0.5rem 1rem;
}

.site-wrap {
  width: 100%;
  max-width: var(--seal-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--seal-white);
  border-bottom: 3px solid var(--seal-blue);
  box-shadow: 0 1px 0 rgba(11, 125, 189, 0.08);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--seal-navy);
}

.site-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.site-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--seal-navy);
}

.site-logo:hover {
  text-decoration: none;
}

/* Nav */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--seal-text);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 4px;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--seal-teal-soft);
  color: var(--seal-blue-deep);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--seal-border);
  background: var(--seal-white);
  color: var(--seal-navy);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}

/* Main */
.site-main {
  flex: 1;
  padding: 1.75rem 0 3rem;
}

.page-header {
  margin: 0 0 1.5rem;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  color: var(--seal-navy);
  font-weight: 700;
}

.page-header .lead {
  margin: 0.75rem 0 0;
  color: var(--seal-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

/* Homepage hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--seal-border);
  margin-bottom: 2rem;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(165, 213, 215, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 40%, rgba(246, 146, 46, 0.12) 0%, transparent 45%);
}

.hero .brand-mark {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--seal-navy);
  letter-spacing: 0.04em;
  margin: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--seal-text);
  line-height: 1.35;
  max-width: 40rem;
}

.hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--seal-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--seal-blue-deep);
  color: var(--seal-white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--seal-blue);
  color: var(--seal-blue);
}

.btn-ghost:hover {
  background: var(--seal-teal-soft);
  color: var(--seal-blue-deep);
}

/* Goals / cards grid */
.section-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--seal-navy);
}

.goals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 2.5rem;
  list-style: none;
  padding: 0;
}

.goals li {
  flex: 1 1 240px;
  background: var(--seal-white);
  border: 1px solid var(--seal-border);
  border-top: 3px solid var(--seal-blue);
  padding: 1.25rem;
}

.goals li:nth-child(2) {
  border-top-color: var(--seal-orange);
}

.goals li:nth-child(3) {
  border-top-color: var(--seal-teal);
}

.goals img {
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
}

.goals h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--seal-navy);
}

.goals p {
  margin: 0;
  font-size: 0.95rem;
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 2rem;
}

.news-card {
  flex: 1 1 260px;
  background: var(--seal-white);
  border: 1px solid var(--seal-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card a:hover h3 {
  color: var(--seal-blue);
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.news-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--seal-navy);
}

.news-card .meta {
  color: var(--seal-muted);
  font-size: 0.9rem;
}

/* Content pages */
.content-body {
  background: var(--seal-white);
  border: 1px solid var(--seal-border);
  padding: 1.5rem 1.75rem;
}

.content-body > *:first-child {
  margin-top: 0;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  color: var(--seal-navy);
}

.content-body ul,
.content-body ol {
  padding-left: 1.25rem;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.content-body th,
.content-body td {
  border: 1px solid var(--seal-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.content-body th {
  background: var(--seal-teal-soft);
}

.list-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.list-links a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--seal-white);
  border: 1px solid var(--seal-border);
  border-left: 3px solid var(--seal-blue);
  color: var(--seal-navy);
  font-weight: 600;
}

.list-links a:hover {
  background: var(--seal-teal-soft);
  text-decoration: none;
}

.list-links .item-meta {
  display: block;
  font-weight: 400;
  color: var(--seal-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.partners-grid li {
  flex: 1 1 280px;
  background: var(--seal-white);
  border: 1px solid var(--seal-border);
  padding: 1.1rem;
}

.partners-grid img {
  max-height: 64px;
  width: auto;
  margin-bottom: 0.75rem;
}

.partners-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--seal-border);
  border-radius: 4px;
}

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

.contact-note {
  color: var(--seal-muted);
  font-size: 0.9rem;
}

/* Blog list (r-template_blog) */
.blog-container {
  margin: 1rem 0;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.blog-card {
  flex: 1 1 280px;
  background: var(--seal-white);
  border: 1px solid var(--seal-border);
  padding: 1.15rem 1.25rem;
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.blog-preview p {
  margin: 0;
  color: var(--seal-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--seal-navy);
  color: #d7e6f0;
  padding: 1.75rem 0 2rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--seal-gold);
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex: 1 1 320px;
}

.footer-brand img {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  font-weight: 600;
  font-size: 0.9rem;
}

.romlifooter {
  margin-top: 1.25rem;
  width: 100%;
  color: #c5d5e0;
  font-size: 0.85rem;
}

.romlifooter img {
  max-width: 120px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .content-body {
    padding: 1.15rem;
  }
}
