﻿/*
Theme Name: Toms Hypnotherapy
Author: Re-Entri
Author URI: https://re-entri.co.uk
Description: Custom Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toms-hypno
*/
:root {
  --bg: #e7efe9;
  --surface: #ffffff;
  --surface-2: #eaf3ed;
  --text: #163024;
  --muted: #4d6357;
  --accent: #4a7f66;
  --accent-strong: #385f4d;
  --highlight: #6b9f84;
  --border: #bcd0c4;
  --radius: 16px;
  --shadow-sm: 0 8px 24px rgba(26, 61, 44, 0.08);
  --shadow-lg: 0 20px 44px rgba(26, 61, 44, 0.14);
  --section-space: 80px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

body {
  font-family: "Segoe UI", "Aptos", Tahoma, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #cfdfd3 0%, transparent 28%),
    radial-gradient(circle at 90% 0%, #d6e8db 0%, transparent 24%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  margin-top: 0 !important;
  z-index: 1000;
  background: rgba(239, 246, 241, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(21, 52, 38, 0.08);
  backdrop-filter: blur(10px);
}

body > header:first-of-type {
  margin-top: 0 !important;
}

.home-header-top,
.header-top,
.main-nav,
.content-section,
.footer-content {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.home-header-top,
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.home-header-top {
  justify-content: center;
  text-align: center;
}

.header-top {
  justify-content: flex-start;
}

.home-header-logo-image {
  width: 128px;
}

.header-logo-image {
  width: 96px;
}

.home-header-title,
.header-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.home-header-subtitle,
.header-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.social-link-header {
  position: absolute;
  top: 10px;
  right: 4%;
  z-index: 1001;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.home-social-links {
  position: absolute;
  top: 10px;
  right: 4%;
  z-index: 1001;
  display: flex;
  gap: 8px;
}

.social-link-footer {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.social-icon-svg {
  width: 20px;
  height: 20px;
  fill: #1877f2;
  display: block;
}

.main-nav {
  padding: 0 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav > a,
.service-menu > summary {
  list-style: none;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.main-nav > a:hover,
.service-menu > summary:hover,
.service-menu[open] > summary {
  background: #dfece4;
  border-color: #b2cbbc;
}

.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%);
  box-shadow: 0 8px 16px rgba(48, 92, 70, 0.25);
}

.nav-cta:hover {
  color: #fff;
  filter: brightness(0.95);
}

.service-menu {
  position: relative;
}

.service-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-menu > summary::-webkit-details-marker {
  display: none;
}

.service-menu > summary::after {
  content: "▾";
  font-size: 0.7rem;
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.submenu a {
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
}

.submenu a:hover {
  background: #e2ede5;
}

#hero {
  padding: 70px 0;
}

.hero-content {
  width: min(920px, 92%);
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #eef5f0 0%, #dfece3 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 46px 26px;
  box-shadow: var(--shadow-lg);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.treatment-hero-title {
  margin: 0;
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 3.8vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-title-image {
  width: 96%;
  max-width: 860px;
  margin: 0 auto;
}

.hero-subtitle {
  margin: 16px auto 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.content-section {
  padding: var(--section-space) 0;
  text-align: center;
}

.content-section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.9vw, 2rem);
}

.content-section h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
}

.content-section h4 {
  margin: 0;
  font-size: 1rem;
}

.content-section p {
  margin: 16px 0;
  font-size: clamp(1.35rem, 2.3vw, 1.5rem);
}

.content-narrow,
.hero-intro-text {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.hypno-about-container {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: center;
  text-align: left;
}

.hypno-about-left ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hypno-about-left li {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.96rem;
  font-weight: 600;
}

.profile-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.card-grid {
  margin-top: 60px;
  margin-bottom: 60px;
  display: grid;
  gap: 16px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.info-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.service-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.treatment-carousel {
  --treatment-gap: 16px;
  --treatment-visible: 3;
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.treatment-carousel-viewport {
  overflow: hidden;
}

.treatment-carousel-track {
  display: flex;
  gap: var(--treatment-gap);
  transition: transform 0.28s ease;
  will-change: transform;
}

.treatment-carousel-slide {
  flex: 0 0 calc((100% - (var(--treatment-gap) * (var(--treatment-visible) - 1))) / var(--treatment-visible));
}

.treatment-carousel-slide .service-card-content p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.treatment-carousel-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.treatment-carousel-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card-content {
  padding: 16px;
}

.service-card h3 {
  margin-bottom: 8px;
}

.button,
button {
  display: inline-block;
  border: 0;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%);
  box-shadow: 0 6px 16px rgba(24, 108, 67, 0.28);
  cursor: pointer;
}

.button:hover,
button:hover {
  filter: brightness(0.94);
}

.button-secondary {
  color: var(--accent-strong);
  background: #fff;
  border: 1px solid #a8c3b2;
  box-shadow: none;
}

.button-secondary:hover {
  background: #e2ede5;
  color: var(--accent-strong);
}

.contact {
  background: linear-gradient(135deg, #d8e8de 0%, #c9ddd1 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price-section {
  padding-top: 0;
}

.price-card {
  width: min(560px, 100%);
  margin: 24px auto 0;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f3f9f5 0%, #e3efe8 100%);
  box-shadow: var(--shadow-sm);
}

.price-amount {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent-strong);
}

.price-note {
  margin-top: 10px;
}

.pricing-table-wrap {
  width: min(860px, 100%);
  margin: 24px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pricing-table thead th {
  background: linear-gradient(135deg, #eaf3ed 0%, #dfece3 100%);
  color: var(--accent-strong);
  font-weight: 800;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.pricing-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table tbody tr:nth-child(even) td {
  background: #f7fbf8;
}

.pricing-table td:last-child,
.pricing-table th:last-child {
  width: 220px;
  text-align: right;
  font-weight: 700;
}

footer {
  background: #bcd6c7;
  border-top: 1px solid #a3bfb0;
}

.footer-content {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #2e4e40;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-business,
.footer-navigation {
  display: grid;
  gap: 8px;
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-heading,
.footer-business-name,
.footer-business p,
.footer-navigation p {
  margin: 0;
}

.footer-heading {
  font-size: 0.78rem;
}

.footer-business-name {
  font-size: 0.82rem;
}

.footer-business p {
  font-size: 0.74rem;
  line-height: 1.45;
}

.footer-copyright {
  font-size: 0.74rem;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-credit {
  margin: 0;
  padding: 0 0 18px;
  text-align: center;
  font-size: 0.78rem;
  color: #355546;
}

.footer-credit a {
  color: inherit;
}

.footer-credit a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  :root {
    --section-space: 56px;
  }

  .hypno-about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hypno-about-left ul {
    grid-template-columns: 1fr;
  }

  .card-grid.cols-2,
  .card-grid.cols-3,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .treatment-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .main-nav {
    width: min(1140px, 94%);
    align-items: stretch;
  }

  .social-link-header {
    position: static;
    margin: 4px auto 0;
  }

  .home-social-links {
    position: static;
    justify-content: center;
    margin: 6px auto 0;
  }

  .main-nav > a,
  .service-menu,
  .service-menu > summary {
    width: 100%;
    text-align: center;
  }

  .submenu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

  .hero-content {
    padding: 34px 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-grid.cols-2,
  .card-grid.cols-3,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .treatment-carousel {
    grid-template-columns: 1fr;
  }

  .treatment-carousel-button {
    display: none;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tbody tr {
    border-bottom: 1px solid var(--border);
  }

  .pricing-table tbody tr:last-child {
    border-bottom: 0;
  }

  .pricing-table tbody td {
    border: 0;
    padding: 10px 14px;
    text-align: left;
  }

  .pricing-table td:last-child {
    width: auto;
    text-align: left;
    color: var(--accent-strong);
    font-weight: 800;
    padding-top: 0;
    padding-bottom: 14px;
  }
}



/* Text layout pass: slightly reduced body/content type + consistent centering */
body {
  font-size: 17px;
}

.main-nav > a,
.service-menu > summary {
  font-size: 1.05rem;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
}

.content-section h2 {
  font-size: clamp(1.68rem, 3vw, 2.15rem);
}

.content-section h3 {
  font-size: clamp(1.22rem, 2.3vw, 1.58rem);
}

.content-section p,
.info-card p,
.service-card p {
  font-size: clamp(1.24rem, 2.1vw, 1.4rem);
}

.content-section li {
  font-size: clamp(1.02rem, 1.9vw, 1.16rem);
}

.hypno-about-container,
.info-card,
.service-card,
.service-card-content {
  text-align: center;
}

.hypno-about-left ul {
  justify-items: center;
}

.info-card ul {
  padding-left: 0;
  list-style-position: inside;
}

.hero-subtitle,
.content-section p,
.content-section li,
.info-card p,
.info-card li,
.service-card p,
.home-header-subtitle,
.header-subtitle {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.about-profile-image {
  width: clamp(195px, 27vw, 285px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 24px rgba(26, 61, 44, 0.18);
  margin: 0 auto 18px;
}

p {
  font-size: calc(1em + 4px);
}

body.home .content-section p {
  margin-top: 22px;
  margin-bottom: 22px;
}

.booking-form {
  width: min(860px, 100%);
  margin: 20px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid #9ec8b2;
  outline-offset: 1px;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.95rem;
}

.consent-check input {
  margin-top: 4px;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .booking-form {
    padding: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }
}

/* Compact single-row header for non-index pages */
.header-row {
  width: min(1280px, 97%);
  margin: 0 auto;
  padding: 10px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.header-row .header-top {
  width: auto;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.header-row .header-logo-image {
  width: 64px;
}

.header-row .header-title {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
}

.header-row .header-subtitle {
  font-size: 0.86rem;
}

.header-row .main-nav {
  width: auto;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.header-row .main-nav > a,
.header-row .service-menu > summary {
  padding: 7px 11px;
  font-size: 0.9rem;
}

.header-row .social-link-header {
  position: static;
  margin: 0;
}

.header-row .header-social-links {
  justify-self: end;
}

@media (max-width: 900px) {
  .header-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .header-row .header-top {
    justify-content: center;
    text-align: center;
  }

  .header-row .main-nav {
    width: min(1140px, 94%);
  }

  .header-row .header-social-links {
    justify-self: center;
  }
}

/* Header-row sizing only */
.header-row .header-logo-image {
  width: 78px;
}

.header-row .header-title {
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
}

.header-row .header-subtitle {
  font-size: 1rem;
}

.header-row .main-nav > a,
.header-row .service-menu > summary {
  font-size: 1.05rem;
  padding: 8px 13px;
}

.header-row .social-link-header {
  width: 32px;
  height: 32px;
}

.header-row .social-icon-svg {
  width: 17px;
  height: 17px;
}

/* Index header: logo above titles, larger typography */
.home-header .home-header-top {
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

.home-header .home-header-logo-image {
  width: 155px;
}

.home-header .home-header-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}

.home-header .home-header-subtitle {
  font-size: 1.1rem;
}

.home-header .main-nav > a,
.home-header .service-menu > summary {
  font-size: 1.1rem;
  padding: 10px 15px;
}

.home-header .social-link-header {
  position: static;
  width: 53px;
  height: 53px;
}

.home-header .social-icon-svg {
  width: 26px;
  height: 26px;
}

.home-header {
  position: static;
}

.floating-compact-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  background: rgba(239, 246, 241, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(21, 52, 38, 0.12);
  backdrop-filter: blur(10px);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.floating-compact-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-compact-header .header-row {
  padding: 8px 0;
}

.floating-compact-header .social-link-header {
  position: static;
  margin: 0;
}

@media (max-width: 900px) {
  .floating-compact-header {
    display: none;
  }
}




.site-main { display: block; }


.form-notice {
  width: min(860px, 100%);
  margin: 0 auto 14px;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  text-align: left;
}

.form-notice-success {
  background: #e8f7ee;
  border: 1px solid #9ac7ab;
}

.form-notice-error {
  background: #fdeaea;
  border: 1px solid #e0a2a2;
}

.blog-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  text-align: left;
}

.blog-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-title {
  margin: 0 0 10px;
  font-size: clamp(0.98rem, 1.7vw, 1.22rem);
}

.blog-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-title a {
  text-decoration: none;
}

.blog-title a:hover {
  text-decoration: underline;
}

.blog-single {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: left;
}

.blog-single-image {
  margin-bottom: 16px;
}

.blog-single-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-content > * {
  max-width: none;
}

.blog-pagination {
  width: min(980px, 100%);
  margin: 20px auto 0;
}

.blog-pagination ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
