:root {
  --cwf-bg: #f4f7fb;
  --cwf-surface: #ffffff;
  --cwf-navy: #123250;
  --cwf-blue: #0b63ce;
  --cwf-blue-dark: #084f9f;
  --cwf-border: rgba(10, 32, 51, 0.08);
  --shadow-sm: 0 8px 20px rgba(11, 99, 206, 0.08);
  --shadow-md: 0 12px 40px rgba(1, 24, 46, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cwf-bg);
  color: var(--cwf-navy);
  line-height: 1.6;
}

a {
  color: var(--cwf-blue);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  top: 0;
}

header {
  background: #ffffff;
  border-bottom: 1px solid var(--cwf-border);
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
/* bigger logo */
.logo-link img {
  height: 92px;
  width: auto;
  display: block;
}

.top-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  background: var(--cwf-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 12px 30px rgba(11, 99, 206, 0.26);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cwf-blue-dark);
}
.btn-primary:focus-visible {
  outline: 3px solid rgba(11, 99, 206, 0.32);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: #0b63ce;
  padding: 0.35rem 0.4rem;
  border: none;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.8rem 1.5rem 3.4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.35rem, 3.5vw, 3rem);
  line-height: 1.03;
  margin-bottom: 0.6rem;
  color: var(--cwf-navy);
}

.hero-text {
  font-size: 1.02rem;
  margin-bottom: 1.3rem;
  max-width: 36rem;
}

.hero-form {
  background: var(--cwf-surface);
  border-radius: 1rem;
  padding: 1rem 1rem 1.25rem;
  border: 1px solid rgba(11, 99, 206, 0.08);
  box-shadow: var(--shadow-sm);
}

.hero-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.input-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1 1 20px;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(18, 50, 80, 0.28);
  border-radius: 0.55rem;
  font-size: 0.92rem;
}
input[type="email"]:focus-visible {
  outline: 3px solid rgba(11, 99, 206, 0.25);
  outline-offset: 1px;
}

.hero-visual {
  background: #ffffff;
  border: 1px solid rgba(7, 42, 72, 0.06);
  border-radius: 1.1rem;
  min-height: 240px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
}

/* map box with provided image */
.map-box {
  border-radius: 0.85rem;
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.6rem;
}

.map-view {
  border-radius: 0.75rem;
  border: 1px solid rgba(11, 99, 206, 0.05);
  margin: 0.35rem;
  position: relative;
  min-height: 195px;
  background-image: url("assets/cwf-map.png");
  background-size: cover;
  background-position: center;
}

/* if you want extra pins, uncomment these
.map-view::after {
  content: "";
}
*/

