
/* ==========================================================================
   HERO BANNER COMPONENT
   ========================================================================== */

/* Outer Banner Wrapper - Full bleed gradient */
.hero-banner {
  width: 100%;
  background: linear-gradient(135deg, #20a25f 0%, #1f9b5a 50%, #1e9758 100%);
  color: #ffffff;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevents overflow from large assets */
}

/* Inner Container */
.hero-banner .hero-container {
  display: flex;
  align-items: flex-end; /* Align items to the bottom so image sits flush */
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 3rem 2rem 0 2rem; /* Bottom padding is 0 to allow image flush fit */
  gap: 2rem;
}

/* --- LEFT COLUMN: CONTENT --- */
.hero-banner .hero-content {
  flex: 1 1 65%;
  max-width: 850px;
  padding-bottom: 2.8rem; /* Space at the bottom for text content */
}

.hero-banner .hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem 4rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-banner .hero-description {
  font-size: clamp(1ewm, 1.2vw, 1.2rem);
  font-family: 'Fredoka', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #d5e7da;
  margin: 0 0 0rem 4rem;
  max-width: 600px;
  text-wrap: balance;
}

/* --- RIGHT COLUMN: IMAGE --- */
.hero-banner .hero-image-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-right: 6rem; /* Adds distance between the text column and the image container */
}

.hero-banner .hero-image {
  width: clamp(120px, 18vw, 160px); /* Set your specific target size here */
  max-width: 100%; /* Keeps it responsive so it doesn't overflow on smaller screens */
  height: auto;
  display: block; /* Removes baseline image gap */
  object-fit: contain;
}

/* ==========================================================================
   TABLET & SMALL LAPTOP BREAKPOINT (1024px and down)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-banner .hero-container {
    padding: 2.5rem 2rem 0 2rem;
  }
  
  .hero-banner .hero-content {
    max-width: 100%; /* Utilize full width before image */
  }

  .hero-banner .hero-image-wrapper {
  margin-right: 9vw;
  }
  
  .hero-banner .hero-title {
  margin-left: 6vw;
  }

  .hero-banner .hero-description {
  margin-left: 6vw;
  }
}

/* ==========================================================================
   MOBILE OVERRIDES (Under 600px) - Pure CSS Grid Layout
   ========================================================================== */
@media (max-width: 600px) {
  .hero-banner .hero-container {
    display: grid;
    grid-template-columns: 1fr auto; /* Left col: remaining space, Right col: image width */
    grid-template-areas:
      "title title"   /* Row 1: Headline spans full top width */
      "desc image";   /* Row 2: Description on LEFT, Image on RIGHT */
    align-items: end; /* Ground both to bottom edge */
    padding: 1.5rem 1.25rem 0 1.25rem;
    gap: 0.85rem;
  }

  .hero-banner .hero-content {
    display: contents; 
  }

  .hero-banner .hero-title {
    word-spacing: -2px;
    grid-area: title;
    font-size: 1.85rem;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 6vw 0 0.8vw 2.6vw
  }

  .hero-banner .hero-description {
    grid-area: desc;
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0 0 6vw 2.6vw;
    padding-bottom: 0.75rem;
    letter-spacing: -0.02em;
  }

  .hero-banner .hero-image-wrapper {
    grid-area: image;
    display: flex;
    align-items: flex-end;
     margin-right: 4vw;
  }

  .hero-banner .hero-image {
    width: 85px;
    height: auto;
    display: block;
  }
}

/* ==========================================================================
   SECTION & CARDS CONTAINER
   ========================================================================== */

/* Outer Section: Controls screen padding and centers the cards column */
.cards-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the card boxes horizontally on screen */
  gap: 1.75rem;
  width: 100%;
  max-width: 750px; /* Constrains column width on wide monitors */
  margin: 3rem auto;
  padding: 0 1.25rem; /* Prevents touching screen edges */
  box-sizing: border-box;
}

