:root {
  --sage: #CCD5AE;
  --sage-light: #E9EDC9;
  --cream: #FEFAE0;
  --cream-warm: #FAEDCD;
  --taupe: #D4A373;
  --text-main: #4f463b;
  --text-muted: #6d6358;
  --white: #ffffff;
  --shadow-soft: 0 10px 28px rgba(80, 65, 50, 0.11);
  --shadow-hover: 0 18px 38px rgba(80, 65, 50, 0.18);
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --site-max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: var(--text-main);
  background: var(--cream);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: min(100% - 2.2rem, var(--site-max));
  margin-inline: auto;
}

.section { padding: 5.75rem 0; }

.section-title {
  margin: 0 0 1.6rem;
  font-family: "Mukta Malar", serif;
  font-weight: 800;
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* Make Elementor containers holding our sections behave properly */
.e-con:has(.hero) {
  position: relative !important;
  min-height: min(100vh, 56rem) !important;
  display: grid !important;
  place-items: center !important;
  isolation: isolate !important;
  overflow: hidden !important;
}

.hero {
  position: relative;
  min-height: min(100vh, 56rem);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(40, 30, 20, 0.16), rgba(40, 30, 20, 0.38));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
}

.hero h1 {
  margin: 0;
  font-family: "Mukta Malar", serif;
  font-weight: 800;
  font-size: clamp(2.35rem, 8vw, 5.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero p {
  margin: 1rem auto 1.9rem;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2.5vw, 1.36rem);
  font-weight: 500;
  color: rgba(254, 250, 224, 0.95);
}

.btn {
  min-height: 44px;
  padding: 0.72rem 1.45rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.btn-primary {
  background: var(--taupe);
  color: var(--cream);
  box-shadow: 0 9px 18px rgba(90, 62, 33, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(90, 62, 33, 0.28);
  background: #bf8c5c;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--cream);
  font-weight: 500;
  font-size: 0.84rem;
  opacity: 0.88;
  animation: bob 2.2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

#home, #collection, #about, #gallery, #contact {
  scroll-margin-top: 5.5rem;
}

.collection { background: var(--cream); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.collection-card {
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  margin-bottom: 0.95rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.collection-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Mukta Malar", serif;
  font-weight: 800;
  font-size: 1.42rem;
  line-height: 1.2;
}

.collection-card p {
  margin: 0 0 0.2rem;
  color: var(--text-muted);
}

.botanical-divider {
  padding: 1.2rem 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, var(--cream), var(--cream-warm));
}

.botanical-divider svg {
  width: min(12rem, 60vw);
  height: auto;
}

.botanical-divider path {
  fill: none;
  stroke: var(--taupe);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about { background: var(--cream-warm); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-soft);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--text-main);
  max-width: 62ch;
}

.gallery { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 128px;
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(204, 213, 174, 0.8);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.gallery-image {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.32s ease;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.04);
}

.gallery-item figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--white);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-row: span 2;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(5) {
  grid-row: span 3;
}

.contact { background: var(--sage-light); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.82rem;
}

.contact-details li {
  padding: 0.78rem 0.9rem;
  border-radius: 0.8rem;
  background: rgba(254, 250, 224, 0.85);
}

.contact-details strong { font-weight: 500; }

.contact-details a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.contact-form {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(254, 250, 224, 0.72);
  border: 1px solid rgba(212, 163, 115, 0.35);
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-weight: 500;
  margin-top: 0.15rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(212, 163, 115, 0.35);
  border-radius: 0.72rem;
  background: var(--cream-warm);
  color: var(--text-main);
  font: inherit;
  padding: 0.67rem 0.85rem;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  background: var(--taupe);
  color: var(--cream);
  padding: 2.3rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-name {
  margin: 0;
  font-family: "Mukta Malar", serif;
  font-weight: 800;
  font-size: 1.35rem;
}

.footer-tagline {
  margin: 0.35rem 0;
  max-width: 52ch;
  color: rgba(254, 250, 224, 0.95);
}

.footer-copy {
  margin: 0;
  color: rgba(254, 250, 224, 0.9);
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(254, 250, 224, 0.18);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(254, 250, 224, 0.28);
}

.social-links svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--taupe);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
  }
  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-row: span 1; }
}

@media (max-width: 768px) {
  .section { padding: 4.6rem 0; }
  .hero { min-height: 88vh; }
  .card-grid, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .gallery-image { min-height: 210px; }
  .footer-content { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
