/* ===================================================
   Flow State Healing & Massage – Design System
   Matching Square site aesthetic: dark navy + cream
   =================================================== */

:root {
  --color-primary: #041f2c;
  --color-secondary: #f8f3e7;
  --color-accent: #207d7d;
  --color-accent-hover: #1a6565;
  --color-gold: #ceba63;
  --color-white: #ffffff;
  --color-text: #041f2c;
  --color-text-light: #f8f3e7;
  --color-text-muted: #5a6a72;

  --font-decorative: "Rock Salt", cursive;
  --font-accent: "Architects Daughter", cursive;
  --font-body: "Courier Prime", "Courier New", monospace;

  --site-width: 1200px;
  --site-gutter: 56px;
  --section-gap: 80px;
  --radius-pill: 100px;
  --transition: 0.25s ease;
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- Container ---- */

.container {
  width: min(var(--site-width), calc(100% - var(--site-gutter) * 2));
  margin: 0 auto;
}

/* ---- Typography ---- */

h1, h2, h3 {
  font-family: var(--font-decorative);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
}

.accent-font {
  font-family: var(--font-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.72rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: rgba(32, 125, 125, 0.08);
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(rgba(4, 31, 44, 0.88), rgba(4, 31, 44, 0.88)),
    url("images/hero-background.jpg") center / cover no-repeat;
  color: var(--color-text-light);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.logo span {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

/* Nav */

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 243, 231, 0.75);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--color-text-light);
  border-color: var(--color-gold);
}

/* Header actions (social + CTA) */

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-icons a {
  color: rgba(248, 243, 231, 0.7);
  display: inline-flex;
  transition: color var(--transition);
}

.social-icons a:hover {
  color: var(--color-text-light);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(248, 243, 231, 0.3);
  border-radius: 6px;
  color: var(--color-text-light);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---- Sections ---- */

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

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

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

/* ---- Brand / Title ---- */

.brand-title {
  text-align: center;
  padding: var(--section-gap) 0 0;
  margin-bottom: calc(var(--section-gap) * -0.5);
}

.brand-title h1 {
  margin-bottom: 0.6rem;
}

.brand-title p {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* ---- Home: Hero ---- */

.hero {
  text-align: center;
  padding: calc(var(--section-gap) * 1.2) 0 var(--section-gap);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: url("images/flow-state-art.jpg") center / cover no-repeat;
  opacity: 0.22;
  mask-image: radial-gradient(circle, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.hero-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 700px;
}

.hero-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(32, 125, 125, 0.14);
  border-radius: 12px;
  padding: 2rem 1.5rem;
}

.hero-col .btn {
  margin-top: auto;
}

.hero-modalities {
  list-style: none;
  text-align: center;
  font-family: var(--font-accent);
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.hero-about-note {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* ---- Home: Services ---- */

.services-section {
  text-align: center;
}

.services-heading {
  margin-bottom: 2rem;
}

.services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.services-list li {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-text);
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(4, 31, 44, 0.15);
  border-radius: var(--radius-pill);
}

.services-cta {
  margin-top: 0.5rem;
}

/* ---- Philosophy Pillars (3-col) ---- */

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

.pillar {
  text-align: center;
}

.pillar-img {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.pillar-img--earth {
  object-position: center 40%;
}

.pillar-img--body {
  object-position: center 30%;
}

.pillar-img--mind-wrap {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
}

.pillar-img--mind-wrap .pillar-img {
  width: 100%;
  height: 150%;
  border-radius: 0;
  margin: 0;
  object-position: center top;
}

.pillar h2 {
  margin-bottom: 1rem;
}

.pillar p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.pillar .learn-more {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-accent);
  transition: color var(--transition);
}

.pillar .learn-more:hover {
  color: var(--color-accent-hover);
}

/* ---- Testimonial Carousel ---- */

.testimonial-section {
  text-align: center;
  padding: calc(var(--section-gap) * 1.1) 0;
  background:
    linear-gradient(rgba(4, 31, 44, 0.85), rgba(4, 31, 44, 0.85)),
    url("images/hero-background.jpg") center / cover no-repeat;
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.85;
}

.testimonial cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(248, 243, 231, 0.25);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 243, 231, 0.6);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  z-index: 2;
}

.carousel-arrow:hover {
  color: var(--color-text-light);
  border-color: rgba(248, 243, 231, 0.5);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-arrow--prev {
  left: -60px;
}

.carousel-arrow--next {
  right: -60px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(248, 243, 231, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}

.carousel-dot:hover {
  border-color: rgba(248, 243, 231, 0.7);
}

.carousel-dot.active {
  background: rgba(248, 243, 231, 0.8);
  border-color: rgba(248, 243, 231, 0.8);
}

/* ---- About: Meet Miwa (2-col) ---- */

.about-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 1.2rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text .credentials {
  font-family: var(--font-accent);
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 1.4rem;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---- Inclusive Business ---- */

.inclusive-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.inclusive-col h2 {
  margin-bottom: 1.2rem;
}

.inclusive-col p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  font-weight: 700;
}

.inclusive-col-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.inclusive-col-img--safe-space {
  object-position: center 40%;
}

.pride-banner {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pride-banner-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.pride-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 31, 44, 0.25);
  z-index: 1;
}

.pride-banner-text {
  position: relative;
  z-index: 2;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  margin-left: 15%;
}

/* ---- Connect: Contact ---- */

.contact-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
}

.contact-info {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-info a {
  font-weight: 700;
}

.contact-info a:hover {
  color: var(--color-accent);
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ---- Footer ---- */

.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 3.5rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.footer-brand .logo {
  margin-bottom: 0.6rem;
}

.footer-brand .logo img {
  width: 64px;
  height: 64px;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: 0.88rem;
  opacity: 0.6;
  margin-top: 0.3rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding-top: 0.4rem;
}

.footer-social a {
  color: rgba(248, 243, 231, 0.6);
  display: inline-flex;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-text-light);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-newsletter h3 {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-newsletter p {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(248, 243, 231, 0.25);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.newsletter-form input::placeholder {
  color: rgba(248, 243, 231, 0.4);
}

.newsletter-form .btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.75rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(248, 243, 231, 0.12);
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.5;
}

/* ---- Responsive ---- */

@media (max-width: 840px) {
  :root {
    --site-gutter: 24px;
    --section-gap: 56px;
  }

  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 1rem var(--site-gutter) 1.2rem;
    gap: 0.6rem;
    border-top: 1px solid rgba(248, 243, 231, 0.1);
    display: none;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .header-actions {
    order: -1;
    margin-left: auto;
    gap: 0.6rem;
  }

  .header-actions .social-icons {
    display: none;
  }

  .header-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.72rem;
  }

  .hero-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

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

  .about-image {
    order: -1;
  }

  .carousel-arrow--prev {
    left: -8px;
  }

  .carousel-arrow--next {
    right: -8px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }

  .testimonial-carousel {
    padding: 0 40px;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 42px;
    height: 42px;
  }

  .logo span {
    display: none;
  }

  .brand-title h1 {
    font-size: 1.4rem;
  }
}
