/* styles.css */

/* Palette */
:root {
  --color-green: #314d3d;
  --color-beige: #e8e1d8;
  --color-copper-1: #8f4a1a;
  --color-copper-2: #552b11;
   --texture-copper: url('coppertexture.jpg');
}



/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Animation keyframes */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes slideUpBounce {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(40px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

/* Animation classes */
.animate-slide-in-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.7s ease-out forwards;
}

.animate-slide-up-bounce {
  animation: slideUpBounce 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Initially hide animated elements */
.animate-slide-in-left,
.animate-slide-in-right,
.animate-slide-in-bottom,
.animate-scale-in,
.animate-slide-up-bounce,
.animate-fade-in-up {
  opacity: 0;
}

/* Ensure portrait and quote maintain their positioning during animation */
.portrait-wrapper.animate-scale-in {
  position: absolute !important;
  top: 40% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.intro-text.animate-slide-up-bounce {
  position: absolute !important;
  width: 100% !important;
  text-align: center !important;
  top: calc(40% + 40vh + 20vw) !important;
  max-width: 90% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

@media (min-width: 768px) {
  .portrait-wrapper.animate-scale-in {
    top: 50% !important;
  }
  
  .intro-text.animate-slide-up-bounce {
    top: calc(50% + 400px + 9vh) !important;
    max-width: 100% !important;
  }
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* More interesting scroll animations */
.scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px) translateY(20px);
  transition: all 0.8s ease-out;
}

.scroll-animate-left.animate {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(50px) translateY(20px);
  transition: all 0.8s ease-out;
}

.scroll-animate-right.animate {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem; /* nav height */
  /* Safari viewport fix */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  font-family:'GFS Didot' serif;
  background: var(--color-beige);
  color: var(--color-beige);
}

/* 2) Contact fallback styling */
.contact-fallback {
  margin-top: 1rem;
  text-align: center;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--color-green);
}
.contact-fallback a {
  color: var(--color-copper-2);
  text-decoration: underline;
}

/* NAVBAR */
nav {
  position: fixed; top: 0; left: 0; width: 100%;
  background: linear-gradient(to right, var(--color-copper-1), var(--color-copper-2));
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex; justify-content: center; padding: 0.5rem 1rem;
  /* Safari fix for positioning */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.nav-visible { transform: translateY(0); }
.nav-hidden  { transform: translateY(-100%); }

.nav__inner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* 🔥 Center the sub-divs horizontally */
  gap: 0.6rem;
}

.nav__list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.nav__link {
  color: var(--color-beige);
  text-decoration: none; font-weight: 500;
}

/* highlight the current link */
.nav__link.active {
  /* example: underline in copper */
  border-bottom: 2px solid var(--color-beige);
  padding-bottom: 2px;      /* give the underline a little breathing room */
  color: var(--color-beige);
}

/* keep the button styled but you can also highlight it */
.nav__button.active {
  outline: 2px solid var(--color-beige);
} 


.nav__button {
  background: #fff; color: var(--color-copper-2);
  padding: 0.4rem 0.8rem; border-radius: 0.25rem;
  text-decoration: none; font-weight: 500;
}

@media (min-width: 768px) {
  nav {
    padding: 0.6rem 2rem; /* Make nav bar thicker on desktop */
  }
  .nav__list {
    gap: 3rem;
     /* More space between nav links */
   
    margin-right: 2rem;
  }
  .nav__link {
    font-size: 1.1rem; /* Make link text a bit bigger */
  }
  .nav__button {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem; /* Bigger button size */
  }
}


/* HOME */
.home-section {
  position: relative; height: 100vh; overflow: hidden;
}
/* .half--top {
  height: 50vh; background: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
} */

.half--top {
  /* remove the old:
     background: var(--color-green);
  */height: 50vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  background-color: var(--color-green);
  background-image: url('assets/marble2.png');
  background-repeat: repeat;        /* tile it, or use no-repeat + cover if it’s large */
  background-size: auto;       /* or `auto` if you just want 1:1 */  
  /* background-blend-mode: multiply;     */
  filter:saturate(1.1) brightness(1.2) contrast(0.9);
}

.half--bottom {
  height: 10vh; background: var(--color-beige);
}
.home-section__title {
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--color-beige);
  font-weight: 100; /* normal weight, not bold */
  letter-spacing: 0.05em; /* a little space between letters */
}

.home-section__name{
  margin-top: 30px;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  color: var(--color-beige);
  font-weight: 100; /* normal weight, not bold */
  letter-spacing: 0.05em;

}

.home-section__qualifications {
  margin-top: 10px;
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--color-beige);
  font-weight: 100;
  letter-spacing: 0.1em;
  opacity: 0.9;
}
.portrait-wrapper {
  position: absolute; top: 40%; left: 50%;
  transform: translateX(-50%);
  width: clamp(150px, 60vw, 400px);
  aspect-ratio: 1;
}

