/* ============================================================
   MEGUMI 3D — SHARED STYLESHEET
   Used by: index.html, portfolio.html, contact.html,
            admin-login.html, admin-upload.html
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --sakura:      #E8559A;
  --blossom:     #F4C0D1;
  --petal:       #FBEAF0;
  --ink:         #1A0A12;
  --plum:        #3D1F2E;
  --snow:        #F7F4F5;
  --stone:       #888780;
  --muted:       #B89AA8;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 99px;
  --font:        'DM Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body  { font-family: var(--font); background: var(--snow); color: var(--ink); }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; }

/* ── DARK MODE — base ── */
body.dark { background: #0F0709; }

/* Cards that flip in dark mode (shared across public pages) */
body.dark .mgm-svc,
body.dark .mgm-step,
body.dark .mgm-form-card,
body.dark .mgm-info-card,
body.dark .mgm-proj {
  background: #1E0E16;
  border-color: #3D1F2E;
}
body.dark .mgm-svc__title,
body.dark .mgm-step__title,
body.dark .mgm-section__title,
body.dark .mgm-proj__name { color: var(--blossom); }

body.dark .mgm-svc__desc,
body.dark .mgm-step__desc,
body.dark .mgm-section__sub,
body.dark .mgm-stat__lbl,
body.dark .mgm-proj__client { color: var(--muted); }

body.dark .mgm-svc__icon   { background: var(--plum); }
body.dark .mgm-proj__meta  { border-color: #3D1F2E; }

/* ── SVG LOGO (inline helper, shared markup) ── */
.mgm-logo-svg { width: 28px; height: 28px; flex-shrink: 0; }

/* ── NAV ── */
.mgm-nav {
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  position: sticky; top: 0; z-index: 100;
}
.mgm-nav__logo       { display: flex; align-items: center; gap: 10px; }
.mgm-nav__logo span  { color: #fff; font-size: 17px; font-weight: 500; letter-spacing: 0.07em; }
.mgm-nav__links      { display: flex; gap: 4px; }
.mgm-nav__link {
  color: var(--muted); font-size: 14px; padding: 7px 16px;
  border-radius: var(--radius-pill); border: none; background: transparent;
  cursor: pointer; font-family: var(--font);
  transition: background .15s, color .15s;
  display: inline-block;
}
.mgm-nav__link:hover,
.mgm-nav__link.active { color: var(--blossom); background: var(--plum); }

.mgm-nav__right { display: flex; align-items: center; gap: 12px; }

.mgm-nav__cta {
  background: var(--sakura); color: #fff; font-family: var(--font);
  font-size: 14px; font-weight: 500; padding: 9px 22px;
  border-radius: var(--radius-pill); border: none; cursor: pointer;
  display: inline-block;
}

.mgm-dark-toggle {
  background: transparent; border: 1px solid var(--plum);
  color: var(--muted); width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.mgm-dark-toggle:hover { background: var(--plum); color: var(--blossom); border-color: var(--blossom); }

/* ── HAMBURGER ── */
.mgm-nav__hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.mgm-nav__hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--muted); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mgm-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mgm-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.mgm-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .mgm-nav            { padding: 0 20px; }
  .mgm-nav__hamburger { display: flex; }
  .mgm-nav__cta       { display: none; }

  .mgm-nav__links {
    display: flex;
    flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink);
    padding: 12px 20px 20px;
    gap: 4px;
    /* hidden by default */
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s;
    z-index: 99;
  }
  .mgm-nav__links.open {
    opacity: 1; pointer-events: all;
    transform: translateY(0);
  }
  .mgm-nav__link { width: 100%; }
}

/* ── SECTION BASE ── */
.mgm-section { padding: 72px 48px; }
.mgm-section__tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sakura); margin-bottom: 10px;
}
.mgm-section__title { font-size: 28px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.mgm-section__sub {
  font-size: 15px; color: var(--stone); line-height: 1.7;
  max-width: 500px; margin-bottom: 40px;
}
@media (max-width: 640px) { .mgm-section { padding: 48px 20px; } }

/* ── BUTTONS ── */
.mgm-btn-primary {
  background: var(--sakura); color: #fff; font-family: var(--font);
  font-size: 15px; font-weight: 500; padding: 13px 28px;
  border-radius: var(--radius-pill); border: none; cursor: pointer;
  display: inline-block; transition: opacity .15s;
}
.mgm-btn-primary:hover { opacity: 0.9; }

.mgm-btn-outline {
  background: transparent; color: var(--blossom); font-family: var(--font);
  font-size: 15px; padding: 13px 28px; border-radius: var(--radius-pill);
  border: 1px solid var(--plum); cursor: pointer; display: inline-block;
}

/* ── CTA BANNER ── */
.mgm-cta {
  background: var(--ink); border-radius: var(--radius-lg);
  padding: 40px 48px; margin: 0 48px 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.mgm-cta h3 { font-size: 22px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.mgm-cta p  { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .mgm-cta { margin: 0 20px 48px; padding: 28px 20px; } }

/* ── FOOTER ── */
.mgm-footer {
  background: var(--ink); padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.mgm-footer__logo      { display: flex; align-items: center; gap: 8px; }
.mgm-footer__logo span { color: var(--blossom); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; }
.mgm-footer__copy      { font-size: 13px; color: var(--muted); }
.mgm-footer__links     { display: flex; gap: 20px; }
.mgm-footer__links a   { font-size: 13px; color: var(--muted); }
.mgm-footer__links a:hover { color: var(--blossom); }
@media (max-width: 640px) {
  .mgm-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}

/* ── MODAL ── */
.mgm-modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26, 10, 18, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.mgm-modal-backdrop.open { opacity: 1; pointer-events: all; }

.mgm-modal {
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px 32px; width: 100%; max-width: 420px;
  transform: translateY(12px); transition: transform .2s;
  position: relative;
}
.mgm-modal-backdrop.open .mgm-modal { transform: translateY(0); }
body.dark .mgm-modal { background: #1E0E16; border: 1px solid var(--plum); }

.mgm-modal__close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; cursor: pointer;
  color: var(--stone); font-size: 20px; line-height: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.mgm-modal__close:hover                  { background: var(--petal); color: var(--ink); }
body.dark .mgm-modal__close:hover        { background: var(--plum);  color: var(--blossom); }

.mgm-modal__icon { font-size: 32px; margin-bottom: 14px; }

.mgm-modal h2 { font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
body.dark .mgm-modal h2 { color: var(--blossom); }

.mgm-modal p  { font-size: 14px; color: var(--stone); line-height: 1.65; margin-bottom: 24px; }
body.dark .mgm-modal p { color: var(--muted); }

.mgm-modal__options { display: flex; flex-direction: column; gap: 12px; }

.mgm-modal__option {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--radius-md);
  border: 1px solid #EDE9EB; text-decoration: none;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
body.dark .mgm-modal__option              { border-color: var(--plum); }
.mgm-modal__option:hover                  { border-color: var(--sakura); background: var(--petal); }
body.dark .mgm-modal__option:hover        { background: var(--plum); }
.mgm-modal__option--disabled              { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.mgm-modal__opt-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.mgm-modal__opt-icon--email              { background: var(--petal); }
.mgm-modal__opt-icon--whatsapp           { background: #E8F5E9; }
body.dark .mgm-modal__opt-icon--whatsapp { background: #0D2B14; }

.mgm-modal__opt-body                     { flex: 1; }
.mgm-modal__opt-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
body.dark .mgm-modal__opt-title          { color: #fff; }
.mgm-modal__opt-desc                     { font-size: 12px; color: var(--stone); }
body.dark .mgm-modal__opt-desc           { color: var(--muted); }
.mgm-modal__opt-arrow                    { font-size: 16px; color: var(--sakura); flex-shrink: 0; }

.mgm-modal__soon {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: #fff; background: var(--stone);
  padding: 2px 8px; border-radius: var(--radius-pill);
}

/* ── SHARED FORM ELEMENTS (contact + admin) ── */
.mgm-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mgm-form-group label {
  font-size: 13px; font-weight: 500; color: var(--stone);
}
.mgm-form-group input,
.mgm-form-group select,
.mgm-form-group textarea {
  font-family: var(--font); font-size: 14px;
  border: 1px solid #DDD8DA; border-radius: var(--radius-sm);
  background: #FAFAFA; color: var(--ink);
  padding: 10px 14px; width: 100%; outline: none;
  transition: border-color .15s;
}
.mgm-form-group input:focus,
.mgm-form-group select:focus,
.mgm-form-group textarea:focus { border-color: var(--sakura); background: #fff; }
.mgm-form-group textarea { resize: vertical; min-height: 100px; }