/* ============================================================
   EDU SAS · Fotografia, Vídeo & Creative
   styles.css
   ============================================================ */

/* --- Reset & tokens --- */
:root {
  --ink: #1C1A17;
  --paper: #F6F4EF;
  --accent: #ec5a24;
  --accent-hover: #c8461a;
  --blue: #2F4A6B;
  --blue-hover: #24384f;
  --muted: rgba(246, 244, 239, .6);
  --line: rgba(246, 244, 239, .14);
  --input-bg: #0a0a0a;
  --card-bg: #121110;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: var(--paper);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* --- Animations --- */
@keyframes mgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mgUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes eduWordRise {
  from { opacity: 0; transform: translateY(42px); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes eduDotIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes eduDotGlow {
  0%, 100% { box-shadow: 0 0 14px 6px rgba(236, 90, 36, .45); }
  50%      { box-shadow: 0 0 26px 12px rgba(236, 90, 36, .65); }
}
@keyframes eduUnder {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes eduTag {
  from { opacity: 0; letter-spacing: .5em; filter: blur(9px); }
  to { opacity: 1; letter-spacing: .28em; filter: blur(0); }
}
@keyframes eduPushIn {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   INTRO LOADER
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: radial-gradient(60% 60% at 50% 50%, #201d18 0%, #050505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
.intro.hide { opacity: 0; pointer-events: none; }

.intro__brand {
  animation: eduPushIn 4.4s cubic-bezier(.22, 1, .36, 1) both;
  text-align: center;
  font-family: 'Sora', sans-serif;
  padding: 0 6vw;
}
.intro__word {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .2em;
  font-weight: 800;
  font-size: clamp(58px, 12.5vw, 190px);
  line-height: .9;
  letter-spacing: -.03em;
  color: #f4f1ea;
  white-space: nowrap;
}
.intro__letter {
  display: inline-block;
  animation: eduWordRise .95s cubic-bezier(.16, 1, .3, 1) both;
}
.intro__letter:nth-child(1) { animation-delay: .10s; }
.intro__letter:nth-child(2) { animation-delay: .16s; }
.intro__letter:nth-child(3) { animation-delay: .22s; }
.intro__letter:nth-child(4) { animation-delay: .30s; }
.intro__letter:nth-child(5) { animation-delay: .36s; }
.intro__letter:nth-child(6) { animation-delay: .42s; }
.intro__dot {
  display: inline-block;
  width: .34em;
  height: .34em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: .16em;
  animation: eduDotIn .7s cubic-bezier(.16, 1, .3, 1) .58s both,
             eduDotGlow 2.6s ease-in-out 1.4s infinite;
}
.intro__underline {
  height: clamp(4px, .5vw, 8px);
  width: min(560px, 64vw);
  margin: clamp(20px, 3vw, 40px) auto clamp(16px, 2.2vw, 30px);
  background: var(--accent);
  border-radius: 8px;
  transform-origin: center;
  animation: eduUnder .8s cubic-bezier(.65, 0, .35, 1) .72s both;
}
.intro__tagline {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 2.1vw, 34px);
  color: #f4f1ea;
  letter-spacing: .28em;
  white-space: nowrap;
  animation: eduTag 1s ease .95s both;
}
.intro__loader {
  position: absolute;
  left: clamp(20px, 4vw, 52px);
  bottom: clamp(28px, 5vw, 60px);
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.6vw, 22px);
  animation: mgFade .8s ease .2s both;
}
.intro__pct {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(46px, 8vw, 96px);
  line-height: .85;
  color: #f4f1ea;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.intro__pct-sign {
  color: var(--accent);
  font-size: .5em;
}
.intro__loader-side {
  padding-bottom: clamp(6px, 1vw, 14px);
}
.intro__loader-label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 1.1vw, 18px);
  letter-spacing: .32em;
  color: rgba(244, 241, 234, .6);
}
.intro__bar {
  margin-top: 8px;
  width: clamp(120px, 16vw, 210px);
  height: 4px;
  background: rgba(244, 241, 234, .18);
  border-radius: 4px;
  overflow: hidden;
}
.intro__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0%;
  transition: width .04s linear;
}
.intro__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
}

/* ============================================================
   PUBLIC NAV
   ============================================================ */
