/* ==========================================
   GOVARDHAN NURSERY - COMPACT HERO SECTION
   Desktop + Tablet + Mobile Responsive
   ========================================== */

:root {
  --green: #5f920b;
  --green-dark: #3d7907;
  --green-light: #80ae1f;
  --brown: #35200f;
  --body-text: #535353;
  --cream: #fbf8e8;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #ffffff;
  color: #222222;
  font-family: "DM Sans", sans-serif;
}

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

/* HERO ROOT */

.nursery-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  max-height: 820px;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}

/* RIGHT-SIDE NURSERY IMAGE */

.hero-photo {
  position: absolute;
  z-index: -4;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background-image: url("../assets/nursery-plants.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  transform: scale(1.035);
  animation: heroImageZoom 14s ease-in-out infinite alternate;
}

/* LEFT CREAM FADE / IMAGE BLENDING */

.hero-overlay {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(
      circle at 46% 11%,
      rgba(255, 255, 255, 0.32),
      transparent 30%
    ),
    linear-gradient(
      90deg,
      #fbf8e8 0%,
      rgba(251, 248, 232, 0.99) 29%,
      rgba(251, 248, 232, 0.93) 42%,
      rgba(251, 248, 232, 0.63) 55%,
      rgba(251, 248, 232, 0.16) 72%,
      rgba(251, 248, 232, 0.02) 100%
    );
}

.hero-inner {
  width: min(1420px, calc(100% - 118px));
  min-height: 100svh;
  max-height: 820px;
  margin: 0 auto;
  padding: 40px 0 96px;
  position: relative;
  display: flex;
  align-items: center;
}

/* LEFT CONTENT */

.hero-content {
  width: min(1030px, 68%);
  position: relative;
  z-index: 3;
}

.hero-eyebrow {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #508316;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  font-weight: 700;
}

.eyebrow-line {
  width: 27px;
  height: 1px;
  flex: 0 0 27px;
  background: #7ca637;
}

.mobile-line {
  display: none;
}

.hero-title {
  color: var(--brown);
  font-family: "Playfair Display", serif;
  font-size: clamp(50px, 5.1vw, 76px);
  line-height: 1.02;
  letter-spacing: -2.8px;
  font-weight: 800;
}

.hero-title span {
  color: var(--green);
  font-size: clamp(45px, 3.1vw, 60px);
  max-width: 100%;
}

.hero-description {
  max-width: 560px;
  margin-top: 16px;
  color: var(--body-text);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-btn {
  min-width: 210px;
  min-height: 56px;
  padding: 13px 24px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease,
    background 0.3s ease;
}

.hero-btn i {
  position: relative;
  z-index: 2;
  font-size: 21px;
}

.hero-btn span {
  position: relative;
  z-index: 2;
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -125%;
  width: 72%;
  height: 100%;
  transform: skewX(-20deg);
  background: rgba(255, 255, 255, 0.28);
  transition: left 0.65s ease;
}

.hero-btn:hover::before {
  left: 145%;
}

.hero-btn:hover {
  transform: translateY(-5px);
}

.hero-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #669d0a, #477d06);
  box-shadow: 0 14px 28px rgba(68, 119, 8, 0.18);
}

.hero-btn-primary:hover {
  box-shadow: 0 20px 38px rgba(68, 119, 8, 0.3);
}

.hero-btn-outline {
  color: #55840e;
  border: 1.5px solid #6d971c;
  background: rgba(255, 255, 255, 0.27);
  backdrop-filter: blur(8px);
}

.hero-btn-outline:hover {
  color: #ffffff;
  background: var(--green-dark);
}

/* FEATURE ITEMS */

.hero-features {
  width: min(620px, 100%);
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-box {
  min-height: 108px;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-box:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  width: 1px;
  height: 82px;
  background: rgba(87, 112, 43, 0.18);
}

.feature-box:hover {
  transform: translateY(-7px);
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #618e15;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 23px rgba(67, 105, 17, 0.07);
  font-size: 25px;
  transition:
    transform 0.32s ease,
    color 0.32s ease,
    background 0.32s ease;
}

.feature-box:hover .feature-icon {
  color: #ffffff;
  background: var(--green);
  transform: rotate(-8deg) scale(1.07);
}

.feature-box h3 {
  color: #1f1f1f;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
}

.feature-box p {
  margin-top: 3px;
  color: #373737;
  font-size: 14px;
  line-height: 1.2;
}

/* RIGHT FLOATING QUOTE */

.hero-quote {
  position: absolute;
  z-index: 5;
  right: 2%;
  bottom: 82px;
  min-width: 320px;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 45px rgba(29, 52, 12, 0.19);
  backdrop-filter: blur(13px);
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.hero-quote:hover {
  transform: translateY(-7px) rotate(-1deg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 25px 52px rgba(29, 52, 12, 0.25);
}

.quote-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(65, 116, 7, 0.22);
}

.hero-quote p {
  color: #292017;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.quote-leaf {
  margin-left: 8px;
  color: var(--green);
  font-size: 14px;
  transform: rotate(-18deg);
}

/* DECORATION */

.floating-leaf {
  position: absolute;
  z-index: 1;
  color: #75a81b;
  pointer-events: none;
}

.floating-leaf-one {
  top: 20px;
  left: 43%;
  font-size: 27px;
  transform: rotate(-30deg);
  animation: floatingLeaf 7s ease-in-out infinite;
}

.floating-leaf-two {
  top: 8px;
  left: -6px;
  font-size: 50px;
  opacity: 0.45;
  filter: blur(4px);
  transform: rotate(48deg);
  animation: floatingLeaf 9s ease-in-out infinite reverse;
}

.bottom-leaves {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: 48px;
  width: 104px;
  height: 100px;
  color: #477c0a;
  pointer-events: none;
}

.bottom-leaves i {
  position: absolute;
  transform-origin: bottom center;
}

.bottom-leaves i:nth-child(1) {
  left: 12px;
  bottom: 6px;
  font-size: 52px;
  transform: rotate(-42deg);
}

.bottom-leaves i:nth-child(2) {
  left: 48px;
  bottom: 18px;
  font-size: 42px;
  transform: rotate(-10deg);
}

.bottom-leaves i:nth-child(3) {
  left: 64px;
  bottom: 0;
  font-size: 47px;
  transform: rotate(35deg);
}

/* WAVES */

.hero-waves {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 82px;
  pointer-events: none;
}

.hero-waves svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-one {
  fill: #79a918;
}

.wave-two {
  fill: #4d8208;
}

.wave-line {
  stroke: rgba(148, 193, 55, 0.82);
  stroke-width: 5;
}

/* REVEAL ANIMATION */

.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.25s;
}

/* SHORT DESKTOP SCREENS */

@media (min-width: 901px) and (max-height: 760px) {
  .nursery-hero,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    padding-top: 24px;
    padding-bottom: 78px;
  }

  .hero-title {
    font-size: clamp(45px, 4.7vw, 66px);
  }

  .hero-features {
    margin-top: 20px;
  }
}

/* LARGE LAPTOP */

@media (max-width: 1280px) {
  .nursery-hero {
    min-height: 720px;
    max-height: 760px;
  }

  .hero-inner {
    width: min(1180px, calc(100% - 70px));
    min-height: 720px;
    max-height: 760px;
    padding: 34px 0 88px;
  }

  .hero-content {
    width: 56%;
  }

  .hero-title {
    font-size: clamp(48px, 5.5vw, 68px);
  }

  .hero-photo {
    width: 61%;
  }

  .hero-quote {
    right: 1.5%;
    min-width: 295px;
  }
}

/* TABLET */

@media (max-width: 900px) {
  .nursery-hero {
    min-height: 920px;
    max-height: none;
    background: var(--cream);
  }

  .hero-photo {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 47%;
    background-size: cover;
    background-position: center bottom;
    transform: none;
    animation: mobileImageZoom 13s ease-in-out infinite alternate;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        #fbf8e8 0%,
        rgba(251, 248, 232, 0.99) 44%,
        rgba(251, 248, 232, 0.86) 55%,
        rgba(251, 248, 232, 0.23) 72%,
        rgba(251, 248, 232, 0.02) 100%
      );
  }

  .hero-inner {
    width: min(720px, calc(100% - 42px));
    min-height: 920px;
    max-height: none;
    padding: 38px 0 92px;
    display: block;
  }

  .hero-content {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
    margin-bottom: 12px;
    font-size: clamp(15px, 2.6vw, 19px);
  }

  .mobile-line {
    display: block;
  }

  .hero-title {
    font-size: clamp(46px, 8.4vw, 64px);
    letter-spacing: -2.2px;
  }

  .hero-description {
    max-width: 590px;
    margin: 14px auto 0;
    font-size: clamp(15px, 2.4vw, 19px);
    line-height: 1.5;
  }

  .hero-actions {
    max-width: 520px;
    margin: 20px auto 0;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .hero-btn {
    width: 50%;
    min-width: 0;
  }

  .hero-features {
    width: min(620px, 100%);
    margin: 24px auto 0;
  }

  .hero-quote {
    right: 50%;
    bottom: 56px;
    min-width: 0;
    width: min(400px, calc(100% - 48px));
    transform: translateX(50%);
  }

  .hero-quote:hover {
    transform: translateX(50%) translateY(-8px);
  }

  .bottom-leaves,
  .floating-leaf {
    display: none;
  }

  .hero-waves {
    height: 72px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .nursery-hero {
    min-height: 820px;
  }

  .hero-inner {
    width: calc(100% - 24px);
    min-height: 820px;
    padding-top: 28px;
    padding-bottom: 80px;
  }

  .hero-photo {
    height: 43%;
    background-position: 58% bottom;
  }

  .hero-eyebrow {
    gap: 7px;
    white-space: nowrap;
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .eyebrow-line {
    width: 18px;
    flex-basis: 18px;
  }

  .hero-title {
    font-size: clamp(38px, 11.5vw, 51px);
    line-height: 1.03;
    letter-spacing: -1.5px;
  }

  .hero-description {
    max-width: 420px;
    margin-top: 12px;
    padding: 0 8px;
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 18px;
    padding: 0 6px;
    gap: 9px;
  }

  .hero-btn {
    min-height: 50px;
    padding: 11px 12px;
    border-radius: 9px;
    gap: 8px;
    font-size: 15px;
  }

  .hero-btn i {
    font-size: 18px;
  }

  .hero-features {
    margin-top: 20px;
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-box {
    min-height: 96px;
    padding: 0 3px;
  }

  .feature-box:not(:last-child)::after {
    top: 10px;
    height: 72px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 7px;
    font-size: 21px;
  }

  .feature-box h3,
  .feature-box p {
    font-size: clamp(10px, 2.8vw, 12px);
    color:#ffffff;
  }

  .hero-quote {
    display: none !important;
    bottom: 47px;
    width: min(370px, calc(100% - 30px));
    padding: 11px 16px;
    gap: 13px;
    border-radius: 15px;
    margin-left: 0;
    margin-right: 0;
  }

  .quote-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 20px;
  }

  .hero-quote p {
    text-align: left;
    font-size: clamp(15px, 4vw, 18px);
  }

  .hero-waves {
    height: 60px;
  }
}

/* SMALL MOBILE */

@media (max-width: 420px) {
  .nursery-hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    padding-top: 22px;
    padding-bottom: 72px;
  }

  .hero-eyebrow {
    white-space: normal;
    margin-bottom: 9px;
  }

  .hero-title {
    font-size: clamp(35px, 10.8vw, 45px);
  }

  .hero-description {
    margin-top: 9px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-btn {
    min-height: 46px;
    font-size: 14px;
  }

  .hero-features {
    margin-top: 16px;
    gap: 0;
  }

  .feature-icon {
    width: 43px;
    height: 43px;
    font-size: 19px;
  }

  .feature-box h3,
  .feature-box p {
    font-size: 10px;
    color:#ffffff;
  }

  .hero-quote {
     display: none !important;
    bottom: 42px;
  }
}

/* KEYFRAMES */

@keyframes heroImageZoom {
  from {
    transform: scale(1.035);
  }

  to {
    transform: scale(1.095);
  }
}

@keyframes mobileImageZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.055);
  }
}

@keyframes floatingLeaf {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-28deg);
  }

  50% {
    transform: translate3d(35px, 24px, 0) rotate(18deg);
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