.image-container {
  position: relative;
  width: 100%; height: 100%;
}
.portrait-image,
.section__image {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; position: relative; z-index: 1;
}
.shadow-block {
  position: absolute;
  left: clamp(-16px, -4vw, -32px); /* Shift shadow further left */
  bottom: clamp(-16px, -4vw, -32px); /* Shift shadow further down */
  width: 100%;
  height: 100%;
  background: linear-gradient(to top left, var(--color-copper-1), var(--color-copper-2)); /* Now fades up/left */
  z-index: 0;
  
}

.intro-text {
  position: absolute; width: 100%; text-align: center;
  /* Position quote exactly halfway between portrait bottom and Meet Me section */
  top: calc(40% + 40vh + 20vw);
  /* Mobile: narrower width for better mobile layout */
  max-width: 90%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
@media (min-width: 768px) {
  .intro-text {
    /* On desktop, position quote exactly halfway between portrait bottom and Meet Me section */
    top: calc(50% + 400px + 9vh);
    /* Desktop: wider width for better desktop layout */
    max-width: 100%;
  }

  .home-section {
    margin-bottom:8rem;
    overflow:visible;
  }
}
.intro-text p {
  color: var(--color-green);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
}

.intro-quote-author {
  font-size: clamp(0.8rem, 1.8vw, 1rem) !important;
  font-style: normal !important;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* GENERIC SECTIONS */
.section {
  width: 100%;
   padding: 3rem 1rem;
}
.container {
  max-width: 1024px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 768px) {
  .section {
    width: 100%;
     padding: 5rem 0rem;
  }
  .container {
    flex-direction: row;
    align-items: center;
  }
  /* alternate left/right */
  .layout-reverse .container {
    flex-direction: row-reverse;
  }
  
    
}

/* TEXT PANEL */
.section__text {
  flex: 1; background: rgba(232, 225, 216, 0.8); padding: 1.5rem;
}
.section__text h2 {
  margin-bottom: 1rem;
  color: var(--color-green);
  font-size: clamp(1.5rem, 5vw, 2rem);
}
.section__text p {
  color: var(--color-green);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.approach-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

.approach-list li {
  color: var(--color-green);
  font-size: 0.95rem;
  padding: 0.1rem 0;
  position: relative;
  padding-left: 1.2rem;
}

.approach-list li::before {
  content: "•";
  color: var(--color-copper-1);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.3rem;
}

/* IMAGE PANEL */
.section__image-wrapper {
  flex: 1;
  background: var(--color-green);
  background-image: url('assets/marble2.png');
  background-repeat: repeat;        /* tile it, or use no-repeat + cover if it's large */
  background-size: auto;       
  padding: 3rem 1.5rem;
  display: flex; justify-content: center; align-items: center;
  filter:saturate(1.1) brightness(1.2) contrast(0.9);
  position: relative;
}
.section__image-wrapper .image-container {
  width: clamp(150px, 40vw, 300px);
  aspect-ratio: 1;
}

/* Make image wrappers proportional to text content length */
#meet-me .section__image-wrapper .image-container {
  width: clamp(150px, 40vw, 300px);
  aspect-ratio: 0.9; /* Slightly taller for meet-me section */
}

#approach .section__image-wrapper .image-container {
  width: clamp(120px, 35vw, 250px);
  aspect-ratio: 0.5; /* Slightly taller for approach section with lots of content */
}

#sessions .section__image-wrapper .image-container {
  width: clamp(100px, 30vw, 400px);
  aspect-ratio: 1.2; /* Shorter image for sessions section */
}