.nav {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(20px, 5vw, 64px);
  background: #000;
}
.nav__logo {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}
.nav__logo img {
  height: clamp(92px, 11vw, 132px);
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-weight: 500;
  font-size: 15px;
  color: rgba(246, 244, 239, .9);
  padding: 9px 15px;
  border-radius: 999px;
  transition: background .2s ease;
  white-space: nowrap;
}
.nav__link:hover { background: rgba(246, 244, 239, .1); }
.btn-blue {
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-blue:hover { background: var(--blue-hover); }
.nav__cta { margin-left: 8px; }

/* ============================================================
   HOME (EM CONSTRUÇÃO)
   ============================================================ */
.home {
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(40px, 8vh, 110px) clamp(20px, 5vw, 64px) 90px;
  gap: clamp(6px, 1.5vw, 14px);
  position: relative;
}
.home__logo {
  width: min(820px, 94vw);
  height: auto;
  display: block;
  margin-bottom: -8%;
  animation: mgFade 1.1s ease both;
}
.home__title {
  margin: 0;
  font-family: 'Bricolage Grotesque';
  font-weight: 800;
  font-size: clamp(44px, 8vw, 104px);
  letter-spacing: -.04em;
  line-height: .92;
  color: var(--paper);
  animation: mgUp 1s .25s ease both;
}
.home__title span { color: var(--blue); }
.home__subtitle {
  margin: 6px 0 0;
  font-family: 'Instrument Serif';
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 26px);
  color: rgba(246, 244, 239, .62);
  max-width: 36ch;
  line-height: 1.45;
  animation: mgUp 1s .35s ease both;
}
.home__cta {
  margin-top: 4px;
  font-size: 15px;
  padding: 14px 26px;
  animation: mgUp 1s .45s ease both;
}

/* ============================================================
   CLIENT AREA (Galerias)
   ============================================================ */
.client {
  min-height: 100vh;
  background: #000;
}
.client__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
}
.client__header .nav__logo img { height: clamp(72px, 8vw, 104px); }
.client__main {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.eyebrow__text {
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, .7);
}
.page-title {
  font-family: 'Bricolage Grotesque';
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -.04em;
  line-height: .95;
  margin: 0 0 8px;
  color: var(--paper);
}
.page-title em {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-sub {
  font-size: 16px;
  color: rgba(246, 244, 239, .6);
  margin: 0 0 44px;
  max-width: 60ch;
}
.client__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.card {
  text-align: left;
  background: #fff;
  border: 1px solid #E6E1D8;
  cursor: pointer;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .3s ease;
  font-family: inherit;
}
.card:hover { border-color: var(--ink); transform: translateY(-4px); }
.card__cover {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__body {
  padding: 18px 18px 20px;
  background: #fff;
}
.card__title {
  font-family: 'Bricolage Grotesque';
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
}
.client__empty {
  border: 1px dashed rgba(246, 244, 239, .2);
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  color: rgba(246, 244, 239, .5);
  font-size: 15px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #000;
  padding: clamp(44px, 5vw, 68px) clamp(20px, 5vw, 64px);
}
.footer__inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  height: clamp(104px, 13vw, 168px);
  width: auto;
  display: block;
  margin: 2% 0 -7%;
}
.footer__copy {
  font-size: 14.5px;
  color: rgba(246, 244, 239, .6);
  margin-top: 0;
}
.footer__links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  flex-wrap: wrap;
}
.footer__link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-size: 15px;
  color: rgba(246, 244, 239, .85);
  padding: 0;
  transition: color .2s ease;
}
.footer__link:hover { color: var(--accent); }
.footer__link--muted { color: rgba(246, 244, 239, .45); }

