@media (max-width: 900px) {
  /* Mobile menu container background */
  .wp-block-navigation__responsive-container {
    background: #000;
  }

  /* Stack menu items vertically */
  .wp-block-navigation__responsive-container-content ul.wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
  }

  /* Full-width links for easier tapping */
  .wp-block-navigation__responsive-container-content ul.wp-block-navigation__container li.wp-block-navigation-item a {
    display: block;
    width: 100%;
  }
}
/* Disable clicking on only the 'Other' menu item */
.menu-item.menu-other > a {
  pointer-events: none;  /* Prevent clicks */
  cursor: default;       /* Show default cursor */
}
/* ===============================
   CASE STUDIES PAGE STYLING
=================================*/
.case-studies-page {
  text-align: center;
  padding: 60px 20px;
  color: #fffaff;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Carlito', sans-serif;
}

/* Page Header */
.case-studies-page h1 {
  font-family: 'Cinzel', serif;
  color: #85b09a;
  font-size: 36px;
  margin-top: 60px;
}

/* Subtitle */
.case-studies-page h3 {
  font-family: 'Montserrat', sans-serif;
  color: #3e6990;
  font-size: 24px;
  margin-top: 15px;
}

/* Intro Paragraph */
.case-studies-page p {
  font-size: 18px;
  max-width: 1000px;
  margin: 30px auto;
  line-height: 1.6;
  text-align: center;
  color: #fffaff;
}

/* Placeholder for future case study grid */
.case-studies-page .coming-soon {
  text-align: center;
  margin-top: 60px;
  font-style: italic;
  color: #fffaff;
}

/* ===============================
   MOBILE ADJUSTMENTS
=================================*/
@media (max-width: 768px) {
  .case-studies-page h1 {
    font-size: 30px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .case-studies-page h3 {
    font-size: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .case-studies-page p {
    font-size: 14px;
    margin-left: 15px;
    margin-right: 15px;
  }
}
/* ===============================
   TESTIMONIALS - MOBILE VIEW
=================================*/
@media (max-width: 768px) {
  .testimonials-section h1 {
    font-size: 30px; /* smaller header on mobile */
  }

  .testimonials-section h3 {
    font-size: 20px; /* keep subtitle reasonable */
  }

  .testimonials-section p {
    font-size: 16px; /* smaller paragraph text */
    margin-left: 15px;
    margin-right: 15px;
  }

  .testimonials-cta p {
    font-size: 16px; /* smaller italic CTA blurb */
    margin-bottom: 15px;
  }

  .testimonials-cta button {
    font-size: 16px; /* smaller button text */
    padding: 10px 25px;
  }
}
/* ===============================
   CREDENTIALS – MOBILE REFINEMENTS
=================================*/
@media (max-width: 768px) {

  /* Main page header */
  .credentials-section h1 {
    font-size: 30px;
    margin-bottom: 25px; /* brings header down slightly */
  }

  /* Section headers: Credentials / Affiliations */
  .credentials-section h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 15px;
  }

  /* Subtitle + body paragraphs breathing room */
  .credentials-section h3,
  .credentials-section p {
    padding-left: 20px;
    padding-right: 20px;
  }

}
/* ===============================
   FAQ SECTION STYLING
=================================*/
.faq-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #000000;
  color: #fffaff;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif; /* applies to all text */
}

/* Company Logo */
.faq-logo img {
  max-width: 150px;
  margin-bottom: 20px;
}

/* FAQ Header */
.faq-section h2 {
  font-size: 36px;
  color: #85b09a;
  margin-bottom: 70px;
}

