/* ==========================================================================
   Harini Catering — homepage
   ========================================================================== */

.home-hero {
  position: relative;
  min-height: clamp(36rem, 86svh, 52rem);
  display: flex;
  align-items: flex-end;
  color: var(--text-on-brand);
  overflow: hidden;
  background: #ead9cc;
  width: 100%;
  max-width: 100%;
}

.home-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__media .media-placeholder {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  background-image:
    linear-gradient(180deg, rgba(251, 246, 242, 0.08) 0%, rgba(31, 14, 12, 0.04) 48%, rgba(31, 14, 12, 0.12) 100%),
    linear-gradient(118deg, #f4ebe3 12%, #e2cbb8 58%, #c9a488 100%);
}

.home-hero__media .media-placeholder::before {
  padding-bottom: 0;
  height: 100%;
}

.home-hero__kenburns {
  position: absolute;
  inset: -8% -12% -8% 8%;
  background:
    linear-gradient(180deg, rgba(251, 246, 242, 0.12), transparent 42%),
    linear-gradient(118deg, #f6eee8 0%, #e4cfc0 46%, #cba58c 100%);
  animation: kenBurns 32s ease-in-out infinite alternate;
}

.home-hero__emblem {
  position: absolute;
  right: -3%;
  top: 10%;
  width: min(28vw, 240px);
  height: min(28vw, 240px);
  background: url("../images/branding/heritage-emblem.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
}

.home-hero.has-media .home-hero__kenburns {
  display: none;
}

.home-hero.has-media .home-hero__emblem {
  opacity: 0;
}

.home-hero__media .media-placeholder img {
  object-position: 78% 48%;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(31, 14, 12, 0.58) 0%, rgba(31, 14, 12, 0.34) 32%, rgba(31, 14, 12, 0.1) 54%, rgba(31, 14, 12, 0.02) 72%, transparent 86%),
    linear-gradient(180deg, rgba(31, 14, 12, 0.22) 0%, rgba(31, 14, 12, 0.08) 28%, rgba(31, 14, 12, 0.32) 72%, rgba(31, 14, 12, 0.58) 100%);
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  padding: 7.8rem 0 3.6rem;
  max-width: 42rem;
  width: 100%;
  min-width: 0;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 4.4vw + 1rem, 4.85rem);
  max-width: 14ch;
  color: #fffaf4;
  line-height: 1.12;
  text-shadow: 0 8px 24px rgba(31, 14, 12, 0.18);
  overflow-wrap: break-word;
}

.home-hero .lead {
  color: rgba(255, 248, 242, 0.92);
  max-width: min(36rem, 100%);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.home-hero__offerings {
  margin: 1.15rem 0 0;
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gold);
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-anim {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim--1 { animation-delay: 0.08s; }
.hero-anim--2 { animation-delay: 0.18s; }
.hero-anim--3 { animation-delay: 0.3s; }
.hero-anim--4 { animation-delay: 0.42s; }
.hero-anim--5 { animation-delay: 0.52s; }

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.section-heading {
  max-width: 36rem;
}

.section-heading h2 {
  margin-bottom: 0.85rem;
}

#story .media-placeholder img {
  object-position: 48% 38%;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-background);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  color: inherit;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover,
.service-card:focus-visible {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.service-card__media {
  overflow: hidden;
}

.service-card__media .media-placeholder {
  border-radius: 0;
  min-height: 220px;
  --media-ratio: 118%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card--event .media-placeholder img {
  object-position: 50% 32%;
}

.service-card--lunch .media-placeholder img {
  object-position: 50% 42%;
}

.service-card--sweets .media-placeholder img {
  object-position: 50% 38%;
}

.service-card--featured {
  border-color: rgba(201, 163, 106, 0.48);
  box-shadow: var(--shadow-medium);
}

.service-card--featured::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--brand-accent);
}

.service-card--featured .service-card__media .media-placeholder {
  min-height: 250px;
}

.service-card--featured .service-card__cta {
  color: var(--brand-primary);
}

.service-card__body {
  padding: 1.65rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__body h3 {
  margin-bottom: 0.65rem;
}

.service-card__body p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  flex: 1;
}

.service-card:hover .service-card__media .media-placeholder {
  transform: scale(1.045);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: var(--fs-button);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-primary);
}

.service-card__cta i {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__cta i {
  transform: translateX(4px);
}

.food-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.food-mosaic__item {
  min-width: 0;
}

.food-mosaic__item:first-child,
.food-mosaic__item:last-child {
  grid-column: span 2;
}

.food-mosaic__item:first-child img {
  object-position: 48% 55%;
}

.food-mosaic__item:last-child img {
  object-position: 50% 45%;
}

.occasion-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
  margin: 1.5rem 0 1.75rem;
  color: rgba(255, 248, 242, 0.9);
}

.occasion-list li {
  position: relative;
  padding-left: 0.95rem;
}

.occasion-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-gold);
}

