/*
Theme Name: Thalmax Nurse Registry
Theme URI: https://www.thalmaxnurseregistry.com
Author: Agard Studio
Description: A custom editable block theme for Thalmax Nurse Registry.
Version: 1.0.2
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: thalmax
*/

:root {
  --navy: #0c447c;
  --navy-dark: #082f55;
  --green: #136b55;
  --green-dark: #0e4f40;
  --green-wash: #dcefe8;
  --yellow: #e7b93f;
  --yellow-wash: #fff3c4;
  --limestone: #f5f8f6;
  --ink: #152f3f;
  --muted: #607280;
  --line: #d9e4e7;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(8, 47, 85, 0.14);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.wp-site-blocks {
  overflow-x: hidden;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e7ecef;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner,
.container {
  margin: 0 auto;
  max-width: 1296px;
  width: min(1296px, calc(100% - 48px));
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  height: 88px;
  justify-content: space-between;
  max-width: 1440px;
  padding: 0 72px;
  width: auto;
}

.logo-lockup {
  align-items: center;
  display: flex;
  gap: 11px;
  flex: 0 0 286px;
  min-width: 250px;
  position: relative;
  text-decoration: none;
}

.logo-lockup .wp-block-image,
.logo-lockup figure {
  margin: 0;
}

.logo-lockup img,
.logo-mark img,
.brand-logo img {
  height: auto;
  max-width: 100%;
}

.logo-mark img {
  width: 66px;
}

.logo-text {
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin: 0;
  min-width: 0;
  text-transform: uppercase;
}

.logo-text strong,
.logo-text .logo-name,
.logo-text .wp-block-site-title,
.logo-text .wp-block-site-title a {
  color: var(--navy);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  margin: 0;
  text-decoration: none;
}

.logo-text small,
.logo-text .logo-tagline,
.logo-text .wp-block-site-tagline {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  margin-top: 5px;
}

.site-nav,
.site-nav .wp-block-navigation__container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  justify-content: flex-end;
}

.site-nav a,
.site-nav .wp-block-navigation-item__content {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .wp-block-navigation-item__content:hover {
  color: var(--navy);
}

.header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 286px;
  gap: 10px;
  justify-content: flex-end;
}

.header-actions .wp-block-button__link {
  min-height: 42px;
  padding: 12px 16px;
}

.button,
.wp-block-button__link,
.thalmax-form button {
  align-items: center;
  background: var(--yellow);
  border: 0;
  border-radius: 7px;
  color: var(--navy-dark);
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  line-height: 1.1;
  min-height: 48px;
  padding: 14px 20px;
  text-decoration: none;
}

.button.secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--navy);
}

.hero,
.page-hero,
.wp-block-cover.hero,
.wp-block-cover.page-hero {
  align-items: center;
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: flex;
  min-height: 690px;
  padding: 0;
  position: relative;
}

.page-hero,
.wp-block-cover.page-hero {
  min-height: 672px !important;
}

.page-hero.compact,
.wp-block-cover.page-hero.compact {
  min-height: 500px !important;
}

