/* ============================================================
   TukangMug.com — Shared Design System
   Primary red #E23028 · Accent orange #FF8A00 · Cream soft
   Headlines: Archivo (bold) · Body: Plus Jakarta Sans
   ============================================================ */

:root {
  /* Brand */
  --red: #E23028;
  --red-dark: #BE211B;
  --red-soft: #FCE9E7;
  --orange: #FF8A00;
  --orange-soft: #FFF1DD;

  /* Neutrals (warm) */
  --ink: #221A17;
  --ink-2: #5C504A;
  --ink-3: #8A7D75;
  --cream: #FFF8F0;
  --cream-2: #FBEFE2;
  --line: #EFE3D6;
  --white: #FFFFFF;

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(64, 36, 24, .06);
  --sh-md: 0 12px 30px rgba(64, 36, 24, .10);
  --sh-lg: 0 28px 60px rgba(64, 36, 24, .16);
  --sh-red: 0 14px 30px rgba(226, 48, 40, .30);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --maxw: 1200px;

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--tint  { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 7px 14px; border-radius: 100px;
}
.eyebrow.is-orange { color: #B25E00; background: var(--orange-soft); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(30px, 4.2vw, 48px);
  margin: 18px 0 14px;
}
.section-sub { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 100px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--wa { background: #25D366; color: #0a3d20; box-shadow: 0 8px 24px rgba(37,211,102,.25); }
.btn--wa:hover { background: #22C15E; color: #052312; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,.35); }

.btn--red { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn--ghost { background: #fff; color: var(--ink-2); border: 2px solid #EFE3D6; box-shadow: 0 4px 12px rgba(64,36,24,0.04); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,138,0,0.1); }

.btn--lg { padding: 18px 32px; font-size: 18px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,240,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--red); color: #fff; display: grid; place-items: center;
  font-size: 20px; box-shadow: var(--sh-red);
}
.brand .mark svg { width: 22px; height: 22px; }
.brand b { color: var(--red); }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Placeholder (drop real photos here) ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(194,160,130,.10) 0 12px, rgba(194,160,130,.18) 12px 24px),
    var(--cream-2);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; letter-spacing: .04em; color: #A98F77;
  background: rgba(255,255,255,.72); padding: 6px 12px; border-radius: 100px;
  max-width: 80%;
}
.ph.is-red { background:
    repeating-linear-gradient(45deg, rgba(226,48,40,.08) 0 12px, rgba(226,48,40,.15) 12px 24px),
    var(--red-soft); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  padding: 5px 11px; border-radius: 100px;
}
.badge--orange { background: var(--orange); color: #4a2900; }
.badge--red { background: var(--red); color: #fff; }
.badge--soft { background: var(--cream-2); color: var(--ink-2); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }

/* ---------- Sticky WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: #25D366; color: #08381d;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  padding: 14px 20px 14px 16px; border-radius: 100px;
  box-shadow: 0 16px 36px rgba(37,211,102,.45);
  animation: waPop .4s ease both;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float .wa-dot { position:absolute; top:-3px; left:30px; width:12px; height:12px; background:var(--red); border:2px solid #fff; border-radius:50%; }
@keyframes waPop { from { transform: translateY(20px); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9DDD4; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: 0; }
.site-footer a { color: #C9B9AD; display: block; padding: 6px 0; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #B6A498; font-size: 14.5px; margin-top: 14px; max-width: 280px; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9C8A7E; font-size: 13.5px; }

/* ---------- Reveal on scroll (progressive enhancement, never hides content) ---------- */
/* Base state is always visible. Hiding only happens once JS adds html.tm-anim,
   and the entrance transition is applied via the .in class. If JS never runs or a
   clock stalls, content stays visible. */
.reveal { opacity: 1; }
html.tm-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.tm-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.tm-anim .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .wa-float span { display: none; }
  .wa-float { padding: 16px; border-radius: 50%; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile Drawer ---------- */
.mobile-drawer { display: none; }
@media (max-width: 860px) {
  .mobile-drawer { display: block; position: fixed; inset: 74px 0 auto 0; z-index: 49; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-md); transform: translateY(-120%); transition: transform .25s ease; }
  .mobile-drawer.open { transform: none; }
  .mobile-drawer .wrap { padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 4px; }
  .mobile-drawer a { padding: 13px 8px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-drawer .btn { margin-top: 12px; }
}

/* ---------- Order Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(34, 26, 23, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content {
  background: #fff; width: 100%; max-width: 440px;
  border-radius: var(--r-xl); padding: 36px 32px;
  box-shadow: var(--sh-lg); position: relative;
  transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.open .modal-content { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--cream-2); border: none; font-size: 28px; line-height: 1;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: var(--red-soft); color: var(--red); transform: rotate(90deg); }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-icon { width: 64px; height: 64px; background: #e9fbf0; color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 8px 24px rgba(37,211,102,.2); }
.modal-icon svg { width: 36px; height: 36px; }
.modal-header h3 { font-size: 24px; margin-bottom: 8px; font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.modal-header p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 2px solid var(--line); border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; transition: border 0.2s, box-shadow 0.2s;
  background: #fafafa;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.1);
}
.form-group input[readonly] { background: var(--cream-2); color: var(--ink-2); font-weight: 600; border-color: transparent; }