.feature-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(36rem, 78vh, 46rem);
  display: grid;
  align-items: center;
  color: var(--text-on-brand);
}

.feature-panel__media {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
}

.feature-panel__media .media-placeholder {
  height: 100%;
  border-radius: 0;
}

.feature-panel__media .media-placeholder::before {
  padding-bottom: 0;
  height: 100%;
}

.feature-panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(31, 14, 12, 0.5) 0%, rgba(31, 14, 12, 0.26) 44%, rgba(31, 14, 12, 0.06) 100%);
}

.feature-panel__content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
  max-width: 40rem;
}

.feature-panel h2,
.feature-panel .h2 {
  color: #fffaf4;
  text-shadow: 0 8px 28px rgba(31, 14, 12, 0.38);
}

.feature-panel .eyebrow {
  color: var(--text-gold);
}

.feature-panel .lead {
  color: #fff6ee;
  text-shadow: 0 6px 22px rgba(31, 14, 12, 0.42);
}

.feature-panel .occasion-list {
  color: #fff8f2;
  text-shadow: 0 4px 16px rgba(31, 14, 12, 0.28);
}

.lunch-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.15rem 0 0.85rem;
}

.lunch-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  background: var(--brand-background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.lunch-flow {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.lunch-flow__step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--brand-background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.lunch-flow__index {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blush);
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.areas-line {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.lunch-media .media-placeholder {
  min-height: 280px;
  --media-ratio: 118%;
}

.lunch-media .media-placeholder img {
  object-position: 50% 42%;
}

.sweets-gallery .media-placeholder {
  box-shadow: var(--shadow-soft);
}

.sweets-gallery .col-4:nth-child(1) img {
  object-position: 50% 40%;
}

.sweets-gallery .col-4:nth-child(2) img {
  object-position: 50% 42%;
}

.sweets-gallery .col-4:nth-child(3) img {
  object-position: 50% 46%;
}

.sweet-highlights {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 1.7rem;
}

.sweet-highlights div {
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--brand-accent);
  background: var(--brand-light);
}

.sweet-highlights strong {
  display: block;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.why-grid {
  display: grid;
  gap: 0;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1.15rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border-light);
}

.why-item:last-child {
  border-bottom: 0;
}

.why-item__num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--brand-accent);
  line-height: 1;
  font-weight: 600;
}

.why-item h3 {
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
  line-height: 1.4;
  margin: 0.2rem 0 0;
}

.heritage-panel.heritage-emblem--watermark::before {
  inset: auto 3% 10% auto;
  width: min(36%, 260px);
  height: 62%;
  opacity: 0.06;
  background-image: url("../images/branding/heritage-emblem.png");
}

.final-cta.heritage-emblem--watermark::before {
  inset: auto auto -10% 50%;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  opacity: 0.1;
}

.heritage-panel {
  position: relative;
  overflow: hidden;
  background: var(--brand-light);
}

.heritage-panel__inner {
  position: relative;
  z-index: 1;
}

#heritage .media-placeholder img {
  object-position: 50% 72%;
}

.quote-slider {
  position: relative;
}

.quote-slide {
  display: none;
}

.quote-slide.is-active {
  display: block;
  animation: fadeIn 0.55s ease;
}

.quote-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.quote-slide cite {
  display: block;
  font-style: normal;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quote-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.quote-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--brand-background);
  color: var(--brand-primary);
  cursor: pointer;
}

.quote-dots {
  display: flex;
  gap: 0.4rem;
  margin-left: 0.4rem;
}

.quote-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--border-medium);
}

.quote-dots button.is-active {
  background: var(--brand-primary);
}

.gallery-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-preview a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  min-width: 0;
  height: 100%;
}

.gallery-preview .media-placeholder {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-preview a:hover .media-placeholder,
.gallery-preview a:focus-visible .media-placeholder {
  transform: scale(1.04);
}

.video-showcase--wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  max-height: none;
}

.video-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 248, 242, 0.92);
  color: var(--brand-primary);
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.video-showcase__fallback {
  flex-direction: column;
}

.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--brand-primary);
  color: var(--text-on-brand);
  text-align: center;
}

.final-cta h2,
.final-cta .lead {
  color: #fffaf4;
}

.final-cta .lead {
  margin-inline: auto;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.home-hero:has(.media-placeholder.has-media) .home-hero__kenburns {
  display: none;
}

.home-hero:has(.media-placeholder.has-media) .home-hero__emblem {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .quote-slide.is-active {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .home-hero__kenburns {
    animation: none;
  }
}
