/* Victoria Sherk Counseling — site stylesheet */

:root {
  --color-primary: #dfcca6;
  --color-primary-variant: #3a5f0b;
  --color-secondary: #111111;
  --color-secondary-variant: #585858;
  --color-contrast: #ffffff;
  --color-contrast-variant: #f9f9f9;
  --color-text: #111111;
  --color-muted: #585858;
  --font-body: "Noto Sans", sans-serif;
  --font-display: "Noto Serif", serif;
  --header-height: 90px;
  --content-max: 1280px;
  --radius-btn: 0;
  --space-section: 6.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
  background: var(--color-contrast);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-variant);
}

a:hover,
a:focus {
  color: var(--color-secondary);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--color-secondary);
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  margin: 1.5rem 0;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  margin: 1.5rem 0;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5625rem;
  margin: 1rem 0;
}

h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

@media (min-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5625rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.3125rem;
  }

  h2 {
    font-size: 1.8125rem;
  }
}

@media (min-width: 1025px) {
  h1 {
    font-size: 2.625rem;
  }

  h2 {
    font-size: 2.0625rem;
  }
}

p {
  margin: 1rem 0;
}

strong {
  font-weight: 700;
}

/* —— Header —— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: var(--color-contrast);
  min-height: var(--header-height);
}

.site-header + main {
  padding-top: 80px;
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.site-logo {
  display: block;
  width: min(300px, 70vw);
  max-height: 24px;
  text-decoration: none;
}

.site-logo img {
  width: 100%;
  height: auto;
  max-height: 24px;
  object-fit: contain;
  object-position: left center;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav li {
  margin: 2px;
}

.site-nav a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 1px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--color-secondary);
  background: var(--color-primary);
}

/* —— Layout helpers —— */

.container {
  width: min(100% - 5rem, var(--content-max));
  margin-inline: auto;
}

.section {
  padding: var(--space-section) 0;
}

.contact-section {
  padding-top: 5rem;
  padding-bottom: 6.6875rem;
}

.services-split-section,
.resources-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.band-dark {
  background: var(--color-secondary);
  color: var(--color-contrast);
}

.band-dark h1,
.band-dark h2,
.band-dark h3,
.band-dark h4 {
  color: var(--color-contrast);
}

.band-cream {
  background: var(--color-primary);
}