.hero:not(.wp-block-cover)::before,
.page-hero:not(.wp-block-cover)::before {
  background: linear-gradient(90deg, rgba(4, 44, 83, 0.88), rgba(4, 44, 83, 0.42));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero .container,
.page-hero .container,
.wp-block-cover.hero .wp-block-cover__inner-container,
.wp-block-cover.page-hero .wp-block-cover__inner-container {
  margin: 0 auto;
  position: relative;
  width: min(1296px, calc(100% - 48px));
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.hero-content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.hero-eyebrow {
  color: var(--yellow-wash);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--yellow-wash);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: inherit;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  margin-top: 0;
}

h1 {
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.95;
  margin-bottom: 22px;
}

.display {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  margin-bottom: 18px;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
}

p {
  line-height: 1.7;
}

.lead {
  color: inherit;
  font-size: 20px;
  line-height: 1.65;
  max-width: 700px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
  padding-top: 8px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.pill,
.badge {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.section {
  background: var(--white);
  padding: 92px 0;
}

.wp-block-group.section {
  margin-block-start: 0;
}

.entry-content > .wp-block-cover,
.entry-content > .wp-block-group,
.wp-block-post-content > .wp-block-cover,
.wp-block-post-content > .wp-block-group {
  margin-block-start: 0;
  margin-block-end: 0;
}

.section.alt {
  background: var(--limestone);
}

.section.green {
  background: var(--green-dark);
  color: var(--white);
}

.section.limestone {
  background: var(--limestone);
}

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

.section.navy .section-title,
.section.navy h2,
.section.navy h3 {
  color: var(--white);
}

.section.navy .lead {
  color: #dce8ee;
}

.section-title {
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  max-width: 760px;
}

.split {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.two-column {
  align-items: center;
  display: grid;
  gap: 62px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.wp-block-columns.split,
.wp-block-columns.grid,
.wp-block-columns.two-column,
.wp-block-columns.proof-grid,
.wp-block-columns.value-grid {
  margin-bottom: 0;
}

.wp-block-columns.split > .wp-block-column,
.wp-block-columns.grid > .wp-block-column,
.wp-block-columns.two-column > .wp-block-column,
.wp-block-columns.proof-grid > .wp-block-column,
.wp-block-columns.value-grid > .wp-block-column {
  min-width: 0;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.proof-grid,
.value-grid,
.wp-block-columns.proof-grid,
.wp-block-columns.value-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 47, 85, 0.08);
  padding: 28px;
}

.wp-block-group.card {
  height: 100%;
}

.value-card {
  padding: 30px;
}

.value-card h3 {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.value-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.section.navy .value-card h3 {
  color: var(--navy);
}

.card.dark {
  background: var(--navy);
  border: 0;
  color: var(--white);
}

.card.green {
  background: var(--green);
  border: 0;
  color: var(--white);
}

.image-panel {
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.image-panel img,
.wp-block-image.image-panel img {
  display: block;
  height: auto;
  min-height: 380px;
  object-fit: cover;
  width: 100%;
}

.legal-note {
  background: var(--green-wash);
  border-radius: 8px;
  color: var(--navy);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  padding: 18px 22px;
}

.checklist {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.checklist li {
  background: var(--limestone);
  border-left: 4px solid var(--yellow);
  border-radius: 6px;
  font-weight: 750;
  padding: 13px 14px;
}

.thalmax-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 28px;
}

.thalmax-form label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 7px;
}

.thalmax-form input,
.thalmax-form select,
.thalmax-form textarea {
  border: 1px solid #cbd9de;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
}

.thalmax-form textarea {
  min-height: 126px;
}

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

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

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 54px 0 28px;
}

.footer-grid,
.wp-block-columns.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer-grid a,
.footer-grid p,
.footer-grid li {
  color: #c7d4dc;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-logo {
  background: var(--white);
  border-radius: 6px;
  display: inline-flex;
  max-width: min(284px, 100%);
  padding: 10px 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c7d4dc;
  font-size: 13px;
  margin-top: 34px;
  padding-top: 20px;
}

@media (max-width: 980px) {
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
    padding-top: 18px;
    height: auto;
  }

  .grid.two,
  .grid.three,
  .proof-grid,
  .value-grid,
  .two-column,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }

  .page-hero,
  .wp-block-cover.page-hero {
    min-height: 600px !important;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 36px, 1296px);
  }

  .header-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .wp-block-cover.hero .wp-block-cover__inner-container,
  .wp-block-cover.page-hero .wp-block-cover__inner-container {
    width: min(100% - 36px, 1296px);
  }

  .logo-lockup {
    flex-basis: 224px;
    min-width: 0;
  }

  .logo-mark img {
    width: 52px;
  }

  .logo-text strong,
  .logo-text .logo-name {
    font-size: 23px;
    letter-spacing: 0.1em;
  }

  .logo-text small,
  .logo-text .logo-tagline {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .section {
    padding: 62px 0;
  }
}
