/* =========================================
   PERTH EMDR THERAPY — Matching Squarespace
   ========================================= */

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

:root {
  --bg:       #cbbfa8;   /* warm sandy taupe — matches Squarespace exactly */
  --bg-light: #d9ccb8;   /* slightly lighter for services */
  --bg-book:  #b8a88e;   /* darker for booking section */
  --text:     #3a3025;   /* dark warm brown */
  --text-mid: #5a4f42;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Inter', Helvetica Neue, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: var(--bg);
  position: relative;
  z-index: 100;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: flex;
  gap: 32px;
}

.nav-desktop a {
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-desktop a:hover { opacity: 0.6; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg);
  padding: 20px 32px 28px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(58,48,37,0.15);
  z-index: 99;
}

.nav-menu.open { display: flex; }

.nav-menu a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58,48,37,0.1);
}

.nav-menu a:last-child { border-bottom: none; }
.nav-menu a:hover { opacity: 0.6; }

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background: var(--bg);
}

.hero-image {
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 1.25fr;
  gap: 6px;
  height: 620px;
}

.hero-image img {
  min-height: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Waiting room photo: show the artwork on the back wall */
.hero-image img.hero-waiting {
  object-position: center top;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px 60px 48px;
  background: var(--bg);
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 420px;
}

.hero-text p + p {
  margin-top: 16px;
}

/* ---- SERVICES ---- */
.services-section {
  background: var(--bg-light);
  padding: 64px 40px;
}

.services-heading {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

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

.service-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 18px;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.03);
}

.service-card-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.service-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.service-card-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---- INFO BLURB ---- */
.info-blurb {
  background: var(--bg);
  padding: 56px 40px;
  text-align: center;
}

.info-blurb p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- BOOKING SECTION ---- */
.booking-section {
  background: var(--bg-book);
  padding: 80px 40px;
}

.booking-section h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.1;
}

.booking-sub {
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.booking-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.req {
  font-size: 11px;
  font-weight: 300;
  opacity: 0.6;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(58,48,37,0.25);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(58,48,37,0.6);
  background: rgba(255,255,255,0.5);
}

.form-group textarea { resize: vertical; }

.submit-btn {
  display: inline-block;
  padding: 14px 48px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover { opacity: 0.8; }

.form-success {
  display: none;
  margin-top: 20px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.3);
  font-size: 14px;
  color: var(--text);
  text-align: center;
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--bg);
  padding: 80px 40px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
}

/* ---- PAGE CONTENT ---- */
.page-content {
  background: var(--bg);
  padding: 48px 40px 80px;
}

.content-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.page-content h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 32px;
  margin-top: 32px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 14px;
}

.page-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.page-content a {
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.page-content a:hover { opacity: 0.6; }

.therapy-list, .focus-list, .session-list, .hours-list {
  margin: 18px 0 20px 20px;
  list-style: none;
}

.therapy-list li, .focus-list li, .session-list li, .hours-list li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.therapy-list li::before, .focus-list li::before, .session-list li::before, .hours-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text);
}

/* ---- CONTACT PAGE LAYOUT ---- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 920px;
  margin: 0 auto;
}

.contact-form-section, .contact-info-section {
  padding: 0;
}

.contact-info-section h2 {
  margin-top: 0;
}

.contact-info-section h3 {
  margin-top: 24px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(58,48,37,0.15);
  padding: 32px 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-nav a:hover { opacity: 0.6; }

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  opacity: 0.7;
}

.footer-access {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(58,48,37,0.1);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 860px;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: auto;
  }

  .hero-image img {
    height: 220px;
  }

  .hero-text {
    padding: 40px 24px;
  }

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

  .services-section { padding: 48px 24px; }
  .info-blurb { padding: 40px 24px; }
  .booking-section { padding: 56px 24px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }

  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }

  .page-hero { padding: 48px 20px; }
  .page-content { padding: 32px 20px 56px; }
  .content-wrapper { margin: 0 auto; }
}

@media (max-width: 480px) {
  .nav { padding: 18px 20px; }
  .nav-menu { padding: 16px 20px 24px; }
}

/* ---- ABOUT PAGE CTA ---- */
.page-content a.about-cta {
  color: var(--bg);
  border-bottom: none;
  margin-top: 8px;
}
.page-content a.about-cta:hover { opacity: 0.8; }

/* ---- OUR PSYCHOLOGISTS PAGE ---- */
.psych-profile + .psych-profile {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(58, 48, 37, 0.25);
}
.page-content .psych-profile h2 { margin-bottom: 6px; }
.psych-photo {
  float: right;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 16px 24px;
  box-shadow: 0 2px 10px rgba(58, 48, 37, 0.15);
}
.psych-profile::after { content: ""; display: block; clear: both; }
@media (max-width: 480px) {
  .psych-photo { width: 120px; height: 120px; margin: 0 0 12px 16px; }
}
.page-content p.psych-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--text);
  margin-bottom: 24px;
}
.page-content p.psych-highlight {
  display: inline-block;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-light);
  border-left: 3px solid var(--text);
  padding: 10px 18px;
  margin-top: 8px;
}
@media (min-width: 769px) and (max-width: 900px) {
  .nav { padding: 22px 24px; }
  .nav-desktop { gap: 20px; }
}