/* Service Icons Row */
.faq-services {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.faq-service {
  cursor: pointer;
  text-align: center;
  max-width: 160px;
  transition: transform 0.3s ease;
}

.faq-service img {
  width: 110px;
  height: 110px;
  margin-bottom: 10px;
  stroke: #3e6990; /* line icons color */
}

.faq-service h3 {
  font-family: 'Montserrat', sans-serif; /* Montserrat for service titles */
  font-size: 20px;
  color: #3e6990;
  margin: 0;
  transition: transform 0.3s ease;
}

/* Hover Effect for Icons */
.faq-service:hover {
  transform: scale(1.5);
}

/* FAQ Containers */
.faq-container {
  display: none; /* hidden initially */
  text-align: left;
  max-width: 800px;
  margin: 0 auto 50px auto;
  opacity: 0;
  transition: opacity 1s ease; /* smooth 1s fade-in */
}

/* Show container when active */
.faq-container.active {
  display: block;
  opacity: 1;
}

/* Individual Questions and Answers */
.faq-container h3 {
  font-size: 20px;
  color: #ad9baa; /* question header color */
  font-weight: bold;
  font-family: 'Montserrat', sans-serif; /* Montserrat for questions */
  margin-top: 25px;
}

.faq-container p {
  font-size: 16px;
  color: #fffaff;
  line-height: 1.6;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif; /* Montserrat for answers */
}

/* CTA Button Section */
.faq-cta {
  margin-top: 40px;
  text-align: center;
}

.faq-cta button {
  background-color: #3e6990;
  color: #fffaff;
  font-size: 18px;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-cta button:hover {
  background-color: #85b09a;
}

/* ===============================
   MOBILE ADJUSTMENTS
=================================*/
@media (max-width: 768px) {

  /* FAQ Header smaller */
  .faq-section h2 {
    font-size: 30px;
    margin-bottom: 30px;
  }

  /* Service icons smaller */
  .faq-service img {
    width: 70px;
    height: 70px;
  }

  /* Service titles smaller */
  .faq-service h3 {
    font-size: 16px;
  }

  /* Layout: 2 columns for first 4 icons, last one centered */
  .faq-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
  }

  /* Center the last icon */
  .faq-services .faq-service:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  /* Remove scale on click/hover */
  .faq-service:hover,
  .faq-service:active {
    transform: none;
  }
}
/* ===============================
   CONTACT PAGE — DESKTOP HEADER & PARAGRAPH SPACING
=================================*/
.contact-page.wp-block-heading {
  text-align: center !important;
  margin-bottom: 5px !important; /* space below header */
  padding-top: 120px !important; /* push header below navigation */
}

.contact-page.wp-elements-72a2409557d819244a94a22f2eb19b39 {
  text-align: center !important;
  margin-top: 5px !important; /* space above paragraph */
  margin-bottom: 20px !important; /* space below paragraph */
}

/* ===============================
   CONTACT PAGE — FORM STYLING
=================================*/
.contact-page form {
  max-width: 700px !important;
  margin: 0 auto 0 auto !important; /* center form */
  padding: 20px !important;
}

/* ===============================
   CONTACT PAGE — ZOHO FORM CENTERING
=================================*/
.wp-block-zoho-zoho-forms {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: flex-start; /* top-align form so page scroll works naturally */
  margin: 0 auto;
  overflow: visible;       /* allow page scrolling */
}

.wp-block-zoho-zoho-forms iframe {
  max-width: 100%;     /* responsive */
  width: 65%;          /* desired width on desktop */
  height: auto;        /* let iframe grow naturally */
  min-height: 1000px;  /* optional: minimum height so it’s tall enough */
  border: none;
}

/* ===============================
   CONTACT PAGE — MOBILE ADJUSTMENTS
=================================*/
@media (max-width: 768px) {

  /* Header */
  .contact-page.wp-block-heading {
    font-size: 30px !important;  /* updated header size for mobile */
    margin-bottom: 8px !important;
    padding-top: 80px !important;
  }

  /* Paragraph */
  .contact-page.wp-elements-72a2409557d819244a94a22f2eb19b39 {
    font-size: 16px !important;
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }

  /* Form */
  .contact-page form {
    width: 90% !important; /* wider on mobile */
    padding: 10px !important;
  }

  /* Zoho iframe responsive */
  .wp-block-zoho-zoho-forms iframe {
    width: 100%;
    max-width: 100%;
    height: auto;       /* natural height, no internal scroll */
    min-height: 1200px; /* adjust as needed for mobile content */
    border: none;
    overflow: visible;
  }
}
/* ===============================
   GLOBAL PAGE STYLING
=================================*/
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: #fffaff; /* optional: default text color */
}

