/* ═══════════════════════════════════════════════════════════
   base.css — Reset, typography, layout primitives
   (reference look: Open Sans, light gray headings, pills)
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--body);
  background: var(--pistachio-soft);
  line-height: 1.75;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--heading-dark); line-height: 1.3; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
section { padding: var(--sp-20) 0; }
.text-center { text-align: center; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #111; color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Section headings — reference style: large, LIGHT weight, gray, centered */
.section-tag { display: none; }             /* reference has no tag pills */
.section-title {
  font-family: var(--font-head); font-weight: 300;
  font-size: var(--text-2xl); color: var(--heading);
  margin-bottom: var(--sp-4); letter-spacing: .01em;
}
.section-title span { color: var(--heading); font-weight: 300; }  /* no colored words */
.section-title.underlined::after { content: none; }
.section-desc { color: var(--muted); max-width: 680px; margin: 0 auto; font-size: var(--text-base); }

/* Buttons — reference: pill shape, UPPERCASE, small bold */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 13px 30px; border-radius: var(--radius-pill);
  transition: all .25s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--orange-dark); }
.btn-white { background: #fff; color: var(--heading-dark); box-shadow: var(--shadow-sm); }
.btn-ghost {
  background: rgba(120,130,140,.45); color: #fff;
  border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(120,130,140,.65); }
.btn-outline { border: 2px solid var(--orange); color: var(--orange); background: transparent; }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-wa { background: var(--green-wa); color: #fff; box-shadow: var(--shadow-sm); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-lg { padding: 15px 38px; font-size: 14px; }
.btn-sm { padding: 10px 22px; font-size: 12px; }

/* Cards */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.glass-card { border: 1px solid var(--border); border-radius: var(--radius-md); }

/* Orange uppercase text links — reference "VIEW ALL …" */
.view-all {
  color: var(--orange); font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
}
.view-all:hover { color: var(--orange-dark); }

/* Spinner */
.spinner {
  width: 38px; height: 38px; margin: var(--sp-10) auto;
  border: 3px solid var(--border); border-top-color: var(--orange);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: #222; color: #fff; padding: 13px 26px;
  border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 3000;
  box-shadow: var(--shadow-xl); max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Forms */
.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--heading-dark); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--body);
  transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange);
}

/* Page header (inner pages) — reference style: light gray strip,
   small centered breadcrumb, light-weight gray title. No photo. */
.page-hero {
  position: relative; background: var(--page-bg);
  padding: 56px 0 48px; text-align: center;
}
.page-hero__bg { display: none; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--heading); font-weight: 300; font-size: var(--text-2xl);
  margin: 10px 0 4px;
}
.page-hero p { color: var(--muted); font-size: var(--text-base); }
.breadcrumb { font-size: 14px; color: #999; }
.breadcrumb a { color: #666; text-decoration: underline; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 8px; color: #bbb; }

/* Preloader — short branded intro shown before each page renders */
#preloader {
  position: fixed; inset: 0; z-index: 5000; background: var(--pistachio-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity .45s ease, visibility .45s ease;
  animation: preloaderAutoHide 3s forwards;   /* pure-CSS fallback if JS fails */
}
#preloader img { height: 64px; width: auto; animation: preloaderPulse 1.1s ease-in-out infinite; }
#preloader .preloader__ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid #eee; border-top-color: var(--orange);
  animation: spin .7s linear infinite;
}
#preloader.done { animation: none; opacity: 0; visibility: hidden; }
@keyframes preloaderPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes preloaderAutoHide { 0%, 93% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
