/* home.css — hero, 'currently' cards, photo frame & modal, clothesline, lever button */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  padding: 3rem 3rem 2rem;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--cream-light);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 80px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--warm);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  flex: 1 1 300px;
  order: 1;
  min-width: 0;
  perspective: 1000px;
}

/* ── CURRENTLY CARDS ── */
.currently-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 340px;
  position: relative;
  z-index: 1;
  order: 2;
  padding-top: 10px;
}
.currently-card {
  position: relative;
  padding: 1.3rem 1.5rem 1.3rem 1.4rem;
  opacity: 0;
  transform: translateY(40px);
  animation: cardSlideUp 0.7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: calc(0.4s + var(--i) * 0.72s);
  background: linear-gradient(135deg, #f5ede0 0%, #edddc8 100%);
  border-radius: 10px;
  border-top: 1px solid #f8f0e4;
  border-left: 1px solid #f0e4d0;
  border-right: 2px solid #c4a882;
  border-bottom: 3px solid #b89868;
  box-shadow: 3px 4px 0px #c4a882, 5px 7px 16px rgba(61,43,26,0.18);
}
@keyframes cardSlideUp {
  to { opacity: 1; transform: translateY(0); }
}
.currently-card::after {
  content: '';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8c99a, #a07850);
  box-shadow: 0 1px 3px rgba(61,43,26,0.4);
}
.currently-card::before {
  content: '';
  position: absolute;
  top: 10px; left: 14px; right: 30px;
  height: 1px;
  background: rgba(160,120,80,0.15);
  border-radius: 1px;
}
.currently-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 3px 4px 0px #c4a882, 8px 12px 24px rgba(61,43,26,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.currently-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--brown); font-weight: 700; margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 7px;
}
.currently-label svg {
  width: 13px; height: 13px; flex-shrink: 0;
  stroke: var(--brown); opacity: 0.85;
}
.currently-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600; color: var(--dark); margin-bottom: 4px; line-height: 1.3;
}
.currently-sub {
  font-size: 12px; color: var(--brown); opacity: 0.7; font-style: italic;
}

/* ── PHOTO FRAME ── */
.photo-frame {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--sage);
  border: 4px solid var(--warm);
  outline: 2px solid var(--tan);
  box-shadow: 0 6px 20px rgba(61,43,26,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: var(--dark);
  margin-bottom: 1.4rem;
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation: flipIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.photo-frame:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(61,43,26,0.2);
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
@keyframes flipIn {
  0%   { transform: rotateY(0deg); opacity: 0.3; }
  100% { transform: rotateY(720deg); opacity: 1; }
}

/* ── PHOTO MODAL ── */
#photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#photo-modal.open {
  display: flex;
  animation: modalFadeIn 0.25s ease forwards;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#modal-img {
  width: 300px; height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes modalZoomIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.greeting {
  font-size: 13px; color: var(--tan);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.5rem; font-weight: 500;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 600; line-height: 1.15;
  margin-bottom: 1rem; color: var(--dark);
}
.typewriter-wrap {
  font-size: 15px; color: var(--muted);
  margin-bottom: 2rem; min-height: 24px;
}
.typewriter-text { color: var(--tan); font-weight: 500; }
.cursor {
  display: inline-block; width: 2px; height: 16px;
  background: var(--tan); margin-left: 2px;
  vertical-align: middle; animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── CLOTHESLINE TAGS ── */
.clothesline-wrap {
  position: relative;
  margin-bottom: 2rem;
  padding-top: 18px;
}
.clothesline-rope {
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tan), var(--brown), var(--tan));
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(61,43,26,0.2);
}
.clothesline-rope::before,
.clothesline-rope::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brown);
}
.clothesline-rope::before { left: 0; }
.clothesline-rope::after { right: 0; }
.clothesline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.chip {
  position: relative;
  background: var(--warm);
  border: 0.5px solid var(--tan);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px; color: var(--brown); font-weight: 500;
  box-shadow: 1px 2px 6px rgba(61,43,26,0.1);
  transition: transform 0.2s ease;
}
.chip::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 1.5px; height: 10px;
  background: var(--tan);
}
.chip:hover { transform: rotate(-3deg) translateY(2px); }

/* ── DOOR HANDLE BUTTON ── */
.hero-cta {
  display: inline-flex; align-items: center;
  background: none; color: var(--dark);
  padding: 0; border: none;
  cursor: pointer;
  transform-origin: left center;
  text-decoration: none;
  position: relative;
}
.handle-rose {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8c99a, #a07850);
  box-shadow: 0 3px 8px rgba(61,43,26,0.3), inset 0 1px 2px rgba(255,255,255,0.3);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; position: relative;
}
.handle-rose::after {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(61,43,26,0.25);
}
.handle-lever {
  background: linear-gradient(180deg, #c4a882 0%, #a07850 100%);
  height: 22px; width: 120px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 3px 8px rgba(61,43,26,0.25), inset 0 1px 1px rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-left: -12px;
  z-index: 1; position: relative;
}
.handle-lever span {
  font-size: 13px; font-weight: 500;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--cream); letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-cta:hover .handle-lever { background: linear-gradient(180deg, #d4b892 0%, #b08860 100%); }
.hero-cta.swinging {
  animation: handleSwing 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}
@keyframes handleSwing {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(28deg); }
  60%  { transform: rotate(18deg); }
  80%  { transform: rotate(24deg); }
  100% { transform: rotate(22deg); }
}

/* ── HERO PLANT ── */
.hero-plant {
  position: absolute;
  bottom: -50px; right: 5px;
  width: 220px; height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; align-items: flex-start; padding: 2rem 1.4rem 2rem; gap: 2rem; min-height: unset; }
  .hero-content { order: 1; max-width: 100%; width: 100%; }
  .hero h1 { font-size: 2.2rem; }
  .currently-stack { order: 2; flex: unset; width: 100%; }
  .currently-card { width: 100%; }
  .hero-plant { display: none; }
  .clothesline-tags { gap: 8px; }
  .chip::before { display: none; }
}