@import './style.css';


/* === Services Row (Top Cards) === */
.services-header {
  position: relative; /* ensures the h1 is positioned relative to this container */
  color: rgb(var(--grey-800));
  text-align: center;
  margin-top: 3rem;
  font-family: 'Geist';
}

.services-header h1 {
  text-transform: uppercase;
  letter-spacing: 10px;
}

.service-description{
  padding: 0rem 1rem;
  font-weight: 300;
}

.services-header .tooltip:after { 
  content: attr(title);
  color:rgb(var(--grey-500));
  display: block;           /* force new line */
  margin-top: 10px;
  font-size: 0.5em;         
} 

.services-header .tooltip{
  position: relative;
  cursor: default; /* optional */
}

#services-pitch-container{
    display:flow-root;
    align-items: anchor-center;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1400px;
  padding: 0 2rem;
  color:rgb(var(--grey-800))
}

.service-items {
  border: 1px solid rgb(var(--grey-300));
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}

.service-items:hover svg {
  animation: spin 1s linear infinite;
}

.service-items.active:hover svg {
  animation: none;
}


@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.service-items img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: grayscale(1);
}

.service-items img.active {
  filter: grayscale(0);
}

.service-items:hover img {
  opacity: 1;
  filter: none;
}

.service-items svg {
    width: 16px;
    height: 16px;
    stroke: #000;
    cursor: pointer;
    justify-self: end;
    vertical-align: bottom;
    margin: 0 0.3rem
}


.service-header h1 {
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
  font-family: "Geist";
  letter-spacing:  4px;
}

.service-intro {
  padding: 1rem;
  font-size: 0.8rem;
  color: rgb(var(--grey-800));
  letter-spacing: 1px;
}

.service-intro p{
    padding: 1rem;
    font-weight: bold;
}

.service-intro .audience{
    border: 1px solid rgb(var(--grey-300));
    padding: .5rem;
    border-radius: 45%;
    display: inline-block;
    margin: .5rem 0;
    font-size: 0.7em;
    background-color: rgb(var(--grey-150));
    color: rgb(var(--grey-800));
}

.service-footer {
  margin-top: auto;
  padding: 1rem;
}
.service-footer button {
  border: 1px solid rgb(var(--grey-300));
  color: rgb(var(--grey-800));
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  background-color: transparent;
}


/* === Pitches (Full-Width Rows Below) === */
#pitch-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: 6rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

.service-pitch {
  border-radius: 8px;
  padding: 3rem 2rem;
  color: rgb(var(--grey-700));
  display: inline-table;
  background: rgba(var(--grey-200), .7); /* light lavender like Brand Foundation */
  cursor: pointer;
}

/* Pitch Layout */
.pitch-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  font-family: 'Geist';
}
.pitch-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 4px;
}
.pitch-intro p {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 1px;
  font-weight: bold;
}

.pitch-description {
  line-height: 1.25rem;
}

.pitch-package-items ul {
  list-style: none;
  padding: 0;
  gap: 2rem
}
.pitch-package-items li {
  margin-bottom: 0.5rem;
  position: relative;
  padding: 1.2rem;
  min-height: 50px
}
.pitch-package-items li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: rgb(var(--grey-500));
}

.pitch-items:hover svg {
  animation: spin 1s linear infinite;
}

.pitch-items.active:hover svg {
  animation: none;
}

.pitch-items svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
  justify-self: end;
  vertical-align: text-bottom;
}

.pitch-items img {
    width: 100%;
    border-radius: 5px;
    height: 250px;
    padding: .25rem;
    object-fit: cover;
    object-position: top;
    display: flex;
    filter:grayscale(1);
    transition: filter 0.3s ease;
}

.pitch-items img.active {
  filter: grayscale(0);
}

.pitch-items:hover img {
  opacity: 1;
  filter: none;
}

/* Timeline (like your day cards at bottom) */
.pitch-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.pitch-timeline .day-card {
  border: 1px solid rgb(var(--grey-500));
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  align-content: center;
}

.pitch-footer {
    margin: 0 auto;
    width: 100%;
    display: grid;
    place-content: flex-end;
}

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

#contact-button{
    color:rgb(var(--grey-800));
    background-color: transparent;
    margin: 1rem;
    font-weight: 600;
}



/* Responsive */
@media (max-width: 768px) {
  .pitch-items {
    grid-template-columns: 1fr;
    font-size: 0.8rem
  }

  .pitch-items img {
    width: 100%;
    border-radius: 5px;
    height: auto;
    padding: .25rem;
    object-fit: cover;
    object-position: top;
    display: flex;
    filter:grayscale(1);
    transition: filter 0.3s ease;
}
}
