/* Happy Hour Counseling – site.css
   Framework-free rebuild of the original Unify/Bootstrap template. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #e74c3c;
  --primary-hover: #ed7669;
  --plum: #4e4353;
  --plum-rgb: 78, 67, 83;
  --text: #444;
  --text-muted: #555;
  --text-light: #777;
  --border: #e9e9e9;
  --bg-soft: #f6f4f7;
  --heading-font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body-font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --container: 1140px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1rem/1.6 var(--body-font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .75em;
  color: var(--plum);
  text-transform: uppercase;
}

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.text-center { text-align: center; }
.section { padding: 100px 0; }

.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex-shrink: 0; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 4px;
  font-family: var(--heading-font); font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 12px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--plum); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 0 3px #b5b5b5; }
.site-header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
  padding-top: 6px; padding-bottom: 6px;
  transition: min-height .3s;
}
.brand {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--plum);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; color: var(--plum);
  font-size: 28px; cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.site-nav a {
  display: block;
  font-family: var(--heading-font);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--primary); text-decoration: none; }

@media (max-width: 991px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
    padding: 6px 16px 14px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 13px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
  .site-nav li:last-child a { border-bottom: 0; }
}
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .site-header__inner { min-height: 90px; }
  .site-header.is-scrolled .site-header__inner { min-height: 72px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: grid; place-items: center;
  text-align: center; color: #fff;
  overflow: hidden; isolation: isolate;
  background: var(--plum);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 10%; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(var(--plum-rgb), .45); z-index: 1; }
.hero__content { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 48px; }
.hero__title { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.07; color: #fff; margin: 0 0 26px; }
.hero__subtitle {
  font-family: var(--heading-font);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.9;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 36px;
}
@media (max-width: 1024px) { .hero { min-height: 500px; } }
@media (max-width: 768px) { .hero { min-height: 430px; } .hero__subtitle br { display: none; } }
@media (max-width: 480px) { .hero { min-height: 380px; } .hero__subtitle { font-size: 11px; letter-spacing: 1px; } }

/* ===== Info blocks (About) ===== */
.info-blocks { display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .info-blocks { grid-template-columns: repeat(3, 1fr); } }
.info-block { display: flex; flex-direction: column; text-align: center; }
.info-block--light { background: #fff; color: var(--text); }
.info-block--dark { background: var(--plum); color: #fff; }
.info-block--dark h2 { color: #fff; }
.info-block--dark p { color: #e3dfe6; }
.info-block__text { position: relative; flex: 1; padding: 50px 16px; z-index: 1; }
@media (min-width: 768px) { .info-block__text { padding: 100px 50px; } }
.info-block__text h2 { font-size: 25px; margin-bottom: 20px; }
@media (min-width: 768px) { .info-block__text h2 { font-size: 30px; } }
.info-block__text p { margin: 0; }
.info-block__text::after {
  content: ""; position: absolute; left: 50%; margin-left: -20px;
  border-style: solid; border-color: transparent;
}
.info-block--light .info-block__text::after { bottom: -25px; border-width: 25px 20px 0 20px; border-top-color: #fff; }
.info-block--dark .info-block__text::after { top: -25px; border-width: 0 20px 25px 20px; border-bottom-color: var(--plum); }
.info-block__media { display: block; }
.info-block__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ===== Section headings ===== */
.heading { font-size: 30px; position: relative; padding-bottom: 25px; margin-bottom: 30px; }
@media (min-width: 768px) { .heading { font-size: 40px; } }
.heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; border-top: 5px solid var(--primary); }
.heading--center::after { left: 50%; transform: translateX(-50%); }
.heading--light { color: #fff; }

/* ===== Services ===== */
.services .narrow p { margin: 0; }
.services__grid { display: grid; gap: 40px; margin-top: 60px; }
@media (min-width: 768px) { .services__grid { grid-template-columns: 1fr 1fr; column-gap: 30px; } }
.service { display: flex; gap: 28px; align-items: flex-start; }
.service__icon { color: var(--primary); font-size: 48px; line-height: 1; margin-top: 10px; }
.service h3 { font-size: 1rem; margin-bottom: 10px; }
.service p { color: var(--text-muted); margin: 0; }
@media (max-width: 480px) { .service { flex-direction: column; gap: 10px; } }

/* ===== Team ===== */
.team__grid { display: grid; gap: 40px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .team__grid { grid-template-columns: 1fr 300px; gap: 60px; align-items: start; } }
.team__text p { margin-bottom: 30px; }
.team__card { margin: 0; max-width: 300px; }
.team__card img { width: 100%; margin-bottom: 35px; }
.team__role {
  font-family: var(--heading-font); font-size: 11px; letter-spacing: .5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.team__name { font-size: 18px; margin-bottom: 10px; }
.team__card hr { border: 0; border-top: 1px solid var(--border); margin: 15px 0; }
.contact-list { list-style: none; margin: 0; padding: 0; color: var(--text-muted); }
.contact-list li { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
.contact-list .icon { color: var(--plum); }

/* ===== Contact ===== */
.contact { display: grid; }
@media (min-width: 992px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__info {
  background: var(--plum); color: #fff;
  display: flex; align-items: center;
  padding: 50px 16px;
}
@media (min-width: 768px) { .contact__info { padding: 80px; } }
@media (min-width: 992px) {
  .contact__info { padding-left: max(48px, calc((100vw - var(--container)) / 2 + 16px)); }
}
.contact__inner { width: 100%; max-width: 560px; }
.contact__lead { color: #e3dfe6; margin-bottom: 60px; }
.contact__address {
  font-style: normal;
  font-family: var(--heading-font);
  font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
}
.contact__row { position: relative; padding-left: 35px; margin-bottom: 25px; line-height: 1.7; }
.contact__row:last-child { margin-bottom: 0; }
.contact__row .icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--primary); }
.contact__label { color: rgba(255, 255, 255, .45); margin-right: 4px; }
.contact__row a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }

.contact__map { position: relative; min-height: 400px; background: var(--bg-soft); }
@media (min-width: 992px) { .contact__map { min-height: 600px; } }
.contact__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.map-placeholder {
  min-height: inherit; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 16px; color: var(--text);
}
.map-placeholder .icon--big { font-size: 56px; color: var(--primary); margin-bottom: 16px; }
.map-placeholder p { margin-bottom: 22px; }
.map-placeholder__link { display: block; margin-top: 16px; font-weight: 700; font-size: 14px; }
.map-placeholder__note { font-size: 12px; color: var(--text-light); margin: 12px 0 0; }

/* ===== Footer ===== */
.site-footer { padding: 60px 0 30px; color: var(--text-muted); font-size: 15px; }
.site-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-heading { font-size: 1rem; margin-bottom: 20px; }
.link-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.link-list li { position: relative; padding-left: 14px; margin-bottom: 15px; }
.link-list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
.link-list a { color: var(--text-muted); }
.link-list a:hover { color: var(--primary); }
.social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 35px; height: 35px;
  background: #333; color: #fff; font-size: 16px;
  transition: background-color .2s;
}
.social a:hover { background: var(--primary); color: #fff; }
.site-footer__bottom {
  margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--text-light);
}
.site-footer__bottom p { margin: 0; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 15px; bottom: 15px; z-index: 40;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .85); color: #444;
  box-shadow: 0 0 20px rgba(0, 0, 0, .15);
  font-size: 18px;
  transition: background-color .3s, color .3s;
}
.to-top:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ===== Motion / misc ===== */
@media (max-width: 767px) { .section { padding: 60px 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .to-top, .nav-toggle, .contact__map { display: none !important; }
  .hero { min-height: auto; color: #000; }
  .hero::before, .hero__media { display: none; }
  .hero__title { color: #000; }
}
