/* ============================================================
   Smooth Goods Square - New Design System
   Warm cream + deep pine green + terracotta clay
   Fraunces (display serif) + Inter (body)
   ============================================================ */

html { scroll-behavior: smooth; }
body { background-color: #FFF8EC; color: #1C2A25; overflow-x: hidden; margin: 0; font-family: 'Inter', sans-serif; }

::selection { background: #E4572E; color: #FFF8EC; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F3EAD8; }
::-webkit-scrollbar-thumb { background: #17604A; border-radius: 999px; border: 2px solid #F3EAD8; }
::-webkit-scrollbar-thumb:hover { background: #E4572E; }

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Form inputs ---------- */
.field {
  width: 100%; background: #FFFFFF; border: 1px solid #E2D9C6; border-radius: 999px;
  padding: 0.95rem 1.35rem; color: #1C2A25; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 500; transition: border-color .25s ease, box-shadow .25s ease;
}
.field:focus { outline: none; border-color: #17604A; box-shadow: 0 0 0 4px rgba(23, 96, 74, .14); }
.field::placeholder { color: #9AA79F; font-weight: 400; }
textarea.field { border-radius: 1.4rem; resize: none; }
input[type="date"].field { cursor: pointer; }

.field-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #64756C; margin-bottom: .5rem; }

/* ---------- Buttons ---------- */
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 999px; font-weight: 700; transition: all .25s ease; cursor: pointer; }
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill:active { transform: translateY(0); }

/* ---------- Toast notification ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); z-index: 1200;
  display: flex; align-items: center; gap: .75rem; max-width: min(92vw, 560px);
  background: #123B2F; color: #FFF8EC; border-radius: 999px; padding: .95rem 1.6rem .95rem 1.2rem;
  box-shadow: 0 24px 50px -12px rgba(18, 59, 47, .45); font-weight: 600; font-size: .92rem; line-height: 1.45;
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1); pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); }
#toast .toast-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: #E4572E; color: #FFF8EC; flex-shrink: 0; font-size: 1.05rem; }

/* ---------- Cart drawer (overlay slide-in) ---------- */
#cart-backdrop {
  position: fixed; inset: 0; background: rgba(18, 59, 47, .55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: all .4s ease; z-index: 900;
}
body.cart-open #cart-backdrop { opacity: 1; visibility: visible; }

#cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(460px, 100vw); background: #FFFDF8; z-index: 950;
  transform: translateX(105%); transition: transform .5s cubic-bezier(.25, 1, .5, 1);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: -30px 0 60px rgba(18, 59, 47, .25);
  border-radius: 28px 0 0 28px;
}
body.cart-open #cart-drawer { transform: translateX(0); }

.cart-layer { display: none; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.cart-layer.active { display: flex; }

/* ---------- Modals ---------- */
.app-modal {
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: all .35s ease; pointer-events: none;
  position: fixed; inset: 0; z-index: 1100; background: rgba(18, 59, 47, .65); backdrop-filter: blur(6px);
}
.app-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.app-modal-box { transform: translateY(24px) scale(.97); transition: transform .4s cubic-bezier(.34, 1.4, .64, 1); max-height: 92vh; overflow-y: auto; }
.app-modal.active .app-modal-box { transform: translateY(0) scale(1); }

/* ---------- Service Standards tabs ---------- */
.service-tab {
  border-radius: 999px; padding: .85rem 1.6rem; font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  background: #FFFFFF; color: #123B2F; border: 1px solid #E2D9C6; cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.service-tab:hover { border-color: #17604A; color: #17604A; }
.service-tab.active { background: #17604A; color: #FFF8EC; border-color: #17604A; box-shadow: 0 14px 30px -10px rgba(23, 96, 74, .5); }

.service-panel { display: none; }
.service-panel.active { display: flex; animation: panelIn .45s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Category pills (Shop) ---------- */
.cat-pill {
  border-radius: 999px; padding: .75rem 1.5rem; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: #FFFFFF; color: #123B2F; border: 1px solid #E2D9C6; cursor: pointer; transition: all .25s ease;
}
.cat-pill:hover { border-color: #E4572E; color: #E4572E; transform: translateY(-2px); }
.cat-pill.active { background: #123B2F; color: #FFF8EC; border-color: #123B2F; box-shadow: 0 14px 28px -10px rgba(18, 59, 47, .5); }

/* ---------- Product cards ---------- */
.product-card { transition: transform .35s ease, box-shadow .35s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 30px 55px -20px rgba(18, 59, 47, .28); }
.product-card img { transition: transform .55s ease; }
.product-card:hover img { transform: scale(1.07); }

/* ---------- Nav ---------- */
.nav-link { border-radius: 999px; padding: .55rem 1.05rem; transition: all .25s ease; }
.nav-link:hover { background: #FFFFFF; color: #17604A; }
.nav-link.nav-active { background: #123B2F; color: #FFF8EC; }

/* ---------- Mobile menu (slide-down panel) ---------- */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
#mobile-menu.open { max-height: 480px; }

/* ---------- Decorative ---------- */
.arch { border-radius: 999px 999px 28px 28px; }
.dot-grid { background-image: radial-gradient(rgba(255, 248, 236, .22) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.dot-grid-dark { background-image: radial-gradient(rgba(18, 59, 47, .14) 1.5px, transparent 1.5px); background-size: 22px 22px; }

.policy-toc a { transition: all .2s ease; }
.policy-toc a:hover { color: #E4572E; padding-left: .35rem; }
