* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;  
}

body {
  font-family: 'Open Sans', sans-serif;
  color: black;
  background: none;
}

.hero {
  position: relative;
  height: 350px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* <--- ADD THIS */
}

.hero-content {
  display: flex;
  align-items: flex-start; /* aligns image top with text top */
  gap: 0rem; /* spacing between text and image */
  padding-left: 0;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

/* Larger desktop mugshot image */
.mugshot-desktop img {
  width: 220px;
  height: auto;
  margin-top: 0; /* remove previous offset */
  object-fit: cover;
  max-height: 340px;

}

.mugshot {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  height: auto;
}

.mugshot img {
  width: auto;
  height: auto;
  border: none;
  margin-top: 2px;
  object-fit: cover;
}

/* Mobile-specific mugshot sizing */
.mugshot-mobile img {
  width: 140px;
  height: auto;
  max-height: 178px;
  border-radius: 4px;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem 0;
  margin-top: 2.5rem; 
}

/* Base font sizes (desktop) */
.hero-text h1 {
  font-size: 3.1rem;
  letter-spacing: -2px;
  font-weight: 900;
  line-height: 3.2rem;
  text-transform: uppercase;
  margin-bottom: .75rem;
  white-space: normal;
  max-width: 32ch; 
}

.hero-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -.5px;
  line-height: 1.2;
  color: black;
  max-width: 48ch; 
  white-space: normal;
  margin-bottom: 0.25rem;
}

.read-link {
  color: rgb(201,40,45);
  font-weight: 900;
  text-decoration: none;
  text-transform: none;
  font-size: 1.5rem;
  margin-left: 1.5rem; /* new: add space on desktop */
  transition: margin-left 0.3s ease;
}

.read-link:hover {
  text-decoration: none;
  color: rgb(133, 31, 35);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeUp 1s ease-out both;
}





/* RESPONSIVE MEDIA QUERIES */

/* Medium Tablets (like iPad Air 10.9" and iPad Mini landscape modes) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* <--- ADD THIS */
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem 0;
  margin-top: 1.5rem; 
}

.hero-text h1 {
  font-size: 3.2rem;
  letter-spacing: -2px;
  font-weight: 900;
  line-height: 3rem;
  text-transform: uppercase;
  margin-bottom: .75rem;
  /* Prevent breaking after "century" by not forcing line breaks */
  white-space: normal;
  max-width: 32ch; /* limit line length to about 32 characters to keep ~2 lines */
}

.hero-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -.5px;
  line-height: 1.2;
  color: black;
  max-width: 48ch; /* keep roughly 2 lines */
  white-space: normal;
  margin-bottom: 0.25rem;
}

.read-link {
  color: rgb(201,40,45);
  font-weight: 900;
  text-decoration: none;
  text-transform: none;
  font-size: 1.4rem;
  margin-left: 1.5rem; /* new: add space on desktop */
  transition: margin-left 0.3s ease;
}


}


/* Medium Devices - Phones (iPad Mini portrait mode) */   /* Larger phones (e.g. iPhone Pro Max) */
@media only screen and (min-width: 480px) and (max-width: 767px) {

  .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* <--- ADD THIS */
}

}

/* Base state: show desktop mugshot, hide mobile mugshot */

.mugshot-mobile {
  display: none;
}

 @media screen and (max-width: 768px) {
  .hero-text {
    background: none;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
 
  .mugshot-desktop {
    display: none;
  }

  .mugshot-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
  }

  .mugshot-mobile img {
    width: 200px;
    height: auto;
    border-radius: 4px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

 .hero-content {
    animation: fadeUp 1s ease-out forwards;
  }

  .mugshot-mobile {
    opacity: 0;
    animation: fadeUp 1s ease-out forwards 0.5s;
  }

}

/* RESPONSIVE MEDIA QUERIES */

/* Small Devices - Phones (Portrait) */ /* Small phones (e.g. iPhone 13 Mini) */
@media only screen and (max-width: 479px) {

  .hero {
    height: 350px;
    padding: 1rem 1rem 0 1rem;
    align-items: flex-start;
  }

  .hero-content {
    flex-direction: column;
    align-items: top;
    text-align: center;
    margin-top: 0;
    padding: 0rem;
    padding-bottom:0px;

  }

  .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

  .mugshot-desktop {
    display: none;
  }

  .mugshot-mobile img {
    display:none;
  }

  .hero-text {
    padding: 0 0rem;
    margin-top:0px;
    display: flex;
    flex-direction: column;
    align-items: top;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.4rem;
    line-height: 2.5rem;
    max-width: 100%;
    text-transform: none;
  }

  .hero-text h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    max-width: 100%;
    text-transform: none;
  }

  .read-link {
    font-size: 1.2rem;
    display: block;
    margin-top: 0.55rem;
    color: rgb(201,40,45);
    font-weight: 900;
    text-decoration: none;
    margin-left:0px;
    margin-top:10px;
  }
}

/* RESPONSIVE MEDIA QUERIES */


/* WORKING WORKING WORKING */
/* Small Devices - Phones (Portrait) */ /* Small phones (e.g. iPhone 13 Mini) */
/* @media only screen and (max-width: 479px) {

} */

/* Medium Devices - Phones (iPad Mini portrait mode) */   /* Larger phones (e.g. iPhone Pro Max) */
/* @media only screen and (min-width: 480px) and (max-width: 767px) {

} */

/* WORKING WORKING WORKING */
/* Some Tablets and Narrow Windows (Ipad Air 10.9" portrait, Chrome Browser, etc.) */ 
/* @media only screen and (min-width: 768px) and (max-width: 991px) {

} */

/* WORKING WORKING WORKING */
/* Medium Tablets (like iPad Air 10.9" and iPad Mini landscape modes) */
/* @media only screen and (min-width: 992px) and (max-width: 1199px) {

} */

/* Large Tablets / Small Laptops (iPad Pro 12.9″, Surface Go, etc.) */
/* @media only screen and (min-width: 1200px) and (max-width: 1439px) {

} */


/* Small devices: mobile phones */
/* @media (max-width: 599px) {

} */