/* Individual Card Styling */
.cards-section .card {
  position: relative;
  width: 92%;
  background-color: #ffffff;
  border: 1.2px solid #2b2d2f;
  padding: 4rem 3rem;
  box-sizing: border-box;
  text-align: left; /* All content left-aligned */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cards-section .card:hover {
  box-shadow: 0 8px 28px rgba(255, 92, 60, 0.025);
}

/* ==========================================================================
   TILTED FLOWER / CLOUD BADGE
   ========================================================================== */
.cards-section .badge-flower {
  position: absolute;
  top: -14px;
  left: 20px;
  background-color: #2e282a; /* Accent badge background */
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: 'CCWildWordsLower', sans-serif;
  letter-spacing: 0.06rem;
  
  
  /* Creates a precise 6-petal scalloped flower shape */
  --s: 45px;/* adjust to control the size */
  width: var(--s); 
  aspect-ratio: 1;
  --g:/calc(var(--s)*0.242) calc(var(--s)*0.242) radial-gradient(50% 50%,#000 99%,#0000 101%) no-repeat;
  mask: calc(50% + var(--s)*0.348) calc(50% + var(--s)*0) var(--g),calc(50% + var(--s)*0.246) calc(50% + var(--s)*0.246) var(--g),calc(50% + var(--s)*0) calc(50% + var(--s)*0.348) var(--g),calc(50% + var(--s)*-0.246) calc(50% + var(--s)*0.246) var(--g),calc(50% + var(--s)*-0.348) calc(50% + var(--s)*0) var(--g),calc(50% + var(--s)*-0.246) calc(50% + var(--s)*-0.246) var(--g),calc(50% + var(--s)*0) calc(50% + var(--s)*-0.348) var(--g),calc(50% + var(--s)*0.246) calc(50% + var(--s)*-0.246) var(--g),radial-gradient(calc(var(--s)*0.428),#000 99%,#0000 101%) subtract,calc(50% + var(--s)*0.484) calc(50% + var(--s)*0.2) var(--g),calc(50% + var(--s)*0.2) calc(50% + var(--s)*0.484) var(--g),calc(50% + var(--s)*-0.2) calc(50% + var(--s)*0.484) var(--g),calc(50% + var(--s)*-0.484) calc(50% + var(--s)*0.2) var(--g),calc(50% + var(--s)*-0.484) calc(50% + var(--s)*-0.2) var(--g),calc(50% + var(--s)*-0.2) calc(50% + var(--s)*-0.484) var(--g),calc(50% + var(--s)*0.2) calc(50% + var(--s)*-0.484) var(--g),calc(50% + var(--s)*0.484) calc(50% + var(--s)*-0.2) var(--g);
  /* Tilts the badge */
  transform: rotate(-12deg);
  
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  user-select: none;
}

.cards-section .badge-flower span {
  display: block;
  transform: rotate(2deg); /* Minor counter-adjustment for text alignment */
  line-height: 1;
}
/* ==========================================================================
   CARD TYPOGRAPHY & BUTTONS
   ========================================================================== */

.cards-section .card-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.cards-section .card-description {
  font-size: 1rem;
  font-family: 'Fredoka', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 1.5rem 0;
  max-width: 750px; /* Prevents line length from stretching too far */
}

/* Left-aligned Arrow Button */
.cards-section .card-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #059669; /* Accent green color */
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  text-decoration: underline;
}

.cards-section .card-button .arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.cards-section .card-button:hover {
  color: #047857;
}

.cards-section .card-button:hover .arrow-icon {
  transform: translateX(5px); /* Smooth slide effect on hover */
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 600px) {
  .cards-section {
    padding: 1rem 1.1rem 0 1.1rem;
    gap: 1.25rem;
    margin: 2rem auto;
  }

  .cards-section .card {
    padding: 2.4rem 2.6rem;
    margin-bottom: 3vw;
  }

  .cards-section .card-heading {
    font-size: 1.35rem;
  }

  .cards-section .card-description {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   SIMPLE LETTER / MESSAGE SECTION
   ========================================================================== */

.letter-section {
  width: 100%;
  max-width: 760px;          /* Optimal measure for readable prose */
  margin: 6vw auto;         /* Centers the block on the page */
  margin-top: 5vw;
  padding: 0 2rem;            /* Default padding for laptops and desktop */
  box-sizing: border-box;
  text-align: left;           /* Forces left alignment for all child text */
  color: #424446;             /* Clean, high-contrast text color */
}

/* Base typography spacing for paragraphs within the letter */
.letter-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  color: #424446f2;  
}

/* Headings within the letter section */
.letter-section h2,
.letter-section h5 {
  line-height: 1.25;
  margin: 0 0 1.25rem 0;
  color: hsl(222, 100%, 54%);
}

/* Mobile Padding Adjustment */
@media (max-width: 600px) {
  .letter-section {
    margin: 20vw auto;         /* Centers the block on the page */
    padding: 0 1.25rem;       /* Slightly tighter side padding for phone screens */
  }

  .letter-section p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .letter-section h2,
  .letter-section h3 {
    font-size: 1.5rem;
  }
}