/* Open Gates Counseling & Coaching
   Modern editorial website direction — July 2026 */

:root {
  --blue: #262262;
  --blue-dark: #18153f;
  --orange: #e47a2e;
  --orange-dark: #b95a1f;
  --cream: #faf6ee;
  --cream-deep: #f2eadc;
  --lavender: #e9e7f2;
  --sand: #d8c8b3;
  --charcoal: #29282d;
  --white: #ffffff;
  --muted: #67656c;
  --heading-font: "Oxanium", Arial, sans-serif;
  --body-font: "Lato", Arial, sans-serif;
  --container: 1240px;
  --radius-sm: 18px;
  --radius-md: 30px;
  --radius-lg: 46px;
  --shadow: 0 24px 70px rgba(38, 34, 98, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--cream);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--blue);
  font-family: var(--heading-font);
  line-height: 1.06;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(3.3rem, 7.2vw, 7.6rem);
  letter-spacing: -0.065em;
}

h1 span {
  display: block;
  color: var(--orange-dark);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.035em;
}

p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 56px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 140px 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-label,
.eyebrow,
.service-kicker,
.coach-role,
.contact-card-label {
  margin-bottom: 16px;
  color: var(--orange-dark);
  font-family: var(--heading-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(38, 34, 98, 0.08);
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.logo-link {
  flex: 0 0 auto;
}

.logo {
  width: 225px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: var(--blue);
  font-family: var(--heading-font);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  border-radius: 20px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--white) !important;
  background: var(--blue);
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 10px 17px;
  color: var(--blue);
  background: transparent;
  font: 700 0.86rem var(--heading-font);
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  padding: 88px 0 0;
}

.hero-layout {
  display: grid;
  min-height: 700px;
  align-items: center;
  gap: clamp(50px, 7vw, 105px);
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, 0.84fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 35px 0 90px;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 36px;
  color: #535159;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  padding: 15px 25px;
  font-family: var(--heading-font);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button {
  color: var(--white);
  background: var(--orange-dark);
  box-shadow: 0 15px 35px rgba(185, 90, 31, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--blue);
  box-shadow: 0 18px 40px rgba(38, 34, 98, 0.22);
  transform: translateY(-3px);
}

.text-button {
  color: var(--blue);
}

.text-button:hover,
.text-button:focus-visible {
  transform: translateX(4px);
}

.hero-art {
  position: relative;
  min-height: 620px;
}

.hero-art-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  padding: 58px;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.hero-art-panel::before {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
  inset: 9% auto auto 48%;
}

.hero-art-panel::after {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
  opacity: 0.9;
}

.gate {
  position: absolute;
  top: 108px;
  width: 132px;
  height: 250px;
  border: 20px solid var(--cream);
  border-bottom: 0;
}

.gate-left {
  left: calc(50% - 132px);
  border-right: 10px solid var(--cream);
  border-radius: 110px 0 0 0;
}

.gate-right {
  left: 50%;
  border-left: 10px solid var(--cream);
  border-radius: 0 110px 0 0;
}

.path-line {
  position: absolute;
  bottom: 176px;
  left: 50%;
  width: 8px;
  height: 205px;
  background: var(--orange);
  transform-origin: bottom;
}

.path-one {
  transform: rotate(24deg);
}

.path-two {
  transform: rotate(-24deg);
}

.art-message {
  position: absolute;
  z-index: 2;
  right: 46px;
  bottom: 43px;
  left: 46px;
  max-width: 330px;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.3;
}

.art-note {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: 34px;
  display: flex;
  gap: 8px;
}

.art-note span {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(38, 34, 98, 0.12);
  border-bottom: 1px solid rgba(38, 34, 98, 0.12);
  padding: 24px 0;
  background: var(--white);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  color: var(--blue);
  font-family: var(--heading-font);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 600;
  animation: marquee 28s linear infinite;
}

.marquee-track b {
  color: var(--orange);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Intro */

.intro-section {
  background: var(--cream);
}

.intro-grid {
  display: grid;
  align-items: start;
  gap: 90px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.section-heading h2 {
  max-width: 700px;
}

.intro-copy {
  max-width: 720px;
  padding-top: 38px;
}

.intro-copy p {
  color: #57555d;
}

.intro-copy .large-copy {
  margin-bottom: 30px;
  color: var(--blue);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.5;
}

/* Services */

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

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

.services-section .section-label {
  color: #f3aa73;
}

.wide-heading {
  margin-bottom: 64px;
}

.heading-row {
  display: grid;
  align-items: end;
  gap: 70px;
  grid-template-columns: 1.2fr 0.8fr;
}

.heading-row p {
  max-width: 520px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.service-stack {
  display: grid;
  gap: 26px;
}

.service-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 42px;
}

.life-feature {
  color: var(--blue);
  background: var(--lavender);
}

.recovery-feature {
  color: var(--charcoal);
  background: var(--cream);
}

.service-feature h3 {
  max-width: 650px;
  color: var(--blue);
}

.service-feature::after {
  position: absolute;
  top: -80px;
  right: -55px;
  width: 230px;
  height: 230px;
  border: 24px solid rgba(38, 34, 98, 0.08);
  border-radius: 50%;
  content: "";
}

.service-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 70px;
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-content {
  display: grid;
  align-items: end;
  gap: 75px;
  grid-template-columns: 1.05fr 0.95fr;
}

.service-detail {
  position: relative;
  z-index: 2;
}

.service-detail p {
  color: #56545c;
}

.service-topics {
  padding-top: 18px;
  border-top: 1px solid rgba(38, 34, 98, 0.15);
  font-size: 0.95rem;
  font-weight: 700;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-family: var(--heading-font);
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-underline-offset: 6px;
}

/* Process */

.process-section {
  background: var(--cream-deep);
}

.process-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 64px;
}

.process-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.process-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.process-card {
  min-height: 420px;
  border: 1px solid rgba(38, 34, 98, 0.12);
  border-radius: var(--radius-md);
  padding: 32px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 220ms ease, background 220ms ease,
    box-shadow 220ms ease;
}

.process-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.process-number {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 120px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-family: var(--heading-font);
  font-size: 0.82rem;
  font-weight: 700;
}

.process-card h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.process-card p {
  color: #5d5a63;
}

/* Coaches */

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

.coaches-heading {
  max-width: 880px;
  margin-bottom: 80px;
}

.coach-list {
  display: grid;
  gap: 90px;
}

.coach-profile {
  display: grid;
  align-items: center;
  gap: clamp(45px, 8vw, 105px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.coach-profile-reverse .coach-image-wrap {
  order: 2;
}

.coach-image-wrap {
  position: relative;
}

.coach-photo {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--lavender);
}

.coach-index {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: inline-flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  border: 10px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--orange-dark);
  font-family: var(--heading-font);
  font-weight: 700;
}

.coach-copy {
  max-width: 620px;
}

.coach-copy p:not(.coach-role) {
  color: #5b5961;
}

.coach-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-family: var(--heading-font);
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-underline-offset: 6px;
}

/* Statement */

.statement-section {
  padding: 130px 0;
  color: var(--white);
  background: var(--orange-dark);
}

.statement-inner {
  max-width: 1050px;
}

.statement-section .section-label {
  color: var(--cream);
}

.statement-section h2 {
  max-width: 1000px;
  color: var(--white);
}

.statement-section p:last-child {
  margin-bottom: 0;
  font-size: 1.25rem;
}

/* Contact */

.contact-section {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  align-items: stretch;
  gap: 70px;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
}

.contact-copy > p:not(.section-label) {
  max-width: 620px;
  color: #5b5961;
  font-size: 1.15rem;
}

.contact-options {
  display: grid;
  gap: 14px;
  margin-top: 48px;
}

.contact-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid rgba(38, 34, 98, 0.18);
  padding: 22px 0;
  color: var(--blue);
  text-decoration: none;
}

.contact-options span {
  color: var(--orange-dark);
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-options strong {
  font-family: var(--heading-font);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  text-align: right;
}

.contact-card {
  border-radius: var(--radius-lg);
  padding: 54px;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.contact-card .contact-card-label {
  color: #f4b487;
}

.contact-card h3 {
  color: var(--white);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.77);
}

.contact-card-rule {
  height: 1px;
  margin: 38px 0;
  background: rgba(255, 255, 255, 0.2);
}

.contact-note {
  font-size: 0.9rem;
}

.disclaimer {
  padding: 60px 0;
  border-top: 1px solid rgba(38, 34, 98, 0.12);
  background: var(--lavender);
}

.disclaimer-inner {
  display: grid;
  gap: 65px;
  grid-template-columns: 0.35fr 1.65fr;
}

.disclaimer h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.disclaimer p {
  color: #57555d;
  font-size: 0.94rem;
}

/* Footer */

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

.footer-top {
  display: grid;
  align-items: start;
  gap: 50px;
  padding-bottom: 70px;
  grid-template-columns: 1fr 1.1fr 0.6fr;
}

.footer-logo {
  width: 240px;
  border-radius: 12px;
  padding: 10px;
  background: var(--white);
}

.footer-statement {
  margin: 0;
  color: var(--white);
  font-family: var(--heading-font);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-underline-offset: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.86rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 4px solid rgba(228, 122, 46, 0.55);
  outline-offset: 4px;
}

/* Responsive */

@media (max-width: 1020px) {
  .site-nav {
    gap: 18px;
  }

  .hero-layout,
  .intro-grid,
  .heading-row,
  .service-content,
  .coach-profile,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 30px;
  }

  .hero-art {
    width: min(100%, 650px);
    min-height: 600px;
    margin-inline: auto;
  }

  .intro-copy {
    padding-top: 0;
  }

  .heading-row {
    gap: 15px;
  }

  .service-content {
    gap: 20px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: 320px;
  }

  .process-number {
    margin-bottom: 70px;
  }

  .coach-profile-reverse .coach-image-wrap {
    order: 0;
  }

  .coach-image-wrap {
    width: min(100%, 650px);
  }

  .coach-copy {
    max-width: 760px;
  }

  .contact-card {
    max-width: 720px;
  }
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 86px;
  }

  .logo {
    width: 188px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 87px);
    overflow-y: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(38, 34, 98, 0.12);
    padding: 18px 28px 30px;
    background: var(--cream);
    box-shadow: 0 24px 40px rgba(38, 34, 98, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 6px;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 10px;
    text-align: center;
  }

  .footer-top,
  .disclaimer-inner {
    grid-template-columns: 1fr;
  }

  .footer-top {
    gap: 36px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .section {
    padding: 94px 0;
  }

  .hero {
    padding-top: 50px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 480px;
  }

  .hero-art-panel {
    border-radius: 145px 145px 30px 30px;
    padding: 32px;
  }

  .gate {
    top: 88px;
    width: 98px;
    height: 205px;
    border-width: 15px;
  }

  .gate-left {
    left: calc(50% - 98px);
    border-right-width: 8px;
  }

  .gate-right {
    border-left-width: 8px;
  }

  .path-line {
    bottom: 145px;
    height: 155px;
  }

  .art-message {
    right: 28px;
    bottom: 28px;
    left: 28px;
    max-width: 250px;
    font-size: 1rem;
  }

  .art-note {
    top: 24px;
    right: 24px;
  }

  .service-feature {
    border-radius: 30px;
    padding: 28px;
  }

  .service-topline {
    margin-bottom: 50px;
  }

  .process-heading {
    align-items: start;
    flex-direction: column;
  }

  .process-card {
    min-height: auto;
    padding: 28px;
  }

  .process-number {
    margin-bottom: 70px;
  }

  .coach-list {
    gap: 75px;
  }

  .coach-profile {
    gap: 38px;
  }

  .coach-index {
    right: 8px;
    bottom: -24px;
    width: 76px;
    height: 76px;
    border-width: 8px;
  }

  .statement-section {
    padding: 95px 0;
  }

  .contact-card {
    border-radius: 30px;
    padding: 32px;
  }

  .contact-options a {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-options strong {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