.list-view {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid rgba(11, 99, 206, 0.05);
  margin: 0.35rem 0.35rem 0.35rem 0;
  padding: 0.4rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.list-item {
  background: #f4f7fb;
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  gap: 1rem;
}
.list-item strong {
  font-size: 0.75rem;
}
.time-pill {
  background: #ffffff;
  border: 1px solid rgba(11, 99, 206, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  color: #0b63ce;
  white-space: nowrap;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}

.subhead {
  max-width: 610px;
  color: rgba(18, 50, 80, 0.75);
  margin-bottom: 1.7rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(18, 50, 80, 0.02);
  box-shadow: 0 7px 18px rgba(18, 50, 80, 0.02);
}
.feature-card h3 {
  margin-top: 0.35rem;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.feature-card p {
  margin: 0;
  font-size: 0.87rem;
  color: rgba(18, 50, 80, 0.7);
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e9f1fb;
  display: grid;
  place-items: center;
  color: #0b63ce;
  font-weight: 700;
  font-size: 0.8rem;
}

.blog-list {
background: #ffffff;
border-radius: 0.9rem;
border: 1px solid rgba(18, 50, 80, 0.03);
box-shadow: 0 7px 18px rgba(18, 50, 80, 0.02);
padding: 1.2rem 1.2rem 1.3rem;
margin-bottom: 3rem;
}

.blog-items {
list-style: none;
padding: 0;
margin: 1rem 0 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 0.8rem;
}

.blog-items li {
background: #f7f9fc;
border: 1px solid rgba(11, 99, 206, 0.04);
border-radius: 0.7rem;
padding: 0.6rem 0.75rem 0.65rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.blog-items li:hover {
transform: translateY(-2px);
box-shadow: 0 8px 18px rgba(11, 99, 206, 0.07);
}

.blog-title a {
color: inherit;
text-decoration: none;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}

.blog-title a::after {
content: "→";
font-size: 0.8rem;
opacity: 0.5;
transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

.blog-items li:hover .blog-title a::after {
opacity: 1;
transform: translateX(2px);
}

.blog-meta {
font-size: 0.7rem;
color: rgba(18, 50, 80, 0.55);
}

.cta-band {
  background: linear-gradient(120deg, #0b63ce 0%, #084f9f 95%);
  color: #fff;
  max-width: 1100px;
  margin: 0 auto 3.3rem;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-band p {
  margin: 0.2rem 0 0;
}

footer {
  background: #ffffff;
  border-top: 1px solid rgba(18, 50, 80, 0.03);
  padding: 2.2rem 1.5rem 2.6rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-inner small {
  color: rgba(18, 50, 80, 0.5);
}
.footer-note {
  font-size: 0.7rem;
  color: rgba(18, 50, 80, 0.5);
  margin-top: 0.45rem;
}

/* MOBILE FIXES */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: 2;
  }
  .cta-band {
    flex-direction: column;
    text-align: center;
  }
  .blog-items li {
    flex-wrap: wrap;
  }
  .map-box {
    grid-template-columns: 1fr;
  }
  .map-view {
    min-height: 210px;
  }
}

@media (max-width: 650px) {
  .input-row {
    gap: 0.5rem;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .logo-link img {
    height: 74px;
  }
  /* control the email field height on mobile */
  .hero-form input[type="email"] {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.5rem 0.65rem;
    line-height: 1.2;
  }
  /* make button match input height */
  .hero-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.65rem;
  }
  .hero {
    padding-top: 2.2rem;
  }
  .list-view {
    margin-left: 0.35rem;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 21, 36, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}
.modal-overlay.is-open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 1rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0,0,0,0.14);
  border: 1px solid rgba(10, 32, 51, 0.04);
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
}
.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: rgba(18,50,80,0.5);
}
.modal h2 {
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}
.modal p {
  margin-top: 0;
  font-size: 0.85rem;
  color: rgba(18,50,80,0.7);
}
.modal form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.modal input[type="email"],
.modal input[type="text"] {
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(18,50,80,0.28);
  font-size: 0.9rem;
}
.modal small {
  font-size: 0.65rem;
  color: rgba(18,50,80,0.5);
}

/* BLOG PAGE STYLES */
.content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.6rem 1.25rem 3.5rem;
}

.post-meta {
  font-size: 0.78rem;
  color: rgba(18, 50, 80, 0.6);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.6rem);
  line-height: 1.03;
  margin-bottom: 1.1rem;
}

h2 {
  margin-top: 2.3rem;
  margin-bottom: 0.6rem;
}

h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.toc {
  background: #fff;
  border: 1px solid rgba(10, 32, 51, 0.03);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem 0.3rem;
  box-shadow: var(--shadow-sm);
  margin: 1.1rem 0 1.8rem;
}
.toc strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.83rem;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li {
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
}

.highlight-box {
  background: #ffffff;
  border-left: 4px solid var(--cwf-blue);
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  margin: 1rem 0 1.2rem;
}

.cta-box {
  background: linear-gradient(120deg, #0b63ce 0%, #084f9f 95%);
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.4rem 1.2rem 1.3rem;
  margin-top: 2.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Blog page specific header adjustments */
.blog-header .topbar {
  max-width: 1100px;
  padding: 0.6rem 1.5rem;
}

.blog-header .logo-link img {
  height: 92px;
}

.blog-header .btn-primary {
  padding: 0.6rem 1.25rem;
}

/* Blog page specific footer adjustments */
.blog-footer {
  background: #fff;
  border-top: 1px solid rgba(18, 50, 80, 0.03);
  padding: 2.2rem 1.5rem 2.6rem;
}
.blog-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Blog page mobile adjustments */
@media (max-width: 650px) {
  .blog-header .topbar {
    flex-wrap: wrap;
  }
  .blog-header .logo-link img {
    height: 74px;
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* PRIVACY PAGE STYLES */
.privacy-header .topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.privacy-header .topbar img {
  height: 92px;
}

.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem 1.25rem 3.4rem;
  margin-top: 1.6rem;
  border-radius: 0.75rem;
  box-shadow: 0 9px 30px rgba(0,0,0,0.03);
}

.privacy-content h1 {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.privacy-content h2 {
  margin-top: 1.9rem;
  margin-bottom: 0.5rem;
}

.privacy-content p { 
  margin-top: 0.3rem; 
}

.privacy-content ul { 
  padding-left: 1.1rem; 
}

.privacy-footer {
  max-width: 900px;
  margin: 1.8rem auto 2.8rem;
  font-size: 0.75rem;
  color: rgba(18, 50, 80, 0.55);
  padding: 0 1.25rem;
}

/* Privacy page mobile adjustments */
@media (max-width: 650px) {
  .privacy-header .topbar { 
    flex-wrap: wrap; 
  }
  .privacy-header .topbar img { 
    height: 74px; 
  }
  .privacy-content { 
    margin-top: 1rem; 
  }
}
