/* round up of all css for the templates 
page-what-we-do.php 
page-service.php
*/

h1, h2 {font-weight: 600;} 
.post-thumbnail {
  display: none; /* should probably remove from theme code instead */
}


h1.animate-heading {
  font-size: calc(2.5rem + 1.95vw);
  color: black;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 3rem;
  /* Match the height of the container */
  transform: translateY(0);
  /* Ensure it starts within the container */
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 1rem 0 1rem 3%;
  font-weight: 600;
}

.animate-text-p {
  opacity: 0;
  text-wrap: pretty;
  transform: translateY(220px) translateX(220px);
}


@media screen and (min-width: 900px) {

  :root {
	--card-height: 50vw;
	--card-margin: 10vw;
	--card-top-offset: 1em;
	--outline-width: 0px;
}

#cards {
	/* Make place at bottom, as items will slide to that position*/
	padding-bottom: calc(var(--numcards) * var(--card-top-offset));
	/* Don't include the --card-margin in padding, as that will affect the scroll-timeline*/
	margin-bottom: var(--card-margin);
}

#card_1 {
	--index: 1;
}

#card_2 {
	--index: 2;
}

#card_3 {
	--index: 3;
}

#card_4 {
	--index: 4;
}

.wwd-card {
	position: sticky;
	top: 3rem;
	padding-top: calc(var(--index) * var(--card-top-offset));
}

.wwd-card {
		max-width: 1400px;
    margin: auto;
}

.wwd-card-content {
	transform-origin: 50% 0%;
	will-change: transform;
}

.wwd-card-copy p, .wwd-card-copy ul li {
  font-size: 1rem;
}


#cards {
	list-style: none;
	outline: calc(var(--outline-width) * 10) solid hotpink;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: repeat(var(--numcards), var(--card-height));
	gap: var(--card-margin);
  margin:0;
  padding: 0;
}

.wwd-card-content {
	box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.1), 0 1em 2em rgba(0, 0, 0, 0.1);
	background:#F7F1E9;
	border: 2px solid #000;
  border-radius: 2rem;
	color: #000;
	overflow: hidden;
	display: grid;
	grid-template-areas: "text img";
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
	align-items: stretch;
/*	outline: var(--outline-width) solid blue;*/
}

.wwd-card-content h2 {
    font-size: calc(2rem + 1.5vw);
    color: black;
		font-weight: 700;
		font-style: normal;
		border-bottom: 2px solid #000;
    margin: 0;
    margin-top: 1rem;
		padding: 1rem 0;
    width: 100%;
    line-height: calc(2rem + 1.5vw);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
   /* padding: 1rem 0 1rem 3%;*/
}

.wwd-card-content p { 
   text-wrap:balance;
}

.wwd-card-content > div {
	grid-area: text;
	width: 80%;
	place-self: start center; /* Top-align vertically and center horizontally */
	text-align: left;
	display: grid;
	gap: 1em;
	place-items: start;
}

.wwd-card-content  ul {
	list-style-type: none;
	margin: 0;
	font-weight: 700;
	font-family: "acumin-variable", sans-serif;
  font-variation-settings: "slnt" 0, "wdth" 67.5, "wght" 700;
  font-style: normal;
	font-size: 1.2rem;
	width: 100%;
	margin:0;
	padding: 0;
}

.wwd-card-content li {
    padding: 0.25rem 0;
    float: left;
    margin: .2rem;
    padding: .2rem .8rem;
    border-radius: .6rem;
    background: white;
    text-transform: uppercase;
}

.wwd-card-content > figure {
  grid-area: img;
  display: flex; /* Use flexbox for alignment */
  justify-content: center; /* Horizontally center the image */
  align-items: flex-end; /* Vertically align the image to the bottom */
  overflow: hidden;
}

.wwd-card-content figure img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; /* Ensure the image fits within the container */
}


}

/*temp */

#wwd-masthead {
    width: 100vw;
    height: 90vh;
    min-height: 700px;
    background-color: black;
    position: relative;
    overflow: hidden;
}

#wwd-capabilities {
	background: #000;
}
#wwd-intro {
	height: 60vh !important;
  padding: 1rem;
}
.wwd-card-copy{
  margin-bottom:1rem;
}
.wwd-card-copy ul {
  margin: 0;
  padding: 10px;
  padding-left: 2rem;
}
@media (min-width: 769px) {
.wwd-card-copy ul {
  padding: 0;
}
}

/* page-service.php small left tab - contolled by motion animation */
.service-tab {
  position: fixed;
  font-size: calc(1rem + 1.2vw);
  line-height: calc(1rem + 1vw);
  margin-left: calc(-.6rem);
  writing-mode: vertical-lr;
  text-align: center;
  color: #F7F1E9;
  padding: calc(.6rem + .2vw);
  transform: rotate(180deg);
  border-left: 2px solid #F7F1E9;
  border-bottom: 2px solid #F7F1E9;
  border-top: 2px solid;
  border-radius: 1rem 0 0 1rem;
  background-color: black;
  font-family: source-serif-pro, serif;
  font-weight: 600;
  font-style: normal;
  top: 25%;
  transform: rotate(180deg)!important; /* Adjust vertical offset */
  z-index: 100;
  height: auto;
  overflow: visible; 
  opacity: 0;
}