/* ===============================
   LANDING PAGE HERO CENTERING
=================================*/
.services-hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  /* New background image with overlay */
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
              url('https://jcrigginganddesign.com/wp-content/uploads/2025/12/image.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* Fade-in animation for hero text */
.services-hero-text {
  text-align: center;
  max-width: 900px;
  opacity: 0;
  animation: fadeInHero 1s ease forwards;
  animation-delay: 1s; /* start fade in 2s after page load */
}

@keyframes fadeInHero {
  to { opacity: 1; }
}

.services-hero-text h1 {
  font-size: 48px;
  color: #85b09a;
  margin-bottom: 1em;
}

.services-hero-text p {
  font-size: 20px;
  color: #fffaff;
  line-height: 1.6;
  max-width: 750px;
}

.services-hero-text p strong {
  color: #3e6990; /* ensure "Scroll to explore" color is correct */
  font-size: 22px;
  display: inline-block;
  margin-top: 0em;
  position: relative; /* required for pseudo-element */
}

.services-hero-text p strong::after {
  content: "↓"; /* only the arrow */
  display: inline-block;
  margin-left: 8px;
  font-size: 28px;
  animation: bounceArrow 1.5s infinite;
}

/* Bouncing arrow animation */
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ===============================
   SERVICES — FIXED SCROLL SYSTEM
=================================*/
.services-scroll {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.services-track {
  display: flex;
  gap: 6vw;
  padding: 0 30vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.services-track::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 40vw;
  max-width: 480px;
  text-align: center;
  scroll-snap-align: center;
  opacity: 0.35;
  transform: scale(0.85);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.service-card img {
  width: 100%;
  border-radius: 12px;
}

.service-card h2 {
  margin-top: 1em;
  font-size: 26px;
  color: #85b09a;
}

/* Blurb hidden by default */
.service-card p {
  margin-top: 0.75em;
  font-size: 16px;
  color: #fffaff;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

/* ACTIVE CARD (scroll-centered) */
.service-card.active {
  opacity: 1;
  transform: scale(1);
}

.service-card.active p {
  opacity: 1;
  max-height: 200px;
}

/* Immediately show first card blurb on load */
.service-card:first-child.active p {
  opacity: 1;
  max-height: 200px;
}
@media (max-width: 768px) {

  /* ===============================
     LANDING PAGE HERO — VERTICAL CENTERING
  ==============================*/
  .services-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertical center */
    align-items: center;      /* horizontal center */
    height: 100vh;            /* full viewport height */
    text-align: center;
  }

  .services-hero-text {
    padding: 0;               /* ensures true center */
  }

  /* ===============================
     HERO TEXT STYLING
  ==============================*/
  .services-hero-text h1 {
    font-size: 30px;
  }

  .services-hero-text p {
    font-size: 16px;
  }

  /* Scroll CTA arrow */
  .services-hero-text p strong {
    font-size: 18px;
    margin-top: 1em;          /* space between paragraph and arrow */
    display: inline-block;
  }

  .services-hero-text p strong::after {
    font-size: 26px;          /* slightly smaller arrow on mobile */
    display: block;           /* puts arrow on its own line below text */
    margin: 6px auto 0;       /* center horizontally with a little spacing */
  }
}

  /* ===============================
     SERVICES — HORIZONTAL SCROLL FIX
  ==============================*/
  .services-track {
    display: flex;
    gap: 15px;                   /* small spacing between cards */
    padding: 0 10px;              /* minimal padding to prevent overshoot */
    overflow-x: auto;
    scroll-snap-type: none;       /* disable snap on mobile */
    scroll-behavior: smooth;
    width: 100%;                  /* limit container width to viewport */
    box-sizing: border-box;       /* include padding in width */
  }

  .service-card {
    flex: 0 0 auto;               /* allow natural width */
    width: 90%;                   /* take 90% of viewport */
    max-width: 350px;             /* optional max width */
    scroll-snap-align: none;      /* disable snap */
    margin-right: 15px;           /* spacing between cards */
  }

  .service-card h2 {
    font-size: 26px;
  }

  .service-card p {
    font-size: 16px;
  }
}
/* ===============================
   About Hero Column Centering
=================================*/
.about-hero-column {
  display: flex;
  flex-direction: column;
  align-items: center;        
  justify-content: flex-start; 
  text-align: center;        
  gap: 2em;                   
  padding: 6em 1em 2em;       
  width: 100%;
}

/* Header */
.about-hero-header {
  opacity: 0;                
  transition: opacity 2.5s ease; 
  font-size: 36px;
  color: #85b09a;
  margin: 2.5em 0 1em 0; /* desktop margin remains */
}

/* Image */
.about-hero-image {
  opacity: 0;                
  transition: opacity 2.5s ease;
  margin-top: -5em; /* desktop gap remains */
  max-width: 100%;
  display: block;
}

/* Story paragraph - desktop */
.about-story-text {
  font-size: 18px;
  color: #fffaff;
  line-height: 1.7;
  max-width: 1300px;        /* constrain to ~3 lines on desktop */
  margin: 1.5em auto 0;
  text-align: center;
  padding: 0 1em;
  word-wrap: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Active / visible */
.visible {
  opacity: 1 !important;
}

/* ===============================
   Mobile adjustments (About Us Page)
=================================*/
@media (max-width: 480px) {

  /* Hero column spacing and full-width fix */
  .about-hero-column {
    padding-top: 0 !important;  /* released rigid top spacing */
    gap: 1.5em;
    display: block !important;      
    width: 100% !important;
    text-align: center;             
  }

  /* Header tweaks for mobile */
  .about-hero-header {
    font-size: 30px !important;
    line-height: 1.3 !important;
    margin: 1.5em 0 1em 0 !important;  /* spacing from nav */
    text-align: center;
  }

  /* Hero image spacing below header */
  .about-hero-image {
    max-width: 320px;
    margin-top: -5em !important;  /* control spacing freely */
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Story paragraph — MOBILE FIX */
  .about-story-text {
    font-size: 16px;
    line-height: 1.6;
    width: 90% !important;        
    max-width: 90% !important;    
    margin: 3em auto 0 !important; /* move paragraph down */
    padding: 0 !important;        
    box-sizing: border-box;
    text-align: center;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  /* ===============================
     Mission / Vision / Values Columns (MVV)
  =================================*/
  /* Stack columns vertically, full width */
  .wp-block-columns.is-layout-flex {
    display: block !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Individual columns full width, match Mission */
  .wp-block-columns.is-layout-flex > .wp-block-column {
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto 2em auto;
    padding: 0 !important;
    box-sizing: border-box;
    text-align: center;
  }

  /* Images inside MVV columns */
  .wp-block-columns.is-layout-flex > .wp-block-column figure img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.5em !important; /* spacing below top of column */
  }

  /* Move Vision column up on mobile only */
  .wp-block-columns.is-layout-flex > .wp-block-column:first-child {
    margin-top: -2em !important; /* shift Vision up */
  }

  /* Move Values column down on mobile only */
  .wp-block-columns.is-layout-flex > .wp-block-column:last-child {
    margin-top: 6em !important; /* shift Values down */
  }

  /* Headings inside MVV columns */
  .wp-block-columns.is-layout-flex > .wp-block-column h2 {
    font-size: 30px !important;
    line-height: 1.3 !important;
    margin: 1em 0 0.5em 0 !important;
    text-align: center !important;
  }

  /* Paragraphs inside MVV columns */
  .wp-block-columns.is-layout-flex > .wp-block-column p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1em auto 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
}

/* ===============================
   Team Section
=================================*/

/* Wraps each member */
.team-member-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;                
  text-align: center;
  margin: 1em;             
}

/* Name as H3 */
.team-member-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  color: #3e6990;
  margin: 0;               
}

/* Hint line */
.team-member-hint {
  font-size: 12px;
  font-style: italic;
  color: #fffaff;
  margin: 0;               
}

/* Images */
.team-member-image {
  display: block;
  max-width: 648px;        
  height: auto;            
  cursor: pointer;
  margin-bottom: 0.8em;    
  object-fit: cover;
}

/* Optional: adjust spacing for smaller screens */
@media (max-width: 768px) {
  .team-member-column {
    gap: 2px;
    margin: 0.8em;
  }
  .team-member-name {
    font-size: 16px;
  }
  .team-member-hint {
    font-size: 11px;
  }
  .team-member-image {
    max-width: 150px;
  }
}

/* ===============================
   Responsive adjustments
=================================*/
@media (max-width: 768px) {
  .team-member-column {
    gap: 1px;
  }
  .team-member-image {
    max-width: 80%;
    margin-bottom: 0.25em;
  }
  .team-member-name {
    font-size: 16px;
  }
  .team-member-hint {
    font-size: 11px;
  }
}
/* ===============================
   Meet the Team — Mobile Adjustments
=================================*/
@media (max-width: 480px) {

  /* Meet the Team header */
  h2.wp-block-heading:contains("Meet Your Team") {
    font-size: 30px !important;       /* match other headers */
    line-height: 1.3 !important;
    text-align: center !important;
    margin: 1.5em 0 1em 0 !important;
  }

  /* Team member images - match hero image width */
  .team-member-image {
    max-width: 320px !important;      /* same as hero image */
    width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  /* Add spacing for the first image (Jeff) from the header */
  .team-member-column:first-child .team-member-image {
    margin-top: 2em !important;       /* Jeff stays where he is */
  }

  /* Team member names - middle ground between paragraph and header */
  .team-member-name {
    font-size: 26px !important;       /* between 16px and 30px */
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0.5em 0 -0.5em 0 !important; /* reduce gap to hint line */
  }

  /* Hint lines - keep consistent and close to names */
  .team-member-hint {
    font-size: 12px !important;
    text-align: center !important;
    margin-top: 0 !important;
  }

  /* Stack team columns vertically, full width */
  .team-member-column {
    width: 90% !important;
    max-width: 90% !important;
    padding: 0 !important;
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto 0em auto !important; /* default spacing for all */
  }

@media (max-width: 480px) {

  /* Shift all team members except the first column (Jeff) up */
  .wp-block-columns.is-layout-flex > .wp-block-column:not(:first-child) .team-member-column {
      margin-top: -6em !important; /* adjust as needed */
  }

}
	/* MVV Header */
  h2.wp-block-heading:contains("What Drives Us") {
    font-size: 30px !important;       /* match other headers */
    line-height: 1.3 !important;
    text-align: center !important;
    margin: 1.5em 0 1em 0 !important;
  }
/* ===============================
   HERO OVERLAY
=================================*/
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  background: rgba(10,9,12,0);
  transition: background 1s ease;
}

.hero-overlay.visible {
  background: rgba(10,9,12,0.45);
}

.hero-text {
  pointer-events: auto;
  max-width: 900px;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-overlay.visible .hero-text {
  opacity: 1;
}

.hero-text h1 {
  color: #85b09a;
  font-size: 48px;
  margin: 0.5em 0;
}

.hero-text p {
  color: #fffaff;
  max-width: 900px;
  margin: 0 auto;
}

/* ===============================
   CTA BUTTONS
=================================*/
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 3em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.5s ease;
  pointer-events: auto;
}

.hero-overlay.visible .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #85b09a;
  border-radius: 8px;
  color: #fffaff;
  text-decoration: none;
  font-size: 18px;
  text-align: center;
}

.hero-buttons a:hover {
  background: #fffaff;
  color: #85b09a;
}

/* ===============================
   RESPONSIVE HERO
=================================*/
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 20px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-buttons a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}