/* ============================================================
   ADMIN LOGIN
   ============================================================ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  position: relative;
}
.admin-login__back {
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  right: clamp(20px, 5vw, 48px);
  z-index: 2;
}
.admin-login__card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.admin-login__logo {
  width: min(300px, 72%);
  height: auto;
  display: block;
  margin-bottom: 24px;
}
.admin-login__title {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -.03em;
  margin: 0 0 26px;
  color: var(--paper);
}
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(246, 244, 239, .2);
  border-radius: 10px;
  font-family: 'Hanken Grotesk';
  font-size: 16px;
  background: var(--input-bg);
  color: var(--paper);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.input:focus { border-color: var(--accent); }
.input--center { text-align: center; }
.input + .input { margin-top: 14px; }
.admin-login__error {
  font-size: 14px;
  color: var(--accent);
  margin-top: 12px;
  min-height: 20px;
}
.admin-login__submit {
  width: 100%;
  margin-top: 22px;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 16px;
  padding: 16px;
  border-radius: 999px;
  transition: background .2s ease;
}
.admin-login__submit:hover { background: var(--blue-hover); }
.admin-login__tag {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.3;
  color: rgba(246, 244, 239, .65);
  margin-top: 30px;
  max-width: 24ch;
}

/* ============================================================
   ADMIN SHELL (painel)
   ============================================================ */
.admin {
  min-height: 100vh;
  background: #000;
}
.admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.admin__header .nav__logo img { height: clamp(72px, 8vw, 104px); }
.admin__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-ghost {
  background: none;
  border: 1px solid rgba(246, 244, 239, .3);
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 14px;
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  transition: border-color .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--paper); }
.admin__main {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px) 90px;
}
.admin__form-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 44px;
}
.admin__form-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, .6);
  margin-bottom: 10px;
}
.dropzone {
  aspect-ratio: 3/2;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--input-bg);
  border: 2px dashed rgba(246, 244, 239, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: border-color .2s ease;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dropzone__hint {
  color: rgba(246, 244, 239, .55);
  padding: 16px;
}
.dropzone__hint-icon {
  font-size: 26px;
  margin-bottom: 8px;
}
.dropzone__hint-title {
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 14px;
  color: var(--paper);
}
.dropzone__hint-sub {
  font-size: 12px;
  margin-top: 4px;
}
.dropzone-swap {
  margin-top: 10px;
  background: none;
  border: 1px solid rgba(246, 244, 239, .3);
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 13px;
  color: var(--paper);
  padding: 9px 16px;
  border-radius: 999px;
}
.admin__fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background .2s ease;
  align-self: flex-start;
}
.btn-accent:hover { background: var(--accent-hover); }
.section-label {
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, .5);
  margin-bottom: 18px;
}
.admin__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.admin-card__cover {
  aspect-ratio: 3/2;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.admin-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-card__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.admin-card__title {
  font-family: 'Bricolage Grotesque';
  font-weight: 600;
  font-size: 18px;
  color: var(--paper);
  letter-spacing: -.01em;
}
.admin-card__actions {
  display: flex;
  gap: 9px;
  margin-top: auto;
}
.btn-ghost-sm {
  flex: 1;
  background: none;
  border: 1px solid rgba(246, 244, 239, .3);
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 13px;
  color: var(--paper);
  padding: 9px 12px;
  border-radius: 999px;
  transition: border-color .2s ease;
}
.btn-ghost-sm:hover { border-color: var(--paper); }
.btn-danger {
  background: none;
  border: 1px solid rgba(194, 96, 62, .55);
  cursor: pointer;
  font-family: 'Hanken Grotesk';
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  padding: 9px 14px;
  border-radius: 999px;
  transition: border-color .2s ease, background .2s ease;
}
.btn-danger:hover { border-color: var(--accent); background: rgba(194, 96, 62, .12); }
.admin__empty {
  border: 1px dashed rgba(246, 244, 239, .2);
  border-radius: 12px;
  padding: 44px 20px;
  text-align: center;
  color: rgba(246, 244, 239, .5);
  font-size: 15px;
}
.admin__backup {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  animation: mgUp .3s ease;
  border: 1px solid var(--line);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .admin__form-grid { grid-template-columns: 1fr; }
  .client__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .client__grid { grid-template-columns: 1fr; }
  .nav { padding: 6px 16px; }
  .nav__links { gap: 2px; }
  .nav__link { padding: 8px 10px; font-size: 14px; }
  .btn-blue { padding: 9px 14px; font-size: 13px; }
  .footer__links { gap: 16px; width: 100%; }
}
@media (max-width: 480px) {
  .home__logo { margin-bottom: 0; }
  .intro__tagline { letter-spacing: .18em; }
}

/* Hidden utility */
.hidden { display: none !important; }
