/* ============================================================
   Council Network — theme.css
   Component styles that extend theme.json base tokens.
   ============================================================ */

/* ---- Shared SVG pattern (fleur-de-lis) ---- */
.cs-pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='40' y='52' font-size='40' text-anchor='middle' fill='white' fill-opacity='0.04'%3E%E2%9A%9C%3C/text%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ---- Navbar ---- */
.cs-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--wp--preset--color--white);
  border-bottom: 1px solid var(--wp--preset--color--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cs-navbar .wp-block-group.cs-navbar__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.cs-navbar .wp-block-site-logo img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.cs-navbar .wp-block-site-title a {
  font-family: var(--wp--preset--font-family--poppins);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--wp--preset--color--navy);
  text-decoration: none;
}

.cs-navbar .wp-block-navigation a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--wp--preset--color--text);
  transition: background 0.25s ease, color 0.25s ease;
}

.cs-navbar .wp-block-navigation a:hover {
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--navy);
}

.cs-navbar .wp-block-navigation .wp-block-navigation-item.is-style-button > .wp-block-navigation-item__content {
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white);
  border-radius: 6px;
  padding: 8px 18px;
  margin-left: 8px;
}

.cs-navbar .wp-block-navigation .wp-block-navigation-item.is-style-button > .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--navy);
}

/* ---- Hero ---- */
.cs-hero {
  min-height: 100vh;
  position: relative;
}

.cs-hero .wp-block-cover__background {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='40' y='52' font-size='40' text-anchor='middle' fill='white' fill-opacity='0.04'%3E%E2%9A%9C%3C/text%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.cs-hero__eyebrow {
  color: var(--wp--preset--color--gold) !important;
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 1.25rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem !important;
}

/* ---- Section scaffolding ---- */
.cs-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.cs-section--dark {
  background-color: var(--wp--preset--color--navy);
  position: relative;
}

.cs-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='40' y='52' font-size='40' text-anchor='middle' fill='white' fill-opacity='0.04'%3E%E2%9A%9C%3C/text%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.cs-section--light {
  background-color: var(--wp--preset--color--background);
}

.cs-section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--green);
  margin-bottom: 0.75rem;
}

.cs-section__label--gold {
  color: var(--wp--preset--color--gold);
}

/* ---- Cards ---- */
.cs-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.cs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.cs-card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--wp--preset--color--white);
}

.cs-card--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.cs-card--dark h3 {
  color: var(--wp--preset--color--white);
}

.cs-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cs-card__icon svg {
  width: 28px;
  height: 28px;
}

.cs-card__icon--navy { background: rgba(27,46,75,.1);    color: var(--wp--preset--color--navy); }
.cs-card__icon--gold  { background: rgba(245,166,35,.15); color: var(--wp--preset--color--gold-dark); }
.cs-card__icon--green { background: rgba(46,125,50,.12);  color: var(--wp--preset--color--green); }

.cs-solution-num {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--gold);
  margin-bottom: 0.75rem;
}

/* ---- Testimonials ---- */
.cs-testimonial {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 40px 32px 32px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cs-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.cs-testimonial__quote {
  position: absolute;
  top: 20px;
  left: 28px;
  font-size: 4rem;
  line-height: 1;
  color: var(--wp--preset--color--gold);
  font-family: Georgia, serif;
  opacity: 0.6;
}

.cs-testimonial__text {
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 28px;
}

.cs-testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cs-testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--poppins);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-testimonial__avatar--gold  { background: var(--wp--preset--color--gold);  color: var(--wp--preset--color--navy); }
.cs-testimonial__avatar--green { background: var(--wp--preset--color--green); }

/* ---- CTA Banner ---- */
.cs-cta-banner {
  padding-top: 72px;
  padding-bottom: 72px;
}

.cs-cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---- Contact form ---- */
.cs-contact-form-wrap {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cs-contact-form {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cs-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.cs-contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.cs-contact-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--navy);
}

.cs-contact-form input,
.cs-contact-form textarea,
.cs-contact-form select {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.95rem;
  color: var(--wp--preset--color--text);
  background: var(--wp--preset--color--background);
  border: 1.5px solid var(--wp--preset--color--border);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cs-contact-form input:focus,
.cs-contact-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--navy);
  box-shadow: 0 0 0 3px rgba(27, 46, 75, 0.1);
}

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

.cs-contact-form button[type="submit"] {
  font-family: var(--wp--preset--font-family--poppins);
  font-weight: 600;
  font-size: 1rem;
  background: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--navy);
  border: none;
  border-radius: 6px;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cs-contact-form button[type="submit"]:hover {
  background: var(--wp--preset--color--gold-dark);
  transform: translateY(-2px);
}

/* ---- Footer ---- */
.cs-footer {
  background-color: var(--wp--preset--color--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.cs-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='40' y='52' font-size='40' text-anchor='middle' fill='white' fill-opacity='0.04'%3E%E2%9A%9C%3C/text%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.cs-footer .wp-block-group { position: relative; }

.cs-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.cs-footer a:hover { color: var(--wp--preset--color--gold); }

.cs-footer__heading {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--white) !important;
  margin-bottom: 1.125rem !important;
}

.cs-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 260px;
}

.cs-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}

.cs-footer__bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ---- Buttons: outline variant ---- */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-navy .wp-block-button__link {
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white);
  border: 2px solid var(--wp--preset--color--navy);
}

.wp-block-button.is-style-navy .wp-block-button__link:hover {
  background: var(--wp--preset--color--navy-dark);
  border-color: var(--wp--preset--color--navy-dark);
}

/* ---- Card grid layout ---- */
.cs-card-grid.wp-block-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ---- 404 page ---- */
.cs-not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 96px 24px;
}

.cs-not-found__code {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 6rem;
  font-weight: 800;
  color: var(--wp--preset--color--navy);
  line-height: 1;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white);
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus { top: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .cs-section { padding-top: 64px; padding-bottom: 64px; }
  .cs-contact-form { padding: 32px 24px; }
  .cs-contact-form .form-row { grid-template-columns: 1fr; }
  .cs-cta-banner__inner { flex-direction: column; text-align: center; }
  .cs-footer__tagline { max-width: 100%; }
}
