/* Color Variables */
:root {
  --primary-color: #2d3e50;
  /* Navy blue for headers and key elements */
  --secondary-color: #e5b93d;
  /* Gold for accents from logo */
  --tertiary-color: #7d9b76;
  /* Sage green for supporting elements */
  --light-color: #f9f7f2;
  /* Cream for backgrounds */
  --dark-text: #333333;
  /* Dark gray for most text */
  --light-text: #ffffff;
  /* White text for dark backgrounds */
  --overlay-color: rgba(45, 62, 80, 0.7);
  /* Semi-transparent navy for image overlays */
}

/* Base Styles */
body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--dark-text);
  background-color: var(--light-color);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Libre Baskerville', serif;
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

a {
  color: var(--tertiary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Layout */
.container {
  max-width: 1200px;
  padding: 0 20px;
}

.section {
  padding: 40px 0;
}

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

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

/* Header and Navigation */
header {
  background-color: var(--light-color);
  padding: 5px 0;
  border-bottom: 1px solid rgba(45, 62, 80, 0.1);
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: rgba(249, 247, 242, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 80px;
  margin-right: 10px;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav a {
  margin-top: 0;
  padding: 5px 0;
  margin-left: 25px;
  color: var(--primary-color);
  font-weight: 600;
}

nav a:hover {
  color: var(--secondary-color);
}

/* Hero Section */


.hero {
  position: relative;
  height: auto;
  /* Auto height to fit content */
  max-height: 70vh;
  /* Limit maximum height */
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: var(--light-text);
  text-align: center;
  padding-bottom: 5px;
  overflow: hidden;
}


.overlay-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  /* Higher than the hero content which is z-index: 2 */
  max-width: 200px;
  /* Adjust as needed */
}

.overlay-logo img {
  max-height: 125px;
  width: auto;
}

header .six.columns:first-child {
  display: none;
  /* Hide the empty column */
}

header .six.columns:last-child {
  width: 100%;
  /* Make the nav take full width */
}

/* Center the navigation on mobile */
@media (max-width: 768px) {
  .overlay-logo {
    top: 10px;
    left: 10px;
    max-width: 150px;
    /* Smaller on mobile */
  }

  .overlay-logo img {
    max-height: 60px;
  }
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  /* Fixed height in viewport units */
  z-index: 1;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  /* Let image maintain aspect ratio */
  min-height: 100%;
  /* Ensure image covers container height */
  object-fit: cover;
  object-position: center 50%;
}

.hero-content {
  position: relative;
  bottom: 50px;
  /* Position near the bottom */
  z-index: 2;
  max-width: 700px;
  padding: 30px;
  margin-top: 30vh;
  /* Position content relative to viewport height */
  margin-right: 25px;
  background-color: rgba(45, 62, 80, 0.7);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--light-text);
}

.hero h6 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--light-text);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Buttons */
.button {
  display: inline-block;
  height: auto;
  padding: 12px 30px;
  color: var(--light-text);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  background-color: var(--primary-color);
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.button.button-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.button.button-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--light-text);
}

/* Services Section */
.services {
  background-color: var(--light-color);
}

.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

.section h2:first-child,
.section .text-center:first-child {
  margin-top: 0;
}

/* Testimonials */
.testimonials {
  padding: 80px 0 5px;
  background: url('images/stream.jpg') no-repeat center center;
  background-size: cover;
  /* background-attachment: fixed; Optional parallax effect */
  position: relative;
  color: var(--primary-color);
  /* Use your site's primary text color */
}

/* Header Text Styling */
.testimonials h2 {
  color: var(--light-color);
  /* Use your theme's alternate light color */
  text-align: center;
}

.testimonial {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform: translateX(100%);
  display: none;
  left: 0;
  right: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Use flex column so author can be anchored to the bottom safely */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Dark overlay to improve contrast */
  z-index: 1;
}

.testimonials .container {
  position: relative;
  z-index: 2;
}



/* Allow testimonials to size naturally. Remove fixed heights and vertical centering transforms
   so the active testimonial can grow vertically to fit long author names/titles. */
#testimonial-1,
#testimonial-2,
#testimonial-3,
#testimonial-4,
#testimonial-5 {
  /* Let cards size by content */
  width: 75%;
  max-width: 900px;
  margin: 0 auto 30px;
  box-sizing: border-box;
  align-content: start;
  transform: translateX(100%); /* off-screen by default */
}

