/* =========================================================
   MILL STREET — theme layer (v3)
   Goldenbook for every heading, Montserrat for body text.
   Loaded after style.css and store.css.
   ========================================================= */
@font-face { font-family: 'Goldenbook'; src: url(../fonts/goldenbook-light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Goldenbook'; src: url(../fonts/goldenbook-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Goldenbook'; src: url(../fonts/goldenbook-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --serif: 'Goldenbook', 'Georgia', serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Goldenbook', 'Georgia', serif;
  --inst: 'Goldenbook', 'Georgia', serif;
  --cond: 'Goldenbook', 'Georgia', serif;
  --green: #1E5A45;
  --brick: #B3282D;
  --head-h: 74px;
}
body { font-family: var(--sans); }
.hand { font-family: var(--serif); font-style: italic; letter-spacing: .01em; }
h1, h2, h3, h4 { font-family: var(--serif); }

/* ---------------- top bar + header ---------------- */
.topbar { background: var(--green); color: #fff; text-align: center; font-family: var(--serif); font-size: clamp(.9rem, 1.3vw, 1.08rem); padding: .55rem var(--pad); letter-spacing: .01em; position: relative; z-index: 60; }
.topbar b { font-weight: 700; }
.site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid rgba(30, 90, 69, .12); box-shadow: 0 6px 18px -16px rgba(0, 0, 0, .4); }
.head-inner { display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3.6rem); height: var(--head-h); max-width: 1180px; }
.brand { width: 118px; flex: 0 0 auto; }
.nav-wrap { flex: 1; }
.nav { gap: clamp(.4rem, 1.6vw, 1.7rem); flex-wrap: nowrap; }
.nav > li { position: relative; }
.nav-link { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; color: #2A2A2A; padding: .5rem .1rem; border-radius: 0; background: none !important; white-space: nowrap; position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--green); }
.nav-link.hot { color: #F07D1A; font-weight: 700; }
.nav-link.hot::before { content: ''; position: absolute; right: -9px; top: .35rem; width: 6px; height: 6px; border-radius: 50%; background: #F07D1A; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 125, 26, .6); } 100% { box-shadow: 0 0 0 9px rgba(240, 125, 26, 0); } }
.nav-link .chev { width: 10px; height: 7px; flex: 0 0 10px; margin-left: .15rem; }
.mega { top: calc(100% + 1px); }
.mega-cat .hand { font-style: normal; font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); }
.has-dd .dd { position: absolute; top: 100%; left: -1rem; min-width: 220px; list-style: none; background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 20px 30px -18px rgba(0, 0, 0, .35); padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.has-dd:hover .dd, .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.dd a { display: block; padding: .6rem .8rem; border-radius: 8px; font-family: var(--serif); font-size: 1rem; }
.dd a:hover { background: var(--atta); color: var(--plum); }
.head-actions { gap: .4rem; }
.head-actions .icon-btn { width: 44px; height: 44px; color: var(--green); }
.head-actions .icon-btn svg { width: 26px; height: 26px; }
.icon-btn:hover { background: rgba(30, 90, 69, .08); }
.icon-btn .count { background: var(--plum); }

/* ---------------- search ---------------- */
.search { position: fixed; inset: 0; z-index: 8400; visibility: hidden; }
.search.open { visibility: visible; }
.search-bg { position: absolute; inset: 0; background: rgba(30, 40, 34, .45); opacity: 0; transition: opacity .3s; }
.search.open .search-bg { opacity: 1; }
.search-panel { position: relative; background: #fff; padding: 1.6rem var(--pad) 2rem; transform: translateY(-100%); transition: transform .5s var(--ease); max-height: 86vh; overflow-y: auto; }
.search.open .search-panel { transform: none; }
.search-row { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: .8rem; border-bottom: 2px solid var(--green); }
.search-row svg { width: 26px; height: 26px; color: var(--green); flex: 0 0 auto; }
.search-row input { flex: 1; border: 0; outline: none; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); padding: .6rem 0; background: none; }
.search-row button { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.search-hint { max-width: 860px; margin: 1rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.search-hint button { border: 1px solid rgba(30, 90, 69, .3); border-radius: 999px; padding: .35rem .9rem; transition: background .2s; }
.search-hint button:hover { background: var(--green); color: #fff; }
.search-res { max-width: 860px; margin: 1.2rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 1.4rem; }
.search-res a { display: grid; grid-template-columns: 58px 1fr auto; gap: .9rem; align-items: center; padding: .5rem; border-radius: 12px; transition: background .2s; }
.search-res a:hover { background: var(--atta); }
.search-res img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.search-res b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; display: block; }
.search-res small { color: var(--ink-soft); font-size: .78rem; }
.search-res .pr { font-weight: 700; font-size: .95rem; }
.search-empty { max-width: 860px; margin: 1.4rem auto 0; color: var(--ink-soft); }

/* ---------------- hero (celebration) ---------------- */
.hero2 { position: relative; background: #FEF0E0; text-align: center; overflow: hidden; min-height: calc(100svh - var(--head-h) - 40px); display: flex; flex-direction: column; }
.hero2-copy { padding: clamp(2.4rem, 5vw, 4.2rem) var(--pad) 0; position: relative; z-index: 2; }
.hero2-sun { width: clamp(90px, 9vw, 122px); margin: 0 auto .9rem; }
.hero2-sun line { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ray 1s var(--ease) forwards; }
.hero2-sun line:nth-of-type(odd) { animation-delay: .15s; }
@keyframes ray { to { stroke-dashoffset: 0; } }
.hero2-kick { font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #3B2418; margin-bottom: .9rem; }
.hero2 h1 { font-family: var(--serif); font-weight: 700; text-transform: uppercase; color: #3B1A12; font-size: clamp(2.2rem, 4.75vw, 4.6rem); line-height: 1.04; letter-spacing: -.005em; margin-bottom: 1.4rem; }
.hero2 h1 em { display: block; font-style: italic; }
.hero2-copy p { font-size: clamp(.98rem, 1.25vw, 1.15rem); line-height: 1.6; color: #3B2A22; max-width: 50ch; margin: 0 auto; }
.hero2-ctas { display: flex; justify-content: center; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero2-ctas .btn { padding: .85rem 1.6rem; font-size: .92rem; }
.hero2 .up { opacity: 0; transform: translateY(14px); animation: up .9s var(--ease) forwards; }
.hero2 .up:nth-child(2) { animation-delay: .1s; } .hero2 .up:nth-child(3) { animation-delay: .2s; } .hero2 .up:nth-child(4) { animation-delay: .3s; } .hero2 .up:nth-child(5) { animation-delay: .4s; }
@keyframes up { to { opacity: 1; transform: none; } }
.hero2-img { margin-top: auto; position: relative; height: clamp(260px, 33vw, 520px); }
.hero2-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); transform-origin: 50% 100%; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }

/* ---------------- heritage (red type) ---------------- */
.heritage { position: relative; background: #FFFBF0; text-align: center; padding: clamp(4.5rem, 9vw, 7.5rem) clamp(6rem, 12vw, 10rem); overflow: hidden; }
.heritage::before, .heritage::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; background: url(../img/floral-border.svg) 0 0 / 90px auto repeat-y; animation: drift 40s linear infinite; }
.heritage::before { left: clamp(.6rem, 2vw, 1.6rem); }
.heritage::after { right: clamp(.6rem, 2vw, 1.6rem); animation-direction: reverse; }
@keyframes drift { to { background-position: 0 420px; } }
.heritage-kick { font-family: var(--sans); font-weight: 700; font-size: clamp(.78rem, 1.1vw, .95rem); letter-spacing: .14em; text-transform: uppercase; color: #141C1C; margin-bottom: 1rem; }
.heritage ul { list-style: none; }
.heritage li { font-family: var(--serif); font-weight: 700; text-transform: uppercase; color: var(--brick); font-size: clamp(2.8rem, 8.6vw, 7.6rem); line-height: .92; letter-spacing: -.012em; overflow: hidden; }
.heritage li span { display: inline-block; transform: translateY(100%); transition: transform 1s var(--ease); }
.heritage.in li span { transform: none; }
.heritage.in li:nth-child(2) span { transition-delay: .08s; } .heritage.in li:nth-child(3) span { transition-delay: .16s; } .heritage.in li:nth-child(4) span { transition-delay: .24s; } .heritage.in li:nth-child(5) span { transition-delay: .32s; }
.heritage li:hover span { color: var(--plum); }
.heritage-script { font-family: 'Pinyon Script', cursive; font-size: clamp(1.8rem, 3.4vw, 3rem); color: #141C1C; margin-top: .8rem; }

/* section tweaks requested */
.welcome { background: #F7F1E3; }
.why, .why-top { background: #fff; }
.why-top > .wrap > p, .why-item p { color: #5B4450; }
.voices .sub { font-family: var(--sans); }
.q-num, .why-top .hand, .values .hand { font-family: var(--serif); font-style: italic; }
.v-item img { box-shadow: none; border: 0; }

/* ---------------- footer (hands) ---------------- */
.foot3 { position: relative; background: #EEDFB9; color: var(--ink); overflow: hidden; padding-bottom: 0; }
.foot3-hands { position: relative; width: 100%; aspect-ratio: 1800 / 488; max-height: 420px; margin: 0 auto; }
.foot3-hands img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 1.6s var(--ease); }
.foot3-hands .hl { transform: translateX(-9%); }
.foot3-hands .hr { transform: translateX(9%); }
.foot3-hands .sp { transform: scale(0) rotate(-60deg); transform-origin: 49.8% 37.3%; transition: transform .9s 1s cubic-bezier(.3, 1.7, .5, 1); }
.foot3.in .hl, .foot3.in .hr { transform: none; }
.foot3.in .sp { transform: none; }
.foot3.in .foot3-hands:hover .sp { animation: sparkle 1.2s ease-in-out infinite; }
@keyframes sparkle { 50% { transform: scale(1.18) rotate(18deg); } }
.foot3-main { display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; gap: 2rem; max-width: 1200px; margin: -1rem auto 0; padding: 0 var(--pad); position: relative; z-index: 2; }
.foot3-col { list-style: none; }
.foot3-col li a { display: block; font-family: var(--sans); font-weight: 600; letter-spacing: .26em; font-size: .9rem; text-transform: uppercase; color: #3A2A26; padding: 1.15rem .4rem 1.05rem 1.2rem; border-bottom: 1.5px solid #2E5B57; max-width: 190px; position: relative; transition: color .25s, padding .35s var(--ease); }
.foot3-col li:last-child a { border-bottom: 0; }
.foot3-col li a:hover { color: var(--plum); padding-left: 1.8rem; }
.foot3-col li a::before { content: ''; position: absolute; left: .2rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #F07D1A; transform: scale(0); transition: transform .3s var(--ease); }
.foot3-col li a:hover::before { transform: scale(1); }
.foot3-col.r { justify-self: end; }
.foot3-mid { text-align: center; }
.foot3-mid img.logo { width: clamp(220px, 24vw, 340px); margin: 0 auto 1.4rem; }
.foot3-mid p { white-space: nowrap; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: #2E2420; margin-bottom: 1.5rem; }
.foot3-social { display: flex; justify-content: center; gap: 1.6rem; }
.foot3-social a { color: var(--plum); transition: transform .3s var(--ease), color .25s; }
.foot3-social a:hover { transform: translateY(-4px) rotate(-6deg); color: #F07D1A; }
.foot3-social svg { width: 36px; height: 36px; }
.foot3-fields { height: clamp(150px, 18vw, 260px); margin-top: clamp(-1rem, -2vw, -2rem); background: url(../img/photos/footer-fields.jpg) 50% 100% / 100% auto no-repeat; }
.foot3-bar { background: #0F4C52; color: #EAF1EE; text-align: center; font-family: var(--sans); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; padding: 1.1rem var(--pad); }
.foot3-bar a:hover { color: #F7B267; }
.foot3-bar .sep { margin: 0 1.2rem; opacity: .7; }

/* ---------------- brochure (story page) ---------------- */
.fb3 { position: relative; background: #2B1320; color: var(--atta); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem; }
.fb3-bgclip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fb3-bgclip img { position: absolute; width: 70vmax; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .045; animation: spin 140s linear infinite; }
.fb3-head { position: relative; text-align: center; padding: 0 var(--pad); }
.fb3-head .hand { color: var(--turmeric); font-size: 1.3rem; }
.fb3-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; margin: .2rem 0 .7rem; }
.fb3-head p { color: rgba(241, 232, 212, .65); font-size: .92rem; }
.fb3 .fb-stage { position: relative; overflow: visible; padding: clamp(4.5rem, 8vw, 7rem) 1rem; display: block; }
.fb3 .fb-stage.scrolling { overflow-x: auto; scrollbar-width: thin; }
.fb3 #flipbook-container { margin: 0 auto; transform: none !important; }
.fb3 .fb-ctrls { padding-top: 0; }

/* story page tweaks */
.st-hero h1 { font-weight: 400; }
.st-num { font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: rgba(140, 55, 79, .22); letter-spacing: 0; display: block; margin-bottom: -.8rem; }
.st-chapter { position: relative; }
.st-chapter:nth-of-type(even)::before { content: ''; position: absolute; inset: 0 calc(-1 * var(--pad)); background: #FBF5E8; z-index: -1; border-radius: 0; }
.st-chapter h2 { font-weight: 700; }
.st-chapter .hand { font-size: 1.15rem; }
.st-art { box-shadow: 0 30px 50px -36px rgba(43, 19, 32, .5); }
.st-quote { background: var(--green); }
.st-quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.6vw, 3.8rem); }
.st-promise li b { font-weight: 700; }

@media (max-width: 1180px) {
  .nav-link { font-size: .94rem; }
  .head-inner { gap: 1.2rem; }
}
@media (max-width: 1040px) {
  .nav-wrap { position: fixed; inset: calc(var(--head-h) + 40px) 0 0 0; background: #fff; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s; overflow-y: auto; padding: 1rem var(--pad) 3rem; z-index: 40; }
  body.menu-open .nav-wrap { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--ease); }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > li { border-bottom: 1px solid rgba(30, 90, 69, .12); }
  .nav-link { font-size: 1.5rem; padding: .9rem 0; width: 100%; display: flex; justify-content: space-between; }
  .nav-link::after { display: none; }
  .mega { position: static; clip-path: none; visibility: visible; box-shadow: none; border: 0; display: none; }
  .mega.open { display: block; }
  .mega-inner { grid-template-columns: 1fr; padding: 0 0 1rem; }
  .mega-intro { display: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .has-dd .dd { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 .8rem; }
  .menu-btn { display: grid; }
  .nav-link.hot::before { display: none; }
  .hero2 { min-height: 0; }
  .hero2-img { margin-top: 1.5rem; }
  .head-inner { justify-content: space-between; }
  .nav-wrap { flex: none; }
  .foot3-main { grid-template-columns: 1fr 1fr; }
  .foot3-mid { grid-column: 1 / -1; order: -1; }
  .foot3-col.r { justify-self: start; }
}
@media (max-width: 560px) {
  .foot3-mid p { white-space: normal; }
  .topbar { font-size: .82rem; }
  .heritage { padding-left: 3.6rem; padding-right: 3.6rem; }
  .heritage::before, .heritage::after { width: 46px; background-size: 46px auto; }
  @keyframes drift { to { background-position: 0 215px; } }
  .foot3-col li a { letter-spacing: .16em; font-size: .78rem; padding-left: .4rem; }
  .foot3-bar { letter-spacing: .1em; font-size: .7rem; }
  .foot3-bar .sep { margin: 0 .4rem; }
  .search-res { grid-template-columns: 1fr; }
  .hero2-img { height: 240px; }
}
