/*  Project: Rebecca Goulden Art Therapy Website
    Last updated: March 2026
*/

@charset "UTF-8";

/* --- Global Styles & Variables --- */
:root {
  --dark: #2c2c2c;
  --soft-white: #fcfcfc;
  --clay: #b8907e;
  --teal: #93cbd2;
  --transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  background-color: var(--soft-white);
  color: var(--dark);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 300;
}

/* --- Navigation & Logo Styling Fix --- */
nav {
  position: fixed;
  width: 100%;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(252, 252, 252, 0.95);
  transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease,
    box-shadow 0.4s ease;
}

nav.shrunk {
  padding: 15px 5%;
  background: rgba(252, 252, 252, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Targets the logo link specifically */
nav a.logo-container,
nav a.logo-container:visited,
nav a.logo-container:active,
nav a.logo-container:hover {
  text-decoration: none !important;
  color: inherit !important;
  outline: none;
  display: flex;
  flex-direction: column;
}

.logo-container {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

nav a.logo-container:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-main {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: font-size 0.4s ease;
}

.logo-sub {
  font-family: "Raleway", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
  margin-top: 5px;
}

nav.shrunk .logo-main {
  font-size: 1.2rem;
}

nav.shrunk .logo-sub {
  font-size: 0.55rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: 0.3s;
}
.nav-links a:hover {
  color: var(--clay);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
}
.hamburger span {
  width: 30px;
  height: 2px;
  background: var(--dark);
  transition: 0.4s;
}

/* --- Hero Header --- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 400px;
  background-image: url("assets/banner.jpg");
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero-overlay-text {
  z-index: 2;
  padding: clamp(20px, 4vw, 80px);
  width: 90%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  margin: 0 20px;
}

.hero-overlay-text h1 {
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 10px;
}

.hero-overlay-text p {
  letter-spacing: clamp(0.2rem, 1vw, 0.5rem);
  font-size: clamp(0.875rem, 2.5vw, 1.4rem);
  text-transform: uppercase;
}

/* --- Secondary Hero Banner --- */
.hero-banner.hero-secondary {
  position: relative;
  width: 100%;
  height: 30vh;
  min-height: 250px;
  background-image: url("assets/banner.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.hero-secondary .hero-overlay-text {
  padding: clamp(15px, 2vw, 40px);
}

/* --- Welcome & Scroll Indicator --- */
.welcome-container {
  text-align: center;
  padding: 60px 5% 120px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.scroll-indicator-static {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -100px;
  margin-bottom: 60px;
  z-index: 100;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  animation: soft-pulse 2.5s infinite ease-in-out;
}

.scroll-indicator-static span {
  width: 30px;
  height: 30px;
  border-right: 2px solid #999999;
  border-bottom: 2px solid #999999;
  transform: rotate(45deg);
  display: block;
}

.scroll-indicator-static.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes soft-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(5px);
  }
}

.subtitle {
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--clay);
  margin-bottom: 1rem;
}

.welcome-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
  font-weight: 100;
}

.welcome-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.welcome-text::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--clay);
  margin: 40px auto 0;
}

/* --- Split Row Layout --- */
.split-row {
  padding: 60px 0;
  width: 100%;
}

.row-container {
  display: flex;
  align-items: center;
  gap: 80px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 5%;
  width: 100%;
}

.text-column {
  flex: 1.2;
  text-align: left;
}
.image-column {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.split-row.reverse .row-container {
  flex-direction: row-reverse;
}

/* --- Circular Image Styling --- */
.circle-image-wrapper {
  width: clamp(250px, 25vw, 350px);
  height: clamp(250px, 25vw, 350px);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.circle-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

/* --- Circular Fade Carousel --- */
.fade-carousel-section {
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--soft-white);
}

.carousel-container {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.carousel-slide .circle-image-wrapper {
  margin: 0;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    background: rgba(252, 252, 252, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1050;
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  .hamburger {
    display: flex;
    z-index: 1100;
  }
  .nav-links a {
    transform: translateY(10px);
    transition: transform 0.5s ease;
  }
  .nav-links.active a {
    transform: translateY(0);
  }
}

/* --- Action Pills --- */
.action-section {
  padding: 80px 5%;
  display: flex;
  justify-content: center;
}

.action-pill-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.action-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  border: 1px solid var(--clay);
  border-radius: 100px;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  background-color: transparent;
}

.pill-text {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
}
.pill-arrow {
  font-size: 1.2rem;
  transition: transform 0.4s ease;
}

.action-pill:hover {
  background-color: var(--teal);
  border-color: var(--teal);
  color: white;
  transform: translateX(10px);
  box-shadow: 0 10px 20px rgba(141, 163, 153, 0.2);
}

.action-pill:hover .pill-arrow {
  transform: translateX(5px);
}

/* --- Contact Form --- */
.contact-form-section {
  padding: 100px 5%;
  background-color: var(--soft-white);
  display: flex;
  justify-content: center;
}

.soft-form-card {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.field-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.field-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  color: var(--clay);
}

.field-group input,
.field-group textarea {
  padding: 14px;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #fafafa;
  transition: all 0.3s ease;
  width: 100%;
}

.field-group textarea {
  resize: none;
  min-height: 120px;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--sage);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background-color: var(--clay);
  color: white;
  border: none;
  border-radius: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.form-submit:hover {
  background-color: var(--teal);
  transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
  background-color: #f0f4f3;
  width: 100%;
  padding: 40px 10% 20px;
  color: var(--dark);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-contact h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
  color: var(--clay);
}

.footer-email {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 300;
  transition: color 0.3s;
}

.footer-accreditations {
  display: flex;
  gap: 30px;
  padding: 25px 0;
}

.accred-logo-box {
  height: 70px;
  width: auto;
  opacity: 0.6;
}

.accred-logo-box img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer-copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: #888;
}

.footer-copyright p {
  font-size: 0.75rem;
  color: #888;
}

@media (max-width: 768px) {
  .soft-form-card {
    padding: 30px;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}
.fade-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsiveness: Stacks into 1 column on mobile/tablets */
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .row-container {
    flex-direction: column !important;
    gap: 40px;
    text-align: center;
  }

  .split-row.reverse .row-container {
    flex-direction: column !important;
  }

  .text-column {
    order: 2;
  }

  .image-column {
    order: 1;
  }

  .text-column {
    text-align: center;
  }

  .sub-heading::after {
    margin: 30px auto 0;
  }
}

/* --- Main Content Area --- */
main {
  flex: 1;
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

h3.sub-heading {
  font-size: clamp(1.5rem, 3vw, 1.5rem);
}

.sub-heading {
  font-size: clamp(2.5rem, 5vw, 2.5rem);
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.article-text p,
.article-text li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.article-text li {
  margin-bottom: 0.5rem;
}

ul {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 2.5rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 50px;
}

.service-item {
  padding: 10px;
  color: teal;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-container {
  display: grid;
  max-width: 800px;
  gap: 20px;
  margin: 00 auto;
}

.quote {
  padding: 25px 15px;
  text-align: center;
  color: teal;
  font-size: 1.3rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

/* --- Thank You Message Styling --- */
#thank-you-message {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 0.8s ease forwards;
}

#thank-you-message h3 {
  color: var(--clay);
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 300;
  letter-spacing: 2px;
}

#thank-you-message p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  font-weight: 300;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