#testimonial-1.active,
#testimonial-2.active,
#testimonial-3.active,
#testimonial-4.active,
#testimonial-5.active {
  transform: translateX(0);
}

#testimonial-1.prev,
#testimonial-2.prev,
#testimonial-3.prev,
#testimonial-4.prev,
#testimonial-5.prev {
  /* Slide fully to the left without vertical offset */
  transform: translateX(-100%);
}

.testimonial.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  /* position: relative so the active card participates in layout and parent can size */
  position: relative;
}

.testimonial.prev {
  display: block;
  opacity: 0;
  transform: translateX(-100%);
}


.testimonial-content {
  color: #333333;
  font-style: italic;
  margin-bottom: 20px;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  /* Allow content to take available space and scroll if too tall */
  flex: 1 1 auto;
  overflow: auto;
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
  text-align: right;
}

.testimonial-carousel {
  position: relative;
  margin: 40px auto;
  max-width: 800px;
  overflow: hidden;
  min-height: 400px;
  /* Increased to accommodate more content */
}

.testimonial-dots {
  position: relative;
  top: -45px;
  display: flex;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: -10px;
}

.dot {
  background-color: var(--light-color);
  /* Use cream background */
  height: 10px;
  width: 10px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--secondary-color);
  /* Gold for active state */
}

.dot:hover {
  background-color: var(--secondary-color);
  /* Optional: highlight on hover */
}

/* FAQ Section */
.faq-section {
  background-color: var(--light-color);
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(45, 62, 80, 0.1);
  padding-bottom: 30px;
}

.faq-question {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-left: 20px;
  border-left: 3px solid var(--secondary-color);
}

.faq-question.active+.faq-answer {
  display: block;
}

@media (max-width: 768px) {
  .testimonials::before {
    background: rgba(0, 0, 0, 0.6);
    /* Darker for mobile */
  }
}

/* About Section */
.about-section {
  position: relative;
  color: var(--light-text);
  background: url('images/forest.jpg') no-repeat center center;
  background-size: cover;
  padding: 80px 0;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: transparent;
}

.about-content {
  position: relative;
  z-index: 2;
  border-left: 4px solid var(--secondary-color);
  padding: 30px;
  background-color: rgba(45, 62, 80, 0.85);
  /* Increased opacity from 0.7 to 0.85 */
  max-width: 80%;
  border-radius: 8px;
  margin-left: 30px;
}

/* Align the image vertically with the About text */
.about-row {
  display: flex;
  align-items: center; /* vertically center columns */
}
.about-row > .columns {
  float: none; /* override Skeleton floats so flex works correctly */
}

.about-content h2 {
  color: var(--light-text);
  position: relative;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  /* Slightly stronger shadow for heading */
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--secondary-color);
}

/* Enhance text readability */
.about-content p {
  max-width: 100%;
  line-height: 1.8;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  /* Add subtle text shadow */
}

/* Why Choose Section */
.why-choose-item {
  display: flex;
  margin-bottom: 20px;
}

.why-choose-icon {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-right: 15px;
  min-width: 24px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 40px 0;
}

.footer-logo img {
  max-height: 125px;
  margin-bottom: 20px;
}

.social-links a {
  color: var(--light-text);
  margin-right: 15px;
  font-size: 1.2rem;
}

.copyright {
  font-size: 1.1rem;
  opacity: 0.8;
}

.section h2:first-child,
.section .text-center:first-child {
  margin-top: 0;
}

/* Responsive adjustments - Skeleton handles most of the basics */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  nav {
    justify-content: center;
  }

  .section h2:first-child,
  .section .text-center:first-child {
    margin-top: 0;
  }

  nav a {
    margin: 0 10px;
  }
}

/* Miscellaneous Fixes */
#contact {
  padding-top: 0px;
  /* Reduce the top padding from 80px to 0px */
}

#why-choose h2.text-center {
  margin-bottom: 60px;
  /* Increases space below this specific heading */
}


#services h2 {
  margin-top: 0rem;
  /* Increase space above the heading */
  margin-bottom: 6rem;
  /* Increase space below the heading */
}

#testimonials h2 {
  margin-top: 0rem;
  /* Increase space above the heading */
  margin-bottom: 2rem;
  /* Increase space below the heading */
}

#faq h2.text-center {
  margin-bottom: 90px;
  /* Increase space below the FAQ heading */
}

