/* === FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* === COLOR SYSTEM === */
  /* Primary Colors */
  --purple-50: hsl(260, 100%, 95%);
  --purple-300: hsl(264, 82%, 80%);
  --purple-500: hsl(263, 55%, 52%);
  
  /* Neutral Colors */
  --white: hsl(0, 0%, 100%);
  --grey-100: hsl(214, 17%, 92%);
  --grey-200: hsl(0, 0%, 81%);
  --grey-400: hsl(224, 10%, 45%);
  --grey-500: hsl(217, 19%, 35%);
  --dark-blue: hsl(219, 29%, 14%);
  --black: hsl(0, 0%, 7%);
  
  /* === TYPOGRAPHY === */
  --font-family: 'Barlow Semi Condensed', sans-serif;
  --font-size-base: 13px;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  
  /* === LAYOUT === */
  --mobile-width: 375px;
  --desktop-width: 1440px;
  
  /* === SPACING SYSTEM === */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

/* === MODERN CSS RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  color: var(--grey-500);
  background-color: var(--grey-100);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

blockquote {
  quotes: none;
}

blockquote::before,
blockquote::after {
  content: '';
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--white);
}

h2 {
  font-size: 1rem;
}

p {
  line-height: 1.6;
}

/* === MAIN LAYOUT STRUCTURE === */
.hero {
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials {
  width: 100%;
  max-width: 1158px;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  margin: 0 auto;
}

/* === SHARED TESTIMONIAL CARD STYLES === */
.testimonials > div {
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

/* === UPDATED SHARED HEADER STYLES === */
.testimonials header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonials .profile__image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* === TEXT CONTAINER FOR VERTICAL STACKING === */
.testimonials .profile__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonials .profile__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.testimonials .profile__status {
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0;
  line-height: 1.2;
}

/* === SHARED QUOTE STYLES === */
.testimonials .testimonial__quote {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

/* === SHARED CONTENT STYLES === */
.testimonials .testimonial__content {
  font-size: 13px;
  line-height: 1.6;
}

/* === DANIEL'S CARD (CART-ONE) COMPLETE STYLING === */
.testimonials .cart-one {
  grid-column: 1 / 3;
  grid-row: 1;
  background-color: hsl(263, 55%, 52%);
  color: hsl(0, 0%, 100%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Daniel's Quote Icon */
.testimonials .cart-one .quote__icon {
  position: absolute;
  top: 0;
  right: 6rem;
  width: 104px;
  height: auto;
  opacity: 0.5;
  z-index: 1;
}

/* Daniel's Profile Image */
.testimonials .cart-one .profile__image {
  border: 2px solid hsl(264, 82%, 80%);
}

/* Daniel's Name */
.testimonials .cart-one .profile__name {
  color: hsl(0, 0%, 100%);
}

/* Daniel's Status */
.testimonials .cart-one .profile__status {
  color: hsl(264, 82%, 80%);
}

/* Daniel's Quote */
.testimonials .cart-one .testimonial__quote {
  color: hsl(0, 0%, 100%);
  position: relative;
  z-index: 2;
}

/* Daniel's Content */
.testimonials .cart-one .testimonial__content {
  color: hsl(260, 100%, 95%);
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

/* Ensure Daniel's header appears above quote icon */
.testimonials .cart-one header {
  position: relative;
  z-index: 2;
}

/* === CART-TWO (JONATHAN) - GRAY BACKGROUND === */
.testimonials .cart-two {
  grid-column: 3;
  grid-row: 1;
  background-color: var(--grey-500);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.testimonials .cart-two .profile__name {
  color: var(--white);
}

.testimonials .cart-two .profile__status {
  color: var(--white);
  opacity: 0.7;
}

.testimonials .cart-two .testimonial__quote {
  color: var(--white);
}

.testimonials .cart-two .testimonial__content {
  color: var(--white);
  opacity: 0.7;
}

/* === CART-THREE (JEANETTE) - WHITE BACKGROUND === */
.testimonials .cart-three {
  grid-column: 1;
  grid-row: 2;
  background-color: var(--white);
  color: var(--grey-500);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonials .cart-three .profile__name {
  color: var(--grey-500);
}

.testimonials .cart-three .profile__status {
  color: var(--grey-500);
  opacity: 0.7;
}

.testimonials .cart-three .testimonial__quote {
  color: var(--grey-500);
}

.testimonials .cart-three .testimonial__content {
  color: var(--grey-500);
  opacity: 0.7;
}

/* === CART-FOUR (PATRICK) - DARK BLUE BACKGROUND === */
.testimonials .cart-four {
  grid-column: 2 / 4;
  grid-row: 2;
  background-color: var(--dark-blue);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.testimonials .cart-four .profile__name {
  color: var(--white);
}

.testimonials .cart-four .profile__status {
  color: var(--white);
  opacity: 0.7;
}

.testimonials .cart-four .testimonial__quote {
  color: var(--white);
}

.testimonials .cart-four .testimonial__content {
  color: var(--white);
  opacity: 0.7;
}

/* === CART-FIVE (KIRA) - WHITE BACKGROUND === */
.testimonials .cart-five {
  grid-column: 4;
  grid-row: 1 / 3;
  background-color: var(--white);
  color: var(--grey-500);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonials .cart-five .profile__name {
  color: var(--grey-500);
}

.testimonials .cart-five .profile__status {
  color: var(--grey-500);
  opacity: 0.7;
}

.testimonials .cart-five .testimonial__quote {
  color: var(--grey-500);
}

.testimonials .cart-five .testimonial__content {
  color: var(--grey-500);
  opacity: 0.7;
}

/* === FOOTER STYLING === */
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 2rem;
  color: hsl(217, 19%, 35%);
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

/* === RESPONSIVE MOBILE LAYOUT === */
@media (max-width: 768px) {
  .testimonials {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 1rem;
  }
  
  .testimonials .cart-one,
  .testimonials .cart-two,
  .testimonials .cart-three,
  .testimonials .cart-four,
  .testimonials .cart-five {
    grid-column: 1;
    grid-row: auto;
  }
  
  .hero {
    padding: 1rem;
  }
}
