/* =========================
   General Page Styles
   ========================= */

body {
  margin: 0;
  font-family: "hoss-round-slab", sans-serif;
  font-weight: 300;
  background-color: #faf8f6;
  color: #2c2c2c;
  line-height: 1.6;
}

h1 {
  font-family: "hoss-round-slab", sans-serif;
  font-weight: 900;
  font-style: normal;
  margin-top: 0;
  color:#544131;
}

h2, h3 {
  font-family: "hoss-round-slab", sans-serif;
  font-weight: 700; /* changed from 900 to 700 */
  font-style: normal; /* removed italic if present */
  color: #544131;
}

/* Layout */
header, main, footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================
   Header + Navigation
   ========================= */

header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  position: relative;
  z-index: 50; /* keeps nav dropdown above hero */
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}


nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

/* Navigation links */
nav a {
  text-decoration: none;
  color: #b2937b; 
  font-weight: 300;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  background-color: #efe6f4;
}


nav li {
  position: relative;
}

nav li ul {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  list-style: none;
  background: white;
  border: 1px solid #ddd;
  padding: 5px 0;
  border-radius: 6px;
  z-index: 100; 
}

nav li:hover ul {
  display: block;
}

nav li ul li a {
  display: block;
  padding: 8px 12px;
  color: #b2937b;
}

nav li ul li a:hover {
  background-color: #f0e6f8;
}

/* =========================
   HERO carousel
   ========================= */

#hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw); /* math hard this is fine */
  overflow: hidden;
  margin-bottom: 40px;
  padding: 0;
  z-index: 0; /* keeps it below header */
}

.carousel {
  position: relative;
  width: 100%;
  height: clamp(320px, 60vh, 620px);
  overflow: hidden;
}

/* Stack slides for fade animation */
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  animation: fade 15s infinite;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills nicely without blow-up */
  display: block;
}

/* Floating caption in bottom right */
.carousel__slide figcaption {
  position: absolute;
  bottom: 25px;
  right: 25px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1rem;
  text-align: right;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Keyframes for fading between 3 slides */
@keyframes fade {
  0%, 30% {
    opacity: 1;
    z-index: 1;
  }
  33%, 100% {
    opacity: 0;
    z-index: 0;
  }
}

/* Delays for each slide */
.carousel__slide:nth-child(1) {
  animation-delay: 0s;
}
.carousel__slide:nth-child(2) {
  animation-delay: 5s;
}
.carousel__slide:nth-child(3) {
  animation-delay: 10s;
}

/* Hide unused buttons */
.carousel__button { display: none; }

/* =========================
   INTRO SECTION BELOW HERO
   ========================= */

#intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

#intro h2 {
  font-weight: 900;
  font-style: normal;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#intro p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
  max-width: 70ch;
}

#intro a {
  color: #b2937b;
  text-decoration: none;
  font-weight: 700;
}

#intro a:hover {
  background-color: #f1e8e1;
}

/* =========================
   FOOTER
   ========================= */

footer {
  border-top: 1px solid #ddd;
  text-align: left;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #666;
}

/* =========================
   Flower Profile Pages
   ========================= */

.flower-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.flower-page h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.flower-page > section p {
  font-size: 1rem;
  color: #444;
  max-width: 70ch;
}

/* Layout for each color profile */
.profile-grid {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 48px; /* increased space between each profile card */
}

.profile-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* Square image area */
.profile-card figure {
  margin: 0;
  width: 220px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #eee;
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.profile-text p {
  margin: 0;
  font-size: 0.98rem;
  color: #444;
}

/* Stack on smaller screens */
@media (max-width: 640px) {
  .profile-card {
    flex-direction: column;
  }

  .profile-card figure {
    width: 180px;
    height: 180px;
  }
}