/* Ensure author sits at the end of the testimonial without extra margin that can push it outside */
#testimonial-1 .testimonial-author,
#testimonial-2 .testimonial-author,
#testimonial-3 .testimonial-author,
#testimonial-4 .testimonial-author,
#testimonial-5 .testimonial-author {
  margin-top: 0.5rem;
  /* small spacing from content */
  flex-shrink: 0;
  text-align: right;
}


#testimonial-1 .testimonial-content,
#testimonial-2 .testimonial-content,
#testimonial-3 .testimonial-content,
#testimonial-4 .testimonial-content,
#testimonial-5 .testimonial-content {
  font-size: 2rem;
  font-weight: bold;
}

nav a.button.button-primary {
  margin-top: 12px;
  /* Adjust this value to move it lower */
}

#services .button.button-primary {
  font-size: 1.4rem;
  /* Adjust as needed */
  padding: 10px 20px;
  /* Increase padding for a bigger button */
}

.bio-container {
  /* no float when using flex layout */
  float: none;
  max-height: 350px;
  overflow: visible;
  margin: 0 0px 10px 30px;
  position: relative;
  z-index: 2;
}

.bio-container img {
  width: auto;
  height: auto;
  max-height: 250px; /* base size */
  border-radius: 0 8px 8px 0; /* rounded right corners to mirror About panel */
  display: block;
  background: transparent;
  border-right: 4px solid var(--secondary-color); /* match About left border thickness */
  padding-right: 0; /* ensure no gap before border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); /* subtle depth similar to text panel */
}

@media (max-width: 768px) {
  /* Keep natural stacking on mobile */
  .about-row {
    flex-direction: column;
    align-items: stretch;
  }
  .about-row > .columns {
    width: 100%;
  }
  .bio-container {
    margin: 20px auto 0; /* center the image card below text on mobile */
  }
}

/* Larger desktop scaling for the headshot */
@media (min-width: 1200px) {
  .bio-container img {
    max-height: 300px;
  }
}

@media (min-width: 1440px) {
  .bio-container img {
    max-height: 340px;
  }
}

/* Services layout helpers added to replace inline styles */
.card-row {
  margin-top: 20px;
}

.cta-row {
  margin-top: 20px;
}

/* Calendly CTA button variant (replaces inline style) */
.calendly-cta {
  font-size: 1.5rem;
  padding: 15px 40px;
}
 for the headshot */
@media (min-width: 1200px) {
  .bio-container img {
    max-height: 300px;
  }
}

@media (min-width: 1440px) {
  .bio-container img {
    max-height: 340px;
  }
}

/* Services layout helpers added to replace inline styles */
.card-row {
  margin-top: 20px;
}

.cta-row {
  margin-top: 20px;
}

/* Calendly CTA button variant (replaces inline style) */
.calendly-cta {
  font-size: 1.5rem;
  padding: 15px 40px;
}

/* Responsive refinements for phones and tablets */

/* Phones and small tablets */
@media (max-width: 768px) {
  /* Prevent hero clipping and tighten spacing */
  .hero {
    max-height: none;
    padding-bottom: 10px;
  }
  .hero-content {
    margin: 18vh 10px 0;
    margin-right: 0;
    bottom: 0;
    padding: 16px;
    background-color: rgba(45, 62, 80, 0.85);
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero h6 {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  /* Navigation wraps cleanly */
  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  nav a {
    margin: 0 8px;
    padding: 6px 0;
  }

  /* Testimonials: wider cards, smaller text, shorter min-height */
  .testimonial-carousel {
    min-height: 320px;
  }
  #testimonial-1,
  #testimonial-2,
  #testimonial-3,
  #testimonial-4,
  #testimonial-5 {
    width: 95%;
    max-width: none;
  }
  .testimonial-content {
    font-size: 1.1rem;
  }
  .testimonial-dots {
    top: -20px;
    margin-top: 10px;
  }

  /* About: let content span full width; ensure image fits column */
  .about-content {
    max-width: 100%;
    margin-left: 0;
  }
  .bio-container img {
    max-width: 100%;
    height: auto;
  }

  /* CTA button: easy tap target, no overflow */
  .calendly-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.2rem;
    padding: 12px 20px;
  }
}

/* Medium tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero h6 {
    font-size: 1.4rem;
  }
  .testimonial-carousel {
    min-height: 360px;
  }
  #testimonial-1,
  #testimonial-2,
  #testimonial-3,
  #testimonial-4,
  #testimonial-5 {
    width: 85%;
  }
  .testimonial-content {
    font-size: 1.35rem;
  }
}

/* Prevent accidental horizontal scroll on narrow viewports */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
}
