/*
Theme Name: PSFCA Resources
Theme URI: https://psfcooperativealliance.com
Author: PSFCA
Description: Lightweight Gutenberg block theme for the PSFCA benefits and resource portal.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: psfca-resources
*/

:root {
  --psfca-navy-950: #092a49;
  --psfca-navy-900: #0d3b66;
  --psfca-navy-800: #174f80;
  --psfca-blue-600: #1678a5;
  --psfca-teal-500: #1b9bbb;
  --psfca-teal-100: #dff5f8;
  --psfca-orange-500: #df650f;
  --psfca-orange-100: #fff0e4;
  --psfca-ink: #152536;
  --psfca-muted: #556575;
  --psfca-line: #d8e2ea;
  --psfca-mist: #f4f8fb;
  --psfca-shadow: 0 18px 50px rgba(9, 42, 73, 0.12);
  --psfca-radius-lg: 26px;
  --psfca-radius-md: 18px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a:focus-visible,
button:focus-visible { outline: 3px solid #f5a15f; outline-offset: 3px; }

.psfca-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 226, 234, 0.85);
  backdrop-filter: blur(12px);
}
.admin-bar .psfca-header { top: 32px; }
.psfca-header-inner { min-height: 82px; }
.psfca-brand { gap: 12px; }
.psfca-brand img { width: 56px; height: 56px; object-fit: contain; }
.psfca-brand-name { margin: 0 !important; color: var(--psfca-navy-900); font-size: 1.25rem; font-weight: 800; letter-spacing: .03em; line-height: 1.05; }
.psfca-brand-tagline { margin: 4px 0 0 !important; color: var(--psfca-muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; line-height: 1.1; text-transform: uppercase; }
.psfca-nav { font-size: .94rem; font-weight: 700; }
.psfca-nav .wp-block-navigation-item__content { text-decoration: none; }
.psfca-portal-link > .wp-block-navigation-item__content { padding: 10px 17px !important; color: white !important; background: var(--psfca-navy-900); border-radius: 999px; }

.psfca-hero { position: relative; padding: clamp(60px, 7vw, 92px) 0; overflow: hidden; background: linear-gradient(135deg, #f8fbfd 0%, #edf7fa 54%, #e6f2f7 100%); }
.psfca-hero::before { position: absolute; top: -160px; right: -160px; width: 520px; height: 520px; content: ""; background: rgba(27,155,187,.12); border-radius: 50%; }
.psfca-hero-grid { position: relative; display: grid !important; grid-template-columns: 1.02fr .98fr; gap: 62px; align-items: center; }
.psfca-eyebrow { margin: 0 0 14px !important; color: var(--psfca-blue-600); font-size: .76rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.psfca-eyebrow-light { color: #9de5f3; }
.psfca-hero-title { margin: 0 0 24px !important; color: var(--psfca-navy-950); font-size: clamp(2.65rem, 5.7vw, 4.75rem) !important; letter-spacing: -.045em; line-height: .98; }
.psfca-hero-title mark { color: var(--psfca-teal-500); background: transparent; }
.psfca-hero-lede { max-width: 650px; margin-bottom: 28px !important; color: #3f5568; font-size: 1.13rem; line-height: 1.65; }
.psfca-buttons { gap: 12px; }
.psfca-buttons .wp-block-button__link { padding: 13px 22px; border: 2px solid transparent; border-radius: 999px; font-weight: 800; }
.psfca-button-primary .wp-block-button__link { background: var(--psfca-navy-900); box-shadow: 0 10px 24px rgba(13,59,102,.18); }
.psfca-button-outline .wp-block-button__link { color: var(--psfca-navy-900); background: white; border-color: var(--psfca-navy-900); }
.psfca-hero-points { padding: 0; margin: 25px 0 0; color: var(--psfca-muted); font-size: .88rem; font-weight: 700; list-style: none; }
.psfca-hero-points li { margin-bottom: 5px; }
.psfca-hero-points li::before { margin-right: 8px; color: var(--psfca-teal-500); content: "✓"; }
.psfca-hero-visual { position: relative; padding: 18px 0 58px 18px; }
.psfca-hero-image { overflow: hidden; background: white; border: 9px solid white; border-radius: var(--psfca-radius-lg); box-shadow: var(--psfca-shadow); transform: rotate(1.2deg); }
.psfca-hero-image img { width: 100%; aspect-ratio: 14/6; object-fit: cover; }
.psfca-support-card { position: absolute; right: -18px; bottom: 0; width: min(330px, 82%); padding: 21px 24px; color: white; background: var(--psfca-navy-900); border: 5px solid white; border-radius: var(--psfca-radius-md); box-shadow: var(--psfca-shadow); }
.psfca-support-card p { margin: 0 0 2px !important; color: #a8e8f4; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.psfca-support-card h3 { margin: 0 0 4px !important; color: white; font-size: 1.8rem; }
.psfca-support-card .psfca-support-note { margin: 0 !important; color: #d7e7f2; font-size: .8rem; font-weight: 400; letter-spacing: 0; text-transform: none; }

.psfca-section { padding: clamp(70px, 8vw, 100px) 0; }
.psfca-section-intro { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.psfca-section-title { margin: 0 0 14px !important; color: var(--psfca-navy-950); font-size: clamp(2rem, 3.7vw, 3.1rem) !important; letter-spacing: -.035em; line-height: 1.08; }
.psfca-section-intro > p:last-child { color: var(--psfca-muted); }
.psfca-section-heading { display: grid !important; margin-bottom: 40px; grid-template-columns: 1fr minmax(260px, 440px); gap: 40px; align-items: end; }
.psfca-section-heading > p { color: var(--psfca-muted); }

.psfca-audience-grid { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.psfca-audience-card { display: grid !important; min-height: 330px; padding: 34px; grid-template-columns: 66px 1fr; gap: 22px; background: white; border: 1px solid var(--psfca-line); border-top: 5px solid var(--psfca-navy-800); border-radius: var(--psfca-radius-lg); box-shadow: 0 12px 35px rgba(9,42,73,.08); }
.psfca-audience-card.employee { border-top-color: var(--psfca-orange-500); }
.psfca-card-icon { width: 62px; height: 62px; display: grid !important; margin: 0 !important; color: white; background: var(--psfca-navy-800); border-radius: 18px; place-items: center; font-weight: 900; }
.psfca-audience-card.employee .psfca-card-icon { background: var(--psfca-orange-500); }
.psfca-card-kicker { margin: 0 0 5px !important; color: var(--psfca-blue-600); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.psfca-audience-card h3 { color: var(--psfca-navy-900); }
.psfca-audience-card p { color: var(--psfca-muted); }
.psfca-link-list { padding-left: 0; margin-top: 22px; list-style: none; }
.psfca-link-list li { padding: 7px 0; border-bottom: 1px solid var(--psfca-line); font-weight: 800; }
.psfca-link-list a { color: var(--psfca-navy-900); text-decoration: none; }

.psfca-dark-section { padding: clamp(70px, 7vw, 90px) 0; color: white; background: var(--psfca-navy-950); }
.psfca-dark-section .psfca-section-title { color: white; }
.psfca-dark-section .psfca-section-heading > p { color: #c7d8e5; }
.psfca-date-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.psfca-date-card { padding: 25px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--psfca-radius-md); }
.psfca-date-card h3 { margin: 0 0 4px !important; color: #8eddeb; font-size: 2rem; }
.psfca-date-card strong { color: white; }
.psfca-date-card p { margin: 0 !important; color: #d8e5ee; font-size: .9rem; }
.psfca-date-note { margin: 18px 0 0 !important; color: #9fb3c2; font-size: .78rem; }

.psfca-mist-section { padding: clamp(70px, 8vw, 100px) 0; background: var(--psfca-mist); }
.psfca-step-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.psfca-step-card { padding: 29px 25px; background: white; border: 1px solid var(--psfca-line); border-radius: var(--psfca-radius-md); }
.psfca-step-number { margin: 0 0 32px !important; color: var(--psfca-teal-500); font-size: 1.55rem; font-weight: 900; }
.psfca-step-card h3 { color: var(--psfca-navy-900); }
.psfca-step-card p:last-child { margin-bottom: 0; color: var(--psfca-muted); font-size: .93rem; }

.psfca-guide-grid { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.psfca-guide-card { position: relative; overflow: hidden; padding: 36px; background: linear-gradient(140deg, #f2f8fc, #e9f4f8); border: 1px solid #cfdee8; border-radius: var(--psfca-radius-lg); }
.psfca-guide-card.texas { background: linear-gradient(140deg, #fff8f2, #fff0e4); border-color: #f3d7bf; }
.psfca-guide-region { display: inline-block; padding: 7px 12px; margin: 0 0 26px !important; color: var(--psfca-navy-900); background: white; border-radius: 999px; box-shadow: 0 4px 12px rgba(9,42,73,.08); font-size: .74rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.psfca-guide-card p { color: var(--psfca-muted); }
.psfca-guide-card .wp-block-buttons { margin-top: 24px; }

.psfca-connector { padding: clamp(70px, 7vw, 90px) 0; color: white; background: linear-gradient(135deg, var(--psfca-navy-900), #09677e); }
.psfca-connector-grid { display: grid !important; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.psfca-connector h2 { color: white; }
.psfca-connector p { color: #d7e7f1; }
.psfca-contact-panel { padding: 29px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--psfca-radius-md); }
.psfca-contact-panel h3 { margin: 6px 0 !important; color: white; }
.psfca-phone { margin: 0 0 10px !important; font-size: 2rem; font-weight: 900; }
.psfca-phone a { color: white; text-decoration: none; }

.psfca-resource-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.psfca-resource-card { min-height: 230px; padding: 27px; background: white; border: 1px solid var(--psfca-line); border-radius: var(--psfca-radius-md); box-shadow: 0 10px 30px rgba(9,42,73,.07); }
.psfca-resource-icon { width: 48px; height: 48px; display: grid !important; margin: 0 0 32px !important; color: var(--psfca-navy-900); background: var(--psfca-teal-100); border-radius: 14px; place-items: center; font-size: 1.4rem; font-weight: 900; }
.psfca-resource-card h3 { color: var(--psfca-navy-900); font-size: 1.08rem; }
.psfca-resource-card p { color: var(--psfca-muted); font-size: .9rem; }

.psfca-final-cta { padding: 58px 0; color: white; background: var(--psfca-orange-500); }
.psfca-final-cta-inner { display: flex !important; align-items: center; justify-content: space-between; gap: 32px; }
.psfca-final-cta h2 { max-width: 760px; margin: 0 !important; color: white; }

.psfca-footer { padding: 52px 0 30px; color: #d8e4ed; background: #071f35; }
.psfca-footer-top { display: flex !important; align-items: center; justify-content: space-between; gap: 30px; }
.psfca-footer .psfca-brand-name { color: white; }
.psfca-footer .psfca-brand-tagline { color: #9fb4c4; }
.psfca-footer-nav a { color: #d8e4ed; text-decoration: none; }
.psfca-footer-disclaimer { padding-top: 26px; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.psfca-footer-disclaimer p { max-width: 1000px; color: #8fa7b9; font-size: .76rem; }

.psfca-page-main { min-height: 60vh; }
.psfca-page-hero { padding: clamp(58px, 7vw, 90px) 0; background: linear-gradient(135deg, #eff7fb 0%, #e5f3f6 100%); }
.psfca-page-hero .wp-block-post-title { margin: 0 !important; color: var(--psfca-navy-950); font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -.045em; }
.psfca-content-intro { padding: 48px 0 32px; }
.psfca-content-intro p { max-width: 850px; color: var(--psfca-muted); font-size: 1.12rem; }
.psfca-jump-links { gap: 10px; margin-top: 24px; }
.psfca-jump-links .wp-block-button__link { padding: 9px 16px; color: var(--psfca-navy-900); background: white; border: 1px solid var(--psfca-line); border-radius: 999px; font-size: .86rem; font-weight: 800; }
.psfca-content-section { padding: clamp(58px, 7vw, 82px) 0; }
.psfca-content-section.is-mist { background: var(--psfca-mist); }
.psfca-content-section.is-dark { color: white; background: var(--psfca-navy-950); }
.psfca-content-section.is-dark h2, .psfca-content-section.is-dark h3 { color: white; }
.psfca-content-section.is-dark p { color: #d7e4ee; }
.psfca-content-heading { max-width: 820px; margin-bottom: 34px; }
.psfca-content-heading h2 { margin: 0 0 12px !important; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.psfca-content-heading p { color: var(--psfca-muted); }
.psfca-download-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.psfca-download-card { display: flex !important; min-height: 250px; padding: 26px; flex-direction: column; justify-content: space-between; background: white; border: 1px solid var(--psfca-line); border-radius: var(--psfca-radius-md); box-shadow: 0 9px 28px rgba(9,42,73,.07); }
.psfca-download-card h3 { margin: 8px 0 10px !important; color: var(--psfca-navy-900); font-size: 1.12rem; }
.psfca-download-card p { color: var(--psfca-muted); font-size: .9rem; }
.psfca-file-type { align-self: flex-start; padding: 5px 9px; margin: 0 !important; color: var(--psfca-navy-900) !important; background: var(--psfca-teal-100); border-radius: 999px; font-size: .7rem !important; font-weight: 900; letter-spacing: .09em; }
.psfca-download-card .wp-block-button__link { padding: 10px 17px; font-size: .86rem; }
.psfca-info-panel { padding: 32px; background: white; border: 1px solid var(--psfca-line); border-left: 6px solid var(--psfca-teal-500); border-radius: var(--psfca-radius-md); box-shadow: 0 10px 30px rgba(9,42,73,.07); }
.psfca-info-panel h3 { margin-top: 0 !important; }
.psfca-action-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.psfca-action-card { padding: 30px; background: white; border: 1px solid var(--psfca-line); border-radius: var(--psfca-radius-md); }
.psfca-action-card h3 { color: var(--psfca-navy-900); }
.psfca-steps { counter-reset: psfca-step; padding-left: 0; list-style: none; }
.psfca-steps li { position: relative; min-height: 46px; padding: 8px 0 18px 58px; counter-increment: psfca-step; }
.psfca-steps li::before { position: absolute; top: 2px; left: 0; width: 40px; height: 40px; display: grid; color: white; content: counter(psfca-step); background: var(--psfca-navy-900); border-radius: 50%; place-items: center; font-weight: 900; }
.psfca-contact-strip { padding: 34px; color: white; background: linear-gradient(135deg, var(--psfca-navy-900), #08758d); border-radius: var(--psfca-radius-lg); }
.psfca-contact-strip h3, .psfca-contact-strip a { color: white; }
.psfca-contact-strip .psfca-phone { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.psfca-disclaimer { padding: 28px; margin-top: 42px; background: #f7f8fa; border: 1px solid var(--psfca-line); border-radius: 12px; }
.psfca-disclaimer h2 { font-size: 1rem; }
.psfca-disclaimer p { color: #5f6d79; font-size: .76rem; }

@media (max-width: 980px) {
  .psfca-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .psfca-hero-visual { max-width: 760px; }
  .psfca-date-grid,
  .psfca-step-grid { grid-template-columns: repeat(2, 1fr); }
  .psfca-connector-grid { gap: 35px; }
}

@media (max-width: 782px) {
  .admin-bar .psfca-header { top: 46px; }
  .psfca-header-inner { min-height: 72px; }
  .psfca-brand img { width: 48px; height: 48px; }
  .psfca-brand-tagline { display: none; }
  .psfca-hero { padding: 56px 0 72px; }
  .psfca-hero-grid { gap: 28px; }
  .psfca-hero-lede { font-size: 1rem; }
  .psfca-hero-visual { padding: 0 0 65px; }
  .psfca-hero-image { border-width: 6px; transform: none; }
  .psfca-support-card { right: 8px; }
  .psfca-section-heading { grid-template-columns: 1fr; gap: 5px; }
  .psfca-audience-grid,
  .psfca-guide-grid,
  .psfca-resource-grid,
  .psfca-connector-grid,
  .psfca-download-grid,
  .psfca-action-grid { grid-template-columns: 1fr; }
  .psfca-audience-card { min-height: 0; padding: 28px; grid-template-columns: 1fr; }
  .psfca-date-grid { grid-template-columns: repeat(2, 1fr); }
  .psfca-step-grid { grid-template-columns: 1fr; }
  .psfca-step-number { margin-bottom: 15px !important; }
  .psfca-final-cta-inner,
  .psfca-footer-top { align-items: flex-start; flex-direction: column; }
  .psfca-footer-nav { align-items: flex-start !important; flex-direction: column !important; }
}

@media (max-width: 480px) {
  .psfca-buttons,
  .psfca-guide-card .wp-block-buttons { align-items: stretch; flex-direction: column; }
  .psfca-buttons .wp-block-button,
  .psfca-buttons .wp-block-button__link,
  .psfca-guide-card .wp-block-button,
  .psfca-guide-card .wp-block-button__link { width: 100%; }
  .psfca-support-card { width: 92%; }
  .psfca-support-card h3 { font-size: 1.55rem; }
  .psfca-date-grid { grid-template-columns: 1fr; }
  .psfca-guide-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