.band-tint {
  background: var(--color-contrast-variant);
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .grid-2--45-55 {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* —— Buttons —— */

.btn {
  display: inline-block;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  background: var(--color-primary-variant);
  color: var(--color-contrast) !important;
  transition: background-color 0.15s ease;
}

.btn:hover,
.btn:focus {
  background: var(--color-secondary);
  color: var(--color-contrast) !important;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.btn-row--spread {
  justify-content: space-between;
  width: 100%;
}

.btn-row--spread .btn:last-child {
  margin-left: auto;
}

/* —— In-page links —— */

main a:not(.btn) {
  color: var(--color-primary-variant);
}

main a:not(.btn):hover,
main a:not(.btn):focus {
  color: var(--color-secondary);
}

a.link-on-dark:link,
a.link-on-dark:visited {
  color: lightgreen !important;
}

a.link-on-dark:hover,
a.link-on-dark:focus {
  color: lightblue !important;
}

/* —— Heroes —— */

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  overflow: hidden;
}

.hero--photo {
  background: var(--color-secondary) 75% 50% / cover no-repeat;
  color: var(--color-secondary);
  align-items: end;
}

.hero--split {
  border-top: 2px solid var(--color-primary-variant);
  border-bottom: 2px solid var(--color-primary-variant);
}

.hero__media {
  min-height: 380px;
  background: center / cover no-repeat;
}

.hero__panel {
  background: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--photo .hero__panel {
  background: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 0 2.5rem 1.25rem;
  padding: 2.5rem;
}

.hero h1 {
  margin: 0;
}

.hero--photo .btn-row {
  margin-top: 0.625rem;
}

.hero--split .hero__content {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero--photo {
    min-height: 777px;
    padding-top: 300px;
    align-items: center;
  }

  .hero--photo .hero__panel {
    margin-left: max(2.5rem, calc((100% - var(--content-max)) / 2));
    margin-bottom: 0;
  }

  .hero--split {
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
  }

  .hero--split .hero__media {
    min-height: 100%;
  }

  .hero--split .hero__content {
    padding: 2.5rem 2.5rem 2.5rem 1.25rem;
  }
}

/* —— Text bands with soft background —— */

.text-band {
  position: relative;
  background: left center / cover no-repeat;
  padding: var(--space-section) 0;
}

.text-band--welcome {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.text-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
}

.text-band > * {
  position: relative;
  z-index: 1;
}

.prose strong,
.prose p {
  font-weight: 700;
}

.prose p {
  font-size: 1.125rem;
  line-height: 2;
  margin-bottom: 1.15em;
}

.prose h2 {
  margin: 0;
}

/* —— In the news band —— */

.news-band {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.news-band h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.news-band p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* —— Feature cards —— */

.feature {
  text-align: center;
  color: var(--color-contrast);
}

.feature .icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 1rem;
  fill: currentColor;
}

.feature h3 {
  color: var(--color-contrast);
  font-size: 1.5625rem;
  font-weight: 500;
}

/* —— Promo cards —— */

.promo-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.promo-card__media {
  position: relative;
  min-height: 300px;
  background: center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.promo-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
}

.promo-card__media h3 {
  position: relative;
  z-index: 1;
  color: var(--color-contrast);
  margin: 0;
}

.promo-card .btn-row {
  justify-content: center;
}

/* —— CTA band —— */

.cta-band {
  position: relative;
  color: var(--color-contrast);
  background: 75% 50% / cover no-repeat;
  padding: 6.25rem 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(17, 17, 17) 36%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.7;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h3 {
  color: var(--color-contrast);
  max-width: 36rem;
}

.cta-band .icon {
  width: 48px;
  height: 48px;
  fill: currentColor;
  margin-bottom: 1rem;
}

.cta-band .icon-badge {
  width: 69px;
  height: 69px;
  border-radius: 10px;
  background: var(--color-primary-variant);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.cta-band .icon-badge .icon {
  width: 55px;
  height: 55px;
  margin: 0;
  fill: var(--color-contrast);
}

/* —— Contact page specifics —— */

.contact-stack {
  text-align: center;
  border-top: 2px solid var(--color-primary-variant);
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.contact-stack .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  fill: var(--color-secondary);
}

.contact-stack hr {
  border: none;
  border-top: 2px solid var(--color-primary-variant);
  margin: 0.625rem 0;
}

.contact-stack p {
  margin: 1rem 0;
}

.media-center {
  display: flex;
  justify-content: center;
  padding: 6.6875rem 0 0;
}

.media-center img {
  width: min(100%, 400px);
  border-radius: 2px;
}

.cover-band {
  position: relative;
  background: center / cover no-repeat;
  padding: 0 2.5rem;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.cover-band .callout-panel {
  margin: 0;
}

.callout-panel {
  background: rgba(255, 255, 255, 0.9);
  width: min(50%, 640px);
  max-width: none;
  padding: 7.8125rem 2.5rem;
  text-align: center;
}

.callout-panel h2 {
  margin: 0;
}

@media (min-width: 768px) {
  .callout-panel {
    margin-left: max(0px, calc((100% - var(--content-max)) / 2));
  }
}

.policy-block {
  margin-bottom: 1rem;
}

.policy-block > p:first-child {
  margin-bottom: 1rem;
}

.split-media {
  min-height: 300px;
  background: center / cover no-repeat;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .split-media {
    min-height: 350px;
  }
}

/* —— Footer —— */

.site-footer {
  padding: 4.6875rem 0;
  background: var(--color-contrast);
}

.site-footer__logo {
  width: min(400px, calc(100% - 5rem));
  margin: 0 auto;
}

.site-footer__logo a {
  display: block;
  text-decoration: none;
}

.site-footer__logo img {
  margin-inline: auto;
  max-height: 31px;
  width: auto;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
  text-align: center;
  padding-top: 1.875rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
  }
}

.site-footer h4 {
  margin-bottom: 0.5rem;
}

.site-footer address {
  font-style: normal;
}

@media (max-width: 1279px) {
  .site-header__inner {
    padding-right: 0.875rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 768px) {
  .text-band {
    background-attachment: fixed;
  }
}

@media (max-width: 767px) {
  .callout-panel {
    width: 100%;
    padding: 5rem 2.5rem;
  }

  /* Keep the three nav items on one line so the header stays 90px tall
     and does not overlap the hero. */
  .site-nav ul {
    flex-wrap: nowrap;
  }

  .site-nav a {
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  /* Fill the first screen so the photo crops to shoulder width and the
     welcome copy starts below the fold. */
  .hero--photo {
    min-height: max(480px, calc(100vh - 80px));
    min-height: max(480px, calc(100svh - 80px));
    background-position: 63% 0;
  }

  /* A third of the first screen tall, bottom aligned, so the panel sits in
     the lower third and clears her face. Longer copy grows upward rather
     than pushing the hero past the fold. */
  .hero--photo .hero__panel {
    max-width: none;
    margin: 0 1rem 1.5rem;
    padding: 1rem;
    min-height: calc((100vh - 80px) / 3 - 1.5rem);
    min-height: calc((100svh - 80px) / 3 - 1.5rem);
  }

  .hero--photo h1 {
    font-size: 1.3125rem;
    line-height: 1.25;
  }

  .hero--photo .btn {
    font-size: 0.875rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 359px) {
  .site-nav a {
    padding: 0.5rem 0.4375rem;
    font-size: 0.8125rem;
  }

  .hero--photo h1 {
    font-size: 1.1875rem;
  }

  .hero--photo .btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 1024px) {
  .container {
    width: calc(100% - 4rem);
  }

  .cover-band {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .site-footer__logo {
    width: calc(100% - 4rem);
  }
}

@media (max-width: 992px) {
  .container {
    width: calc(100% - 3rem);
  }

  .cover-band {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .site-footer__logo {
    width: calc(100% - 3rem);
  }
}

@media (max-width: 576px) {
  .container {
    width: calc(100% - 2rem);
  }

  .cover-band {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .site-footer__logo {
    width: calc(100% - 2rem);
  }
}