/* CONTACT */
.contact-section {
  background: var(--color-beige);
}
.contact-container {
  max-width: 1024px; margin: 0 auto;
  background: #fff; border-radius: 0.5rem;
  padding: 2rem 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contact-container h2 {
  margin-bottom: 1rem;
  color: var(--color-green);
  /* background-image: url('assets/marble2.png');
  background-repeat: repeat;        
  background-size: auto;       
  filter:saturate(1.1) brightness(1.2) contrast(0.9);
   */
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.contact-text {
  margin-bottom: 2rem;
  text-align: center;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

.contact-text h2 {
  color: var(--color-green);
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 1rem;
}

.contact-text p {
  color: var(--color-green);
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.contact-text a {
  color: var(--color-copper-2);
  text-decoration: underline;
}

.contact-text-bottom {
  margin-top: 2rem;
  text-align: center;
}

.contact-text-bottom p {
  color: var(--color-green);
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.contact-text-bottom a {
  color: var(--color-copper-2);
  text-decoration: underline;
}
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
}
.form-input,
.form-textarea {
  width: 100%; padding: 0.75rem;
  border: 1px solid var(--color-green);
  border-radius: 0.25rem;
  background: transparent; color: var(--color-green);
  font: inherit; font-size: 1rem;
}
.form-button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: var(--color-green); color: var(--color-beige);
  border: none; border-radius: 0.25rem;
  cursor: pointer; font-size: 1rem;
}
.form-button:hover { opacity: 0.9; }

/* Adjust home-section heights & portrait on desktop */
@media (min-width: 768px) {
  .half--top { height: 70vh; margin-top:-50px; }
  .half--bottom { height: 40vh; }
  .portrait-wrapper { top: 50%; }
}

/* Accessibility outlines */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--color-copper-1);
  outline-offset: 2px;
}

#meet-me{
  padding:3rem 1rem;
  margin-top: 0.5rem;
}

/* Make all sections have consistent padding */
#approach,
#sessions {
  padding: 3rem 1rem;
}

/* All sections - align green background to start exactly where the title starts */
#meet-me .section__image-wrapper::before,
#approach .section__image-wrapper::before,
#sessions .section__image-wrapper::before {
  top: 0;
  bottom: 0;
}

/* Meet Me section - standard size */
#meet-me .section__image-wrapper {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Approach section - make wrapper bigger */
#approach .section__image-wrapper {
  padding: 2rem;
  height: 110%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Sessions section - shorter wrapper but start lower */
#sessions .section__image-wrapper {
  padding: 1.5rem;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  #meet-me{
    margin-top: 1rem;
    margin-bottom: 5rem;
  }

}

  /* 1) Make the wrapper a positioning context */
  .section__image-wrapper {
    position: relative;
    overflow: visible; /* let the pseudo bleed outside */
    background: transparent;
  }

  /* 2) Create the green bar behind the wrapper */
  .section__image-wrapper::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    background-image: url('assets/marble2.png');
    background-repeat: repeat;
    filter: saturate(1.1) brightness(1.2) contrast(0.9);
    z-index: -1;
  
    left: 0;
    /* 
      gutter = (1024px - 100vw)/2
      clamp it so it’s never positive (which squeezes the bar) 
      and never more negative than -50vw (just in case)
    */
    right: clamp(
      0px, 
      calc((1024px - 100vw) / 2), 
      50vw
    );
  }
  

  /* 3a) Non-reverse (image on the right): pseudo spans wrapper + right gutter */
  .section:not(.layout-reverse) .section__image-wrapper::before {
    left: 0;
    /* (1024px − 100vw)/2 is negative once the viewport > 1024px,
       so “right” becomes negative and stretches the bar into the gutter */
    right: calc((1024px - 100vw) / 2);
  }

  /* 3b) Reverse (image on the left): pseudo spans wrapper + left gutter */
  .section.layout-reverse .section__image-wrapper::before {
    left: calc((1024px - 100vw) / 2);
    right: 0;
  }



  .textured-copper {
    background-color: var(--color-copper-1);
    background-image: var(--texture-copper);
    background-repeat: repeat;
    background-size: auto;
    background-blend-mode: multiply;
    filter: saturate(0.7) brightness(1.3);
  }
  

  

  @media (max-width: 1024px) {
    .section__image-wrapper::before {
      left: 0 !important;
      right: 0 !important;
    }
  }

/* Safari-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Fix for Safari on iPad */
  .section__image-wrapper {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .portrait-wrapper {
    -webkit-transform: translateX(-50%) translateZ(0);
    transform: translateX(-50%) translateZ(0);
  }
}

/* iPad-specific fix for blend mode */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 2) {
  .textured-copper {
    background-blend-mode: multiply !important;
    -webkit-background-blend-mode: multiply !important;
    /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Ensure the texture is properly loaded */
    background-size: 200px 200px;
  }
}

/* FOOTER */
.footer {
  background: var(--color-green);
  padding: 2rem 1rem;
  margin-top: 4rem;
}

.footer__content {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.footer__info {
  margin-bottom: 1rem;
}

.footer__name {
  color: var(--color-beige);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 100;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer__email {
  color: var(--color-beige);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 100;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.footer__copyright {
  border-top: 1px solid rgba(232, 225, 216, 0.2);
  padding-top: 1rem;
}

.footer__copyright p {
  color: var(--color-beige);
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 100;
  letter-spacing: 0.05em;
  opacity: 0.8;
}
    