.service-tab .title {
  height: auto;
  display: block;
}

/* all the borders are set on sections in kadence blocks */

#serviceIntro h2 {
  margin-left:3%;
  margin-right:3%;
  margin-bottom:2%;
  text-wrap:balance;
  font-size: calc(1.2rem + 1.4vw);
  font-weight: 700;
  font-style: normal;
}

#serviceIntro ul {
  list-style-type: none;
  margin: 0;
  font-weight: 700;
  font-family: "acumin-variable", sans-serif;
  font-variation-settings: "slnt" 0, "wdth" 67.5, "wght" 700;
  font-style: normal;
  font-size: 1.2rem;
  width: 100%;
  margin:0;
  padding: 0;
}

#serviceIntro ul li a {
  padding: 0.25rem 0;
  float: left;
  margin: .5rem;
  margin-left:0;
  padding: .2rem .8rem;
  border-radius: .6rem;
  background: white;
  text-transform: uppercase;
  border:0;
  text-decoration:none;
  transition: 0.5s;
}

#serviceIntro ul li a:hover {
  background-color:#ffd400;
}
.vertical-tab { 
  display: none;
  opacity: 0;
}
@media (min-width: 769px) {

.vertical-tab {
    display: block;
    opacity: 1;
    position: absolute;
    bottom: 0;
    right: 0;
    writing-mode: vertical-lr;
    text-align: center;
    color: black;
    font-size: 14px;
    padding: 0px;
    padding-left: 10px;
    padding-top: 35px;
    padding-bottom: 25px;
    padding-right: 10px;
    line-height: 1;
    transform: rotate(180deg);
    text-transform: uppercase;
    font-weight: 500;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    transition: 0.5s;
  }
}

  .servicesBlock {
    z-index:1;
  }
  
.servicesBlock h3 {
  font-size: calc(1.4rem + 1.6vw);
  text-wrap: balance;
  line-height: calc(1.4rem + .8rem);
}

.servicesBlock h3, .servicesBlock p {
  margin-top:0;
}

.fixedMasthead {
/*position:fixed; 
z-index:0;*/
}


#ServicesContact {
	position: relative;
	background-color: black;
	color: white;
	height: 40vh;
	display: flex;
  flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#ServicesContact h1 {
  /*background-color: transparent;*/
  font-family: "acumin-variable", sans-serif;
  font-variation-settings: "slnt" 0, "wdth" 67.5, "wght" 700;
  text-transform: uppercase;
  font-style: normal;
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  /* Responsive font size */
  line-height: 1;
  /* Adjust line-height as needed */
  letter-spacing: -.08rem;
  color: white;
  text-wrap: balance;
  margin:0;
  padding: 0;
}



.services-contact-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('/wp-content/uploads/2025/05/cooking-bkgd-01-mobile.jpg');
	background-position: center center;
	background-size: cover;
	background-attachment: scroll;
	z-index: 1;
	opacity: 0;
	transition: opacity 1s ease-in-out;
   /* iOS-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}
/* Apply fixed background only for non-iOS devices */
@supports not (-webkit-touch-callout: none) {
  .services-contact-background {
    background-attachment: fixed;
  }
}


@media screen and (min-width: 768px) {
    .services-contact-background {
        background-image: url('/wp-content/uploads/2025/03/cooking-bkgd-01.jpg');
    }	
}

.services-contact-background::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	/* Overlay color */
	z-index: 2;
}

.wwdCta:link, .wwdCta:visited {
	display: block;
	background-color: #ffd400;
	padding:1rem 1.2rem;
	text-decoration: none;  
	text-transform: uppercase;
	line-height: 100%;
	font-size: 1.1rem;
	border: 1px solid #ffd400;
  color: black;
	border-radius: 4px;
  text-align: center;
  transition: background-color 0.6s ease, color 0.3s ease;
}

a.wwdCta:hover, a.wwdCta:active {
  background-color: white; /* Change background to yellow */
  color: black; /* Change text color to black */
}

a.servicesCta {
	display: block;
	background-color: black;
	padding:1rem 1.2rem;
	text-decoration: none;  
	margin: auto;
	text-transform: uppercase;
	line-height: 100%;
	font-size: 1.1rem;
	border: 1px solid #ffd400;
  color: white;
	border-radius: 4px;
  text-align: center;
  transition: background-color 0.6s ease, color 0.3s ease;
}

a.servicesCta:hover {
  background-color: #ffd400; /* Change background to yellow */
  color: black; /* Change text color to black */
}

/*not currently used*/

#serviceHeaderGrid {
	/*position: sticky;*/
  top: 0;
	background-color: black;
	color: black;
	height: 80vh;
  max-height: 680px;
  overflow: hidden;
}

#serviceHeaderGrid .grid-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
  grid-template-columns:3fr 3fr 2fr; /* Custom widths for each column */
	/* grid-template-rows: repeat(2, 1fr);*/
	width: 100%;
	height: 100%; /* change this */
	gap: 0;
}

@media (max-width: 768px) {
  #serviceHeaderGrid .grid-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

#serviceHeaderGrid .grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
  display: block;
	opacity: 0;
}


#serviceSection {
  /* make the section carousel thinner for this template */
  max-height: fit-content;
  padding-top: 5%;
  padding-bottom: 5%;
}